From nobody Thu Dec 29 23:13:37 2022 X-Original-To: fs@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 4Njkhy6klZz1Lj7k for ; Thu, 29 Dec 2022 23:13:38 +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 4Njkhy5XMjz40bR for ; Thu, 29 Dec 2022 23:13:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672355618; 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=7pTZHSjOjkH9wHiiGtq2KLNPNHG3oGAHSgKrKmQRoRk=; b=xg1Zn3mfNOmaPe/GsUtUwcMVa19U/RrEF4jSDkv5e7ZkuRinAd+9jtjvPxC5bS6sZS91lj AAoH0/EgeXqHI5aapdlb8R1V5VyPMpCZybyUIeA8G0tvKlC2Q5lA7A65hDOiHsINivq8gi e6amia9QuuiYKOTaIbcSwXl+G6ZIxog9KgyRlySA8ikvlRmCbd9rGa+opkJZJhfBZu9YSZ RVEakY+pmwNSbfyOXAuUKtz0On4SUxzPwUcgHjtO2F/2zzkq3tQ8dMtYvLh/fZd+o62VRo aSYK71JYQVZ6RTREz513MY9bmH/MZih96Lbh5uBGwKXpcg99XyH3AZjnYaJ3Vg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672355618; a=rsa-sha256; cv=none; b=AJCj3CNwBqX8TRo2m8C2P0xvWqzUCP33NqrNMg15p8FNK3rmVdVdMfi/Wb3Q92SdCzio7A GtG7aBVRapghfstP2GNp9eg8FMER+JobyqUDlQnHAzU5NJN5aTqryj6GjwxgI3HTnMoP6K dNRyrQYY87+5OpIj7U3NTB8Byj3e2ap6CkqsgQH0RVWPcbELSRK5TOqmsnWDbB2UbQrfWl KGRZ953XTcgKdOOpYDQTJQ+9MBWQpGm/1DcbQW2omtMzPjK+jkpyhAKBk9weTVbnl5NkTq VqwGnCk0mfJ7EODhSbSwPIyEn0n4ODz03xxO3LBCOGuZJIgN2pNBjAJATKuzlQ== 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 4Njkhy44lzzlkp for ; Thu, 29 Dec 2022 23:13:38 +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 2BTNDc1U010097 for ; Thu, 29 Dec 2022 23:13:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BTNDc2H010096 for fs@FreeBSD.org; Thu, 29 Dec 2022 23:13:38 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: fs@FreeBSD.org Subject: [Bug 267628] growfs deadlocks if output is redirected to the filesystem being grown Date: Thu, 29 Dec 2022 23:13:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: mckusick@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status 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: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267628 Kirk McKusick changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |In Progress --- Comment #6 from Kirk McKusick --- (In reply to cgull from comment #5) I am happy to review your proposed changes. Kostik's changes are needed in = any event as the kernel must protect against the deadlock and not just depend o= n a utility to do so. However having the utility avoid the problem and give a m= ore specific error message is still good to have. Also the reordering to narrow= the window of vulnerability to filesystem corruption is much appreciated. --=20 You are receiving this mail because: You are the assignee for the bug.=