Re: [PATCH] arm64: disable kasan when accessing frame->fp in unwind_frame

2016-02-08 Thread Shi, Yang
On 2/8/2016 12:51 AM, Andrey Ryabinin wrote: On 02/06/2016 02:04 AM, Yang Shi wrote: #include #include @@ -64,7 +65,9 @@ int notrace unwind_frame(struct task_struct *tsk, struct stackframe *frame) return -EINVAL; frame->sp = fp + 0x10; + kasan_disable_cur

Re: [PATCH] arm64: disable kasan when accessing frame->fp in unwind_frame

2016-02-08 Thread Andrey Ryabinin
On 02/06/2016 02:04 AM, Yang Shi wrote: > > #include > #include > @@ -64,7 +65,9 @@ int notrace unwind_frame(struct task_struct *tsk, struct > stackframe *frame) > return -EINVAL; > > frame->sp = fp + 0x10; > + kasan_disable_current(); > frame->fp = *(unsign

[PATCH] arm64: disable kasan when accessing frame->fp in unwind_frame

2016-02-05 Thread Yang Shi
When boot arm64 kernel with KASAN enabled, the below error is reported by kasan: BUG: KASAN: out-of-bounds in unwind_frame+0xec/0x260 at addr ffc064d57ba0 Read of size 8 by task pidof/499 page:ffbdc39355c0 count:0 mapcount:0 mapping: (null) index:0x0 flags: 0x0() page dumped becau