ARM: 9426/1: vfp: Move sending signals outside of vfp_state_hold()ed section.
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 2 Oct 2024 16:18:54 +0000 (17:18 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 12 Nov 2024 16:43:09 +0000 (16:43 +0000)
commitc0b5195bad63b18022f2776372fccd3ae9177705
tree53c1416dfcb992bca35b01a4543db131bec4985b
parent27035c23bad54ed552c6741210dd1c4fa50cb386
ARM: 9426/1: vfp: Move sending signals outside of vfp_state_hold()ed section.

VFP_bounce() is invoked from within vfp_support_entry() and may send a
signal. Sending a signal uses spinlock_t which becomes a sleeping lock
on PREEMPT_RT and must not be acquired within a preempt-disabled
section.

Move the vfp_raise_sigfpe() block outside of the vfp_state_hold() section.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/vfp/vfpmodule.c