public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/3] Fixes to L1D flushing (on top of linux-next and
@ 2020-11-17 23:49 Balbir Singh
  2020-11-17 23:49 ` [PATCH v1 1/3] x86/mm: change l1d flush runtime prctl behaviour Balbir Singh
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Balbir Singh @ 2020-11-17 23:49 UTC (permalink / raw)
  To: tglx, mingo; +Cc: peterz, linux-kernel, keescook, Balbir Singh

There were concerns with the current interface (checking for the state
of SMT of the core at opt-in time [1]). These patches change the
interface to send a SIGBUS to the task if

a. It opts into L1D flushing
b. Runs on a core with SMT enabled

There are also documentation fixes. I've tested the patches at my end,
but would appreciate a broad review of the change in functionality
and/or any recommended doc updates.


[1] http://lkml.iu.edu/hypermail/linux/kernel/2009.3/09310.html
[2] http://lkml.iu.edu/hypermail/linux/kernel/2009.3/09613.html

NOTE: For testing these patches, specifically the SIGBUS behaviour,
there needs to be contention on the CPU where the task that opts
into L1D flushing is running to see the SIGBUS being sent to it
(the deterministic bit is that if there is scope of data leak
the task will get killed)

Balbir Singh (3):
  x86/mm: change l1d flush runtime prctl behaviour
  Documentation: Update the new SIGBUS behaviour for tasks
  Documentation/l1d_flush: Fix up warning with labels

 .../admin-guide/hw-vuln/l1d_flush.rst         | 12 +++---
 arch/Kconfig                                  |  4 ++
 arch/x86/Kconfig                              |  1 +
 arch/x86/mm/tlb.c                             | 37 +++++++++++--------
 include/linux/sched.h                         | 10 +++++
 5 files changed, 42 insertions(+), 22 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-17 23:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-17 23:49 [PATCH v1 0/3] Fixes to L1D flushing (on top of linux-next and Balbir Singh
2020-11-17 23:49 ` [PATCH v1 1/3] x86/mm: change l1d flush runtime prctl behaviour Balbir Singh
2020-11-17 23:49 ` [PATCH v1 2/3] Documentation: Update the new SIGBUS behaviour for tasks Balbir Singh
2020-11-17 23:49 ` [PATCH v1 3/3] Documentation/l1d_flush: Fix up warning with labels Balbir Singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox