From nobody Mon May 09 21:10:13 2022 X-Original-To: dev-commits-src-all@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 D76231AC0DBE; Mon, 9 May 2022 21:10:13 +0000 (UTC) (envelope-from git@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 4Kxv2Y3lj6z4v9h; Mon, 9 May 2022 21:10:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652130613; 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=s5zn2MMw724ims7N0jbCkWQiKPN4PyF+fjH9wRz3GwU=; b=JYQxc/foiWkW9HN+VHKipXnCx2FSsr4hQXxKo5PU/4SqATD0WCylvrv9LH2k0/mhfTIIbj QHUP2w4z1FwNXkhj5d9aE/Y07vQcFP1M8fWdHWdxzjzXW3Z7XqfFXh4ns3qN8nDsTig5pf JwAngJQxHbKchJxClS/F1gTgY+vyFFqC2zy3xtt//4dPROXpThBnYQfQjbxyUjkPLNhWHW ltsGLG+R8JlE1ezatwf3PDHMxMVcWGoJ0JgtafqL8UDwJCuHdTwdaYreMYMoyqyd5DyemM zCEbVudjk4MwF7S7InmD3hp3/eLHQVVPES/cWH02PaB3XcfYhtPwjHQ6pHRg3g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 3A0BF18249; Mon, 9 May 2022 21:10:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 249LAD0d028787; Mon, 9 May 2022 21:10:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 249LADLM028782; Mon, 9 May 2022 21:10:13 GMT (envelope-from git) Date: Mon, 9 May 2022 21:10:13 GMT Message-Id: <202205092110.249LADLM028782@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: ca7c2d2eedf6 - main - UFS: clear fs_fmod once more, in the buffer data copy. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ca7c2d2eedf690ae0c780451f53d9ce36bb2c337 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652130613; 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=s5zn2MMw724ims7N0jbCkWQiKPN4PyF+fjH9wRz3GwU=; b=Zfjyjf5/bGga30Jmf+8ydoknT22Wqw2z5j+txzpKZpWS+nCrfYxjza8+ABOA6UT1KPwu3C wrxBSxVuqhrPMoFkkLrq7rBf8UeUe+k0XU/a6GnPAlmW35aSws9WqfqatLTzFroGtV/CMr CAMK5u1CrP0lRFgoGvEB/NYoMmu31Dr3aXZKcJqh7wc1JUnssOMg5RVB+qgkIgQMgmn+62 LRdQYUEMjEWRtbxX7jQwofS3ldvjRWYmZXYtPeWtr5s04h4k9R7WQEmW671COIUQkYxJxK Cq0fQ2simjQaoQiDHA3TCKiFt2wXKIEN1dJ4ZZRjewU1bNFOOUgv888kj2O2wg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652130613; a=rsa-sha256; cv=none; b=eWIGahWUuXx15PCMofP5/BAYHkj2GmGlRBIp+fQpG3c2Gxzsvtj6GF9BmHxYIbQtbBe12j JFibPyhenAfwfrfbGk7W0UjRpnq+9/rZaCR/NeEy5ghOA3m+rBAZPZejpcHucpOKiXwTB0 8QztRI4kgw93zsbUBgBBkXOUJ70Mqo1VZZ9zoo8qbepEgTjvkKJVgln3H7whCOJZ4DMPEj ZlLbrvzZxUEdOEbK8z0A7bBg6alXtJJAuHhc9wGwc71QAbNhTbsKYexh+pgAz1Ur/ztzwF YIffw7/XSV/2CSOUaEQaHLkW46TsW4HN9BLoTfllu3wmQaBfyqIM25JpCotyqQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=ca7c2d2eedf690ae0c780451f53d9ce36bb2c337 commit ca7c2d2eedf690ae0c780451f53d9ce36bb2c337 Author: Konstantin Belousov AuthorDate: 2022-05-09 20:46:05 +0000 Commit: Konstantin Belousov CommitDate: 2022-05-09 20:46:05 +0000 UFS: clear fs_fmod once more, in the buffer data copy. This is needed for in-kernel copy of the code, where allocation might happen after fs_fmod is cleared in ffs_sbput() but before the write. Reported by: markj Reviewed by: chs, markj PR: 263765 Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D35149 --- sys/ufs/ffs/ffs_vfsops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index 07ae69b1b798..0dc5753e0172 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -2251,6 +2251,7 @@ ffs_use_bwrite(void *devfd, off_t loc, void *buf, int size) bcopy((caddr_t)fs, bp->b_data, (u_int)fs->fs_sbsize); UFS_UNLOCK(ump); fs = (struct fs *)bp->b_data; + fs->fs_fmod = 0; ffs_oldfscompat_write(fs, ump); fs->fs_si = NULL; /* Recalculate the superblock hash */