diff options
| author | Suman Ghosh <sumang@marvell.com> | 2026-08-21 16:25:35 +0530 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-08-24 12:05:22 -0700 |
| commit | b09a0503c755b6609fad59a84cc7f05b6843a03c (patch) | |
| tree | cf5a4b153168c0626412328890b867a0cb314557 /tools/perf/scripts/python | |
| parent | 80230a18c164a4b5bbc048fe2768b219ac17bc5a (diff) | |
| download | linux-b09a0503c755b6609fad59a84cc7f05b6843a03c.tar.gz linux-b09a0503c755b6609fad59a84cc7f05b6843a03c.zip | |
octeontx2-pf: fix NULL deref of af_xdp_zc_qidx on rep setup
af_xdp_zc_qidx tracks receive queues using AF_XDP zero-copy and is
allocated during PF/VF probe. Representors and other non-AF_XDP paths
leave the pointer NULL, but several call sites used test_bit() on it
unconditionally.
Switching to devlink eswitch mode creates representors and runs
otx2_init_hw_resources(), which reaches otx2_pool_aq_init() and oopses
when dereferencing the NULL bitmap. Add NULL checks before every
af_xdp_zc_qidx test_bit() use in the RSS, ethtool, XSK, and pool init
paths.
Fixes: efabce290151 ("octeontx2-pf: AF_XDP zero copy receive support")
Signed-off-by: Suman Ghosh <sumang@marvell.com>
Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
Link: https://patch.msgid.link/20260821105536.2998765-1-rkannoth@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
