linux/arch
Masami Hiramatsu 45c23bf4d1 x86,kprobes: Fix optprobe trampoline to generate complete pt_regs
Currently the optprobe trampoline template code ganerate an
almost complete pt_regs on-stack, everything except regs->ss.
The 'regs->ss' points to the top of stack, which is not a
valid segment decriptor.

As same as the rethook does, complete the job by also pushing ss.

Suggested-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/164826166027.2455864.14759128090648961900.stgit@devnote2
2022-03-28 19:38:51 -07:00
..
alpha mm: madvise: MADV_DONTNEED_LOCKED 2022-03-24 19:06:51 -07:00
arc asm-generic updates for 5.18 2022-03-23 18:03:08 -07:00
arm Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
arm64 TTY/Serial driver changes for 5.18-rc1 2022-03-28 13:00:51 -07:00
csky Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
h8300 Merge branch 'set_fs-4' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic into asm-generic 2022-02-25 11:16:58 +01:00
hexagon asm-generic updates for 5.18 2022-03-23 18:03:08 -07:00
ia64 TTY/Serial driver changes for 5.18-rc1 2022-03-28 13:00:51 -07:00
m68k asm-generic updates for 5.18 2022-03-23 18:03:08 -07:00
microblaze Microblaze patches for 5.18-rc1 2022-03-28 14:46:53 -07:00
mips Staging driver update for 5.18-rc1 2022-03-28 12:50:50 -07:00
nios2 asm-generic updates for 5.18 2022-03-23 18:03:08 -07:00
openrisc OpenRISC updates for 5.18 2022-03-27 11:43:09 -07:00
parisc Merge branch 'akpm' (patches from Andrew) 2022-03-25 10:21:20 -07:00
powerpc powerpc: restore removed #endif 2022-03-27 15:31:16 -07:00
riscv Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
s390 Merge branch 'akpm' (patches from Andrew) 2022-03-25 10:21:20 -07:00
sh pci-v5.18-changes 2022-03-25 13:02:05 -07:00
sparc Networking changes for 5.18. 2022-03-24 13:13:26 -07:00
um Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
x86 x86,kprobes: Fix optprobe trampoline to generate complete pt_regs 2022-03-28 19:38:51 -07:00
xtensa TTY/Serial driver changes for 5.18-rc1 2022-03-28 13:00:51 -07:00
.gitignore
Kconfig kprobes: Use rethook for kretprobe if possible 2022-03-28 19:38:09 -07:00