Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Oct 2021 15:32:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 252445] panics on ESXi triggered by update making devd(8) to load vmci(4) module
Message-ID:  <bug-252445-27103-wvyvSIUA5M@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-252445-27103@https.bugs.freebsd.org/bugzilla/>
References:  <bug-252445-27103@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252445

--- Comment #23 from commit-hook@FreeBSD.org ---
A commit in branch stable/12 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3Db5d236785dc352a65bc29d97c8a89b403=
87eb7a0

commit b5d236785dc352a65bc29d97c8a89b40387eb7a0
Author:     Mark Peek <mp@FreeBSD.org>
AuthorDate: 2021-10-09 21:21:16 +0000
Commit:     Mark Peek <mp@FreeBSD.org>
CommitDate: 2021-10-17 15:31:53 +0000

    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

    (cherry picked from commit 0f14bcbe384091c729464cb770372aeb79061070)

 sys/dev/vmware/vmci/vmci.c            |  9 ++++---
 sys/dev/vmware/vmci/vmci_event.c      |  3 +++
 sys/dev/vmware/vmci/vmci_kernel_if.c  | 48 +++++++++++++++++++++++++++++++=
+++-
 sys/dev/vmware/vmci/vmci_kernel_if.h  |  2 ++
 sys/dev/vmware/vmci/vmci_queue_pair.c |  3 +++
 5 files changed, 61 insertions(+), 4 deletions(-)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252445-27103-wvyvSIUA5M>