lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250712192202.707192-9-gatlin.newhouse@gmail.com>
Date: Sat, 12 Jul 2025 19:21:53 +0000
From: Gatlin Newhouse <gatlin.newhouse@...il.com>
To: linux-hardening@...r.kernel.org
Cc: Gatlin Newhouse <gatlin.newhouse@...il.com>
Subject: [RFC v1 08/17] init: add caching startup and initialization to start_kernel()

---
 init/main.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/init/main.c b/init/main.c
index 225a58279acd..72e55704ce2f 100644
--- a/init/main.c
+++ b/init/main.c
@@ -958,6 +958,10 @@ void start_kernel(void)
 	trap_init();
 	mm_core_init();
 	poking_init();
+#ifdef CONFIG_SAFEFETCH
+	#include <linux/safefetch.h>
+	df_startup();
+#endif
 	ftrace_init();
 
 	/* trace_printk can be enabled here */
@@ -1098,6 +1102,9 @@ void start_kernel(void)
 	arch_post_acpi_subsys_init();
 	kcsan_init();
 
+#if defined(SAFEFETCH_DEBUG) || defined(SAFEFETCH_STATIC_KEYS)
+	df_sysfs_init();
+#endif
 	/* Do the rest non-__init'ed, we're now alive */
 	rest_init();
 
-- 
2.25.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ