diff options
| author | Sidong Yang <sidong.yang@furiosa.ai> | 2026-10-05 01:47:26 +0900 |
|---|---|---|
| committer | Heiko Stuebner <heiko@sntech.de> | 2026-10-12 23:15:47 +0200 |
| commit | f31a7b1f277d64f0d0d5907e13b69fe01a0bd250 (patch) | |
| tree | dd6d9ce815427869f87c7d5669146e9d68d5f140 /include/linux/debugobjects.h | |
| parent | a6709a58a01c8fc357e316bee31f369c2ea56235 (diff) | |
accel/rocket: Use an unsigned index to copy the job's tasks
task_count is a u32 from userspace, but rocket_copy_tasks() walks it
with an int index, which would overflow for counts above INT_MAX. That
is not reachable today, since kvmalloc_objs() rejects any count above
INT_MAX / 16, but use an unsigned index to match the type.
Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://lore.kernel.org/all/20260711063638.61B411F000E9@smtp.kernel.org/
Signed-off-by: Sidong Yang <sidong.yang@furiosa.ai>
Reviewed-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patch.msgid.link/20261004164727.466164-3-sidong.yang@furiosa.ai
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
