From: Sven Schnelle <svens@linux.ibm.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: BUG: KASAN: slab-out-of-bounds in print_synth_event+0xa68/0xa78
Date: Mon, 07 Aug 2023 08:08:49 +0200 [thread overview]
Message-ID: <yt9d7cq7s7ta.fsf@linux.ibm.com> (raw)
In-Reply-To: <20230804133601.40cb5fe9@gandalf.local.home> (Steven Rostedt's message of "Fri, 4 Aug 2023 13:36:01 -0400")
Steven Rostedt <rostedt@goodmis.org> writes:
> On Fri, 04 Aug 2023 18:32:48 +0200
> Sven Schnelle <svens@linux.ibm.com> wrote:
>
>> > Can you show where exactly the above line is?
>>
>> It is:
>>
>> (gdb) list *(print_synth_event+0xa68)
>> 0x5e4f60 is in print_synth_event (/home/svens/ibmgit/linux/kernel/trace/trace_events_synth.c:410).
>> 405 p = (void *)entry + data_offset;
>> 406 end = (void *)p + len - (sizeof(long) - 1);
>> 407
>> 408 trace_seq_printf(s, "%s=STACK:\n", se->fields[i]->name);
>> 409
>> 410 for (; *p && p < end; p++)
>
> I think that conditional needs to be swapped. Can you test the following
> change and see if the problem disappears?
Unfortunately that doesn't change anything, still exactly the same splat.
next prev parent reply other threads:[~2023-08-07 6:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-04 6:20 BUG: KASAN: slab-out-of-bounds in print_synth_event+0xa68/0xa78 Sven Schnelle
2023-08-04 15:50 ` Steven Rostedt
2023-08-04 16:32 ` Sven Schnelle
2023-08-04 17:36 ` Steven Rostedt
2023-08-07 6:08 ` Sven Schnelle [this message]
2023-08-08 1:53 ` Steven Rostedt
2023-08-08 5:58 ` Sven Schnelle
2023-08-08 9:44 ` Sven Schnelle
2023-08-08 10:14 ` Steven Rostedt
2023-08-08 14:28 ` Sven Schnelle
2023-08-08 17:20 ` Steven Rostedt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yt9d7cq7s7ta.fsf@linux.ibm.com \
--to=svens@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox