Page MenuHomeFreeBSD

vmci: fix panic due to freeing unallocated resources
ClosedPublic

Authored by mp on Sep 18 2021, 8:29 PM.
Tags
None
Referenced Files
F102668605: D32016.diff
Fri, Nov 15, 2:56 PM
Unknown Object (File)
Thu, Oct 31, 3:58 PM
Unknown Object (File)
Mon, Oct 28, 9:17 AM
Unknown Object (File)
Wed, Oct 23, 3:25 PM
Unknown Object (File)
Wed, Oct 23, 1:01 PM
Unknown Object (File)
Wed, Oct 16, 6:55 PM
Unknown Object (File)
Sep 28 2024, 2:23 PM
Unknown Object (File)
Sep 26 2024, 2:22 AM
Subscribers

Details

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().

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 41595
Build 38484: arc lint + arc unit