[PW_SID:993335] [v4] iommu/riscv: prevent NULL deref in iova_to_phys - #806
[PW_SID:993335] [v4] iommu/riscv: prevent NULL deref in iova_to_phys#806linux-riscv-bot wants to merge 1 commit into
Conversation
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: 488ffbf ("iommu/riscv: Paging domain support") Cc: Tomasz Jeznach <tjeznach@rivosinc.com> Signed-off-by: XianLiang Huang <huangxianliang@lanxincomputing.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v4] iommu/riscv: prevent NULL deref in iova_to_phys" |
|
Patch 1: "[v4] iommu/riscv: prevent NULL deref in iova_to_phys" |
|
Patch 1: "[v4] iommu/riscv: prevent NULL deref in iova_to_phys" |
|
Patch 1: "[v4] iommu/riscv: prevent NULL deref in iova_to_phys" |
|
Patch 1: "[v4] iommu/riscv: prevent NULL deref in iova_to_phys" |
|
Patch 1: "[v4] iommu/riscv: prevent NULL deref in iova_to_phys" |
|
Patch 1: "[v4] iommu/riscv: prevent NULL deref in iova_to_phys" |
|
Patch 1: "[v4] iommu/riscv: prevent NULL deref in iova_to_phys" |
|
Patch 1: "[v4] iommu/riscv: prevent NULL deref in iova_to_phys" |
|
Patch 1: "[v4] iommu/riscv: prevent NULL deref in iova_to_phys" |
|
Patch 1: "[v4] iommu/riscv: prevent NULL deref in iova_to_phys" |
|
Patch 1: "[v4] iommu/riscv: prevent NULL deref in iova_to_phys" |
PR for series 993335 applied to workflow__riscv__fixes
Name: [v4] iommu/riscv: prevent NULL deref in iova_to_phys
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=993335
Version: 4