Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit f5359821 authored by Vincent Stehlé's avatar Vincent Stehlé Committed by Alexander Grund
Browse files

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: default avatarVincent Stehlé <vincent.stehle@laposte.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 060ea4271a82270be6d44e8e9aefe8f155fb5626)
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
Change-Id: I64af4102595050eb9062df7c75a509937f67549d
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent c1526f4b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment