diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2025-08-13 17:02:30 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2025-09-13 19:51:59 +0200 |
commit | 6eb350a2233100a283f882c023e5ad426d0ed63b (patch) | |
tree | db0fedfe420652a4ad1fd85fe69dfafb71a930db /scripts/gdb/linux/timerlist.py | |
parent | 76eeb9b8de9880ca38696b2fb56ac45ac0a25c6c (diff) |
rseq: Protect event mask against membarrier IPI
rseq_need_restart() reads and clears task::rseq_event_mask with preemption
disabled to guard against the scheduler.
But membarrier() uses an IPI and sets the PREEMPT bit in the event mask
from the IPI, which leaves that RMW operation unprotected.
Use guard(irq) if CONFIG_MEMBARRIER is enabled to fix that.
Fixes: 2a36ab717e8f ("rseq/membarrier: Add MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions