答复: 答复: [PATCH] kasan: avoid out-of-bounds in unwind_frame

2018-10-10 Thread 李春辉
...@lists.infradead.org; linux-kernel@vger.kernel.org; linux-media...@lists.infradead.org; wsd_upstream; Miles Chen (陳民樺); Walter-ZH Wu (吳祖寰); Yu Liang (梁宇); Nicholas Tang (鄭秦輝) 主题: Re: 答复: [PATCH] kasan: avoid out-of-bounds in unwind_frame On Wed, Oct 10, 2018 at 06:45:17AM +, Chunhui Li (李春

Re: 答复: [PATCH] kasan: avoid out-of-bounds in unwind_frame

2018-10-10 Thread Mark Rutland
On Wed, Oct 10, 2018 at 06:45:17AM +, Chunhui Li (李春辉) wrote: > Hi Mark, > > kasan detect out-of-bounds in stacktrace.c line 70, it's already over > READ_ONCE_NOCHECK, but still crash > kernel-4.9/arch/arm64/kernel/stacktrace.c > 69frame->sp = fp + 0x10; > 70frame->fp = READ_ONCE_NOCHECK(*(un

答复: [PATCH] kasan: avoid out-of-bounds in unwind_frame

2018-10-09 Thread 李春辉
ro Yamada; linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org; linux-media...@lists.infradead.org; wsd_upstream 主题: Re: [PATCH] kasan: avoid out-of-bounds in unwind_frame On Tue, Oct 09, 2018 at 06:11:03PM +0800, Chunhui Li wrote: > From: "chunhui.li" > >kasan d

Re: [PATCH] kasan: avoid out-of-bounds in unwind_frame

2018-10-09 Thread Mark Rutland
On Tue, Oct 09, 2018 at 06:11:03PM +0800, Chunhui Li wrote: > From: "chunhui.li" > >kasan detect unwind_frame out-of-bounds error when one task > dump another, log as below > BUG: KASAN: out-of-bounds in unwind_frame+0x140/0x20c Read of > size 8 at addr ffea1e2378e0 by task AnrMonitorThre