From nobody Sat Jan 14 00:05:52 2023 X-Original-To: bugs@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 4Ntz8K2ftNz2r6H0 for ; Sat, 14 Jan 2023 00:05: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 4Ntz8J6y9cz3CJm for ; Sat, 14 Jan 2023 00:05:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673654753; 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=T1TpCkwzqAqTX+TkVz7q//UjvAh3p8LI/BvkjjOQ2tE=; b=eDkW/YSsxFDWhTLVyYNyb70lNlmmbmV+CHWvPBZQr7p79pP7g8j6jJAlR5n2J/bXHx8N// g+cjAgoxBVunlE6+q8HK6qqGc0GAWpW6OG+jhWLamJYYqQQzVLLsbpuPyl3Pqai/xgk+5M j4goL67xm9ZeSamvU/udAA9j2YpuOn40BiRAwMe34m7NobqPa1FqCMfvw/7RsO1nc4Or1T XrpP3p+xIdCdCxua5xLX1dtXRVZSrpZePWC80gkZxm1GToe76Y8u3XmNz81HQKMs5RuWd5 dFw+4suM7QYCTMfJUNc/tYnCCkz56vptO5rNlY6lylhxkei9jbjHy455Twnc5g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673654753; a=rsa-sha256; cv=none; b=YWZKWwzbfSybgeq/YwICFT+3FdaquChDASd25rQBkQBwGxpgzN+wu/In0CvsXrMfHCd/3m 3Y7+UEf10MKjUlFMN3eXQ0btrZC+VmJ6YyNxEKsVgyy7BmXk9YiZm6w2UeIbwzMN4iEBm3 J5KxRToEjG1A61PDDDTbji+7v6YKenyHVXUUR4Gx/U8gydUtXuZ54bZbS/1jmWoad2A341 bz0hV5YG5zj1iFwWnbE/C21fVwgUHzLVZMbpdCw4RGqolVTjAsDCeX3/Aimn3zBzE7w5L4 MrP82gDdC6ypRQzUxl3CiWOgE3iznOqgJUGdMCi0B/4olcGk++P8BizUofEmnA== 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 4Ntz8J5wS9zS1B for ; Sat, 14 Jan 2023 00:05: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 30E05qrU010467 for ; Sat, 14 Jan 2023 00:05:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 30E05q1s010466 for bugs@FreeBSD.org; Sat, 14 Jan 2023 00:05: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: bugs@FreeBSD.org Subject: [Bug 268943] virtualized kernel panics on process exit running under pmcstat Date: Sat, 14 Jan 2023 00:05:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jfc@mit.edu X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268943 Bug ID: 268943 Summary: virtualized kernel panics on process exit running under pmcstat Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: jfc@mit.edu Running a recent CURRENT under bhyve, pmcstat reliably causes a panic when = the monitored process exits. # pmcstat -p instructions ls > /dev/null 2> /tmp/2 panic: [amd,770] PMC0, CPU0 "K8-0" already stopped cpuid =3D 0 time =3D 1673651198 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00c326d= c20 vpanic() at vpanic+0x151/frame 0xfffffe00c326dc70 panic() at panic+0x43/frame 0xfffffe00c326dcd0 amd_stop_pmc() at amd_stop_pmc+0x12e/frame 0xfffffe00c326dcf0 pmc_process_exit() at pmc_process_exit+0x26d/frame 0xfffffe00c326dd80 exit1() at exit1+0x36e/frame 0xfffffe00c326ddf0 sys_exit() at sys_exit+0xd/frame 0xfffffe00c326de00 amd64_syscall() at amd64_syscall+0x12e/frame 0xfffffe00c326df30 fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe00c326df30 --- syscall (1, FreeBSD ELF64, exit), rip =3D 0x2ee9ac03458a, rsp =3D 0x2ee9a9c13488, rbp =3D 0x2ee9a9c134a0 --- System is CPU: AMD EPYC 7402P 24-Core Processor (2794.91-MHz K8-class = CPU) Origin=3D"AuthenticAMD" Id=3D0x830f10 Family=3D0x17 Model=3D0x31 Step= ping=3D0 and the VM has 8 cores. This does not happen on the 13.1-STABLE host or on a desktop class Zen CPU ("AMD Ryzen 5 PRO 2400GE") running CURRENT. I am splitting this off from bug 268897. I found it trying to reproduce th= at bug, but it looks different. --=20 You are receiving this mail because: You are the assignee for the bug.=