Catalin Marinas
f7e35c5ba4
arm64: kprobes: Add KASAN instrumentation around stack accesses
This patch disables KASAN around the memcpy from/to the kernel or IRQ
stacks to avoid warnings like below:
BUG: KASAN: stack-out-of-bounds in setjmp_pre_handler+0xe4/0x170 at addr ffff800935cbbbc0
Read of size 128 by task swapper/0/1
page:ffff7e0024d72ec0 count:0 mapcount:0 mapping: (null) index:0x0
flags: 0x1000000000000000()
page dumped because: kasan: bad access detected
CPU: 4 PID: 1 Comm: swapper/0 Not tainted 4.7.0-rc4+ #1
Hardware name: ARM Juno development board (r0) (DT)
Call trace:
[<ffff20000808ad88>] dump_backtrace+0x0/0x280
[<ffff20000808b01c>] show_stack+0x14/0x20
[<ffff200008563a64>] dump_stack+0xa4/0xc8
[<ffff20000824a1fc>] kasan_report_error+0x4fc/0x528
[<ffff20000824a5e8>] kasan_report+0x40/0x48
[<ffff20000824948c>] check_memory_region+0x144/0x1a0
[<ffff200008249814>] memcpy+0x34/0x68
[<ffff200008c3ee2c>] setjmp_pre_handler+0xe4/0x170
[<ffff200008c3ec5c>] kprobe_breakpoint_handler+0xec/0x1d8
[<ffff2000080853a4>] brk_handler+0x5c/0xa0
[<ffff2000080813f0>] do_debug_exception+0xa0/0x138
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2016-07-21 11:47:53 +01:00
..
2016-07-21 11:47:53 +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