]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
powerpc/syscall: switch user_exit_irqoff and trace_hardirqs_off order
authorNicholas Piggin <npiggin@gmail.com>
Tue, 16 Mar 2021 10:41:55 +0000 (20:41 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 14 Apr 2021 13:04:19 +0000 (23:04 +1000)
commit5a5a893c4ad897b8a36f846602895515b7407a71
tree66715e39506c375ca22a4e2b48823aebba1e1a72
parent2e2a441d2c0bb639b6fdbb64b15ee0a43599bcec
powerpc/syscall: switch user_exit_irqoff and trace_hardirqs_off order

user_exit_irqoff() -> __context_tracking_exit -> vtime_user_exit
warns in __seqprop_assert due to lockdep thinking preemption is enabled
because trace_hardirqs_off() has not yet been called.

Switch the order of these two calls, which matches their ordering in
interrupt_enter_prepare.

Fixes: 5f0b6ac3905f ("powerpc/64/syscall: Reconcile interrupts")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210316104206.407354-2-npiggin@gmail.com
arch/powerpc/kernel/interrupt.c