From: sashiko-bot@kernel.org
To: "Chris Down" <chris@chrisdown.name>
Cc: bpf@vger.kernel.org, tj@kernel.org, hannes@cmpxchg.org, mkoutny@suse.com
Subject: Re: [PATCH v2 3/3] bpf: Describe cgroup_iter's fdinfo path for paths which don't fit
Date: Sun, 29 Nov 2026 05:43:15 +0000 [thread overview]
Message-ID: <sashiko-outbox-239335@kernel.org> (raw)
In-Reply-To: <6058cc3be190392debbc8402ea8479528eb75599.1795930577.git.chris@chrisdown.name>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] bpf: non-standard multi-line comment style in
bpf_iter_cgroup_show_fdinfo()
--
commit 36f9b2156386e8af200bc23bda741347d961437e
Author: Chris Down <chris@chrisdown.name>
bpf: Describe cgroup_iter's fdinfo path for paths which don't fit
This commit updates a comment in bpf_iter_cgroup_show_fdinfo() to clarify
that cgroup_path_ns() leaves the trailing suffix of a path in buf when the
full path exceeds PATH_MAX.
> diff --git a/kernel/bpf/cgroup_iter.c b/kernel/bpf/cgroup_iter.c
> index fd51fe3d92cca..12e702e421aa2 100644
> --- a/kernel/bpf/cgroup_iter.c
> +++ b/kernel/bpf/cgroup_iter.c
> @@ -251,7 +251,8 @@ static void bpf_iter_cgroup_show_fdinfo(const struct bpf_iter_aux_info *aux,
> }
>
> /* If cgroup_path_ns() fails, buf will be an empty string, cgroup_path
> - * will print nothing.
> + * will print nothing. The exception is a path which doesn't fit, where
> + * buf holds as much of the end of the path as fits.
> *
> * Path is in the calling process's cgroup namespace.
> */
[Severity: Low]
This isn't a bug, but BPF coding style requires the opening /* of a
multi-line comment to sit on its own line, with the comment text starting
on the next line.
--
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1795930577.git.chris@chrisdown.name?part=3
prev parent reply other threads:[~2026-11-29 5:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 5:38 [PATCH v2 0/3] kernfs: Build paths in linear time with respect to depth Chris Down
2026-11-29 5:38 ` [PATCH v2 1/3] " Chris Down
2026-11-29 5:38 ` [PATCH v2 2/3] sched/debug: Mark a truncated group path at the start Chris Down
2026-11-29 5:38 ` [PATCH v2 3/3] bpf: Describe cgroup_iter's fdinfo path for paths which don't fit Chris Down
2026-11-29 5:43 ` sashiko-bot [this message]
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=sashiko-outbox-239335@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=chris@chrisdown.name \
--cc=hannes@cmpxchg.org \
--cc=mkoutny@suse.com \
--cc=sashiko-reviews@lists.linux.dev \
--cc=tj@kernel.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