summary refs log tree commit diff stats
path: root/hw/vfio-user/container.c
diff options
context:
space:
mode:
authorZhenzhong Duan <zhenzhong.duan@intel.com>2025-06-27 14:33:31 +0800
committerCédric Le Goater <clg@redhat.com>2025-07-03 13:42:28 +0200
commite8c1128bf982f2e5f7c9ca6c1de632feec3d9e94 (patch)
tree4aab7fb8330031fc78a0608ea268e43c5be94efb /hw/vfio-user/container.c
parentc77283dd5d79149f4e7e9edd00f65416c648ee59 (diff)
downloadfocaccia-qemu-e8c1128bf982f2e5f7c9ca6c1de632feec3d9e94.tar.gz
focaccia-qemu-e8c1128bf982f2e5f7c9ca6c1de632feec3d9e94.zip
vfio/container: Fix potential SIGSEGV when recover from unmap-all-vaddr failure
CPR overrides then restores dma_map in both outgoing and incoming QEMU, for
different reasons. But it only sets saved_dma_map in the target.

Fix it by always setting saved_dma_map.

Fixes: eba1f657cbb1 ("vfio/container: recover from unmap-all-vaddr failure")
Suggested-by: Steven Sistare <steven.sistare@oracle.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Steve Sistare <steven.sistare@oracle.com>
Link: https://lore.kernel.org/qemu-devel/20250627063332.5173-2-zhenzhong.duan@intel.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/vfio-user/container.c')
0 files changed, 0 insertions, 0 deletions