freebsd-skq/sys/dev/xen
Roger Pau Monné 808d4aad10 xen-blkback: fix leak of grant maps on ring setup failure
Multi page rings are mapped using a single hypercall that gets passed
an array of grants to map. One of the grants in the array failing to
map would lead to the failure of the whole ring setup operation, but
there was no cleanup of the rest of the grant maps in the array that
could have likely been created as a result of the hypercall.

Add proper cleanup on the failure path during ring setup to unmap any
grants that could have been created.

This is part of XSA-361.

Sponsored by:	Citrix Systems R&D
2021-02-22 16:47:52 +01:00
..
balloon xen: allow limiting the amount of duplicated pending xenstore watches 2020-12-30 11:18:26 +01:00
blkback xen-blkback: fix leak of grant maps on ring setup failure 2021-02-22 16:47:52 +01:00
blkfront Make MAXPHYS tunable. Bump MAXPHYS to 1M. 2020-11-28 12:12:51 +00:00
console tty: convert tty_lock_assert to tty_assert_locked to hide lock type 2020-04-17 18:34:49 +00:00
control xen: allow limiting the amount of duplicated pending xenstore watches 2020-12-30 11:18:26 +01:00
debug
efi xen/efi: introduce a PV interface for EFI run time services for dom0 2021-02-16 15:26:12 +01:00
evtchn dev/xenstore: fix return with locks held 2020-05-20 11:01:10 +00:00
gntdev Convert allocations of the phys pager to vm_pager_allocate(). 2020-09-08 23:38:49 +00:00
grant_table dev/xen: clean up empty lines in .c and .h files 2020-09-01 21:45:08 +00:00
netback dev/xen: clean up empty lines in .c and .h files 2020-09-01 21:45:08 +00:00
netfront dev/xen: clean up empty lines in .c and .h files 2020-09-01 21:45:08 +00:00
pci
pcifront dev/xen: clean up empty lines in .c and .h files 2020-09-01 21:45:08 +00:00
privcmd xen/privcmd: implement the restrict ioctl 2021-01-11 16:33:27 +01:00
pvcpu
timer
xenpci dev/xen: clean up empty lines in .c and .h files 2020-09-01 21:45:08 +00:00
xenstore xen: allow limiting the amount of duplicated pending xenstore watches 2020-12-30 11:18:26 +01:00