From nobody Sat Jun 15 14:25:46 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 4W1djR4b6hz5Nt66 for ; Sat, 15 Jun 2024 14:25:47 +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 4W1djR2HZjz4KkY for ; Sat, 15 Jun 2024 14:25:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718461547; a=rsa-sha256; cv=none; b=iyf8rv3Hq+ngY+GV/+ucp4IbRPwB9LZEx1WK7GhSvYoIxaGXjgz8xsebdfWaeFZhbgKBUH bFUaBb1IPtTCibyHDP3JmZ8MotQoyaDf5+Zck5K7VGmp78ggTf1u8sqm7lHLQp6AdxpkMz Sk7rN3FJeUFvtT9cUB/OMehe/RSVMXt1fbVZYYeA81UU/xHsXe9iazhbxOBNHg8H8yHcVm +zTuRDshH7NDRJbeFyxz+jpk57ttmVs+wuW/1sZhVDmdetxrZGMQbFXUn3wm+gHz0INkvH HdZ/X9egXgtUw1odTY9CFrqJnUM38oGXqT8jWya9cqWlWGyGDXH8AOv+TwFeEA== 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=1718461547; 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=H/B9q2ILZ13uQW07aMF1ZdTqchWPA8PncmJANdSIG0o=; b=yebw25fnMZD2CFzSHrk1Sixz6AVE7OAoPqef4kAWt9tloKmQ59QTiIRSWxeJyf0ygwt6qi xzIGFr2gs+w0anmfhV80UuWdv6TF3g9tv7AC/epHGzcPqJwoEb0eeSOs1vzieJu6gPhS3r 9NVs4icnM1wX3LtFT0BQRxckEU2b6Y31WSeb2E96L8SOG4VCyOZFvdmZ59Mgxs5vIXNEeg a6wxb1TRFsa1Q102QSvNg54YsMQMl46wN0MyYvj0XCzaqNf3g9Gou6M1VSNfxhTzGxhMo2 14KjpX+weNwQfPy/lENd/BhYnl73nHSBLWrqUENjsqQHnVrUMr3CfXRzdbLX7Q== 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 4W1djR1CWPz16l4 for ; Sat, 15 Jun 2024 14:25:47 +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 45FEPlKp095841 for ; Sat, 15 Jun 2024 14:25:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 45FEPloH095840 for virtualization@FreeBSD.org; Sat, 15 Jun 2024 14:25:47 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: Sat, 15 Jun 2024 14:25:46 +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: Open X-Bugzilla-Resolution: 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 #6 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dd0cb4674df97aa638d5d17861c364b162= 5f79401 commit d0cb4674df97aa638d5d17861c364b1625f79401 Author: Wei Hu AuthorDate: 2024-06-15 14:07:58 +0000 Commit: Wei Hu CommitDate: 2024-06-15 14:07:58 +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 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.=