From nobody Tue Nov 8 00:00:47 2022 X-Original-To: bugs@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 4N5pCN018Zz4gmLX for ; Tue, 8 Nov 2022 00:00:48 +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 4N5pCM3nPZz3F8T for ; Tue, 8 Nov 2022 00:00:47 +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 4N5pCM2rm9zKq6 for ; Tue, 8 Nov 2022 00:00: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 2A800lPf006573 for ; Tue, 8 Nov 2022 00:00:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2A800l74006572 for bugs@FreeBSD.org; Tue, 8 Nov 2022 00:00:47 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 267630] if growfs is hung at system shutdown, disk sync hangs and system never halts/reboots Date: Tue, 08 Nov 2022 00:00:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: cgull@glup.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667865647; 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; bh=iHU88qNmrckDAj88mSRRNJd8K2j6a2DB0PMSMa1UMRc=; b=Rg8DgEeKZxF3M/9iG5KmD/AwoaTRpI6T1hsO0w0m0QuulUjZm8luBzQSjMYVxx0A6PSao1 +P5lLdiiiTAfgOAefrKTi7TrYBFq1m9WrnQ/0pBQU2hgRhUfCWel1sFdC8zVE69JDgxutk gn6sc0F7GyOplh6McTkZ3IQwbqne1LV31XtiV6b8rPtdIlFtQhBCC7PpDRpHdvRvpBnRDV 7Fd6FUpZ/9Iuic3DvAaK3osYp9+JVGRyaObklc+r8ucINxwt7Y/PL0b1LCYtNShhW7wxaX 41cGGSZgGfIAs7oxHPXxlMihnapGv5FHVn7i0cVTSX4gNxK8kpoebf//DZD+YA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667865647; a=rsa-sha256; cv=none; b=GSA5cnUFMK7CIEhlDHk17bXyr62jxQQ186CZekwgW6Aj3o7O/mDzhzVFf0+4g9jQOm9NJ4 zozqG+QznT+Xtigc7PC+DQ79DCVIMRWLAhVb/9t+EXUF6lpkOBgsd5Vn0bvLcKyBTQsjP4 PGHyRJnoFxAXUb/yjhvv37IozlhQRhn9UrA0oeGmLpBZEVZuZuVvNgvS/M/wb+L5TVwpJK 2z6Oke7CFRTfLgaG96uY0tu9c0VfRms6Ydu/3BwtJYbt+AtPUEvJAA67iSFzc/I1TVujAJ BySishX/8fYRrddUQCQ5nG5kVpSxeLb7JdV8q/7oQUd/Qk2l5ZneGFbayQ7ovA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267630 Bug ID: 267630 Summary: if growfs is hung at system shutdown, disk sync hangs and system never halts/reboots Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: cgull@glup.org In bug 276628, I report an issue with growfs that can cause it to uninterruptibly deadlock. After growfs deadlocks, when the system is rebooted/shutdown, it hangs during disk sync, and never halts/reboots. I t= hink this is because growfs is in disk wait, and cannot be killed, and the UFS ufssuspend state blocks UFS from completing any pending writes. The reproduction is easy: mdconfig -s 20m gpart create -s gpt md0 gpart add -t freebsd-ufs -s 10m -i 1 md0 newfs md0p1 mount /dev/md0p1 /mnt gpart resize -i 1 md0 growfs -y md0p1 > /mnt/growfs.log then, via some other session, halt/reboot/shutdown. Reproduced in 13.1p2 and a -CURRENT snapshot dated Nov 3 07:57 with identif= ier 'main-n259005-5cc5c9254da'. See bug 276628 for more about the userland side of this problem. --=20 You are receiving this mail because: You are the assignee for the bug.=