From: patchwork-bot+netdevbpf@kernel.org
To: Sechang Lim <rhkrqnwk98@gmail.com>
Cc: bpf@vger.kernel.org, netdev@vger.kernel.org,
john.fastabend@gmail.com, jakub@cloudflare.com,
jiayuan.chen@linux.dev, davem@davemloft.net, edumazet@kernel.org,
kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
ast@kernel.org, cwang@multikernel.io
Subject: Re: [PATCH bpf] bpf, sockmap: Clear the redirect target after the stream parser runs
Date: Thu, 26 Nov 2026 20:50:04 +0000 [thread overview]
Message-ID: <179572620493.612301.18286329775788575434.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20261126101950.1682160-1-rhkrqnwk98@gmail.com>
Hello:
This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast@kernel.org>:
On Thu, 26 Nov 2026 10:19:41 +0000 you wrote:
> A stream parser can call bpf_sk_redirect_{map,hash}(), which store the
> target socket in skb->_sk_redir. sk_psock_strp_parse() never clears it,
> and it shares storage with skb->_skb_refdst, so skb_dst_drop() later
> passes the socket to dst_release():
>
> KASAN: null-ptr-deref in range [0x0000000000000128-0x000000000000012f]
> RIP: 0010:percpu_counter_add_batch+0x24/0x220
> Call Trace:
> dst_release.part.0+0xc9/0x180
> skb_release_head_state+0x1cc/0x2f0
> sk_skb_reason_drop+0xbc/0x420
> strp_done+0xcf/0x150
> sk_psock_destroy+0x85e/0xb10
>
> [...]
Here is the summary with links:
- [bpf] bpf, sockmap: Clear the redirect target after the stream parser runs
https://git.kernel.org/bpf/bpf/c/14f6b10422d6
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
prev parent reply other threads:[~2026-11-26 20:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 10:19 [PATCH bpf] bpf, sockmap: Clear the redirect target after the stream parser runs Sechang Lim
2026-11-26 11:46 ` Jiayuan Chen
2026-11-26 20:50 ` patchwork-bot+netdevbpf [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=179572620493.612301.18286329775788575434.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=cwang@multikernel.io \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=jakub@cloudflare.com \
--cc=jiayuan.chen@linux.dev \
--cc=john.fastabend@gmail.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rhkrqnwk98@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox