From nobody Mon Jul 01 13:42:59 2024 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 4WCS0h6H94z5Njgt for ; Mon, 01 Jul 2024 13:43:00 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WCS0h3cvCz4ptv for ; Mon, 1 Jul 2024 13:43:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719841380; a=rsa-sha256; cv=none; b=GS8/h6jMUIfJPJE9GGM7BIgQj1Z/I8KRSsT46OsxKqGVIxC8170vN+5krC+qMQyTAuw6zg agMn2ip075VA50BUHJTnNKa4bn4rE/ecHjsAkOqlnc1/5cxwZPb7Al2iKXEja4VjdQ9/tE F1VuAiSjx/1NnAX3BWA6EI7bn+R6HIQS37FVepYE523cqe0f2+AOaoGOAjwAX90sglPfrS V5Jh16beGcymo4IByZYNQQbJKnJhOtdbs/8/blmttyi2TDe82fbAVx7RCeKQBhjbFtwL3l 2IRgYK09jLb0OMd1g8GlloY7ySeTB2XLmUDwF9vWlHpEneP9coKLfx9Z0+7YZw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719841380; 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: in-reply-to:in-reply-to:references:references; bh=jYfUwlhdoa5yD02V4fsjuyxa0z2TIP8HtaOvFhrVVZg=; b=NG36TW7v7GbQFhBIT5aBLMeMa6BePkcgoPo2OzOf5QRtpB1JFCJ8HGTJVJtvQgh0BSxMiF KtSxI56E3rECR/EROaOLzYghvGD6j99Ejq8ChJ7Pq6AeMq5cwUMyWLiaMfjsZ862PMUMe0 hKgNGBH5dYxvDttaMdPk+XYb/7Rn+keikNonbg+7/hxwjtvkgPuzpyxRW3OceN3GAdbowa wkWRrHiaRdmZGNq+d+3e+/u8W+doL4I1WbyBWQK5LL7rIp+glquZV8Z+cZkGfjkwltCY/S yC0fA7Ozbnklqg4vMTHnmfPX+N7sYA79pzj26iO2M/6zqgbRD+JMmovTk2J3IQ== 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 4WCS0h39nvz16ZY for ; Mon, 1 Jul 2024 13:43:00 +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 461Dh0K6022064 for ; Mon, 1 Jul 2024 13:43:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 461Dh0VR022063 for virtualization@FreeBSD.org; Mon, 1 Jul 2024 13:43:00 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 279738] Hyper-V: Kernel panic: acquiring blockable sleep lock with spinlock or critical section held Date: Mon, 01 Jul 2024 13:42:59 +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: CURRENT X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@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 List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279738 --- Comment #8 from commit-hook@FreeBSD.org --- A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dd56a912f2fb6fb26a00e950a26e420729= e6ef775 commit d56a912f2fb6fb26a00e950a26e420729e6ef775 Author: Wei Hu AuthorDate: 2024-06-15 14:07:58 +0000 Commit: Wei Hu CommitDate: 2024-07-01 13:33:08 +0000 Hyper-V: move memory alloc call for tlb hypercall out of smp_rendezvous The allocation call could result in sleep lock violation if it is in smp_rendezvous. Move it out. Also move the pcpu memory pointer to vmbus_pcpu_data since it is only used on Hyper-V. PR: 279738 Reported by: gbe Fixes: 2b887687edc25bb4553f0d8a1183f454a85d413d MFC after: 2 weeks Sponsored by: Microsoft (cherry picked from commit d0cb4674df97aa638d5d17861c364b1625f79401) sys/dev/hyperv/vmbus/hyperv_mmu.c | 6 +-- sys/dev/hyperv/vmbus/vmbus.c | 88 +++++++++++++++++++++++++++++------= ---- sys/dev/hyperv/vmbus/vmbus_var.h | 5 ++- 3 files changed, 71 insertions(+), 28 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=