[Devel] [PATCH hci-8.1 1/2] ms/selftests/bpf: test_xsk: Initialize bitmap before use

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Mon Nov 16 16:13:15 MSK 2026


Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] selftests/bpf: xsk bitmap fix lacks Fixes: trailers
--

commit ee0829e53ca566bede00c40365c639ece9f4e9bd
Author: Bastien Curutchet (eBPF Foundation) <bastien.curutchet at bootlin.com>

> ms/selftests/bpf: test_xsk: Initialize bitmap before use
>
> bitmap is used before being initialized.
>
> Initialize it to zero before using it.
>
> Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski at intel.com>
> Signed-off-by: Bastien Curutchet (eBPF Foundation) <bastien.curutchet at bootlin.com>
> Link: https://lore.kernel.org/r/20251031-xsk-v7-2-39fe486593a3@bootlin.com
> Signed-off-by: Alexei Starovoitov <ast at kernel.org>
> (cherry picked from commit 2233ef8bba81e02e8fee6300a81dcf389aa17c58)
>
> Rebase note: applied to xskxceiver.c. Mainline moved this code to
> test_xsk.c in commit 3ab77f35a75e ("selftests/bpf: test_xsk: Split
> xskxceiver"), which is not here. The code is the same.
>
> https://virtuozzo.atlassian.net/browse/VSTOR-154851
> Feature: fix selftests
>
> Signed-off-by: Eva Kurchatova <eva.kurchatova at virtuozzo.com>

[Severity: Low]
This fixes reads of an uninitialized on-stack bitmap in receive_pkts() and
send_pkts(), but the message has no Fixes: tags. Should it include the
commits that introduced the two bugs?

  Fixes: 8913e653e9b8 ("selftests/xsk: Iterate over all the sockets in the receive pkts function")
  Fixes: fd0815ae9b8a ("selftests/xsk: Iterate over all the sockets in the send pkts function")

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261116130936.612078-1-eva.kurchatova@virtuozzo.com?part=1



More information about the Devel mailing list