From: sashiko-bot@kernel.org
To: "Breno Leitao" <leitao@debian.org>
Cc: bpf@vger.kernel.org
Subject: Re: [PATCH net-next 2/3] tcp: convert do_tcp_getsockopt() to sockopt_t
Date: Fri, 13 Nov 2026 17:07:49 +0000 [thread overview]
Message-ID: <sashiko-outbox-213275@kernel.org> (raw)
In-Reply-To: <20261112-getsockopt_phase7-v1-2-1eb759dd0929@debian.org>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] bpf: non-standard multi-line comment style in
sol_tcp_getsockopt()
--
commit adc743711fff2b36324cfbce470ae256d9f2a174
Author: Breno Leitao <leitao@debian.org>
tcp: convert do_tcp_getsockopt() to sockopt_t
This commit converts do_tcp_getsockopt() to take a sockopt_t pointer and
updates tcp_getsockopt() and the bpf sol_tcp_getsockopt() helper to pass
one.
> diff --git a/net/core/filter.c b/net/core/filter.c
> index 9b8d5191c4ba2..0d5afe1c5606b 100644
> --- a/net/core/filter.c
> +++ b/net/core/filter.c
> @@ -5686,6 +5686,28 @@ static int bpf_sol_tcp_setsockopt(struct sock *sk, int optname,
> return 0;
> }
>
> +static int sol_tcp_getsockopt(struct sock *sk, int optname, char *optval,
> + int *optlen)
> +{
> + struct kvec kvec;
> + sockopt_t opt;
> + int err;
> +
> + err = sockptr_to_sockopt(&opt, KERNEL_SOCKPTR(optval),
> + KERNEL_SOCKPTR(optlen), &kvec);
> + if (err)
> + return err;
> +
> + /* BPF may call this in softirq: with page faults disabled, the
> + * usercopy check skips find_vmap_area() and its lock.
> + */
[Severity: Low]
This isn't a bug, but bpf code uses the kernel multi-line comment style
where the opening /* goes on its own line and the comment text starts on
the next line.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261112-getsockopt_phase7-v1-0-1eb759dd0929@debian.org?part=2
next prev parent reply other threads:[~2026-11-13 17:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 17:05 [PATCH net-next 0/3] tcp: convert the SOL_TCP getsockopt path to sockopt_t Breno Leitao
2026-11-12 17:05 ` [PATCH net-next 1/3] net/tcp-ao: convert the getsockopt helpers " Breno Leitao
2026-11-13 20:21 ` Stanislav Fomichev
2026-11-12 17:05 ` [PATCH net-next 2/3] tcp: convert do_tcp_getsockopt() " Breno Leitao
2026-11-13 17:07 ` sashiko-bot [this message]
2026-11-13 20:21 ` Stanislav Fomichev
2026-11-12 17:05 ` [PATCH net-next 3/3] selftests: net: getsockopt_iter: cover tcp Breno Leitao
2026-11-13 17:07 ` sashiko-bot
2026-11-13 20:22 ` Stanislav Fomichev
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-213275@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=leitao@debian.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 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.