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
..
2012-09-17 13:42:21 +01:00
2016-03-04 18:19:17 +00:00
2016-05-16 17:17:24 -07:00
2016-05-16 17:17:24 -07:00
2016-07-19 15:03:20 +01:00
2016-02-24 14:57:27 +00:00
2016-02-24 14:57:24 +00:00
2016-05-20 17:58:30 -07:00
2016-03-02 15:49:28 +00:00
2016-04-20 12:22:42 +01:00