1 |
commit: 4bb4205fa2bb031ebb6a5373a24eb66d67048081 |
2 |
Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 21 19:26:40 2021 +0000 |
4 |
Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 2 15:29:05 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=4bb4205f |
7 |
|
8 |
Move X86 and ARM only config settings to their respective sections |
9 |
|
10 |
Thanks to gyakovlev |
11 |
|
12 |
Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> |
13 |
|
14 |
4567_distro-Gentoo-Kconfig.patch | 12 +++++++----- |
15 |
1 file changed, 7 insertions(+), 5 deletions(-) |
16 |
|
17 |
diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch |
18 |
index 05570254..24b75095 100644 |
19 |
--- a/4567_distro-Gentoo-Kconfig.patch |
20 |
+++ b/4567_distro-Gentoo-Kconfig.patch |
21 |
@@ -6,9 +6,9 @@ |
22 |
source "Documentation/Kconfig" |
23 |
+ |
24 |
+source "distro/Kconfig" |
25 |
---- /dev/null 2021-08-24 15:34:24.700702871 -0400 |
26 |
-+++ b/distro/Kconfig 2021-08-24 15:49:16.965525424 -0400 |
27 |
-@@ -0,0 +1,281 @@ |
28 |
+--- /dev/null 2021-12-21 08:57:43.779324794 -0500 |
29 |
++++ b/distro/Kconfig 2021-12-21 14:12:07.964572417 -0500 |
30 |
+@@ -0,0 +1,283 @@ |
31 |
+menu "Gentoo Linux" |
32 |
+ |
33 |
+config GENTOO_LINUX |
34 |
@@ -211,7 +211,6 @@ |
35 |
+ select PAGE_POISONING_ZERO |
36 |
+ select INIT_ON_ALLOC_DEFAULT_ON |
37 |
+ select INIT_ON_FREE_DEFAULT_ON |
38 |
-+ select VMAP_STACK |
39 |
+ select REFCOUNT_FULL |
40 |
+ select FORTIFY_SOURCE |
41 |
+ select SECURITY_DMESG_RESTRICT |
42 |
@@ -219,7 +218,6 @@ |
43 |
+ select GCC_PLUGIN_LATENT_ENTROPY |
44 |
+ select GCC_PLUGIN_STRUCTLEAK |
45 |
+ select GCC_PLUGIN_STRUCTLEAK_BYREF_ALL |
46 |
-+ select GCC_PLUGIN_STACKLEAK |
47 |
+ select GCC_PLUGIN_RANDSTRUCT |
48 |
+ select GCC_PLUGIN_RANDSTRUCT_PERFORMANCE |
49 |
+ |
50 |
@@ -239,6 +237,8 @@ |
51 |
+ select RELOCATABLE |
52 |
+ select LEGACY_VSYSCALL_NONE |
53 |
+ select PAGE_TABLE_ISOLATION |
54 |
++ select GCC_PLUGIN_STACKLEAK |
55 |
++ select VMAP_STACK |
56 |
+ |
57 |
+ |
58 |
+config GENTOO_KERNEL_SELF_PROTECTION_ARM64 |
59 |
@@ -251,6 +251,8 @@ |
60 |
+ select RELOCATABLE |
61 |
+ select ARM64_SW_TTBR0_PAN |
62 |
+ select CONFIG_UNMAP_KERNEL_AT_EL0 |
63 |
++ select GCC_PLUGIN_STACKLEAK |
64 |
++ select VMAP_STACK |
65 |
+ |
66 |
+config GENTOO_KERNEL_SELF_PROTECTION_X86_32 |
67 |
+ bool "X86_32 KSPP Settings" |