]> git.karo-electronics.de Git - karo-tx-linux.git/commit
prctl: use access_ok() instead of TASK_SIZE in prctl_set_mm()
authorCyrill Gorcunov <gorcunov@openvz.org>
Wed, 26 Sep 2012 01:33:02 +0000 (11:33 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 27 Sep 2012 07:25:17 +0000 (17:25 +1000)
commit20e61e149ba9a4fe4c4867a76e399879d802e669
treef7367f325f5e37af93e95e763a58c6fdffa1732c
parent6a18d7fb40a1e1f540db7851df88c779780fda16
prctl: use access_ok() instead of TASK_SIZE in prctl_set_mm()

Eric pointed that better to use access_ok instead of TASK_SIZE for testing
if address is allowed for use.

Reported-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Mark Salter <msalter@redhat.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/sys.c