From: "Jose Fernandez (Anthropic)" <jose.fernandez@linux.dev>
To: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Cc: sashiko-reviews@lists.linux.dev,
Kuniyuki Iwashima <kuniyu@google.com>,
bpf@vger.kernel.org
Subject: Re: [PATCH bpf v2] bpf: tcp: Fix use-after-free in bpf_iter_tcp_established_batch()
Date: Tue, 28 Jul 2026 14:10:16 +0000 [thread overview]
Message-ID: <ami0NJ9s6ZhXVZb5@linux.dev> (raw)
In-Reply-To: <DK4HTPHX3NL8.2N1FK8D2N9521@gmail.com>
On Tue, Jul 21, 2026 at 09:24:05PM +0200, Kumar Kartikeya Dwivedi wrote:
> On Fri Jul 17, 2026 at 4:52 AM CEST, sashiko-bot wrote:
> > [Severity: Low]
> > Does this multi-line comment follow the BPF subsystem comment style?
> > The BPF subsystem guide expects the opening block to be on its own line:
On the comment-style note, checkpatch accepts both block comment forms
and the one used here matches the surrounding code in
net/ipv4/tcp_ipv4.c, so I don't think the bot's flag applies. Either way
is fine by me, whatever the maintainers prefer.
> > Pre-existing issues:
> > - [High] Double-put and wild pointer dereference of batch sockets on the
> > first bpf_iter_tcp_realloc_batch failure path.
>
> Hi Kuniyuki,
> Thoughts on the fix and Sashiko's concern? (The latter should be probably be
> fixed separately, if needed).
The double-put is pre-existing and already fixed separately by
980a81345275 ("bpf: tcp: fix double sock release on batch realloc"),
now in the bpf tree. The hunks are disjoint, so this series applies
cleanly on top of it.
Thanks,
Jose
prev parent reply other threads:[~2026-07-28 14:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-17 2:33 [PATCH bpf v2] bpf: tcp: Fix use-after-free in bpf_iter_tcp_established_batch() Jose Fernandez (Anthropic)
2026-07-17 2:52 ` sashiko-bot
2026-07-21 19:24 ` Kumar Kartikeya Dwivedi
2026-07-28 14:10 ` Jose Fernandez (Anthropic) [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=ami0NJ9s6ZhXVZb5@linux.dev \
--to=jose.fernandez@linux.dev \
--cc=bpf@vger.kernel.org \
--cc=kuniyu@google.com \
--cc=memxor@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.