Re: [PATCH bpf-next v2 3/3] bpf, arena: check range_tree_set return in arena_free_pages and arena_free_worker
| Newsgroups | org.kernel.vger.bpf,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <8b97ada9d7f542fd0c548520e60a114194879159e5ac8ef0cca2b8c367b2f323@mail.kernel.org> |
> commit bfa5738a7c316a45ba16a067c92606ef3610c0b9 > Author: Yuan Chen <[email protected]> > Date: Mon Aug 10 17:46:34 2026 +0800 > > bpf, arena: check range_tree_set return in arena_free_pages and arena_free_worker > > arena_free_pages() and arena_free_worker() now handle range_tree_set() > errors. arena_free_pages() aborts the free on error, and > arena_free_worker() moves range_tree_set() before PTE clearing so that a > failed tree update leaves the PTEs intact instead of freeing pages that > the arena free tree does not track. > > Signed-off-by: Yuan Chen <[email protected]> This commit fixes missing error handling for range_tree_set() that can lead to memory tracking inconsistencies. Should this include a Fixes: tag pointing to the original commit that introduced bpf_arena? Fixes: 317460317a02 ("bpf: Introduce bpf_arena.") --- AI reviewed your patch. Please fix the bug or email reply why it's not a bug. See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md CI run summary: https://github.com/kernel-patches/bpf/actions/runs/31377360587