fault-inject-fix-boot-failure-with-fault-injection-boot-parameters.patch removed from -mm tree
The quilt patch titled
Subject: fault-inject: fix boot failure with fault injection boot parameters
has been removed from the -mm tree. Its filename was
fault-inject-fix-boot-failure-with-fault-injection-boot-parameters.patch
This patch was dropped because it was merged into the mm-nonmm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Sang-Heon Jeon <[email protected]>
Subject: fault-inject: fix boot failure with fault injection boot parameters
Date: Fri, 6 Nov 2026 01:01:58 +0900
Since commit e9bc360b105c ("fault-inject: use prandom where cryptographically secure randomness is not needed"), setup_fault_attr() calls prandom_init_once(), which calls kmalloc() and schedule_work().
But setup_fault_attr() can be called from __setup handlers before slab and workqueues are initialized, so any fault injection boot parameter leads to boot failure.
So use DO_ONCE_LITE() instead.
lib/fault-inject.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
lib/fault-inject.c renamed from lib/fault-inject.c~fault-inject-fix-boot-failure-with-fault-injection-boot-parameters +7 -1
@@ -1,6 +1,7 @@// SPDX-License-Identifier: GPL-2.0-only #include <linux/kernel.h> #include <linux/init.h> +#include <linux/once_lite.h> #include <linux/prandom.h> #include <linux/debugfs.h> #include <linux/sched.h>
@@ -50,7 +51,12 @@ int setup_fault_attr(struct fault_attr *return 0 ; } -prandom_init_once (&fault_rnd_state); +/* +* __setup handlers run before slab and workqueues are initialized, +* but prandom_init_once() calls kmalloc() and schedule_work(). So use +* DO_ONCE_LITE() instead. +*/ +DO_ONCE_LITE (prandom_seed_full_state, &fault_rnd_state); attr->probability = probability; attr->interval = interval;
_
Patches currently in -mm which might be from [email protected] are
mm-memory-remove-unused-vmf_insert_mixed_mkwrite.patch mm-memory-remove-the-mkwrite-argument-from-__vm_insert_mixed.patch mm-memory-merge-__vm_insert_mixed-into-vmf_insert_mixed.patch fault-inject-use-a-shared-initialization-helper-for-the-random-state.patch fault-inject-fix-wrong-unit-of-verbose_ratelimit_interval_ms.patch