Re: [PATCH net-next] configs/debug: run and debug PREEMPT

From: Simon Horman
Date: Fri Apr 04 2025 - 05:33:10 EST


On Wed, Apr 02, 2025 at 10:23:05AM -0700, Stanislav Fomichev wrote:
> Recent change [0] resulted in a "BUG: using __this_cpu_read() in
> preemptible" splat [1]. PREEMPT kernels have additional requirements
> on what can and can not run with/without preemption enabled.
> Expose those constrains in the debug kernels.
>
> 0: https://lore.kernel.org/netdev/20250314120048.12569-2-justin.iurman@xxxxxxxxx/
> 1: https://lore.kernel.org/netdev/20250402094458.006ba2a7@xxxxxxxxxx/T/#mbf72641e9d7d274daee9003ef5edf6833201f1bc
>
> Signed-off-by: Stanislav Fomichev <sdf@xxxxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>