From nobody Mon Oct 31 14:26:56 2022 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N1FpS5jG6z4gMK4 for ; Mon, 31 Oct 2022 14:26:56 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N1FpS3sf2z3PJn for ; Mon, 31 Oct 2022 14:26:56 +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 4N1FpS2pSQzf2j for ; Mon, 31 Oct 2022 14:26:56 +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 29VEQuXF061624 for ; Mon, 31 Oct 2022 14:26:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 29VEQu7M061623 for virtualization@FreeBSD.org; Mon, 31 Oct 2022 14:26:56 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: virtualization@FreeBSD.org Subject: [Bug 267468] resuming bhyve after ^Z panics kernel: vcpu already halted Date: Mon, 31 Oct 2022 14:26:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: bhyve, crash X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bz@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667226416; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4RRPDnVheY7l8T2kwz+8eaK7Xqpi7AmkKDgT1Iw2NYI=; b=ktc8bruQURn4z0ZU+/S/8uQNKWHf8lRXgM8yGZLeNo/OGwRgemGdE5T516LAfCEDXppx8w MPGTUIhJDvnhiMmQEaD3VctoggW4nvo1kHcmSUnaAuQoFHei29Y6oTvhuExbjSntJ4s5py +WPnTegvbPyn1Tf6R+xbltnQAbo8Zj5iBbXTadMpdOD5NSAREK6/2KdnO/39nwlm7YCsuQ bLBCB3sMhXUgWM8BBXOXS8cdjtG8wpRNCLU4heE3H2NeisttS4nP7LK+AwExowprI6ZOYL iEaQcW9k8eb1vmx+3LBRpuyywWDwnWSaq9JMib0DkJ/hvcAAmdDy/D4nMmApWQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667226416; a=rsa-sha256; cv=none; b=iIbesx8CE26pkokbyONT6hPyOj/wZfHIscvWll2x6EEX2kcc0caqHBVWsrX0DbO+CmKcyi GgWwTIwuhdqosBRymMSkF25RPTsz/6oncdqZhG2c71Ep8igw/2SQ1UyK3lPMk785IHGb3s O7z+EN6FrdklpiMF7Q6Z/7u9UOpfPDiJ+HTb2Zgx5GGpwndosabPds+FzYuLetpMd0UyGf s92WMHDj+qFEwxGLX3yMWXukGieYkevNfE4GN0K9aNsu+km4dhItdmrmWr23LeqZk7Bwu+ IADFde4TRPR5+dJkZzzXSC7KOTQmKF1igRuAxlI6C8Yb+sStYOWLiq00hV16lw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267468 Bug ID: 267468 Summary: resuming bhyve after ^Z panics kernel: vcpu already halted Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Keywords: bhyve, crash Severity: Affects Only Me Priority: --- Component: bhyve Assignee: virtualization@FreeBSD.org Reporter: bz@FreeBSD.org I had a bhyve instance suspended from shell job control (^Z) and on `fg` go= t a kernel panic. Unread portion of the kernel message buffer: panic: vcpu already halted cpuid =3D 11 time =3D 1667225968 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe011507f= 8f0 vpanic() at vpanic+0x151/frame 0xfffffe011507f940 panic() at panic+0x43/frame 0xfffffe011507f9a0 vm_run() at vm_run+0xc9a/frame 0xfffffe011507faa0 vmmdev_ioctl() at vmmdev_ioctl+0x507/frame 0xfffffe011507fb40 devfs_ioctl() at devfs_ioctl+0xcd/frame 0xfffffe011507fb90 vn_ioctl() at vn_ioctl+0x131/frame 0xfffffe011507fca0 devfs_ioctl_f() at devfs_ioctl_f+0x1e/frame 0xfffffe011507fcc0 kern_ioctl() at kern_ioctl+0x202/frame 0xfffffe011507fd30 sys_ioctl() at sys_ioctl+0x12a/frame 0xfffffe011507fe00 amd64_syscall() at amd64_syscall+0x12e/frame 0xfffffe011507ff30 fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe011507ff30 --- syscall (54, FreeBSD ELF64, sys_ioctl), rip =3D 0xd976740e25a, rsp =3D 0xd97f5ce5e58, rbp =3D 0xd97f5ce5f10 --- #13 0xffffffff80beb283 in panic ( fmt=3D0xffffffff81e8de70 "\006\264)\201\377\377\377\377") at /usr/home/bz/Sources/worktrees/test/sys/kern/kern_shutdown.c:903 #14 0xffffffff82557c9a in vm_handle_hlt (vm=3D0xfffffe00e04ee000, vcpuid=3D, intr_disabled=3D, retu=3D) at /usr/home/bz/Sources/worktrees/test/sys/amd64/vmm/vmm.c:1357 #15 vm_run (vm=3D0xfffffe00e04ee000, vmrun=3Dvmrun@entry=3D0xfffff8000ab25a= 00) at /usr/home/bz/Sources/worktrees/test/sys/amd64/vmm/vmm.c:1798 #16 0xffffffff8255a917 in vmmdev_ioctl (cdev=3D, cmd=3D, data=3D0xfffff8000ab25a00 "\001", fflag=3D, td=3D) at /usr/home/bz/Sources/worktrees/test/sys/amd64/vmm/vmm_dev.c:504 #17 0xffffffff80a7b25d in devfs_ioctl (ap=3D0xfffffe011507fba8) at /usr/home/bz/Sources/worktrees/test/sys/fs/devfs/devfs_vnops.c:933 #18 0xffffffff80cf56e1 in vn_ioctl (fp=3D0xfffff8000a4d6730, com=3D, data=3D0xfffff8000ab25a00, active_cred=3D0xfffff802d0ffb500, td=3D0x0) at /usr/home/bz/Sources/worktrees/test/sys/kern/vfs_vnops.c:1699 #19 0xffffffff80a7b90e in devfs_ioctl_f (fp=3D0xffffffff81e8de70 , com=3D0, data=3D0xffffffff81250ecd, cred=3D0x1, td=3D0x0) at /usr/home/bz/Sources/worktrees/test/sys/fs/devfs/devfs_vnops.c:864 #20 0xffffffff80c63502 in fo_ioctl (fp=3D0xfffff8000a4d6730, com=3D32306928= 65, data=3D0x1c200001, active_cred=3D0x1, td=3D) at /usr/home/bz/Sources/worktrees/test/sys/sys/file.h:365 #21 kern_ioctl (td=3Dtd@entry=3D0xfffffe0114b951e0, fd=3D, com=3Dcom@entry=3D3230692865, data=3D0x1c200001 , data@entry=3D0xfffff8000ab25a00 "\001") at /usr/home/bz/Sources/worktrees/test/sys/kern/sys_generic.c:803 #22 0xffffffff80c6324a in sys_ioctl (td=3D0xfffffe0114b951e0, uap=3D0xfffffe0114b955d8) at /usr/home/bz/Sources/worktrees/test/sys/kern/sys_generic.c:711 #23 0xffffffff810d13be in syscallenter (td=3D) at /usr/home/bz/Sources/worktrees/test/sys/amd64/amd64/../../kern/subr_syscall= .c:189 #24 amd64_syscall (td=3D0xfffffe0114b951e0, traced=3D0) at /usr/home/bz/Sources/worktrees/test/sys/amd64/amd64/trap.c:1200 #25 #26 0x00000d976740e25a in ?? () Backtrace stopped: Cannot access memory at address 0xd97f5ce5e58 Sources were from (around) Oct 17. Cannot say which head revision due to a local tree which has been integrated since. --=20 You are receiving this mail because: You are the assignee for the bug.=