Re: [PATCH] futex: Don't enable IRQs unconditionally in put_pi_state()

2020-11-09 Thread Peter Zijlstra
On Fri, Nov 06, 2020 at 11:52:05AM +0300, Dan Carpenter wrote: > The exit_pi_state_list() function calls put_pi_state() with IRQs > disabled and is not expecting that IRQs will be enabled inside the > function. Use the _irqsave() so that IRQs are restored to the original > state instead of enabled

[PATCH] futex: Don't enable IRQs unconditionally in put_pi_state()

2020-11-06 Thread Dan Carpenter
The exit_pi_state_list() function calls put_pi_state() with IRQs disabled and is not expecting that IRQs will be enabled inside the function. Use the _irqsave() so that IRQs are restored to the original state instead of enabled unconditionally. Fixes: 153fbd1226fb ("futex: Fix more put_pi_state()