Re: [PATCH 09/13] powerpc: Disable KMSAN checks on functions which walk the stack

From: Nicholas Miehlbradt
Date: Tue Jan 09 2024 - 23:17:30 EST




On 14/12/2023 8:00 pm, Christophe Leroy wrote:


Le 14/12/2023 à 06:55, Nicholas Miehlbradt a écrit :
Functions which walk the stack read parts of the stack which cannot be
instrumented by KMSAN e.g. the backchain. Disable KMSAN sanitization of
these functions to prevent false positives.

Do other architectures have to do it as well ?

I don't see it for show_stack(), is that a specific need for powerpc ?
Other archs have the annotation on functions called by show_stack(). For
x86 it's on show_trace_log_lvl() and for s390 it's on __unwind_start() and unwind_next_frame().