--- 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
- [RFC v1 00/17] Add Safefetch double-fetch protection Gatlin Newhouse
- [RFC v1 02/17] x86: syscall: support caching in do_sy... Gatlin Newhouse
- [RFC v1 05/17] uaccess: add non-caching copy_from_use... Gatlin Newhouse
- [RFC v1 04/17] sched: add protection to task_struct Gatlin Newhouse
- [RFC v1 08/17] init: add caching startup and initiali... Gatlin Newhouse
- [RFC v1 11/17] kernel: add SafeFetch cache handling t... Gatlin Newhouse
- [RFC v1 10/17] iov_iter: add SafeFetch pinning call t... Gatlin Newhouse
- [RFC v1 09/17] exit: add destruction of SafeFetch cac... Gatlin Newhouse
- [RFC v1 12/17] bug: add SafeFetch statistics tracking... Gatlin Newhouse
- [RFC v1 07/17] gup: add non-caching get_user call to ... Gatlin Newhouse
- [RFC v1 15/17] kconfig: debug: add SafeFetch to debug... Gatlin Newhouse
- [RFC v1 17/17] vfs: ioctl: add logging to ioctl_file_... Gatlin Newhouse
- [RFC v1 13/17] softirq: add SafeFetch statistics to i... Gatlin Newhouse
- [RFC v1 14/17] makefile: add SafeFetch support to mak... Gatlin Newhouse
- [RFC v1 06/17] futex: add get_user_no_dfcache() funct... Gatlin Newhouse