[PATCH V1] accel/amdxdna: Fix an integer overflow in aie2_query_ctx_status_array()

2025-09-18 Thread Lizhi Hou
The unpublished smatch static checker reported a warning. drivers/accel/amdxdna/aie2_pci.c:904 aie2_query_ctx_status_array() warn: potential user controlled sizeof overflow 'args->num_element * args->element_size' '1-u32max(user) * 1-u32max(user)' Even this will not cause a real issue, it is bett

Re: [PATCH V1] accel/amdxdna: Fix an integer overflow in aie2_query_ctx_status_array()

2025-09-17 Thread Falkowski, Maciej
Reviewed-by: Maciej Falkowski On 9/9/2025 5:45 PM, Lizhi Hou wrote: The unpublished smatch static checker reported a warning. drivers/accel/amdxdna/aie2_pci.c:904 aie2_query_ctx_status_array() warn: potential user controlled sizeof overflow 'args->num_element * args->element_size' '1-u32max(us

Re: [PATCH V1] accel/amdxdna: Fix an integer overflow in aie2_query_ctx_status_array()

2025-09-11 Thread Lizhi Hou
Applied to drm-misc-next On 9/11/25 07:56, Falkowski, Maciej wrote: Reviewed-by: Maciej Falkowski On 9/9/2025 5:45 PM, Lizhi Hou wrote: The unpublished smatch static checker reported a warning. drivers/accel/amdxdna/aie2_pci.c:904 aie2_query_ctx_status_array() warn: potential user controlled