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
F145586101: D32016.id96577.diff
Sat, Feb 21, 8:34 PM
F145586096: D32016.id96577.diff
Sat, Feb 21, 8:34 PM
F145586091: D32016.id96577.diff
Sat, Feb 21, 8:34 PM
F145548326: D32016.id95345.diff
Sat, Feb 21, 7:53 AM
Unknown Object (File)
Fri, Feb 20, 3:47 AM
Unknown Object (File)
Mon, Feb 9, 5:28 AM
Unknown Object (File)
Jan 10 2026, 7:08 PM
Unknown Object (File)
Nov 26 2025, 6:52 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