diff options
author | 2025-08-20 15:22:48 +0800 | |
---|---|---|
committer | 2025-08-22 08:51:49 +0200 | |
commit | 99d4d1a070870aa08163af8ce0522992b7f35d8c (patch) | |
tree | 6e0827cf83a748d88bd339bc673a32b33de4af66 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf | |
parent | iommu/virtio: Make instance lookup robust (diff) | |
download | wireguard-linux-99d4d1a070870aa08163af8ce0522992b7f35d8c.tar.xz wireguard-linux-99d4d1a070870aa08163af8ce0522992b7f35d8c.zip |
iommu/riscv: prevent NULL deref in iova_to_phys
The riscv_iommu_pte_fetch() function returns either NULL for
unmapped/never-mapped iova, or a valid leaf pte pointer that
requires no further validation.
riscv_iommu_iova_to_phys() failed to handle NULL returns.
Prevent null pointer dereference in
riscv_iommu_iova_to_phys(), and remove the pte validation.
Fixes: 488ffbf18171 ("iommu/riscv: Paging domain support")
Cc: Tomasz Jeznach <tjeznach@rivosinc.com>
Signed-off-by: XianLiang Huang <huangxianliang@lanxincomputing.com>
Link: https://lore.kernel.org/r/20250820072248.312-1-huangxianliang@lanxincomputing.com
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions