Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2818804pxb; Sun, 24 Jan 2021 22:17:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPMZuc9SWzpC4fVhHZRXkrWzAe7eklZd7qLUEM1joOVFxuGXQC8OPX3EyM0wQSw4EwOlcU X-Received: by 2002:a17:906:e09:: with SMTP id l9mr1169389eji.196.1611555479485; Sun, 24 Jan 2021 22:17:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611555479; cv=none; d=google.com; s=arc-20160816; b=t1oXG8JLMFoxxE8wAZgdGMFyo5FXI574DXQ5ONi3W5DytlwISF4JvT3/HZwK/yP/OG sDt79fkF7tC9NzE2MPPj093tX3sfM7OYHhimItCs8DjA5+3+DzE17nrpdrwHMPDZJyOt XFue9aXh/vXPNFFoLUD/xojeYBkfRBoeVwiQmtmlOHX67W4ePtUKDPIarkEqi7ldwb7k IZz4tGidIbGMDXnO/IiW+s2vm4hRJxL/A4k0zQHzTpfpPFjIZvUxbjx2dSFGOa61J1GP GsMXGxd75cfXLrIaHt7Cq97fRLIZINqiA69yJM24UygEfr7V3ZYAKPopumsPUmbux1JZ qrag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=GV4s51hnNYHByYxe11MD3tntF2ycOJY7DVWZZDPOxh4=; b=h+YDq40Uq3zcqhBHC+PKsGvAoDF/cWHkh5NYV3piqp1+uvRsP2u3IZvCJJiHIqrEKe Z4jNtn4MPykKz/qcRfejuqOY1vL0czB5rTDavHfx3DFALEYFeytzXKNRaetBxMHt0QEl kRnJiO9cwwnbrGoY+HFi4Q+lYdRQ8+ZDU6JkrRUYvUsCFCxO9x+DG13tTbKfamEOuYR/ QJd/5v77yG+7jfuRbytFHH99veFfB/L+LFPxSHC7FaP91enGfbqUdPrDXHkkE/dPetcx scJN7J8psqaIo+KcVdknycmfWlEoPruqx43CFuGHdpR0hB6eWtBGbFVIwJucAO/olfEa pnzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=s6Ymgs0Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c20si6946701edy.440.2021.01.24.22.17.36; Sun, 24 Jan 2021 22:17:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=s6Ymgs0Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726610AbhAYGPF (ORCPT + 99 others); Mon, 25 Jan 2021 01:15:05 -0500 Received: from ozlabs.org ([203.11.71.1]:47377 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbhAYGO5 (ORCPT ); Mon, 25 Jan 2021 01:14:57 -0500 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 ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4DPKMB6CVXz9sS8; Mon, 25 Jan 2021 17:14:14 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1611555255; bh=Ut/fFn4kETlfw8FIktdwRPKBuDMq0Oo4wQyuP+bntZc=; h=Date:From:To:Cc:Subject:From; b=s6Ymgs0YRnNq1q5dSLIuvBWbpMUwfl9H3gj+jHjUlRHPFR29+w4pFJ5U0oVY3Izf8 eenRt7+XpU0sO+jdSrBEji0aDbgAQMDNZWhVs66BXzyKOwPndeFqv4g4PIQJzvT8Aq UdXENZiTwRZAFbRVCJ/ZP9YGpNED/oQQfqHnhqYUYQMRKmpCYhuliPYyjlyO3DuLMC OeXfR5rNX0JK3d0YtVOmXfwPXPctw5qdKcAlGWOLh4E1kPdno/bdPIm1EPcFfQB03o k4vF686bXixKmMwurx0z/qVv+W1F3GT749UJe7kwhkAi4GAMwGF6VHi2TSqYuDlfQn zInvDdmxUeuTg== Date: Mon, 25 Jan 2021 17:14:14 +1100 From: Stephen Rothwell To: Christian Brauner , "Darrick J. Wong" , David Chinner , linux-xfs@vger.kernel.org Cc: Christian Brauner , Christoph Hellwig , Linux Kernel Mailing List , Linux Next Mailing List Subject: linux-next: manual merge of the pidfd tree with the xfs tree Message-ID: <20210125171414.41ed957a@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/Z_k.r3XxHa=_3.RlzMH+/Th"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/Z_k.r3XxHa=_3.RlzMH+/Th Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the pidfd tree got a conflict in: fs/xfs/xfs_inode.c between commit: 01ea173e103e ("xfs: fix up non-directory creation in SGID directories") from the xfs tree and commit: f736d93d76d3 ("xfs: support idmapped mounts") from the pidfd 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/xfs/xfs_inode.c index e2a1db4cee43,95b7f2ba4e06..000000000000 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@@ -809,13 -810,13 +810,13 @@@ xfs_init_new_inode inode->i_rdev =3D rdev; ip->i_d.di_projid =3D prid; =20 - if (pip && XFS_INHERIT_GID(pip)) { - inode->i_gid =3D VFS_I(pip)->i_gid; - if ((VFS_I(pip)->i_mode & S_ISGID) && S_ISDIR(mode)) - inode->i_mode |=3D S_ISGID; + if (dir && !(dir->i_mode & S_ISGID) && + (mp->m_flags & XFS_MOUNT_GRPID)) { + inode->i_uid =3D current_fsuid(); + inode->i_gid =3D dir->i_gid; + inode->i_mode =3D mode; } else { - inode_init_owner(inode, dir, mode); - inode->i_gid =3D fsgid_into_mnt(mnt_userns); ++ inode_init_owner(mnt_userns, inode, dir, mode); } =20 /* --Sig_/Z_k.r3XxHa=_3.RlzMH+/Th Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmAOYbYACgkQAVBC80lX 0Gwalwf+Jb/6xvzPgL/wE/D9U352Cd/j3gmeB/rrkmZt71DHqlNT4aNkeXg8E20r Cm2uk8J9CUodQ70VNWbhOF1o8kpGouLvk8q43QUGk9SrkfswpMzYRbcGaGeahQ2D 994wCjRkGhEiKGEZRMeH/9SEOMNnzVHAGtHU67P+43wIx52ohd+l432xi18dIFN/ SeZ6dN4wpJnLsaQyuICjF/qJlA0XL1E93zeAfiFVQH5hBVEQd4Kn32cxl7970lu0 qcOLjt6Wqn/P6hKh60V+bwTsvyZUDHkkiUrVA+ziBI4ZXuSv1txYa7bPBHIhTmxg t7NX/YDbmA9KwhxBGBprnJLgJp7mCQ== =bBhL -----END PGP SIGNATURE----- --Sig_/Z_k.r3XxHa=_3.RlzMH+/Th--