Re: [PATCH] powerpc: make show_stack's stack walking KASAN-safe

2021-06-01 Thread Daniel Axtens
"Naveen N. Rao" writes: > Daniel Axtens wrote: >> Make our stack-walking code KASAN-safe by using READ_ONCE_NOCHECK - >> generic code, arm64, s390 and x86 all do this for similar sorts of >> reasons: when unwinding a stack, we might touch memory that KASAN has >> marked as being out-of-bounds. In

Re: [PATCH] powerpc: make show_stack's stack walking KASAN-safe

2021-06-01 Thread Naveen N. Rao
Daniel Axtens wrote: Make our stack-walking code KASAN-safe by using READ_ONCE_NOCHECK - generic code, arm64, s390 and x86 all do this for similar sorts of reasons: when unwinding a stack, we might touch memory that KASAN has marked as being out-of-bounds. In ppc64 KASAN development, I hit this s

Re: [PATCH] powerpc: make show_stack's stack walking KASAN-safe

2021-06-01 Thread Christophe Leroy
Le 28/05/2021 à 09:48, Daniel Axtens a écrit : Make our stack-walking code KASAN-safe by using READ_ONCE_NOCHECK - generic code, arm64, s390 and x86 all do this for similar sorts of reasons: when unwinding a stack, we might touch memory that KASAN has marked as being out-of-bounds. In ppc64 KA

[PATCH] powerpc: make show_stack's stack walking KASAN-safe

2021-05-28 Thread Daniel Axtens
Make our stack-walking code KASAN-safe by using READ_ONCE_NOCHECK - generic code, arm64, s390 and x86 all do this for similar sorts of reasons: when unwinding a stack, we might touch memory that KASAN has marked as being out-of-bounds. In ppc64 KASAN development, I hit this sometimes when checking