From: Kris Van Hees <kris.van.hees@oracle.com>
To: Eugene Loh <eugene.loh@oracle.com>
Cc: dtrace@lists.linux.dev, dtrace-devel@oss.oracle.com
Subject: Re: [PATCH v2] error: ERROR probe firing should not corrupt probe arguments
Date: Tue, 10 Sep 2024 14:37:56 -0400 [thread overview]
Message-ID: <ZuCSBGivnCyaOszb@oracle.com> (raw)
In-Reply-To: <32dc5af3-7f07-5172-b7c5-9a9dfcceb5a1@oracle.com>
On Tue, Sep 10, 2024 at 11:20:28AM -0400, Eugene Loh wrote:
> On 9/10/24 02:20, Kris Van Hees wrote:
>
> > On Tue, Sep 10, 2024 at 01:51:41AM -0400, Eugene Loh wrote:
> > > On 9/10/24 00:33, Kris Van Hees wrote:
> > > > diff --git a/libdtrace/dt_dctx.h b/libdtrace/dt_dctx.h
> > > > @@ -31,6 +31,7 @@ typedef struct dt_mstate {
> > > > dt_pt_regs regs; /* CPU registers */
> > > > uint64_t argv[10]; /* Probe arguments */
> > > > uint64_t saved_argv[10]; /* Saved probe arguments */
> > > > + uint64_t error_argv[6]; /* ERROR probe saved arguments */
> > > I don't think such a thing is needed in mstate. It suffices to use local
> > > storage in dt_probe_error(), which is probably what you really meant to do.
> > > Plus, calling it error_argv[] is misleading since these are the args that
> > > you are *NOT* using for the ERROR probe.
> > No, because that makes the stack too large and then the BPF verifier rejects
> > the program.
>
> Just to be clear, do you mean the test program will fail? Or the test
> program passes, but you simply do not want to add to stack pressure?
No, the test program will not fail with argv[] in dt_probe_error(), but other
tests *do* fail if we store the arguments on the stack.
next prev parent reply other threads:[~2024-09-10 18:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-10 4:33 [PATCH v2] error: ERROR probe firing should not corrupt probe arguments Kris Van Hees
2024-09-10 5:51 ` Eugene Loh
2024-09-10 6:20 ` Kris Van Hees
2024-09-10 15:20 ` Eugene Loh
2024-09-10 18:37 ` Kris Van Hees [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-09-12 17:59 Kris Van Hees
2024-09-12 18:50 ` Eugene Loh
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=ZuCSBGivnCyaOszb@oracle.com \
--to=kris.van.hees@oracle.com \
--cc=dtrace-devel@oss.oracle.com \
--cc=dtrace@lists.linux.dev \
--cc=eugene.loh@oracle.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.