From: sashiko-bot@kernel.org
To: "Donggeun Yoo" <donggeunyoo.kernel@gmail.com>
Cc: bpf@vger.kernel.org
Subject: Re: [PATCH bpf v2 2/2] selftests/bpf: cover the exception callback using its own BPF stack
Date: Mon, 07 Sep 2026 05:46:59 +0000 [thread overview]
Message-ID: <20260907054700.738DF1F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260907054235.473103-3-donggeunyoo.kernel@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Multi-line comment does not follow the required BPF kernel comment style.
--
commit 6cf0d756f3e18b0c62e71081cda78a62eb981a75
Author: Donggeun Yoo <donggeunyoo.kernel@gmail.com>
selftests/bpf: cover the exception callback using its own BPF stack
This commit adds a test to verify that an exception callback can safely
access its own BPF stack slot. It introduces a subprogram that throws an
exception and uses a callback that passes a local variable's address to
bpf_probe_read_kernel().
> diff --git a/tools/testing/selftests/bpf/progs/exceptions.c b/tools/testing/selftests/bpf/progs/exceptions.c
> index c8d716fbd4191..2b01b45cef06a 100644
> --- a/tools/testing/selftests/bpf/progs/exceptions.c
> +++ b/tools/testing/selftests/bpf/progs/exceptions.c
[ ... ]
> @@ -212,6 +212,35 @@ int exception_throw_subprog(struct __sk_buff *ctx)
> return 0;
> }
>
> +u64 exception_cb_stack_src = 0x1234;
> +
> +/* The address handed to the helper has to be this callback's own stack
> + * slot, not one from a frame that is already gone.
> + */
[Severity: Low]
Could we update this comment block in exception_cb_stack() to follow the
preferred BPF multi-line comment style?
The BPF subsystem guidelines require the opening '/*' to be on its own line
for multi-line comments:
/*
* The address handed to the helper has to be this callback's own stack
* slot, not one from a frame that is already gone.
*/
> +__noinline int exception_cb_stack(u64 cookie)
> +{
> + volatile u64 val = 0xdead;
> +
> + bpf_probe_read_kernel((void *)&val, sizeof(val), &exception_cb_stack_src);
> + return val;
> +}
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260907054235.473103-1-donggeunyoo.kernel@gmail.com?part=2
next prev parent reply other threads:[~2026-09-07 5:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-07 5:42 [PATCH bpf v2 0/2] bpf, arm64: fix the exception callback's frame pointer Donggeun Yoo
2026-09-07 5:42 ` [PATCH bpf v2 1/2] bpf, arm64: set up the frame pointer for the exception callback Donggeun Yoo
2026-09-07 12:17 ` Xu Kuohai
2026-09-07 5:42 ` [PATCH bpf v2 2/2] selftests/bpf: cover the exception callback using its own BPF stack Donggeun Yoo
2026-09-07 5:46 ` sashiko-bot [this message]
2026-09-07 13:06 ` Donggeun Yoo
2026-09-07 12:33 ` Xu Kuohai
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=20260907054700.738DF1F00A3A@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=donggeunyoo.kernel@gmail.com \
--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 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.