opnsense-src/sys/dev/vmware/vmci
Mark Peek 0f14bcbe38 vmci: fix panic due to freeing unallocated resources
Summary:
An error mapping PCI resources results in a panic due to unallocated
resources being freed up. This change puts the appropriate checks in
place to prevent the panic.

PR:		252445
Reported by:	Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>
Tested by:	marcus
MFC after:	1 week
Sponsored by:	VMware

Test Plan:
Along with user testing, also simulated error by inserting a ENXIO
return in vmci_map_bars().

Reviewed by:	marcus
Subscribers:	imp
Differential Revision: https://reviews.freebsd.org/D32016
2021-10-09 14:21:16 -07:00
..
LICENSE Update VMCI license based on comments from core, the FreeBSD Foundation, 2018-04-08 01:32:56 +00:00
vmci.c vmci: fix panic due to freeing unallocated resources 2021-10-09 14:21:16 -07:00
vmci.h Update VMCI license based on comments from core, the FreeBSD Foundation, 2018-04-08 01:32:56 +00:00
vmci_call_defs.h Update VMCI license based on comments from core, the FreeBSD Foundation, 2018-04-08 01:32:56 +00:00
vmci_datagram.c Update VMCI license based on comments from core, the FreeBSD Foundation, 2018-04-08 01:32:56 +00:00
vmci_datagram.h Update VMCI license based on comments from core, the FreeBSD Foundation, 2018-04-08 01:32:56 +00:00
vmci_defs.h vmware: clean up empty lines in .c and .h files 2020-09-01 21:30:01 +00:00
vmci_doorbell.c vmware: clean up empty lines in .c and .h files 2020-09-01 21:30:01 +00:00
vmci_doorbell.h Update VMCI license based on comments from core, the FreeBSD Foundation, 2018-04-08 01:32:56 +00:00
vmci_driver.c vmware: clean up empty lines in .c and .h files 2020-09-01 21:30:01 +00:00
vmci_driver.h Update VMCI license based on comments from core, the FreeBSD Foundation, 2018-04-08 01:32:56 +00:00
vmci_event.c vmci: fix panic due to freeing unallocated resources 2021-10-09 14:21:16 -07:00
vmci_event.h Update VMCI license based on comments from core, the FreeBSD Foundation, 2018-04-08 01:32:56 +00:00
vmci_hashtable.c vmware: clean up empty lines in .c and .h files 2020-09-01 21:30:01 +00:00
vmci_hashtable.h Update VMCI license based on comments from core, the FreeBSD Foundation, 2018-04-08 01:32:56 +00:00
vmci_kernel_api.h Update VMCI license based on comments from core, the FreeBSD Foundation, 2018-04-08 01:32:56 +00:00
vmci_kernel_api_1.h Update VMCI license based on comments from core, the FreeBSD Foundation, 2018-04-08 01:32:56 +00:00
vmci_kernel_api_2.h Update VMCI license based on comments from core, the FreeBSD Foundation, 2018-04-08 01:32:56 +00:00
vmci_kernel_defs.h Update VMCI license based on comments from core, the FreeBSD Foundation, 2018-04-08 01:32:56 +00:00
vmci_kernel_if.c vmci: fix panic due to freeing unallocated resources 2021-10-09 14:21:16 -07:00
vmci_kernel_if.h vmci: fix panic due to freeing unallocated resources 2021-10-09 14:21:16 -07:00
vmci_qpair.c Update VMCI license based on comments from core, the FreeBSD Foundation, 2018-04-08 01:32:56 +00:00
vmci_queue.h Update VMCI license based on comments from core, the FreeBSD Foundation, 2018-04-08 01:32:56 +00:00
vmci_queue_pair.c vmci: fix panic due to freeing unallocated resources 2021-10-09 14:21:16 -07:00
vmci_queue_pair.h Update VMCI license based on comments from core, the FreeBSD Foundation, 2018-04-08 01:32:56 +00:00
vmci_resource.c Update VMCI license based on comments from core, the FreeBSD Foundation, 2018-04-08 01:32:56 +00:00
vmci_resource.h Update VMCI license based on comments from core, the FreeBSD Foundation, 2018-04-08 01:32:56 +00:00
vmci_utils.h Update VMCI license based on comments from core, the FreeBSD Foundation, 2018-04-08 01:32:56 +00:00