Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2028760rwd; Fri, 9 Jun 2023 05:52:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6PDbgvoHRDrjsHt7qe9PunlG+KWtKqgh8nHg90jwgdAVX3WYgMTh96f4Gyizj3iLm+80Qu X-Received: by 2002:a17:902:d508:b0:1ae:57d4:efbc with SMTP id b8-20020a170902d50800b001ae57d4efbcmr844139plg.13.1686315136249; Fri, 09 Jun 2023 05:52:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686315136; cv=none; d=google.com; s=arc-20160816; b=j/vH/fmAh9MruGpe76oRYG0mPyhyC7ou++t4T8UdgxxHH9guO7nxdys7562gKtMuDz hFiyLlZzhRGgY5kFddPbtEUBjHhlGkZToAfsyQsOY0dlKRL39V8gQyZczcsFO+U3HjM5 wuco3Ycl5emty6PUw8eFrQSPORKKQoHGM/WXma9AXXYsMzJVTnK6KwaGmZHFboYeAlz2 ESyiOxBFNa+LPqIe6SOPi6AqeQ+I3Jba5VKhNWAc5Dkrcx4kDv21RDA5mgR3y/xKdWGn ykkczNQAXXl7edyPbHufiiDFzG9Sq8TPemyTdRuSy2YssK3sV4jhkE6tIkWXEKbO1Hy6 67+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=4WwpAcKPZhDD1Sc+qAg6NOx7FNyFnlVXk8UKfxtfR2E=; b=vfO7ZjhplxDoYFVjoCgaR10srxE3U2tq5Inf13Ag8wDipqz8kL9HFxfufAGoJi69ra x+9M4tUZtG15Rs9dF+4BfJDON9H5AD/sdzuaGlfEvEwLu8rJpc6ey84irS2YFmE3s7sg OmwNb9vi4DqSZWXfKR8XCEVvbE/XiKQXYX91JsC5e1Xd+CjB3DhxKk/Z/1XAeFSGef4/ eF9GX0DfAvwYTRstIk6VpS24BLRSLWosl/xHdWj22Lz82ThQ4aKVbeAK5cRtB+gAEOFt 7A2AREesdsZ4ZlseRQhvfe64gIiQRpFQ5vGq42dd6tMnOXLL17SRE7gDsuxpq2u+hm6l SC3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dcwqOrVf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q14-20020a17090311ce00b0019f25dae4f5si2783874plh.198.2023.06.09.05.51.59; Fri, 09 Jun 2023 05:52:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dcwqOrVf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240249AbjFIMui (ORCPT + 99 others); Fri, 9 Jun 2023 08:50:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240758AbjFIMua (ORCPT ); Fri, 9 Jun 2023 08:50:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1446E272A; Fri, 9 Jun 2023 05:50:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A053B65489; Fri, 9 Jun 2023 12:50:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04CB9C433EF; Fri, 9 Jun 2023 12:50:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686315028; bh=gIZwlLvY4sTdkvZELuapNhoOFzzZExwAnWiPWsxbXHo=; h=From:To:Subject:Date:From; b=dcwqOrVfEIufAkx9HYctn0bCPuNyn/IoA3qeRLEf0QBZaM2ZxNK4fITHocjWjP+BS ArXA2HvHcNMCbQoCJLgk3YNktWjq5smDP0btfPqHdZkDkaNlMvMKacJZXz5oGbyybS Seh3kB1aYVkF1EaQIzj0KMYE2IM8/UE/RnW4K8gKxJc+5U/2OtM1xACvDi/T8P0Pdc Xkm13/IgUo3Vr5PsmuoEohjK9wBWC2RLrPIKKbIGloomJhioPPXWTe43kEqN5X837K nGxIOrekLqpwpPCILVczWkex/Sm2OoMe1QXBZj99WR32Ho0RhbyqroHBCWw41oCA3r Vj6GOBo2c2fNw== From: Jeff Layton To: Christian Brauner , Al Viro , Brad Warrum , Ritu Agarwal , Arnd Bergmann , Greg Kroah-Hartman , Ian Kent , "Tigran A. Aivazian" , Jeremy Kerr , Ard Biesheuvel , Namjae Jeon , Sungjong Seo , Bob Peterson , Andreas Gruenbacher , Steve French , Paulo Alcantara , Ronnie Sahlberg , Shyam Prasad N , Tom Talpey , John Johansen , Paul Moore , James Morris , "Serge E. Hallyn" , Ruihan Li , Suren Baghdasaryan , Sebastian Reichel , Wolfram Sang , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, autofs@vger.kernel.org, linux-efi@vger.kernel.org, linux-fsdevel@vger.kernel.org, cluster-devel@redhat.com, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, apparmor@lists.ubuntu.com, linux-security-module@vger.kernel.org Subject: [PATCH 0/9] fs: add some missing ctime updates Date: Fri, 9 Jun 2023 08:50:14 -0400 Message-Id: <20230609125023.399942-1-jlayton@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While working on a patch series to change how we handle the ctime, I found a number of places that update the mtime without a corresponding ctime update. POSIX requires that when the mtime is updated that the ctime also be updated. Note that these are largely untested other than for compilation, so please review carefully. These are a preliminary set for the upcoming rework of how we handle the ctime. None of these seem to be very crucial, but it would be nice if various maintainers could pick these up for v6.5. Please let me know if you do. Jeff Layton (9): ibmvmc: update ctime in conjunction with mtime on write usb: update the ctime as well when updating mtime after an ioctl autofs: set ctime as well when mtime changes on a dir bfs: update ctime in addition to mtime when adding entries efivarfs: update ctime when mtime changes on a write exfat: ensure that ctime is updated whenever the mtime is gfs2: update ctime when quota is updated apparmor: update ctime whenever the mtime changes on an inode cifs: update the ctime on a partial page write drivers/misc/ibmvmc.c | 2 +- drivers/usb/core/devio.c | 16 ++++++++-------- fs/autofs/root.c | 6 +++--- fs/bfs/dir.c | 2 +- fs/efivarfs/file.c | 2 +- fs/exfat/namei.c | 8 ++++---- fs/gfs2/quota.c | 2 +- fs/smb/client/file.c | 2 +- security/apparmor/apparmorfs.c | 7 +++++-- security/apparmor/policy_unpack.c | 11 +++++++---- 10 files changed, 32 insertions(+), 26 deletions(-) -- 2.40.1