]> granicus.if.org Git - zfs/commit
Fix PAX Patch/Grsec SLAB_USERCOPY panic
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 28 Sep 2015 16:08:11 +0000 (09:08 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 28 Sep 2015 16:18:29 +0000 (09:18 -0700)
commit2ebe396046c99ea191a51f24658273fd860b88c4
tree5f7f079911cfb58942c2d694b76c8aeeeabe98c4
parentf17d005bcc9b7edeb15b10bf947379a504b2d9f7
Fix PAX Patch/Grsec SLAB_USERCOPY panic

Support grsecurity/PaX kernel configurations where
CONFIG_PAX_USERCOPY_SLABS are enabled.  When this kernel option
is enabled slabs which are used to copy between user and kernel
space must be created with SLAB_USERCOPY.

Stock Linux kernels do not have a SLAB_USERCOPY definition so
this causes no change in behavior for non-PAX-enabled kernels.

Verified-by: Wuffleton <null@wuffleton.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #2977
Issue #3796
module/spl/spl-kmem-cache.c