commit | a4398ae3f38a4cc11447af1cdc2fbc9761c05f2f | [log] [tgz] |
---|---|---|
author | Peter Zijlstra <peterz@infradead.org> | Tue Nov 28 12:51:27 2023 +0100 |
committer | Peter Zijlstra <peterz@infradead.org> | Fri Feb 07 12:53:20 2025 +0100 |
tree | e7cb349b23221a318aaeff4ec7bb10a95da47f44 | |
parent | afed220ac4aef6f840b46f835c4a3eb4035e2bb7 [diff] |
x86/early_printk: Harden early_serial Scott found that mem32_serial_in() is an ideal speculation gadget, an indirectly callable function that takes an adddress and offset and immediately does a load. Use static_call() to take away the need for indirect calls and explicitly seal the functions to ensure they're not callable on IBT enabled parts. Reported-by: Scott Constable <scott.d.constable@intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>