2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-10 06:34:17 +08:00
linux-next/arch/arm64/kernel/probes
Marc Zyngier ab4c1325d4 arm64: kprobes: Fix overflow when saving stack
The MIN_STACK_SIZE macro tries evaluate how much stack space needs
to be saved in the jprobes_stack array, sized at 128 bytes.

When using the IRQ stack, said macro can happily return up to
IRQ_STACK_SIZE, which is 16kB. Mayhem follows.

This patch fixes things by getting rid of the crazy macro and
limiting the copy to be at most the size of the jprobes_stack
array, no matter which stack we're on.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2016-07-20 17:54:35 +01:00
..
decode-insn.c arm64: kprobes instruction simulation support 2016-07-19 15:03:21 +01:00
decode-insn.h arm64: kprobes instruction simulation support 2016-07-19 15:03:21 +01:00
kprobes_trampoline.S arm64: Add trampoline code for kretprobes 2016-07-19 15:03:22 +01:00
kprobes.c arm64: kprobes: Fix overflow when saving stack 2016-07-20 17:54:35 +01:00
Makefile arm64: Add trampoline code for kretprobes 2016-07-19 15:03:22 +01:00
simulate-insn.c arm64: kprobes instruction simulation support 2016-07-19 15:03:21 +01:00
simulate-insn.h arm64: kprobes instruction simulation support 2016-07-19 15:03:21 +01:00