✓ CI.checkpatch: success for drm/xe/rtp: Fix out-of-bounds array access (rev2)
Patchwork
patchwork at emeril.freedesktop.org
Mon Jul 1 02:19:12 UTC 2024
== Series Details ==
Series: drm/xe/rtp: Fix out-of-bounds array access (rev2)
URL : https://patchwork.freedesktop.org/series/135527/
State : success
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
51ce9f6cd981d42d7467409d7dbc559a450abc1e
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 4bcae3cc1c39f69ba236e06bc90d2aefb7dfbc4d
Author: Lucas De Marchi <lucas.demarchi at intel.com>
Date: Fri Jun 28 09:17:26 2024 -0700
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 <mika.kuoppala at linux.intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
+ /mt/dim checkpatch 886eeb6d89b58f914ee5045fcac54b59a73d8299 drm-intel
4bcae3cc1c39 drm/xe/rtp: Fix out-of-bounds array access
More information about the Intel-xe
mailing list