aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2023-12-07 20:49:24 +0100
committerBorislav Petkov (AMD) <[email protected]>2023-12-15 19:34:42 +0100
commit3ea1704a92967834bf0e64ca1205db4680d04048 (patch)
treeade272a2d4da541fe47859879d7e7b33d4c931d7 /scripts/generate_rust_analyzer.py
parent69a7386c1ec25476a0c78ffeb59de08a2a08f495 (diff)
x86/alternatives: Sync core before enabling interrupts
text_poke_early() does: local_irq_save(flags); memcpy(addr, opcode, len); local_irq_restore(flags); sync_core(); That's not really correct because the synchronization should happen before interrupts are re-enabled to ensure that a pending interrupt observes the complete update of the opcodes. It's not entirely clear whether the interrupt entry provides enough serialization already, but moving the sync_core() invocation into interrupt disabled region does no harm and is obviously correct. Fixes: 6fffacb30349 ("x86/alternatives, jumplabel: Use text_poke_early() before mm_init()") Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/ZT6narvE%2BLxX%[email protected]
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions