History

softirq: Add debug check to __raise_softirq_irqoff()

__raise_softirq_irqoff() must be called with interrupts disabled to protect the per CPU softirq pending state update against an interrupt and soft interrupt handling on return from interrupt. Add a lockdep assertion to validate the calling convention. [ tglx: Massaged changelog ]

Jiafei Pan committed 6 years ago

Commit cdabce21 parent 856deb81 file · +1 −0Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/softirq.c+1−0
@@ -481,6 +481,7 @@ void raise_softirq(unsigned int nr) · 480 unmodified lines
481481
482482 void __raise_softirq_irqoff(unsigned int nr)
483483 {
484+ lockdep_assert_irqs_disabled();
484485 trace_softirq_raise(nr);
485486 or_softirq_pending(1UL << nr);
486487 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t