From nobody Sat Mar 19 04:23:24 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 145181A15252 for ; Sat, 19 Mar 2022 04:23:30 +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 4KL76S6bQSz4kjT for ; Sat, 19 Mar 2022 04:23:28 +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 9F05D498E for ; Sat, 19 Mar 2022 04:23:28 +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 22J4NSPQ005780 for ; Sat, 19 Mar 2022 04:23:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22J4NStI005779 for virtualization@FreeBSD.org; Sat, 19 Mar 2022 04:23:28 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 253175] virtio_random(4): Hangs after shutdown, reboot, halt commands on Vultr / Hetzner / ARP Networks (Qemu) Date: Sat, 19 Mar 2022 04:23:24 +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: 13.0-RELEASE X-Bugzilla-Keywords: needs-patch, performance, regression 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: maintainer-feedback? maintainer-feedback? mfc-stable13? mfc-stable12- 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: 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=1647663809; 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=94ECFPELA8D3vrBG69eKgH0M8zMct5JjYzIHykKB5FM=; b=vLK/WTJ3R3TBGRHZYnPU0+geT1HdXikea8VEhOes27p0pd9mWUHWbRcA8/++VKUZQZweGm qWTadLTmd3wvQUWzkIVrH8XJxfpA4fqeRYnB+xNb34/tPX+oegIHpUn4DDRRI5Bj/FbQ3W 8rIWL79U3qnhku2PQe1XfGgYpg6IjOfYI3nh3aPKMYxoVn0KwBnAS7JmTGzd+1pSYfe7Mt bWL58vwLyoB9GMVCzkbWPQ3NZlCWWfLkfATX3QyD+fu/mqxCNATha8EqZHXjc9oFdHv9DF bh+2h9Hotyv01eiyVoCetAWjurSp+uodsPiBanIgCRdL654j7d6SEt3FjG8MuA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647663809; a=rsa-sha256; cv=none; b=a24zS0Rerj1SdqrdGaOelXta6IEsTByRBjb4tEzvr0Swxtzq3iVUR7pmj/dZnduEkCqoYS w1BJiOl6kEfVJzjTF+Txr94soHv+qR6s+DNUqOyjeQrrC+9xKg6/izh/FjN/k4h0mgfFal wWA2Oau2PsJ2tFahhB6o2vF0LNBja+eTPW3/41zD0P/N8QvNyC2OTg2Mpdx6JCI5hukaCj DV3fQ3w90T9X/zJ63wEKHxX4PmsuwkaZ/eIFhvq8GNXKRakdZ7+Ur1uaKg/C2DuKFK07IA UyO1Ecw+A2ZdR7+c0sRH1rHWebriSwWzw2wj0OazasfynTRVp3NcWA+MO87jww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253175 --- Comment #39 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D4a11315a2c3fc55333772f48aaef32ae1= eb11ceb commit 4a11315a2c3fc55333772f48aaef32ae1eb11ceb Author: Eugene Grosbein AuthorDate: 2022-03-16 04:41:51 +0000 Commit: Eugene Grosbein CommitDate: 2022-03-19 04:20:58 +0000 virtio_random(8): MFC: avoid deadlock at shutdown time (regression fix) FreeBSD 13+ running as virtual guest may load virtio_random(8) driver by means of devd(8) unless the driver is blacklisted or disabled via device.hints(5). Currently, the driver may prevent the system from rebooting or shutting down correctly. This change deactivates virtio_random at very late stage during system shutdown sequence to avoid deadlock that results in kernel hang. PR: 253175 Tested by: tom Relnotes: yes (cherry picked from commit adbf7727b3a2aad3c2faa6e543ee7fa7a6c9a3d5) sys/dev/virtio/random/virtio_random.c | 35 +++++++++++++++++++++++++++++++= ++++ 1 file changed, 35 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=