]> git.baikalelectronics.ru Git - kernel.git/commit
softirq: Avoid bad tracing / lockdep interaction
authorPeter Zijlstra <peterz@infradead.org>
Fri, 18 Dec 2020 15:39:14 +0000 (16:39 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 18 Dec 2020 15:53:13 +0000 (16:53 +0100)
commita580147aea1721287e4dd95fe3bdc3251084a283
tree531563294d9ea18a4b4797b91fafee39d3a5f720
parent8ea873a7af710fd8044c7dc066cc97d878921419
softirq: Avoid bad tracing / lockdep interaction

Similar to commit:

  73be9438b25b ("softirq: Reorder trace_softirqs_on to prevent lockdep splat")

__local_bh_enable_ip() can also call into tracing with inconsistent
state. Unlike that commit we don't need to bother about the tracepoint
because 'cnt-1' never matches preempt_count() (by construction).

Reported-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Heiko Carstens <hca@linux.ibm.com>
Link: https://lkml.kernel.org/r/20201218154519.GW3092@hirez.programming.kicks-ass.net
kernel/softirq.c