diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2020-08-13 12:50:26 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-08-13 14:11:54 +0200 |
commit | a6d996cbd38b42341ad3fce74506b9fdc280e395 (patch) | |
tree | cee30c2db877ebcd6b10cafced5d9f62a888ee0f /arch/x86/purgatory | |
parent | f29dfa53cc8ae6ad93bae619bcc0bf45cab344f7 (diff) | |
download | linux-stable-a6d996cbd38b42341ad3fce74506b9fdc280e395.tar.gz linux-stable-a6d996cbd38b42341ad3fce74506b9fdc280e395.tar.bz2 linux-stable-a6d996cbd38b42341ad3fce74506b9fdc280e395.zip |
x86/alternatives: Acquire pte lock with interrupts enabled
pte lock is never acquired in-IRQ context so it does not require interrupts
to be disabled. The lock is a regular spinlock which cannot be acquired
with interrupts disabled on RT.
RT complains about pte_lock() in __text_poke() because it's invoked after
disabling interrupts.
__text_poke() has to disable interrupts as use_temporary_mm() expects
interrupts to be off because it invokes switch_mm_irqs_off() and uses
per-CPU (current active mm) data.
Move the PTE lock handling outside the interrupt disabled region.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by; Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20200813105026.bvugytmsso6muljw@linutronix.de
Diffstat (limited to 'arch/x86/purgatory')
0 files changed, 0 insertions, 0 deletions