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
F170760149: D32016.id.diff
Sun, Sep 6, 11:28 AM
F170574714: D32016.id95345.diff
Sat, Sep 5, 11:38 AM
Unknown Object (File)
Sat, Sep 5, 12:15 AM
Unknown Object (File)
Wed, Sep 2, 10:29 PM
Unknown Object (File)
Mon, Aug 31, 10:29 PM
Unknown Object (File)
Sat, Aug 29, 11:23 PM
Unknown Object (File)
Sat, Aug 29, 10:47 PM
Unknown Object (File)
Tue, Aug 25, 7:08 PM
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable