aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorLucas De Marchi <[email protected]>2024-06-28 09:17:26 -0700
committerLucas De Marchi <[email protected]>2024-07-01 10:49:19 -0700
commit7dc10eff223b0e9fed5d48159820556a576be592 (patch)
treef49e566984a7f7b59430a1b805e1c87048326cac /tools/testing/selftests/net/lib/py/utils.py
parent411220808ceeaf91b11a9fa9bc992d59568a7ee0 (diff)
drm/xe/rtp: Fix out-of-bounds array access
Increment the counter before checking for number of rules, otherwise when there's no XE_RTP_MATCH_OR an out-of-bounds access is done, as reported by kasan: BUG: KASAN: global-out-of-bounds in rule_matches+0xb6d/0x11c0 [xe] Read of size 1 at addr ffffffffa0a50b70 by task systemd-udevd/243 Fixes: dc72c52a42e0 ("drm/xe/rtp: Allow to OR rules") Cc: Mika Kuoppala <[email protected]> Reviewed-by: Rodrigo Vivi <[email protected]> Reviewed-by: Nirmoy Das <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Lucas De Marchi <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions