diff options
| author | Vincent Stehlé <vincent.stehle@laposte.net> | 2019-04-14 17:37:26 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@google.com> | 2020-11-15 15:49:07 +0100 |
| commit | d9ce517c5a8ed5e3e08e848abd1961e89f7bb30e (patch) | |
| tree | d409742d79344e59536dc45ad5c39eab723ce3bb /net/ipv4/tcp_input.c | |
| parent | cfc79beb798f8891b07eabd852f0363e3485d4c6 (diff) | |
UPSTREAM: staging: android: vsoc: fix copy_from_user overrun
The `np->permission' structure is smaller than the `np' structure but
sizeof(*np) worth of data is copied in there. Fix the size passed to
copy_from_user() to avoid overrun.
Fixes: 3d2ec9dcd553 ("staging: Android: Add 'vsoc' driver for cuttlefish.")
Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 060ea4271a82270be6d44e8e9aefe8f155fb5626)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I64af4102595050eb9062df7c75a509937f67549d
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions
