]> git.baikalelectronics.ru Git - kernel.git/commit
c/r: prctl: add minimal address test to PR_SET_MM
authorCyrill Gorcunov <gorcunov@openvz.org>
Thu, 7 Jun 2012 21:21:11 +0000 (14:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Jun 2012 21:43:55 +0000 (14:43 -0700)
commita704dcd04f6c7adf7d93ee165f2f2304e2ecaf73
tree360b86785011959e68a4d87cb32bd92120370990
parentece9c4ab07c0b280c2e54f8e35cec6086d8e3e5f
c/r: prctl: add minimal address test to PR_SET_MM

Make sure the address being set is greater than mmap_min_addr (as
suggested by Kees Cook).

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Acked-by: Kees Cook <keescook@chromium.org>
Cc: Serge Hallyn <serge.hallyn@canonical.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Pavel Emelyanov <xemul@parallels.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/sys.c