From owner-freebsd-bugs@freebsd.org Wed Oct 28 01:53:31 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 25E1D438103 for ; Wed, 28 Oct 2020 01:53:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4CLWnR0FPxz4TYl for ; Wed, 28 Oct 2020 01:53:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 0629545FC57; Wed, 28 Oct 2020 01:53:31 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 05EE045FD2C for ; Wed, 28 Oct 2020 01:53:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CLWnQ6Pn1z4TWj for ; Wed, 28 Oct 2020 01:53:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BF4E915204 for ; Wed, 28 Oct 2020 01:53:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 09S1rUvX067320 for ; Wed, 28 Oct 2020 01:53:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 09S1rUZw067319 for bugs@FreeBSD.org; Wed, 28 Oct 2020 01:53:30 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 250580] VMware UEFI guests crash in virtual hardware after r366691 Date: Wed, 28 Oct 2020 01:53:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: prj@rootwyrm.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2020 01:53:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250580 --- Comment #2 from Phillip R. Jaenke --- (In reply to Warner Losh from comment #1) Unfortunately, this is in a restricted environment, so no luck this time. *Fortunately*, the reproduction is relatively easy. 1) Needs AMD Ryzen, Threadripper, or EPYC in non-EVC with or without SEV 2) Needs vSphere 7.0 build 16324942 or later (7.0b or 7.0U1) - 16321839 and lower will not boot UEFI cleanly.=20 3) Create a guest with the following properties: - Hardware Version 17 (must be 17; 16 and below will not boot UEFI) - Any number of CPUs - At least 1GB of RAM; 512MB didn't behave consistently - Any disk configuration - 1 or more VMXnet3 adapter - Boot Options must be EFI, Secure Boot disabled - Do NOT disable acceleration or enable debug under advanced 4) Install FreeBSD 12.1-RELEASE amd64 from ISO. Don't make any adjustments, just leave everything defaults. open-vm-tools-nox11 is optional but recomme= nded for snapshots. 5) Confirm reboot. Update to 12.1-p10, confirm reboot. SNAPSHOT HERE! 6) Perform `freebsd-update -r 12.2-RELEASE` and reboot 7) Guest will now crash as described including power off behavior. The snapshot in step 5 is critical. If you revert to this snapshot, the gue= st will go right back to working normally. Either a live or powered down snaps= hot, doesn't matter. The base and snapshot are both clone and template safe as w= ell, for spinning up more VMs if needed. I forgot to note, this also reproduced using -CURRENT after the r366422 and r366588 commits. -CURRENT VMs do NOT appear recoverable with live snapshots though. You'll see the behavior through the initial branch of 12.2 until you hit r366691. Every step between 12.2 initial branch up to that commit will work just fine. After that commit, you will receive the EFI frame buffer loading message and then an immediate console disconnect (within probably 500ms. It= 's fast.) The only event you will get is a guest error, "The firmware encountered an unexpected exception. The virtual machine cannot boot. An error message lis= ting a collection of observations has been reported by the virtual machine". Whi= ch indicates that the kernel reported an EFI error upward. --=20 You are receiving this mail because: You are the assignee for the bug.=