Skip to content

x86: Fix pt_regs passed by value

Brian Gerst lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 28 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86: Use pt_regs pointer in do_device_not_available()arch/x86/include/asm/traps.h arch/x86/kernel/traps.c+6 -56 replies
2/3x86: Pass in pt_regs pointer for syscalls that need itarch/x86/include/asm/linkage.h arch/x86/include/asm/syscalls.h arch/x86/kernel/entry_32.S +5 more+81 -8024 replies
3/3x86: Drop -fno-stack-protector after pt_regs fixesarch/x86/kernel/Makefile+0 -180 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: Fix pt_regs passed by value

Several syscalls and one trap handler currently rely on the pt_regs struct being passed in by value. This causes problems with stack protector, and can also cause problems with corruption due to tail-call optimization. Change them to use a pointer to the pt_regs struct instead.

--
Brian Gerst