Skip to content

Commit 3119207

Browse files
Stanislav Fomichevkuba-moo
authored andcommitted
configs/debug: run and debug PREEMPT
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/[email protected]/ 1: https://lore.kernel.org/netdev/[email protected]/T/#mbf72641e9d7d274daee9003ef5edf6833201f1bc Signed-off-by: Stanislav Fomichev <[email protected]> Reviewed-by: Simon Horman <[email protected]> Acked-by: Matthieu Baerts (NGI0) <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 1635eec commit 3119207

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

kernel/configs/debug.config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,8 @@ CONFIG_BRANCH_PROFILE_NONE=y
112112
CONFIG_DYNAMIC_FTRACE=y
113113
CONFIG_FTRACE=y
114114
CONFIG_FUNCTION_TRACER=y
115+
#
116+
# Preemption
117+
#
118+
CONFIG_DEBUG_PREEMPT=y
119+
CONFIG_PREEMPT=y

0 commit comments

Comments
 (0)