Re: [PATCH] selftests/bpf: Add arena direct-value boundary test
From: Alexei Starovoitov
Date: Mon Jun 15 2026 - 00:35:43 EST
On Sun, Jun 14, 2026 at 9:34 AM Dhiraj Shah <find.dhiraj@xxxxxxxxx> wrote:
>
> Add coverage for direct map value access against BPF_MAP_TYPE_ARENA.
> For a one-page arena, an offset of PAGE_SIZE - 1 is valid, while
> PAGE_SIZE is one byte past the end of the mapping and must be rejected.
>
> This covers the off-by-one case in arena direct-value range checking.
>
> Signed-off-by: Dhiraj Shah <find.dhiraj@xxxxxxxxx>
Sorry, not every branch in the kernel needs a selftest.
I don't think we need to spend CI cycles for every future patch
to test for this unlikely regression.
pw-bot: cr