summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorLizhi Hou <lizhi.hou@amd.com>2026-02-17 21:54:15 +0300
committerLizhi Hou <lizhi.hou@amd.com>2026-02-23 20:24:20 +0300
commit1110a949675ebd56b3f0286e664ea543f745801c (patch)
tree37a8945ceb26be0a066f9fb6134abe57b908a90f /include/linux/timerqueue.h
parent07efce5a6611af6714ea3ef65694e0c8dd7e44f5 (diff)
downloadlinux-1110a949675ebd56b3f0286e664ea543f745801c.tar.xz
accel/amdxdna: Fix out-of-bounds memset in command slot handling
The remaining space in a command slot may be smaller than the size of the command header. Clearing the command header with memset() before verifying the available slot space can result in an out-of-bounds write and memory corruption. Fix this by moving the memset() call after the size validation. Fixes: 3d32eb7a5ecf ("accel/amdxdna: Fix cu_idx being cleared by memset() during command setup") Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com> Link: https://patch.msgid.link/20260217185415.1781908-1-lizhi.hou@amd.com
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions