]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
futex: Sanitize exit state handling
authorThomas Gleixner <tglx@linutronix.de>
Mon, 1 Feb 2021 15:12:10 +0000 (15:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2021 22:16:16 +0000 (23:16 +0100)
commit6eaebabf3bca8ff10ca5542c3d3d72ad829db934
tree26e847f4594dd66a3b87221f00246a64df1d105c
parent40da511f787b75a80efa3ae5d3f90753a795a9e4
futex: Sanitize exit state handling

commit 4a8e991b91aca9e20705d434677ac013974e0e30 upstream.

Instead of having a smp_mb() and an empty lock/unlock of task::pi_lock move
the state setting into to the lock section.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20191106224556.645603214@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/futex.c