mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
accel/amdxdna: Hold mm structure across iommu_sva_unbind_device()
[ Upstream commita9162439ad] Some tests trigger a crash in iommu_sva_unbind_device() due to accessing iommu_mm after the associated mm structure has been freed. Fix this by taking an explicit reference to the mm structure after successfully binding the device, and releasing it only after the device is unbound. This ensures the mm remains valid for the entire SVA bind/unbind lifetime. Fixes:be462c97b7("accel/amdxdna: Add hardware context") Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com> Link: https://patch.msgid.link/20260128002356.1858122-1-lizhi.hou@amd.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
e6ff5e9e39
commit
f6b4c1d98a
2 changed files with 4 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue