From: patchwork-bot+netdevbpf@kernel.org
To: chenyuan <chenyuan_fl@163.com>
Cc: bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net,
andrii@kernel.org, chenyuan@kylinos.cn, stable@vger.kernel.org
Subject: Re: [PATCH bpf v5 0/2] bpf: Fix queue/stack map u32 index overflow
Date: Wed, 02 Sep 2026 23:30:09 +0000 [thread overview]
Message-ID: <178839180989.3000007.9654555502617060828.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20260831063226.621309-1-chenyuan_fl@163.com>
Hello:
This series was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@kernel.org>:
On Mon, 31 Aug 2026 14:32:24 +0800 you wrote:
> From: Yuan Chen <chenyuan@kylinos.cn>
>
> This series fixes an integer overflow in BPF queue/stack maps. The u32
> head/tail index is multiplied by value_size to address elements[], but
> the storage itself is allocated with 64-bit arithmetic. When
> max_entries * value_size reaches or exceeds U32_MAX, the index
> multiplication wraps and push/peek/pop operate on the wrong element,
> corrupting map data and leaking stale values to user space.
> max_entries == U32_MAX would also wrap the u32 capacity counter
> qs->size (max_entries + 1) to 0 and permanently break the map.
>
> [...]
Here is the summary with links:
- [bpf,v5,1/2] bpf: Fix queue/stack map u32 index overflow
https://git.kernel.org/bpf/bpf-next/c/802a30c5db72
- [bpf,v5,2/2] selftests/bpf: Add regression test for queue/stack map size limit
https://git.kernel.org/bpf/bpf-next/c/33576bfee5b7
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
next prev parent reply other threads:[~2026-09-02 23:31 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-10 13:59 [PATCH bpf v3 0/2] bpf: Fix queue/stack map u32 index overflow chenyuan_fl
2026-08-10 13:59 ` [PATCH bpf v3 1/2] " chenyuan_fl
2026-08-10 13:59 ` [PATCH bpf v3 2/2] selftests/bpf: Add regression test for queue/stack map size limit chenyuan_fl
2026-08-10 14:49 ` bot+bpf-ci
2026-08-13 22:19 ` Andrii Nakryiko
2026-08-24 8:33 ` [PATCH bpf v4 0/2] bpf: Fix queue/stack map u32 index overflow chenyuan_fl
2026-08-24 8:33 ` [PATCH bpf v4 1/2] " chenyuan_fl
2026-08-24 8:47 ` sashiko-bot
2026-08-28 0:04 ` Andrii Nakryiko
2026-08-31 6:32 ` [PATCH bpf v5 0/2] " chenyuan_fl
2026-08-31 6:32 ` [PATCH bpf v5 1/2] " chenyuan_fl
2026-08-31 7:13 ` bot+bpf-ci
2026-08-31 6:32 ` [PATCH bpf v5 2/2] selftests/bpf: Add regression test for queue/stack map size limit chenyuan_fl
2026-08-31 7:13 ` bot+bpf-ci
2026-09-02 23:30 ` patchwork-bot+netdevbpf [this message]
2026-08-24 8:33 ` [PATCH bpf v4 " chenyuan_fl
2026-08-24 8:43 ` sashiko-bot
2026-08-24 9:25 ` bot+bpf-ci
2026-08-28 0:04 ` Andrii Nakryiko
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=178839180989.3000007.9654555502617060828.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=chenyuan@kylinos.cn \
--cc=chenyuan_fl@163.com \
--cc=daniel@iogearbox.net \
--cc=stable@vger.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 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.