Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp260233rwl; Tue, 11 Apr 2023 18:05:17 -0700 (PDT) X-Google-Smtp-Source: AKy350bZ9ZYEhJE81tnld7VkUc5faM54cilFplwvGNRYWAAHSuvdWkxJ/rRn3ihlYmzQuwHbRpxO X-Received: by 2002:a17:906:da87:b0:932:3ca:e228 with SMTP id xh7-20020a170906da8700b0093203cae228mr16250051ejb.0.1681261517168; Tue, 11 Apr 2023 18:05:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681261517; cv=none; d=google.com; s=arc-20160816; b=as4dsR3pB+8feeNc882If9SE/CTWmLzmpgiCM0RDgI5duo+jVZ8t8tCrR0NsYWu5hO 0aRSgrSDyagFYsnkjlu29Co4brdXTfFb5AWK9pXjbP0AlCnDtvHn6DToeoCWt4+ynmgD WUlswjY7ZUHCPJNeSefcEOwn4eALjAnD+PUjYQPIuHufp+Y5jilzeKWhTPvzX3v0R6XC xPt1hJFREGRWQDrvyQqRJGzhzZHnKFBajnAJT0r56bLYWcKz+i7NQMP3NHMZBjbBFIQX V1cSJQtAUTwgGeKUjm68n/1jAC/fPPJZkbkCDSwrsdbADDwnHwtC/FMuzvoJ/y72nwWm +zMA== 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=7DoPsnkMElumDpbjNEW92q+xjDyj1+B3uUaBrzAhsyo=; b=ytyKt3CHSzCwDHkKWZw6GeBpCH0WNQBwZeG4w/1JszezeWJQXvQ9lwDwECRoWWSOVX YimAC7qHN4Y1K2p28TelyMJBwGNIL0vHTi0+Xr7zxjspjx/dPBgOveBQQFGgRgfSgmig +3e2cLznL3iAiwQ9MmcmFnKlUUdSovu1nqCn/6+i1nObs/HKtPXGzVGNz0BTyukaBgzi FYwoBDFxZo9ie70D0FswOckw8I2OxjZdfVrxzbkjEIopB/wALTaa9KCdLo4Uqvd8DWZj dV2aHhCjhw3BrNmgADurZf5X/ieU3CIirRWlzXHCfMJM2SoGFqvlsJBwTRVDtSfUicYE f7wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=rI940rii; 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=canb.auug.org.au Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb36-20020a170907962400b0094a921bcca5si1555811ejc.466.2023.04.11.18.04.52; Tue, 11 Apr 2023 18:05: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=@canb.auug.org.au header.s=201702 header.b=rI940rii; 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=canb.auug.org.au Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229596AbjDLATy (ORCPT + 99 others); Tue, 11 Apr 2023 20:19:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbjDLATx (ORCPT ); Tue, 11 Apr 2023 20:19:53 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7E90171F; Tue, 11 Apr 2023 17:19:50 -0700 (PDT) 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 4Px3Hh3wjbz4x84; Wed, 12 Apr 2023 10:19:44 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1681258785; bh=7DoPsnkMElumDpbjNEW92q+xjDyj1+B3uUaBrzAhsyo=; h=Date:From:To:Cc:Subject:From; b=rI940riiIN3UJwKKS3inbat5LIpOO4KgbtZgInBmasV7SWPSKevansh372Ho/azGO VMO1wNNsuW9hy0lOgB8H6dncH08OJkuA74PBrgod0ksQTKY+dovcHVE6Z9+G0cJyQL LObcMa6bDW/8aZdiPLBrvYC1sPxy9qSp0IE9ZkDG5GhK1XZKHAJeL3VO0KFCfpe7y1 O8KiXagIsv5JJPnvPobYICwLqi21IuucixuTBvY7+yQbWFgr3BmubEExXiyIFQLIo7 5uSpd4Rf5awR7rAT+4/zQiehGzFsZj3nbqOZcnur6anjjdwXMq3C3cSkiTBIx8seWp imvm6MuICE32Q== Date: Wed, 12 Apr 2023 10:19:42 +1000 From: Stephen Rothwell To: Gao Xiang , Christian Brauner , Seth Forshee Cc: "Christian Brauner (Microsoft)" , Gao Xiang , Jingbo Xu , Linux Kernel Mailing List , Linux Next Mailing List Subject: linux-next: manual merge of the erofs tree with the vfs-idmapping tree Message-ID: <20230412101942.75e3efa9@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/.xtQAdYkhqRQfAhjDYL6Ugx"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS 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 --Sig_/.xtQAdYkhqRQfAhjDYL6Ugx Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the erofs tree got a conflict in: fs/erofs/xattr.c between commit: a5488f29835c ("fs: simplify ->listxattr() implementation") from the vfs-idmapping tree and commit: 3f43a25918ac ("erofs: handle long xattr name prefixes properly") from the erofs 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/erofs/xattr.c index 015462763bdd,a04724c816e5..000000000000 --- a/fs/erofs/xattr.c +++ b/fs/erofs/xattr.c @@@ -483,12 -517,28 +513,25 @@@ static int xattr_entrylist(struct xattr { struct listxattr_iter *it =3D container_of(_it, struct listxattr_iter, it); - unsigned int prefix_len; - const char *prefix; + unsigned int base_index =3D entry->e_name_index; + unsigned int prefix_len, infix_len =3D 0; + const char *prefix, *infix =3D NULL; - const struct xattr_handler *h; +=20 + if (entry->e_name_index & EROFS_XATTR_LONG_PREFIX) { + struct erofs_sb_info *sbi =3D EROFS_SB(_it->sb); + struct erofs_xattr_prefix_item *pf =3D sbi->xattr_prefixes + + (entry->e_name_index & EROFS_XATTR_LONG_PREFIX_MASK); +=20 + if (pf >=3D sbi->xattr_prefixes + sbi->xattr_prefix_count) + return 1; + infix =3D pf->prefix->infix; + infix_len =3D pf->infix_len; + base_index =3D pf->prefix->base_index; + } =20 - prefix =3D erofs_xattr_prefix(entry->e_name_index, it->dentry); - h =3D erofs_xattr_handler(base_index); - if (!h || (h->list && !h->list(it->dentry))) ++ prefix =3D erofs_xattr_prefix(base_index, it->dentry); + if (!prefix) return 1; - - prefix =3D xattr_prefix(h); prefix_len =3D strlen(prefix); =20 if (!it->buffer) { --Sig_/.xtQAdYkhqRQfAhjDYL6Ugx Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmQ1+R4ACgkQAVBC80lX 0GybjAf/X+LntMu+EtDw+XNnc7gPqGLEhfuTkSh9+1GlHt/QrYeelSixY39DRaUG 2XcbC7TjT7lL+pj5M4UDGLID7y/gR+tnfxd86H6JOOZ3IxIFWauNi1zWWCtY1IuP Ckk/Ft0/jhDiPKhaKduWTqJUzyjx7Xd3yhlA0lkgMXaAjKTyy4nws/oGnrKdsolT qAfkYbJb35mWdoMFfUGQio5GeBQ3d10E09MSBX/4h7/JL6hV2MsB+5wHi2VGSx4y /k47ysnZ0QXUgSziGXT9V3JHOLqfoxKdz0gfo6bK7T6A6KSr8Dc6ouMkY1O6xgzP 9j3UPmfgNTETk1fH4NFpYe9M3qNiqA== =JwzJ -----END PGP SIGNATURE----- --Sig_/.xtQAdYkhqRQfAhjDYL6Ugx--