summaryrefslogtreecommitdiff
path: root/sys-kernel/hardened-sources/files/linux-hardened-gentoo-v2.patch
blob: 6e32cd1b1dc4eb08568230a340b3c9d0a10dd92e (plain) (blame)
1
2
3
4
5
6
7
8
9
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,