summaryrefslogtreecommitdiff
path: root/tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorKarol Wachowski <karol.wachowski@linux.intel.com>2025-12-15 08:09:33 +0100
committerKarol Wachowski <karol.wachowski@linux.intel.com>2025-12-16 08:10:19 +0100
commit2359fe93138d80ca378072d4c743b8c17612f3e3 (patch)
tree5a4d3340be6ea8a9fd5f57961621faa522f61d1a /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
parent97f27573837ef96b4ba42af463cc800cab615c0e (diff)
accel/ivpu: Validate scatter-gather size against buffer size
Validate scatter-gather table size matches buffer object size before mapping. Break mapping early if the table exceeds buffer size to prevent overwriting existing mappings. Also validate the table is not smaller than buffer size to avoid unmapped regions that trigger MMU translation faults. Log error and fail mapping operation on size mismatch to prevent data corruption from mismatched host memory locations and NPU addresses. Unmap any partially mapped buffer on failure. Reviewed-by: Lizhi Hou <lizhi.hou@amd.com> Signed-off-by: Karol Wachowski <karol.wachowski@linux.intel.com> Link: https://patch.msgid.link/20251215070933.520377-1-karol.wachowski@linux.intel.com
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions