From: Steven Rostedt <rostedt@goodmis.org>
To: sashiko-bot@kernel.org
Cc: sashiko-reviews@lists.linux.dev,
"Linux Trace Kernel" <linux-trace-kernel@vger.kernel.org>
Subject: Re: [PATCH v7] tracing/probes: Zero out faulted dereferenced fields
Date: Tue, 24 Nov 2026 09:08:49 -0500 [thread overview]
Message-ID: <20261124090849.7fe8d45f@gandalf.local.home> (raw)
In-Reply-To: <sashiko-outbox-230424@kernel.org>
On Tue, 24 Nov 2026 02:51:12 +0000
sashiko-bot@kernel.org wrote:
> > @@ -193,27 +256,30 @@ process_fetch_insn_bottom(struct fetch_insn *code, unsigned long val,
> > }
> > }
> >
> > + /* When val is NULL, so should the val + offset */
> > + offset = val ? code->offset : 0;
> > +
> > switch (code->op) {
> > case FETCH_OP_ST_RAW:
> > fetch_store_raw(val, code, dest);
> > break;
> > case FETCH_OP_ST_MEM:
> > - probe_mem_read(dest, (void *)val + code->offset, code->size);
> > + do_probe_mem_read(dest, (void *)val + offset, code->size);
> > break;
> > case FETCH_OP_ST_UMEM:
> > - probe_mem_read_user(dest, (void *)val + code->offset, code->size);
> > + do_probe_mem_read_user(dest, (void *)val + offset, code->size);
> > break;
>
> [Severity: Medium]
> Should do_probe_mem_read() and do_probe_mem_read_user() check for a NULL
> src before calling probe_mem_read() and probe_mem_read_user()?
No, but I guess I should add that as we probably shouldn't be dereferencing
zero when something fails.
-- Steve
next prev parent reply other threads:[~2026-11-24 14:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 2:32 [PATCH v7] tracing/probes: Zero out faulted dereferenced fields Steven Rostedt
2026-11-24 2:51 ` sashiko-bot
2026-11-24 14:08 ` Steven Rostedt [this message]
2026-11-24 14:15 ` Masami Hiramatsu (Google)
2026-11-24 14:40 ` 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=20261124090849.7fe8d45f@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=sashiko-bot@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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