Skip to content

x86/entry: Fix 3 suspicious bugs

Lai Jiangshan lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3X86/db: Change __this_cpu_read() to this_cpu_read() in hw_breakpoint_active()arch/x86/include/asm/debugreg.h+1 -14 replies
2/3x86/hw_breakpoint: Add stack_canary to hw_breakpoints denylistarch/x86/kernel/hw_breakpoint.c+8 -01 reply
3/3x86/sev: The code for returning to user space is also in syscall gaparch/x86/entry/entry_64.S arch/x86/entry/entry_64_compat.S arch/x86/include/asm/proto.h +1 more+12 -07 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] x86/entry: Fix 3 suspicious bugs

From: Lai Jiangshan <[email protected]>

The problems described in patch1/patch2 can only happen when the system owner is really paranoid.

For patch3, I hardly believe #VC can hit in the code range returining to user without implementing more SEV features.

Lai Jiangshan (3):
X86/db: Change __this_cpu_read() to this_cpu_read() in
hw_breakpoint_active()
x86/hw_breakpoint: Add stack_canary to hw_breakpoints denylist x86/sev: The code for returning to user space is also in syscall gap

 arch/x86/entry/entry_64.S        | 2 ++
 arch/x86/entry/entry_64_compat.S | 2 ++
 arch/x86/include/asm/debugreg.h  | 2 +-
 arch/x86/include/asm/proto.h     | 4 ++++
 arch/x86/include/asm/ptrace.h    | 4 ++++
 arch/x86/kernel/hw_breakpoint.c  | 8 ++++++++
 6 files changed, 21 insertions(+), 1 deletion(-)
Signature · 1 line
2.19.1.6.gb485710b