[PATCH] drm/xe/rtp: Fix out-of-bounds array access
Lucas De Marchi
lucas.demarchi at intel.com
Mon Jul 1 19:28:54 UTC 2024
On Fri, Jun 28, 2024 at 02:41:13PM GMT, Rodrigo Vivi wrote:
>On Fri, Jun 28, 2024 at 09:17:26AM -0700, Lucas De Marchi wrote:
>> 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
>
>Reviewed-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
applied, thanks
Lucas De Marchi
More information about the Intel-xe
mailing list