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
..
2016-07-20 17:54:35 +01:00
2016-02-16 18:20:23 +00:00
2012-09-17 13:42:21 +01:00
2016-02-26 15:39:52 +00:00
2016-04-26 14:37:41 +01:00
2015-12-10 17:36:08 +00:00
2016-07-19 15:03:20 +01:00
2016-07-19 15:03:19 +01:00
2016-07-19 15:03:22 +01:00
2015-01-15 11:55:07 +00:00
2016-04-25 15:14:03 +01:00
2016-02-16 15:12:32 +00:00
2016-04-25 15:14:03 +01:00
2016-04-13 14:49:23 +01:00
2016-05-31 17:50:30 +01:00
2016-07-19 15:03:20 +01:00
2016-04-14 18:11:30 +01:00
2016-04-28 11:33:59 +02:00
2015-07-10 16:47:13 +01:00
2014-07-31 11:42:42 +01:00
2015-10-02 11:12:56 +01:00
2016-07-19 15:03:21 +01:00
2016-03-04 18:19:17 +00:00
2015-12-21 17:26:01 +00:00
2016-05-16 17:17:24 -07:00
2016-04-28 13:36:22 +01:00
2016-04-28 13:36:23 +01:00
2016-07-19 15:03:20 +01:00
2016-04-28 12:05:46 +01:00
2016-05-16 17:17:24 -07:00
2016-07-19 15:03:21 +01:00
2014-11-06 17:25:27 +00:00
2015-12-21 17:26:01 +00:00
2015-08-03 11:34:12 +02:00
2016-04-26 12:23:28 +01:00
2016-07-19 15:03:20 +01:00
2014-07-10 11:02:40 +01:00
2016-07-19 15:03:20 +01:00
2016-02-24 14:57:24 +00:00
2016-02-24 14:57:27 +00:00
2016-02-24 14:57:24 +00:00
2015-12-21 14:40:54 +00:00
2016-04-15 18:06:09 +01:00
2016-05-16 23:11:51 -03:00
2016-04-25 15:05:24 +01:00
2015-01-09 11:12:28 +01:00
2016-05-20 17:58:30 -07:00
2016-02-11 15:33:38 +00:00
2016-07-19 15:03:18 +01:00
2015-12-21 17:26:02 +00:00
2016-04-28 12:05:46 +01:00
2016-03-04 18:19:17 +00:00
2016-03-02 15:49:28 +00:00
2016-04-28 12:05:46 +01:00
2016-01-04 16:24:45 +00:00
2016-04-20 10:35:15 +01:00
2016-05-11 10:11:37 +01:00
2016-02-12 15:53:51 +00:00
2016-04-28 12:05:46 +01:00
2015-03-19 10:43:51 +00:00
2014-12-01 13:31:12 +00:00
2016-04-20 12:22:42 +01:00
2015-12-21 17:26:02 +00:00
2015-07-27 11:08:41 +01:00
2014-11-20 16:35:02 +00:00
2016-06-14 15:02:33 +01:00
2016-05-23 17:04:14 -07:00
2016-07-19 15:03:21 +01:00