aboutsummaryrefslogtreecommitdiff
path: root/test/py/test_pci_ext_caps.py
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2021-11-24 23:59:24 +0000
committerGitHub <noreply@github.com>2021-11-24 23:59:24 +0000
commit02174878b1f7a70d3ac09c50c12799df0a1f9406 (patch)
tree62cdd8b99de889d310a65ddbdf2ad5b5257f403d /test/py/test_pci_ext_caps.py
parentd8a08f1a18370bcad4fa99a16bdbfc63dbbd35ad (diff)
downloadlibvfio-user-02174878b1f7a70d3ac09c50c12799df0a1f9406.zip
libvfio-user-02174878b1f7a70d3ac09c50c12799df0a1f9406.tar.gz
libvfio-user-02174878b1f7a70d3ac09c50c12799df0a1f9406.tar.bz2
verify region is mapped before acquiring dirty bitmap (#627)
DMA regions not mapped by the server are not dirty tracked (the client must track changes via handling VFIO_USER_DMA_WRITE), but we weren't correctly enforcing this, which could segfault when ->dirty_bitmap was NULL. Found via AFL++. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'test/py/test_pci_ext_caps.py')
0 files changed, 0 insertions, 0 deletions