Skip to content

x86/fpu: Drop fpregs lock before inheriting FPU permissions

Bugzilla: https://bugzilla.redhat.com/2153181 Upstream status: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

Tested: Brief run of hackbench

PREEMPT_RT's lock replacement causes a "scheduling while atomic" scenario in fpu_fork()->fpu_inherit_perms(). Per the upstream commit fixing this, this is due to fpu_inherit_perms() being called under fpregs_lock(), which is unnecessary.

Signed-off-by: Valentin Schneider vschneid@redhat.com

Merge request reports