Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1944781rdf; Sun, 5 Nov 2023 22:51:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IGwdIGRVgjmEkF243o9nkF2bOktE5gVdDwOOGra9dxAAQK4GgFHTdnWQyaMyvrTwGo6fwW9 X-Received: by 2002:a17:90a:c90f:b0:280:256c:abae with SMTP id v15-20020a17090ac90f00b00280256cabaemr17246164pjt.40.1699253472494; Sun, 05 Nov 2023 22:51:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699253472; cv=none; d=google.com; s=arc-20160816; b=q2WcbxUDX9P6jnqp9PX5Kfm9WrNZ0PUeue69Y0YSQgQnRUK3HzwjiZ67sDmb2rKO/S wiHii7Gp836c2GHu3cyFbu12flsnof6qtpFZIZ20lpYT3TQzVZjJFaxEbOazEHwxJHYc kIjqGAfQ/BD3vQN7JSN1GBuuju2CvQpTPp3WBXea0/mZaESDfI8acYz9fEAFqYTs8bFH jRqJywV7isBUPdzwd86z/NH8B++WW8TOxBr6e9DOkVrIJffDpk/LKmunSXBAnqzAY3RY BPYJktXGNS/V1YZAeFi5XopIpixMlNeM5Tix8890uTIOMtG1mBgaUEG67G02vZpb8E1j 40Ig== 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:cc:to:from:dkim-signature; bh=NbqQdpAVIW9N67UKj8YDab5KVvVGkqnhm/9Uw2oo0UQ=; fh=jaeMwWutqI8GzTNe6uK8144Nt4dk4/H7Lxb1J/kscxw=; b=Jw7fHKq9XhJ+IVYApH12inCFeTziV2QKGKd5hDx/IOmjfnH1D93hFzLj7ZjdaoSy5q ThE3rhPdASL/sV8c/1hs83Q8kZZWrgxY0KWJAiCSY+E1TzVuxkshb9UjEQeF0SNnAs2X Nra8gU5S4xgfqAinTttYboZK3ZAaiW3OEDjMg1X/t/6sJWrbYwswweGEZbxdCZ2gjCsk z26+AgfMKxqiCzZqOaaedKiCOu6yASzT1JiHTgaW4g4Io3ZaY/t+XcPS6w/WZ0KJnzIm otPeEN4ftdcijHsG3oYUFjrSr349C7Z9AF5WKvABApQyQ0AH0K4fVh4S11oTKfq1xhpA k4oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=auSbn6bq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id e11-20020a17090ab38b00b0027ffcd44adasi7212657pjr.133.2023.11.05.22.51.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 22:51:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=auSbn6bq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 99ABC8080ECB; Sun, 5 Nov 2023 22:51:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230392AbjKFGu6 (ORCPT + 99 others); Mon, 6 Nov 2023 01:50:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229717AbjKFGu5 (ORCPT ); Mon, 6 Nov 2023 01:50:57 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8985F2; Sun, 5 Nov 2023 22:50:53 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-32f78dcf036so3030128f8f.0; Sun, 05 Nov 2023 22:50:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699253452; x=1699858252; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=NbqQdpAVIW9N67UKj8YDab5KVvVGkqnhm/9Uw2oo0UQ=; b=auSbn6bqsFQr4gL+AJoMtZ1R8E7C9VL+LY3TiOqo+VehnA6TCpvuRnVURAarNiu1XJ S8RraXAoqFYz4kdeeuy4tJD8IbxeX+2YbzVLLpV/PraZ7LcFwGojv/qA5ArBdpAzPO5m TkTznnYlyfvYDHINvRzz4WzSCM48tjnrBdJSjeRwDvbFRzZjAkh1rPpdLOU+kPLXaU2t 3qlNS9oFSBCOFsnj0YJPO6ySeWMu62nK1uqmZuVk+R2dPTCPe+iIx+fx7XhUhx5Rg2RN j6V4I+IefHS19maF592oU87hRa++SbPyRw4egUPf15XyjavzVlFEhiwHa0h/VFrmls1f JGmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699253452; x=1699858252; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NbqQdpAVIW9N67UKj8YDab5KVvVGkqnhm/9Uw2oo0UQ=; b=qkJSF8V7pop6NB5bIPt1hjPaq18ClqJWT0EHVNr+GFO8fctFFnJXxRYYVV/O148MSd woU52syhdgSoZh+7GMiDOvjHVcACfjiAVFG+rGfgPZzp8FsomoGyl70mYCLnx0vXVxcd ayiYGVblwuPtxamVvpTbCj7gccA2Go3sYyGnRA437qKjVqxC3ZxM+c39Bmh7y2xavFYX sQ9Mwy0fb8Y3XjsrB9l2G0Z7Is0gUel0JCDHd9R3I4E7OQ6HMNGJ2/qfGzkS45EOSKSZ U/04Bx1dMBaRVApYUTFArpeVXou5ArpfplE5OT7wKEHkwiw4sqaMB5elaE7FJps6JwKf xBBQ== X-Gm-Message-State: AOJu0YwO9nwdAcH94cmtyoDTtixvE6PYZMfirefaS9BULswBwzWgy+Za YGnSWP0azfZT1CZQ9l2f1RLsPK3FORY= X-Received: by 2002:a5d:5847:0:b0:32f:88f9:ba44 with SMTP id i7-20020a5d5847000000b0032f88f9ba44mr10049314wrf.25.1699253452090; Sun, 05 Nov 2023 22:50:52 -0800 (PST) Received: from amir-ThinkPad-T480.lan ([5.29.249.86]) by smtp.gmail.com with ESMTPSA id r22-20020a05600c35d600b003fee567235bsm11132388wmq.1.2023.11.05.22.50.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 22:50:51 -0800 (PST) From: Amir Goldstein To: Linus Torvalds Cc: Miklos Szeredi , Christian Brauner , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-unionfs@vger.kernel.org Subject: [GIT PULL] overlayfs update for 6.7 Date: Mon, 6 Nov 2023 08:50:45 +0200 Message-Id: <20231106065045.895874-1-amir73il@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Sun, 05 Nov 2023 22:51:09 -0800 (PST) Hi Linus, Please pull overlayfs update for 6.7. Most of the changes in this update have been sitting in linux-next for several weeks, based on two prerequisite vfs topic branches. Last week, after the vfs branches were merged, I rebased overlayfs-next to reduce noise. Last week, I also added patches for new mount options to replace the lowerdir append syntax that we disabled in v6.6-rc6 and v6.5.8. This branch has gone through the usual overlayfs test routines and it merges cleanly with master branch of the moment. Thanks, Amir. ---------------------------------------------------------------- The following changes since commit 14ab6d425e80674b6a0145f05719b11e82e64824: Merge tag 'vfs-6.7.ctime' of gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs (2023-10-30 09:47:13 -1000) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/overlayfs/vfs.git ovl-update-6.7 for you to fetch changes up to 24e16e385f2272b1a9df51337a5c32d28a29c7ad: ovl: add support for appending lowerdirs one by one (2023-10-31 00:13:02 +0200) ---------------------------------------------------------------- overlayfs update for 6.7 Contains the following patch sets: - Overlayfs aio cleanups and fixes [1] - Overlayfs lock ordering changes [2] - Add support for nesting overlayfs private xattrs [3] - Add new mount options for appending lowerdirs [4] [1] https://lore.kernel.org/r/20230912173653.3317828-1-amir73il@gmail.com/ [2] https://lore.kernel.org/r/20230816152334.924960-1-amir73il@gmail.com/ [3] https://lore.kernel.org/r/cover.1694512044.git.alexl@redhat.com/ [4] https://lore.kernel.org/r/20231030120419.478228-1-amir73il@gmail.com/ ---------------------------------------------------------------- Alexander Larsson (4): ovl: Add OVL_XATTR_TRUSTED/USER_PREFIX_LEN macros ovl: Support escaped overlay.* xattrs ovl: Add an alternative type of whiteout ovl: Add documentation on nesting of overlayfs mounts Amir Goldstein (14): ovl: use simpler function to convert iocb to rw flags ovl: propagate IOCB_APPEND flag on writes to realfile ovl: punt write aio completion to workqueue ovl: protect copying of realinode attributes to ovl inode ovl: add helper ovl_file_modified() ovl: split ovl_want_write() into two helpers ovl: reorder ovl_want_write() after ovl_inode_lock() ovl: do not open/llseek lower file with upper sb_writers held ovl: do not encode lower fh with upper sb_writers held ovl: Move xattr support to new xattrs.c file ovl: remove unused code in lowerdir param parsing ovl: store and show the user provided lowerdir mount option ovl: refactor layer parsing helpers ovl: add support for appending lowerdirs one by one Documentation/filesystems/overlayfs.rst | 40 +++- fs/overlayfs/Makefile | 2 +- fs/overlayfs/copy_up.c | 142 +++++++++----- fs/overlayfs/dir.c | 64 +++---- fs/overlayfs/export.c | 7 +- fs/overlayfs/file.c | 88 ++++++--- fs/overlayfs/inode.c | 165 ++-------------- fs/overlayfs/namei.c | 52 ++++-- fs/overlayfs/overlayfs.h | 72 +++++-- fs/overlayfs/params.c | 322 +++++++++++++++++--------------- fs/overlayfs/params.h | 1 + fs/overlayfs/readdir.c | 27 ++- fs/overlayfs/super.c | 92 ++------- fs/overlayfs/util.c | 115 +++++++++++- fs/overlayfs/xattrs.c | 271 +++++++++++++++++++++++++++ fs/super.c | 1 + 16 files changed, 929 insertions(+), 532 deletions(-) create mode 100644 fs/overlayfs/xattrs.c