• Paul Mundt's avatar
    sh: Ensure IRQs are enabled across do_notify_resume(). · 6330c04b
    Paul Mundt authored
    do_notify_resume() can trigger the freezer via the try_to_freeze() path
    (both explicitly through a redundant call in do_signal() or via
    get_signal_to_deliver()). That IRQs were disabled across this callsite
    became apparent with the might_sleep() introduction in try_to_freeze() by
    Tejun in a0acae0e, resulting in:
    
    	BUG: sleeping function called from invalid context at include/linux/freezer.h:45
    	in_atomic(): 0, irqs_disabled(): 1, pid: 819, name: ntpd
    	no locks held by ntpd/819.
    	Stack: (0x9c81be80 to 0x9c81c000)
    	...
    Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
    6330c04b
entry-common.S 7.9 KB