Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp211075rdh; Sat, 23 Sep 2023 07:25:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHYKLWe/QZXNDxU/nJ7QMI354BS6un8Hfo93oIGk5HYwSB+uQyfChaVSwYcDDyvxpJd4YCV X-Received: by 2002:a05:6808:2a49:b0:3ad:fb3a:4b6 with SMTP id fa9-20020a0568082a4900b003adfb3a04b6mr2620952oib.41.1695479149034; Sat, 23 Sep 2023 07:25:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695479148; cv=none; d=google.com; s=arc-20160816; b=g0OadGjDkcPofH3FSJxG28q6v86Ql1JlZ/VS/g/1O2Fw3AKisPTo83dXKeFZh22dGi afJKQaDckW52CfT5Xe/ykbiyEc2fYKdycSIbh1HGS0H6BIFJBXMb9ixEabHwIYvjxEoi 1IIFskYUyqReixMDiVFF3AH5Xci/B3CwmbMFdeArTMDnPGd39Ahk4cBAf/Q8iNwBj/gx RfTS8gkb1jj8EU5vFt02SMJxLcnYrXl7lhYx8IDIQCeMrKy5oi9cPKuW8C2VypscgSsx A7KzUeTTFgqByFLhhQGaCjxA/BAbRLY2yczJHkC0kNR2R4xhnphnLvoAqjMG+4sQ1Eic Et/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=vpZsOS03aAKQZkOqSWH4EjIkbO0+M63ypG5RcznWiS8=; fh=WJPLooA3nFB1mq05kHiCp0yRVzXUNxPdKFmTH/HxCFE=; b=wKA7o9rwvXgMuhVA6k0/hMoRNp9cXXbsUX9uuEO7fjNpsN5hqy7hFUrokguCwRVDNX OpzNi6HAgdmylk0Holu1tUUhDJSH50ycQsqz35+W8my7W+2KALKojD2//fianYrPKRRj GrQEQAodg0K4EXtL5gvdMWL4xLDDkRiK0ZkZ+Mfg8CSLXJTP0YUwe3/brDqqyYGz20QT jdnTb+mYakqrW6la2vpk+RcOS1jsr4olPTBSRoJHc0xEHEDiooq1J8wVCmrHIagHrpL7 cEWtme7+yc6wb4cBGMx1B3FzHYztW13rucn+D7I+iok7Sn/jkvIsGmIRF8x229P37hIV 5cvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mDBsrhiQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id j2-20020a63e742000000b00565df122f43si5784601pgk.202.2023.09.23.07.25.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 07:25:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mDBsrhiQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id C49AC8145565; Sat, 23 Sep 2023 02:33:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231485AbjIWJct (ORCPT + 99 others); Sat, 23 Sep 2023 05:32:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231346AbjIWJcn (ORCPT ); Sat, 23 Sep 2023 05:32:43 -0400 Received: from mail-vs1-xe2a.google.com (mail-vs1-xe2a.google.com [IPv6:2607:f8b0:4864:20::e2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BD33CD7; Sat, 23 Sep 2023 02:32:25 -0700 (PDT) Received: by mail-vs1-xe2a.google.com with SMTP id ada2fe7eead31-452527dded1so1404978137.0; Sat, 23 Sep 2023 02:32:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695461544; x=1696066344; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vpZsOS03aAKQZkOqSWH4EjIkbO0+M63ypG5RcznWiS8=; b=mDBsrhiQHdn3omVLmLFot59/xqXCTnR6v2AzdDasaVJXoJeuMEL1lVdnvLpAZsr1OM 3V67FowEPQMRuEGAXASgOvBPyHgc5EZryI94W/+Aco2FpHlEXE4WcNWK3khZ3hq7Eqqh 5Xmc+2xLJgplXrUZzUEFjmLtkVxcpr5D2u0UzvS7J2nr37D3uHjhj5TpRcVpmMBPGoyt Edh924j+Gc98nOksf22eVtq+s0kxeirxRXeo4MCN4uPvAKIY1r/N/cjh2rW6UMA9QUjx VYNO9VxvO771oF1RzjKQ0UqwtqeAP/HJEIUW72yJsZSqlDhzDkldwVuxHdB9vHTJRQ8f wA+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695461544; x=1696066344; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vpZsOS03aAKQZkOqSWH4EjIkbO0+M63ypG5RcznWiS8=; b=Kyr0dQ9QQ1e6r9VWTkeOHdidrs0MmbBRu3B5Cs7x+ZzP/0p2BcuaCmf3fbqWYqlZ2N oYCjK6Oj8v3SPIn11TDOpfLiKmEfTx2o5+0HN8w2wz9sIIej3R/uFy/leLVzKLqCIv8Q nZmPgive5yJ461kHUDhXO3WUVmk433sLhGWlj+58VV3/z+cFomoFtKEQMXg6PtpO7xNp dgsRtcIX3Y3NfOutwyqroEyI0oQExyDkmT/3kkzB0Hz4GtaruTAoZpJ46It8oAlE0ucJ IJ3RAEhKbbN/YMtczeLa7p4GyhKIN9Ej72PD/fCwYe/bNLhV6BUcvIvvB/zzLPFKUhGv nk5A== X-Gm-Message-State: AOJu0YwR10oYGksRgZJhUN6u4vysD7Hk1BfxvU/LJDTx4CkHGGI7Up/k YJEELA2FM17kIYDo3nOGgXrgyAFyggagz8byapG3+qSX X-Received: by 2002:a67:fc48:0:b0:44d:5053:11ce with SMTP id p8-20020a67fc48000000b0044d505311cemr1200255vsq.19.1695461544481; Sat, 23 Sep 2023 02:32:24 -0700 (PDT) MIME-Version: 1.0 References: <20230913-ctime-v1-1-c6bc509cbc27@kernel.org> <20230914-hautarzt-bangen-f9ed9a2a3152@brauner> In-Reply-To: From: Amir Goldstein Date: Sat, 23 Sep 2023 12:32:13 +0300 Message-ID: Subject: Re: [PATCH] overlayfs: set ctime when setting mtime and atime To: Jeff Layton Cc: Christian Brauner , linux-fsdevel@vger.kernel.org, linux-unionfs@vger.kernel.org, linux-kernel@vger.kernel.org, Miklos Szeredi , Nathan Chancellor , Alexander Viro Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sat, 23 Sep 2023 02:33:16 -0700 (PDT) X-Spam-Level: ** On Fri, Sep 22, 2023 at 4:52=E2=80=AFPM Jeff Layton wr= ote: > > On Thu, 2023-09-14 at 10:39 +0200, Christian Brauner wrote: > > On Wed, 13 Sep 2023 09:33:12 -0400, Jeff Layton wrote: > > > Nathan reported that he was seeing the new warning in > > > setattr_copy_mgtime pop when starting podman containers. Overlayfs is > > > trying to set the atime and mtime via notify_change without also > > > setting the ctime. > > > > > > POSIX states that when the atime and mtime are updated via utimes() t= hat > > > we must also update the ctime to the current time. The situation with > > > overlayfs copy-up is analogies, so add ATTR_CTIME to the bitmask. > > > notify_change will fill in the value. > > > > > > [...] > > > > Applied to the vfs.ctime branch of the vfs/vfs.git tree. > > Patches in the vfs.ctime branch should appear in linux-next soon. > > > > Please report any outstanding bugs that were missed during review in a > > new review to the original patch series allowing us to drop it. > > > > It's encouraged to provide Acked-bys and Reviewed-bys even though the > > patch has now been applied. If possible patch trailers will be updated. > > > > Note that commit hashes shown below are subject to change due to rebase= , > > trailer updates or similar. If in doubt, please check the listed branch= . > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git > > branch: vfs.ctime > > > > [1/1] overlayfs: set ctime when setting mtime and atime > > https://git.kernel.org/vfs/vfs/c/f8edd3368615 > > Christian, are you still planning to pick up this patch? I saw that it > was dropped from linux-next. Since the mgtime patches have been reverted > for now, it may be best for this to go in via the overlayfs tree ? I think this is a long standing overlayfs bug fix, so it should go into 6.6 and not wait for 6.7 anyway. Also need to add CC stable (don't think we need to bother with Fixes). I do not have any overlayfs fixes queued ATM. Christian, if you have any pening VFS fixes, you may send it along with the= m or we could just ask Linus to apply this one directly, so that any mgtime changes that may still happen for 6.7 will already have this fluke fixed. Thanks, Amir.