summaryrefslogtreecommitdiffstats
path: root/kernel/module.c
diff options
context:
space:
mode:
authorKees Cook2017-06-15 01:12:04 +0200
committerKees Cook2018-01-15 21:08:08 +0100
commit6d07d1cd300f4c7e16005f881fea388164999cc8 (patch)
treea2c4b8ce388b98f0cc1054ac59c42f4536920678 /kernel/module.c
parentkvm: x86: fix KVM_XEN_HVM_CONFIG ioctl (diff)
downloadkernel-qcow2-linux-6d07d1cd300f4c7e16005f881fea388164999cc8.tar.gz
kernel-qcow2-linux-6d07d1cd300f4c7e16005f881fea388164999cc8.tar.xz
kernel-qcow2-linux-6d07d1cd300f4c7e16005f881fea388164999cc8.zip
usercopy: Restrict non-usercopy caches to size 0
With all known usercopied cache whitelists now defined in the kernel, switch the default usercopy region of kmem_cache_create() to size 0. Any new caches with usercopy regions will now need to use kmem_cache_create_usercopy() instead of kmem_cache_create(). This patch is modified from Brad Spengler/PaX Team's PAX_USERCOPY whitelisting code in the last public patch of grsecurity/PaX based on my understanding of the code. Changes or omissions from the original code are mine and don't reflect the original grsecurity/PaX code. Cc: David Windsor <dave@nullcore.net> Cc: Christoph Lameter <cl@linux.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: linux-mm@kvack.org Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'kernel/module.c')
0 files changed, 0 insertions, 0 deletions