Re: [PATCH] fault-inject: fix boot failure with fault injection boot parameters

From: Akinobu Mita

Date: Tue Nov 10 2026 - 00:38:13 EST


2026年11月6日(金) 1:02 Sang-Heon Jeon <ekffu200098@xxxxxxxxx>:
>
> 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.
>
> Fixes: e9bc360b105c ("fault-inject: use prandom where cryptographically secure randomness is not needed")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Sang-Heon Jeon <ekffu200098@xxxxxxxxx>

Thank you very much for fixing the problem.

Reviewed-by: Akinobu Mita <akinobu.mita@xxxxxxxxx>