From nobody Sat Mar 19 12:38:47 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 CDA271A29728 for ; Sat, 19 Mar 2022 12:38:51 +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 4KLL63453Vz51lw for ; Sat, 19 Mar 2022 12:38:51 +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 604C012EF1 for ; Sat, 19 Mar 2022 12:38:51 +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 22JCcpg8088420 for ; Sat, 19 Mar 2022 12:38:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22JCcpQW088419 for virtualization@FreeBSD.org; Sat, 19 Mar 2022 12:38:51 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 12:38:47 +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: In Progress 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=1647693531; 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=iwJNM6vFhYlrnKQlYYIXtM7EeN+IyjQsCFzyVcTtHPM=; b=X6DcEqpbC2tqcyTsb3+kKtwE/+62Q2V4F4dF7+TwXnmN5LqnM22Tu3V8kA3vzgOosynAhy ikXCsmcs7ZZDxysTcGe0AdTx8kQRxiOZS/13IZHGq6Zn3SpWiVz8pgVn2fFHLJ7coQ01jb ScNlR47rmbW0LLoL9RMUR/dBUSQWDQhDJAcpEwQsVLOGmSLaolInRVhRjU6ZKr5IxLuJZC EYYWTAk0GA9YADsx2Tf9qkVt1ynWQ1MWo3yh3q7eHbvnYG9BQ3T0ufzHbgmtZA1HzgJ48c iP5dYv6Ue8jxuJlPviaMM/ApGNAS/UKjuNsrHdz6ewMAT1M8T55rxyFBuGh37Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647693531; a=rsa-sha256; cv=none; b=XBCUmvHCKYPx5rD/mhbJ2gEDGjDd1Amm3WQ5AQ+ojtKb+naVItFTmpkLWmo8ysa5HXt5e8 uS9cHct2h9AwfuioxICNYMKDNs68HyO6PO9vVjnIHU8BuMXEk5QfuIsehuxR3B0xVYRe5h 8tKGSBEh4mlDWriqRHwSSadZuo4PV7oTLwa/wvNWFFL9uBs4jZTO7cicKOshwVYKtjr7A+ 4YRC/JKN1cXPjelV2dfJIs7dNZ2KgA5KbxJZtASEpmIPTr6lvA8iYFEwtvtdJOqHnoRP7X N0VhFmrCQ0NG+Y3LW3xn0x5Bdc5SMIbQzHaNl72184TTb/68LTHl75/nedfESw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253175 --- Comment #40 from commit-hook@FreeBSD.org --- A commit in branch releng/13.1 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dfa67c45842bb5d34780a536b1bff1ac64= f381562 commit fa67c45842bb5d34780a536b1bff1ac64f381562 Author: Eugene Grosbein AuthorDate: 2022-03-16 04:41:51 +0000 Commit: Eugene Grosbein CommitDate: 2022-03-19 12:36:26 +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 Approved by: re (gjb) (cherry picked from commit adbf7727b3a2aad3c2faa6e543ee7fa7a6c9a3d5) (cherry picked from commit 4a11315a2c3fc55333772f48aaef32ae1eb11ceb) 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.=