usercopy: remove page-spanning test for now
authorKees Cook <keescook@chromium.org>
Wed, 7 Sep 2016 16:54:34 +0000 (09:54 -0700)
committerKees Cook <keescook@chromium.org>
Wed, 7 Sep 2016 18:33:26 +0000 (11:33 -0700)
commit8e1f74ea02cf4562404c48c6882214821552c13f
tree931135d5d5cf00255d596520bd59c4067d669c22
parenta85d6b8242dc78ef3f4542a0f979aebcbe77fc4e
usercopy: remove page-spanning test for now

A custom allocator without __GFP_COMP that copies to userspace has been
found in vmw_execbuf_process[1], so this disables the page-span checker
by placing it behind a CONFIG for future work where such things can be
tracked down later.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1373326

Reported-by: Vinson Lee <vlee@freedesktop.org>
Fixes: f5509cc18daa ("mm: Hardened usercopy")
Signed-off-by: Kees Cook <keescook@chromium.org>
mm/usercopy.c
security/Kconfig