]> 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>
Wed, 26 Sep 2012 05:41:25 +0000 (15:41 +1000)
commitc9eeef146c554f8ddcdf5916fb93621f0579e2f8
tree7c0ea2815cd36229f15fb410c642278157a9de31
parentf1e2629867ccffcc84640a3ef0d71ccfa65f3e76
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