linux/drivers
Jason Gunthorpe 322d889ae7 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 <vasant.hegde@amd.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/4-v2-831cdc4d00f3+1a315-amd_iopgtbl_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2024-09-04 11:37:43 +02:00
..
accel
accessibility
acpi
amba
android binder_alloc: Fix sleeping function called from invalid context 2024-07-31 13:48:25 +02:00
ata
atm
auxdisplay
base driver core: Fix uevent_show() vs driver detach race 2024-07-31 14:41:44 +02:00
bcma
block
bluetooth Bluetooth: hci_qca: fix a NULL-pointer derefence at shutdown 2024-08-07 16:35:53 -04:00
bus
cache cache: StarFive: Require a 64-bit system 2024-08-01 07:15:02 -07:00
cdrom
cdx
char char: add missing NetWinder MODULE_DESCRIPTION() macros 2024-07-31 13:47:45 +02:00
clk
clocksource
comedi
connector
counter
cpufreq cpufreq: intel_pstate: Update Balance performance EPP for Emerald Rapids 2024-08-02 14:40:13 +02:00
cpuidle
crypto
cxl
dax
dca
devfreq
dio
dma
dma-buf
dpll
edac
eisa
extcon
firewire
firmware
fpga
fsi fsi: add missing MODULE_DESCRIPTION() macros 2024-07-31 13:40:00 +02:00
gnss
gpio
gpu Merge tag 'drm-intel-fixes-2024-08-08' of https://gitlab.freedesktop.org/drm/i915/kernel into drm-fixes 2024-08-09 17:16:29 +10:00
greybus
hid
hsi
hte
hv
hwmon
hwspinlock
hwtracing
i2c Two fixes on the Qualcomm GENI I2C controller are cleaning up the 2024-08-09 15:28:08 +02:00
i3c
idle
iio
infiniband
input
interconnect
iommu iommu/amd: Remove amd_iommu_domain_update() from page table freeing 2024-09-04 11:37:43 +02:00
ipack
irqchip irqchip/riscv-aplic: Retrigger MSI interrupt on source configuration 2024-08-10 10:42:04 +02:00
isdn
leds
macintosh
mailbox
mcb
md
media media fixes for v6.11-rc2 2024-08-04 08:12:33 -07:00
memory
memstick
message
mfd
misc misc: mrvl-cn10k-dpi: add PCI_IOV dependency 2024-07-31 13:47:27 +02:00
mmc
most
mtd
mux
net Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue 2024-08-08 09:02:25 -07:00
nfc
ntb
nubus
nvdimm
nvme nvme: reorganize nvme_ns_head fields 2024-07-31 07:40:10 -07:00
nvmem
of
opp
parisc
parport
pci PCI: pciehp: Retain Power Indicator bits for userspace indicators 2024-08-01 12:58:03 -05:00
pcmcia
peci
perf perf: riscv: Fix selecting counters in legacy mode 2024-08-01 07:15:13 -07:00
phy
pinctrl
platform ARM: soc fixes for 6.11, part 1 2024-08-09 10:06:43 -07:00
pmdomain
pnp
power Power Supply Fixes for 6.11 cycle 2024-08-07 09:45:21 -07:00
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390 s390/cio: Add missing MODULE_DESCRIPTION() macros 2024-07-31 16:30:20 +02:00
sbus
scsi SCSI fixes on 20240811 2024-08-11 09:28:04 -07:00
sh
siox
slimbus
soc
soundwire
spi spi: spi-fsl-lpspi: Fix scldiv calculation 2024-08-07 23:45:12 +01:00
spmi spmi: pmic-arb: add missing newline in dev_err format strings 2024-07-31 13:49:28 +02:00
ssb
staging
target
tc
tee
thermal Merge branch 'thermal-intel' 2024-07-31 12:31:27 +02:00
thunderbolt
tty tty: vt: conmakehash: cope with abs_srctree no longer in env 2024-07-31 12:31:32 +02:00
ufs scsi: ufs: core: Fix hba->last_dme_cmd_tstamp timestamp updating logic 2024-08-01 21:59:00 -04:00
uio
usb usb: typec: ucsi: Fix a deadlock in ucsi_send_command_common() 2024-08-07 12:48:30 +02:00
vdpa
vfio
vhost virtio: bugfix 2024-08-06 10:58:28 -07:00
video
virt
virtio
w1
watchdog
xen
zorro
Kconfig
Makefile