public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/3] x86/bugs: more BHI
@ 2024-05-07  5:30 Josh Poimboeuf
  2024-05-07  5:30 ` [PATCH v5 1/3] x86/syscall: Mark exit[_group] syscall handlers __noreturn Josh Poimboeuf
                   ` (2 more replies)
  0 siblings, 3 replies; 23+ messages in thread
From: Josh Poimboeuf @ 2024-05-07  5:30 UTC (permalink / raw)
  To: x86
  Cc: linux-kernel, Linus Torvalds, Daniel Sneddon, Pawan Gupta,
	Thomas Gleixner, Alexandre Chartre, Konrad Rzeszutek Wilk,
	Peter Zijlstra, Greg Kroah-Hartman, Sean Christopherson,
	Andrew Cooper, Dave Hansen, Nikolay Borisov, KP Singh,
	Waiman Long, Borislav Petkov, Ingo Molnar

Patch 1 fixes some objtool warnings and enables noreturn-related
optimizations for direct-called syscall handlers.

Patches 2 and 3 add 'spectre_bhi=vmexit' which is useful for mitigating
BHI in cloud host environments.

v5:
- dropped syscall hardening patch for now
- dropped "Fix CPU mitigation defaults for !x86" in favor of Sean's fix
- patch 1 fixes (Paul)

Josh Poimboeuf (3):
  x86/syscall: Mark exit[_group] syscall handlers __noreturn
  x86/bugs: Remove duplicate Spectre cmdline option descriptions
  x86/bugs: Add 'spectre_bhi=vmexit' cmdline option

 Documentation/admin-guide/hw-vuln/spectre.rst | 84 ++-----------------
 .../admin-guide/kernel-parameters.txt         | 12 ++-
 arch/x86/entry/syscall_32.c                   | 10 ++-
 arch/x86/entry/syscall_64.c                   |  9 +-
 arch/x86/entry/syscall_x32.c                  |  7 +-
 arch/x86/entry/syscalls/syscall_32.tbl        |  6 +-
 arch/x86/entry/syscalls/syscall_64.tbl        |  6 +-
 arch/x86/kernel/cpu/bugs.c                    | 16 ++--
 arch/x86/um/sys_call_table_32.c               | 10 ++-
 arch/x86/um/sys_call_table_64.c               | 11 ++-
 scripts/syscalltbl.sh                         | 18 +++-
 tools/objtool/noreturns.h                     |  4 +
 12 files changed, 85 insertions(+), 108 deletions(-)

-- 
2.44.0


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

end of thread, other threads:[~2024-06-27  6:37 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-07  5:30 [PATCH v5 0/3] x86/bugs: more BHI Josh Poimboeuf
2024-05-07  5:30 ` [PATCH v5 1/3] x86/syscall: Mark exit[_group] syscall handlers __noreturn Josh Poimboeuf
2024-05-07 14:38   ` Paul E. McKenney
2024-06-26  2:21     ` Paul E. McKenney
2024-06-26  5:28       ` Josh Poimboeuf
2024-06-26  6:35         ` Paul E. McKenney
2024-06-27  6:36         ` Alexandre Chartre
2024-05-27 11:15   ` Nikolay Borisov
2024-06-26  5:21     ` Josh Poimboeuf
2024-05-07  5:30 ` [PATCH v5 2/3] x86/bugs: Remove duplicate Spectre cmdline option descriptions Josh Poimboeuf
2024-05-07 15:04   ` Daniel Sneddon
2024-05-08  5:55     ` Josh Poimboeuf
2024-05-08 14:28       ` Daniel Sneddon
2024-05-07  5:30 ` [PATCH v5 3/3] x86/bugs: Add 'spectre_bhi=vmexit' cmdline option Josh Poimboeuf
2024-05-07 14:58   ` Daniel Sneddon
2024-05-08  5:19     ` Josh Poimboeuf
2024-05-27 10:45       ` Maksim Davydov
2024-06-26  5:58         ` Josh Poimboeuf
2024-05-08 15:10   ` Nikolay Borisov
2024-05-09  5:24     ` Josh Poimboeuf
2024-05-09  8:21       ` Nikolay Borisov
2024-05-20 13:12   ` Maksim Davydov
2024-05-23  1:04     ` Josh Poimboeuf

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