diff options
| author | Lizhi Hou <lizhi.hou@amd.com> | 2026-02-17 11:28:15 -0800 |
|---|---|---|
| committer | Lizhi Hou <lizhi.hou@amd.com> | 2026-02-23 09:24:21 -0800 |
| commit | 03808abb1d868aed7478a11a82e5bb4b3f1ca6d6 (patch) | |
| tree | 40445a2c540753181393db8aaec7fc7ead6aa596 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | 1110a949675ebd56b3f0286e664ea543f745801c (diff) | |
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: bd72d4acda10 ("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
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
