Loading
accel/amdxdna: Prevent ubuf size overflow
The ubuf size calculation may overflow, resulting in an undersized allocation and possible memory corruption. Use check_add_overflow() helpers to validate the size calculation before allocation. Fixes: bd72d4ac ("accel/amdxdna: Support user space allocated buffer") Reviewed-by:Mario Limonciello (AMD) <superm1@kernel.org> Signed-off-by:
Lizhi Hou <lizhi.hou@amd.com> Link: https://patch.msgid.link/20260217192815.1784689-1-lizhi.hou@amd.com