From nobody Wed Mar 16 04:53:27 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 5C6861A2C7BF for ; Wed, 16 Mar 2022 04:53:28 +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 4KJHwR69cBz4SGL for ; Wed, 16 Mar 2022 04:53:27 +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 7C4DF1013C for ; Wed, 16 Mar 2022 04:53:27 +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 22G4rRhB054563 for ; Wed, 16 Mar 2022 04:53:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22G4rRC8054562 for virtualization@FreeBSD.org; Wed, 16 Mar 2022 04:53:27 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: Wed, 16 Mar 2022 04:53:27 +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=1647406407; 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=kkOfrTWCBfHOT1regsxUO5/PH3fzrB1PH/f2oqlTCUc=; b=aEHdAxbAYPhE8HhoS2dLWG6YSS8Bj7YWli6foylpSTrYiDOyAu3UsC11N0+t07Uc0M0uHb i45f7rwphGoKtL+te68le1OHrc+Jp7ODAxJu45sKh1JcJR4M+OdnEWNSO4qlYlU+fFk/kx obft2GPRpgiq4vs11GlQhRUG0EH8Y8lrmUxnAxGo6Vby3+rntdQUdRAETCSPY11jIyiUzl 2HRoDNYLvdBm7WjZYc9OizB9hWW4tIBDlhxtOrwbIjmuIcZshg6gH9dLmHCqts/wla/Y5Y Tj1qOI4pi2GaGAvA76dHk4uSLrh8TaVW5sUJMr9CgKexkVri8LEKtzfJDuKGjg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647406407; a=rsa-sha256; cv=none; b=JL2jGzQB84rkd9Djscl4n3FdBqFUwf9SI//JnWVuFFFTADWYnpBLiDgw/xffFMLX3nnkQm GxyH22mhH12n3ODg8cenLUOKsj+H4pbUv41JJvtTdLhoMPbDRaHmYZ0YehyhYoS1xWfiQP oXRzpwQU5DUAkdOHStqVkpS6qT5l9p6I2Z9BJZpxWcvtqsN4Tp+OEvSf1Xix9ODFcnHbRB 8yyFK3y/XgR3Adqi58wTG2p7DpSd8NnNWyedv9DylfJNBLUD3L0bQs2FMnFl/zu31tTERV Sdi4yLe7HrFwlx1cho9eJyihsstKDmMZtkF/YTdXa/DeLqOr7UYtTSDyfafNzg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253175 --- Comment #37 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dadbf7727b3a2aad3c2faa6e543ee7fa7a= 6c9a3d5 commit adbf7727b3a2aad3c2faa6e543ee7fa7a6c9a3d5 Author: Eugene Grosbein AuthorDate: 2022-03-16 04:41:51 +0000 Commit: Eugene Grosbein CommitDate: 2022-03-16 04:41:51 +0000 virtio_random(8): avoid deadlock at shutdown time 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 MFC after: 3 days 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.=