From nobody Tue Mar 15 16:34:12 2022 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 B84171A2B20C for ; Tue, 15 Mar 2022 16:34:12 +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 4KHzWS3Dk3z4r4N for ; Tue, 15 Mar 2022 16:34:12 +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 502C524EDD for ; Tue, 15 Mar 2022 16:34:12 +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 22FGYCht044839 for ; Tue, 15 Mar 2022 16:34:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22FGYCZj044838 for bugs@FreeBSD.org; Tue, 15 Mar 2022 16:34:12 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 262573] PKU CPU instruction causing kernel panics when FreeBSD Guest OS, using Zen 3 host processor and QEMU hypervisor. Date: Tue, 15 Mar 2022 16:34:12 +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: 12.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: chrysalis@chrysalisnet.org 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647362052; 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=2SVK/SOFM/dyjICNdB4YRaQmwzC2ISHbJJIRDVNh9LY=; b=cP55BR9nySR6nXfQmdHXotqgTD/nob/UOy5QYTw/d82oVCqY0bG5WyXcr0zkH+VjnS+lem ygS11dqZJ40OxbiYEVPUwhy01LuUW7ztOfVkVsB1qwfIZewvpdlZrlOG5D1jFldUD5ybCl w26bZxj2KqKRZV/jtu5kBsV90VpPxouJeiWVOamdrOOhpFADpVdkh9ouHiqxqY36bteMxU LM5FTIy0+Nwl8hGPWlVw3eV3t4eFoejLtn99jApzWoM7Ss1lBq8+ZIsa4shyPL+/YAmpzy bFlyZbYY/g6/srsjoN7bN6+wHjkMWCYJpJEe0GMeWKvT60OR3WWmuxCbYKjoPQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647362052; a=rsa-sha256; cv=none; b=r8x74bXjKphCOktF2aoRzfw+5gCEeBhlCIyx4CgLZfYkJJTlwLRj3OAqxavhrdfspdlZtK 8AH/bKedb9P51/Jv8OXlt4IR3xL/1FXgAgGDJKEPBvlQfKkLrPUxV8X7WJY5Osdr4LJjVa Mt+VM2lKBr+ScT1kdb2kaDb65afo6COwDS9Erp8T24zHISPnCinm3Qkws1vBNCgQWdmY0k cf40z1UTL2QkOKM11wCV6YeG81lHxAvnA370IJ/08XBMgc8WEdaidSqg0ZRIC/FHr/EBtM vjwAwoFmnc5HEaATbN9GS4PsJY6L2ecUgZ3t+2b8Ej/W3LwWfnbKI0mU91caJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262573 Bug ID: 262573 Summary: PKU CPU instruction causing kernel panics when FreeBSD Guest OS, using Zen 3 host processor and QEMU hypervisor. Product: Base System Version: 12.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: chrysalis@chrysalisnet.org PKU is new in Zen3, I recently migrated a system from a 2600X CPU to a 5600G CPU. I then discovered in any guest machine running a variant of FreeBSD, it was very easy and repeatedly with certain binaries, and services to cause a ker= nel panic. I was able to nail it down to PKU by changing the cpu type to EPYC (which is close to Zen 1), and then manually adding Zen 3 instructions one at a time, this process eventually confirmed it was PKU. I have not yet tested FreeBSD 13 but plan to. When I test it, if it has the same problem I will post details of the actual panic and how to repeat. --=20 You are receiving this mail because: You are the assignee for the bug.=