答复: 答复: [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 李春辉
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 69 frame->sp = fp + 0x10; 70 frame->fp = READ_ONCE_NOCHECK(*(unsigned long *)(fp)); we test on Android platform, kernel-4.9 build