From nobody Tue May 17 07:24:52 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 17AD81AD8BC4 for ; Tue, 17 May 2022 07:24:53 +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 4L2SLX5P5Xz3vWB for ; Tue, 17 May 2022 07:24:52 +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 9546510A79 for ; Tue, 17 May 2022 07:24:52 +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 24H7Oqal018994 for ; Tue, 17 May 2022 07:24:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24H7OqAR018993 for virtualization@FreeBSD.org; Tue, 17 May 2022 07:24:52 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 264038] bhyve panic possibly on bhyve/uart_emul.c, line 290 Date: Tue, 17 May 2022 07:24:52 +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: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: editor@callfortesting.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 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=1652772292; 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=n7bDtqtwWjswqJOxzSaCZ2YzzcQN8KPpZ5zJzw1iViw=; b=Kx1Xz3E1efdiVA/FbQ8Z2YCpxOe6qZHY6/qlQNeJk/oZfnmXMNGYM4y2cpV06engvXyU8H 2JmwU/fHQjI58QWUGXo6mgq71w3boSJElNMOKWYDnlT6dK6aukIBye/JCcCdfwP5vHiT55 YHjDaP2dbihk8WIvweSF2OtIdADE5KYgwZ48f2cm+d5Ahh9GrHg1fcBRvpj++g97aPjpk8 A0MPEY55FN3tRO/msPZKRR21diIFZVit3us2WZ3GTalk7I7rwMczQ12fO1vvPuU1dm3gtv 7meJWDaCdJ87YODM6QCvxehmoEzQA++6pv8TewnYoHgGNSJ7VTeQ59eYvDWKPA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652772292; a=rsa-sha256; cv=none; b=aBF502q3xgFDDOACa5l/+raHE4rq3vmALFLWeUZkbvIZYOlQkh5OWm1Bi3K6URBHOGGVF5 qFBP8t+Mn1/JRf0odIkC7KXO11aOi6PYZiq+NVSCiE7QsXMZBvV6PLlixIlnyIuwdQ9qqg nLL8xENdDKVcM+VC3+5kOj3wzkZWHQLZqzs5EpNtyUHr8pA1EJWLYaG3DM78HSVZnYcbGq qe2Ou7kyUtV0pgyu2Exmg7BvMhLQfM5v1ozyVn9htvMZ04jKbUtBUgaTeGjuJ4Y6wbeFcs bi4T4f+NS3bsntKEMA5PLpB3HnNcgd9AVneit/uqscXVbhUlLCgoVih4ALdnSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264038 Bug ID: 264038 Summary: bhyve panic possibly on bhyve/uart_emul.c, line 290 Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bhyve Assignee: virtualization@FreeBSD.org Reporter: editor@callfortesting.org Testing on 14-CURRENT from 2011-04-21 but will try on 13.1. To induce: background the bhyve(8) process with an ampersand vmrun.sh with this modification will induce it: 371c371 < ${vmname} --- > ${vmname} & Some runs will produce a panic: Assertion failed: (sc->mev !=3D NULL), function uart_opentty, file /usr/src/usr.sbin/bhyve/uart_emul.c, line 290. Others will produce: Fatal trap 9: general protection fault while in kernel mode cpuid =3D 3; apic id =3D 03 instruction pointer =3D 0x20:0xffffffff810edf98 stack pointer =3D 0x28:0xfffffe0149bb9830 frame pointer =3D 0x28:0xfffffe0149bb9830 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D resume, IOPL =3D 0 current process =3D 1242 (bhyve) trap number =3D 9 panic: general protection fault cpuid =3D 3 time =3D 1652767842 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0149bb9= 650 vpanic() at vpanic+0x17f/frame 0xfffffe0149bb96a0 panic() at panic+0x43/frame 0xfffffe0149bb9700 trap_fatal() at trap_fatal+0x385/frame 0xfffffe0149bb9760 calltrap() at calltrap+0x8/frame 0xfffffe0149bb9760 --- trap 0x9, rip =3D 0xffffffff810edf98, rsp =3D 0xfffffe0149bb9830, rbp = =3D 0xfffffe0149bb9830 --- strlen() at strlen+0x28/frame 0xfffffe0149bb9830 kvprintf() at kvprintf+0xf6c/frame 0xfffffe0149bb9950 vsnprintf() at vsnprintf+0x2e/frame 0xfffffe0149bb9970 vpanic() at vpanic+0xde/frame 0xfffffe0149bb99c0 panic() at panic+0x43/frame 0xfffffe0149bb9a20 __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0x11d/frame 0xfffffe0149bb= 9a60 vatpic_set_irq_trigger() at vatpic_set_irq_trigger+0x5b/frame 0xfffffe0149bb9aa0 vmmdev_ioctl() at vmmdev_ioctl+0xea3/frame 0xfffffe0149bb9b40 devfs_ioctl() at devfs_ioctl+0xcd/frame 0xfffffe0149bb9b90 vn_ioctl() at vn_ioctl+0x131/frame 0xfffffe0149bb9ca0 devfs_ioctl_f() at devfs_ioctl_f+0x1e/frame 0xfffffe0149bb9cc0 kern_ioctl() at kern_ioctl+0x202/frame 0xfffffe0149bb9d30 sys_ioctl() at sys_ioctl+0x126/frame 0xfffffe0149bb9e00 amd64_syscall() at amd64_syscall+0x12e/frame 0xfffffe0149bb9f30 fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe0149bb9f30 --- syscall (54, FreeBSD ELF64, sys_ioctl), rip =3D 0x1eab7eb25b6a, rsp =3D 0x1eab76a9c9f8, rbp =3D 0x1eab76a9ca20 --- KDB: enter: panic [ thread pid 1242 tid 100292 ] Stopped at kdb_enter+0x32: movq $0,0x127cfe3(%rip) db> bt=20 Tracing pid 1242 tid 100292 td 0xfffffe01496f1560 kdb_enter() at kdb_enter+0x32/frame 0xfffffe0149bb9650 vpanic() at vpanic+0x1b0/frame 0xfffffe0149bb96a0 panic() at panic+0x43/frame 0xfffffe0149bb9700 trap_fatal() at trap_fatal+0x385/frame 0xfffffe0149bb9760 calltrap() at calltrap+0x8/frame 0xfffffe0149bb9760 --- trap 0x9, rip =3D 0xffffffff810edf98, rsp =3D 0xfffffe0149bb9830, rbp = =3D 0xfffffe0149bb9830 --- strlen() at strlen+0x28/frame 0xfffffe0149bb9830 kvprintf() at kvprintf+0xf6c/frame 0xfffffe0149bb9950 vsnprintf() at vsnprintf+0x2e/frame 0xfffffe0149bb9970 vpanic() at vpanic+0xde/frame 0xfffffe0149bb99c0 panic() at panic+0x43/frame 0xfffffe0149bb9a20 __mtx_lock_spin_flags() at __mtx_lock_spin_flags+0x11d/frame 0xfffffe0149bb= 9a60 vatpic_set_irq_trigger() at vatpic_set_irq_trigger+0x5b/frame 0xfffffe0149bb9aa0 vmmdev_ioctl() at vmmdev_ioctl+0xea3/frame 0xfffffe0149bb9b40 devfs_ioctl() at devfs_ioctl+0xcd/frame 0xfffffe0149bb9b90 vn_ioctl() at vn_ioctl+0x131/frame 0xfffffe0149bb9ca0 devfs_ioctl_f() at devfs_ioctl_f+0x1e/frame 0xfffffe0149bb9cc0 kern_ioctl() at kern_ioctl+0x202/frame 0xfffffe0149bb9d30 sys_ioctl() at sys_ioctl+0x126/frame 0xfffffe0149bb9e00 amd64_syscall() at amd64_syscall+0x12e/frame 0xfffffe0149bb9f30 fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe0149bb9f30 --- syscall (54, FreeBSD ELF64, sys_ioctl), rip =3D 0x1eab7eb25b6a, rsp =3D 0x1eab76a9c9f8, rbp =3D 0x1eab76a9ca20 --- --=20 You are receiving this mail because: You are the assignee for the bug.=