summaryrefslogtreecommitdiff
path: root/sys-kernel/hardened-sources/files/linux-hardened-gentoo-v2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/hardened-sources/files/linux-hardened-gentoo-v2.patch')
-rw-r--r--sys-kernel/hardened-sources/files/linux-hardened-gentoo-v2.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys-kernel/hardened-sources/files/linux-hardened-gentoo-v2.patch b/sys-kernel/hardened-sources/files/linux-hardened-gentoo-v2.patch
new file mode 100644
index 0000000..6e32cd1
--- /dev/null
+++ b/sys-kernel/hardened-sources/files/linux-hardened-gentoo-v2.patch
@@ -0,0 +1,10 @@
+--- a/security/Kconfig 2021-12-05 18:20:55.655677710 -0500
++++ b/security/Kconfig 2021-12-05 18:23:42.404251618 -0500
+@@ -167,6 +167,7 @@ config HARDENED_USERCOPY_PAGESPAN
+ bool "Refuse to copy allocations that span multiple pages"
+ depends on HARDENED_USERCOPY
+ depends on EXPERT
++ depends on !GENTOO_KERNEL_SELF_PROTECTION
+ help
+ When a multi-page allocation is done without __GFP_COMP,
+ hardened usercopy will reject attempts to copy it. There are,