Searched hist:"58 e106e7" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/arch/ |
H A D | Kconfig | 58e106e7 Mon Apr 26 14:59:11 CDT 2021 Balbir Singh <sblbir@amazon.com> sched: Add task_work callback for paranoid L1D flush
The upcoming paranoid L1D flush infrastructure allows to conditionally (opt-in) flush L1D in switch_mm() as a defense against potential new side channels or for paranoia reasons. As the flush makes only sense when a task runs on a non-SMT enabled core, because SMT siblings share L1, the switch_mm() logic will kill a task which is flagged for L1D flush when it is running on a SMT thread.
Add a taskwork callback so switch_mm() can queue a SIG_KILL command which is invoked when the task tries to return to user space.
Signed-off-by: Balbir Singh <sblbir@amazon.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20210108121056.21940-1-sblbir@amazon.com
|
/openbmc/linux/include/linux/ |
H A D | sched.h | 58e106e7 Mon Apr 26 14:59:11 CDT 2021 Balbir Singh <sblbir@amazon.com> sched: Add task_work callback for paranoid L1D flush
The upcoming paranoid L1D flush infrastructure allows to conditionally (opt-in) flush L1D in switch_mm() as a defense against potential new side channels or for paranoia reasons. As the flush makes only sense when a task runs on a non-SMT enabled core, because SMT siblings share L1, the switch_mm() logic will kill a task which is flagged for L1D flush when it is running on a SMT thread.
Add a taskwork callback so switch_mm() can queue a SIG_KILL command which is invoked when the task tries to return to user space.
Signed-off-by: Balbir Singh <sblbir@amazon.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20210108121056.21940-1-sblbir@amazon.com
|