From nobody Thu May 05 14:17:29 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 6C8911AC6933 for ; Thu, 5 May 2022 14:17: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 4KvG496sFLz3GFM for ; Thu, 5 May 2022 14:17:29 +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 BC43DE1C for ; Thu, 5 May 2022 14:17:29 +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 245EHTHX063148 for ; Thu, 5 May 2022 14:17:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 245EHTJU063147 for fs@FreeBSD.org; Thu, 5 May 2022 14:17:29 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 263765] panic: ffs_sync: modification on read-only filesystem Date: Thu, 05 May 2022 14:17:29 +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: CURRENT X-Bugzilla-Keywords: panic X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: 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: 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651760250; 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=22ZudSX1yZ5wkayETGABa+QWIyqyazpnWLpUZhPp7rw=; b=PqLriQkfEyBwFa6ExHVQMbAl8VKdXjfOHjEyY/vmmjZLWlZJHusMh9+rAAHBDEcE3aU615 eM4TizwKoIoO5oV9Ee8Zlhc95zbjWnqrzVykmU4BdZNvx+ALAQiuSfxt66vXvwDtapmB0Q 3XbjR3CTU0MJ47sS4Js8zWM0caLoEXkkk+0jEISrrixeciy0grbEU42rpdS9vY3GJZhqCo CCcak0tBBQ0pz4O2gtuYCOIOykgDohc8WSxTJph93P1ngtRmGE6E6v48iRA46nUv3tKt8O gmEu/q5FeMRrp1VZZ2ex5Whe3xO5Lw2Z9CjwXp5oYT1ZEQTE4dAoxO3IhyQNFQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651760250; a=rsa-sha256; cv=none; b=s1pZSaabmAQzCUvxVoAdOYnZTu/kXrWvK3hlQWL6O0G+CkU/eeR7gH5iS4LURJG18qNyYt aYo/Nxf47oGY0Hr7J1Nl4mZOM80I4QyLdWWDWEFk39L/B81vUSIC6MN/kuHX5LhBN78kbV PyvGKhkgcLUT707NTgdMbTNlpIS4PCJuGA3Bxkt+2OcRkSFnRzP4KdbtVQhue1r9ZIiP1k V5+xNGEvEoUFE8RwM/MTuSXSKQnAYUAOWBP6V9KoIPD71k/HAUJvGumZjYDYPxkR4NjQIP qaoU8Q5eqSgmU0ET5rvf6WFIIavLfCQP8W6OAGJ60QL7SZcqTjQaZh588uSIPQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263765 --- Comment #4 from Mark Johnston --- (In reply to Konstantin Belousov from comment #3) Hmm, above the definition of fs_fmod we even have "/* these fields are clea= red at mount time */", but this is not respected. You're right, there is no synchronization for the fs_fmod field changes. So this is probably not a new bug, but I'm surprised that I never saw it befor= e. > More important, I believe, UFS mount lock should be taken around bcopy() in ffs_use_bwrite(), although there is probably not too many volatile fields which can be corrupted, if any. Such corruptions would presumably be detected by the superblock check hash. (It would be nice if makefs supported enabling check hashes.) --=20 You are receiving this mail because: You are the assignee for the bug.=