Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1100717lqh; Sun, 5 May 2024 16:53:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhBXn/5qu8MJlUfIMZIhtiD0+ssSgqHaUrQPVleEsXd6cbc0M80NOfSXz4F9gUoVRv72fGQmLcxJPrxpJk8GN0GE5/TL8UcS4nkeIaog== X-Google-Smtp-Source: AGHT+IF22NDlHUtkXFLVQeKCUK6+CiW16CMMHwCE+tUKkSbLGKoxhEUaaAtMsKI6Pmtc5igDQm4X X-Received: by 2002:a05:6830:1083:b0:6eb:c398:4d2b with SMTP id y3-20020a056830108300b006ebc3984d2bmr10476521oto.30.1714953202557; Sun, 05 May 2024 16:53:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714953202; cv=pass; d=google.com; s=arc-20160816; b=JbyNUJEL4wtB3IwbAv9/qn/Ls/QcH2/L/LxHGz+MFAlQ11EnXAUJ7sPWpMKpwkMNqI +ry1r/CsWEOoWymG9THc02DYw60JdzMl7tLcGiKrNDIjH/g/WzfOeNzm/rRIdOWt/lHH mIDeMpFhHMNHqWK584HUUJXMSSlv8uXBsQHYpcuqvamOsg1oOX907tTlzhKFAiEtVlyU LAr4UGWWbXVwjbuSj30VoTn4JKbJUKnxVOqbJRWOpI1/kjqWjhXHWpIjzZt7h7hcjRP7 dg7N2H/9UTm1W+RpjNV90/J/Lj6RGNMlF25l4hrJFk8BzZs5yzRNixhIrLcFxfijf5mk 1ZxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:subject:cc:to:from:date:dkim-signature; bh=6yUJR7AAGUeHB9v2TV0rbifF9X1hRcIjXWGqnly0myY=; fh=JGKpOQKfRz3cc3zBNRPKFZjSLIftfu5kDu7dH8LuXL8=; b=hRzTWdS38WBFZCKWc9XR3b6BrEEVmYnR+ysqbOBdFbtJ6k59SPULQhuNWGjZFdJy25 U7I9XeSwmfxhvgycNB66xRNMZqy1+JsI5QP0bAh4aktmOdNzOzglVCgcMbh1+YS/5A+F 5pLYUkd535kxtDc+McKTNwsGcxKbQ/vh6msaDmlq5WubnLo5otO7L0dnkT+2AQMEAFNZ 2AWabLah/4Rz9KUO0VciQ65iyD5KlhWKTd1DFrflfQvpWI6xkxB5uDDLl+jr4PJ7ieqp pHn49rbkwI7JdLg0ivaezvJF5kp0wH2y45qvQhKmwroUCWyNMAQxubFYhevV28PyX/BC YY1w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=LIaLm5zk; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-169204-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169204-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w33-20020a634921000000b00613fe690679si7063796pga.677.2024.05.05.16.53.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 16:53:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169204-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=LIaLm5zk; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-169204-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169204-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 8EF14B20DA6 for ; Sun, 5 May 2024 23:53:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2941914038F; Sun, 5 May 2024 23:53:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b="LIaLm5zk" Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0DCB913FD67; Sun, 5 May 2024 23:53:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714953189; cv=none; b=UNN+1MVAYJ0A6guln8qA6lhByNzjqcLNL5cqyrdTlTdAqQ70y99p2+MevT1uWq5kd0KgOB/31wNZHfMM8AWNKcPmbD4EwQSKSM6IUH7RwLGU67QrkEi0xunOII0qgL6HqxxhSuiZ6y8fuyPwwI8RVUElGnBDrxm9CioFcAzOJmI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714953189; c=relaxed/simple; bh=Hc8tFWnoc9haj1TH+ghLpBTIHnFIHBg42fm/S98A7io=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=Rcmj9l5XEc57rcE57gtf/1kIm2QXc3QOaSOiU94s0pGGoWGLnVGyMju7UiAKbMOzjmkK2+RFxY6/RjaU9O1mSL5Aq2nCdQPLSJY+nORT/FwXhQre443GmkGE+jc91Wul4ps3L1LIuSVRY21kVIDQISGYBxTN/3bkB6DrBaBZSwE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au; spf=pass smtp.mailfrom=canb.auug.org.au; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b=LIaLm5zk; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1714953181; bh=6yUJR7AAGUeHB9v2TV0rbifF9X1hRcIjXWGqnly0myY=; h=Date:From:To:Cc:Subject:From; b=LIaLm5zkJoqEVlAakMoOgPwbND7Lv6rYI6wBiCw3M5agxEoPaL06Xwqmag3Z+aHTx +RVzVNoOkHlE2OF44LuVJ0lGZ1+X6Z3K4p07OC4yQLbFPFjcYfnUymc2SDWwDWXx5g 4DMjrgrfMa8hlEOnff2RDZABLX6qI/9DfX3jouSXXXxJoOPHsoKXxM0EQ27/BJiO40 20qt0fq9NkpW0DBVNWq6AafAZkkpFUET036gdY2u/dUCD1opRfN//BKzLoFDdD9Jbz 0LWZry+WBRW6Obai6nTYSehZA/Ji+gP62DZMH58SioosFZJ0m31S/L+cvSMl7yOKki EMYZZ8n1r1zdw== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (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) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4VXhDr5pPgz4wcp; Mon, 6 May 2024 09:53:00 +1000 (AEST) Date: Mon, 6 May 2024 09:52:58 +1000 From: Stephen Rothwell To: Christian Brauner Cc: David Howells , Eric Sandeen , Linux Kernel Mailing List , Linux Next Mailing List , "Steven Rostedt (Google)" Subject: linux-next: manual merge of the vfs-brauner tree with Linus' tree Message-ID: <20240506095258.05b5deae@canb.auug.org.au> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/oqfwJB6Ro3fv9/O4cMIegu+"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/oqfwJB6Ro3fv9/O4cMIegu+ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the vfs-brauner tree got a conflict in: fs/tracefs/inode.c between commit: baa23a8d4360 ("tracefs: Reset permissions on remount if permissions are o= ptions") from Linus' tree and commit: 78ff64081949 ("vfs: Convert tracefs to use the new mount API") from the vfs-brauner tree. I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. --=20 Cheers, Stephen Rothwell diff --cc fs/tracefs/inode.c index 417c840e6403,abd0b477e287..000000000000 --- a/fs/tracefs/inode.c +++ b/fs/tracefs/inode.c @@@ -362,9 -295,6 +345,8 @@@ static int tracefs_apply_options(struc { struct tracefs_fs_info *fsi =3D sb->s_fs_info; struct inode *inode =3D d_inode(sb->s_root); - struct tracefs_mount_opts *opts =3D &fsi->mount_opts; + struct tracefs_inode *ti; + bool update_uid, update_gid; umode_t tmp_mode; =20 /* @@@ -378,31 -308,12 +360,31 @@@ WRITE_ONCE(inode->i_mode, tmp_mode); } =20 - if (!remount || opts->opts & BIT(Opt_uid)) - inode->i_uid =3D opts->uid; + if (!remount || fsi->opts & BIT(Opt_uid)) + inode->i_uid =3D fsi->uid; =20 - if (!remount || opts->opts & BIT(Opt_gid)) - inode->i_gid =3D opts->gid; + if (!remount || fsi->opts & BIT(Opt_gid)) + inode->i_gid =3D fsi->gid; =20 - if (remount && (opts->opts & BIT(Opt_uid) || opts->opts & BIT(Opt_gid)))= { ++ if (remount && (fsi->opts & BIT(Opt_uid) || fsi->opts & BIT(Opt_gid))) { + - update_uid =3D opts->opts & BIT(Opt_uid); - update_gid =3D opts->opts & BIT(Opt_gid); ++ update_uid =3D fsi->opts & BIT(Opt_uid); ++ update_gid =3D fsi->opts & BIT(Opt_gid); + + rcu_read_lock(); + list_for_each_entry_rcu(ti, &tracefs_inodes, list) { + if (update_uid) + ti->flags &=3D ~TRACEFS_UID_PERM_SET; + + if (update_gid) + ti->flags &=3D ~TRACEFS_GID_PERM_SET; + + if (ti->flags & TRACEFS_EVENT_INODE) + eventfs_remount(ti, update_uid, update_gid); + } + rcu_read_unlock(); + } + return 0; } =20 --Sig_/oqfwJB6Ro3fv9/O4cMIegu+ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmY4G9oACgkQAVBC80lX 0GwgkAf9FK4OKm10Z3vAIhdFRrbm3wpdxd9lVGz3PFKBoozyzXNk7NPaaoDMiZTb fkpVmRE/BCuO2A2wfYlCcx52nq0iAgVh8enxgJYmbu8H0LPwOQWkIsLY3/LGSqfA fT6fbZo1Fc5bcf1d9yPf2RXGkHtdVHcySuq6TpNhzvMBYG+Wta+E1EmJOs1OI3// zbRJuTC8MniDm0hbln4wMpIvalVDCOrE5UNj1wu0Fyr4x6KYS+QnnyEuPXAGf2fy 0DLzIjSf8rFxZRpOLsDMForUOJ6exdpVvxpyVEr2VF+gl5Z+YpO63Gdsk5gkls+t omoK4EJw1+/SuCEcWyBx/0/qCiZ8HA== =Y3bs -----END PGP SIGNATURE----- --Sig_/oqfwJB6Ro3fv9/O4cMIegu+--