On Tue, 25 Jan 2022 23:31:54 +0900 Masami Hiramatsu <mhiramat@xxxxxxxxxx> wrote: > Could you try this patch? > > >From 2982ba01367ec1f746a4f128512436e5325a7f9d Mon Sep 17 00:00:00 2001 > From: Masami Hiramatsu <mhiramat@xxxxxxxxxx> > Date: Tue, 25 Jan 2022 23:19:30 +0900 > Subject: [PATCH] tracing: Avoid -Warray-bounds warning for __rel_loc macro > > Since -Warray-bounds checks the destination size from the > type of given pointer, __assign_rel_str() macro gets warned > because it passes the pointer to the 'u32' field instead of > 'trace_event_raw_*' data structure. > Pass the data address calculated from the 'trace_event_raw_*' > instead of 'u32' __rel_loc field. > > Signed-off-by: Masami Hiramatsu <mhiramat@xxxxxxxxxx> > Reported-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> > Cc: Kees Cook <keescook@xxxxxxxxxxxx> If this works, I'll add it instead of the one that just turns it off it __CHECKER__ is defined. Can you please let me know if it fixes the issue for you. I have a test run waiting on it. Thanks, -- Steve