aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/recvmsg_unix_prog.c
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2024-08-29 21:06:13 -0300
committerJoerg Roedel <[email protected]>2024-09-04 11:37:43 +0200
commit322d889ae7d39f8538a6deac35869aa3be1855bd (patch)
tree5cceeefd1073a8ccb9f45b7c2c1273244cbebaff /tools/testing/selftests/bpf/progs/recvmsg_unix_prog.c
parent7a41dcb52f9de6079621fc31c3b84c7fc290934b (diff)
iommu/amd: Remove amd_iommu_domain_update() from page table freeing
It is a serious bug if the domain is still mapped to any DTEs when it is freed as we immediately start freeing page table memory, so any remaining HW touch will UAF. If it is not mapped then dev_list is empty and amd_iommu_domain_update() does nothing. Remove it and add a WARN_ON() to catch this class of bug. Reviewed-by: Vasant Hegde <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/recvmsg_unix_prog.c')
0 files changed, 0 insertions, 0 deletions