]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
futex: Sanitize exit state handling
authorThomas Gleixner <tglx@linutronix.de>
Wed, 6 Nov 2019 21:55:42 +0000 (22:55 +0100)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:21:48 +0000 (14:21 -0300)
commit015b4b2904d02597cfec177bfa877d29ca966067
treec60585bc54702622e71c0fe2d4e514d454b7ab9e
parentf34df84fb633f87bcb53248f0f70f21d2f5c695b
futex: Sanitize exit state handling

BugLink: https://bugs.launchpad.net/bugs/1855787
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: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
kernel/futex.c