Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp768573pxu; Thu, 26 Nov 2020 11:16:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBw5fD+xuWtPW6OV6VUsqweDDy2P2He4NcjCX0TmnTjpwuHqpgz42uns9iNsDuFS4bxCl6 X-Received: by 2002:a50:ab07:: with SMTP id s7mr4009671edc.287.1606418202273; Thu, 26 Nov 2020 11:16:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606418202; cv=none; d=google.com; s=arc-20160816; b=CqLSjXy1D1R1j48hBSuaoduf7vMwiF9SnIBIpqpnQYzjZSsh0vM+j8BRf9LEeQcDUB 3BRLu/G3jhxmdHa0t9T3q3lt+dm0jRH1qZfgW6AfzgJoU7N2fV7yYnmXOM0M8gHvJIjb EeqNxDubYmhVlx+8Wlt3O8c/BNsn6n4NymYUOkdUD34DTdisUnxonh+olM6+RY95M7fT XJjpj0NTi2Zg/erWF0mO9zf9Db4/ERD9lZKGJI4jIZAsfAq3JdacQApRHoAOSqytBZUg G6F44cUUODGn4xToQkb+Hh5jQLK2vRwpcf0fVp6vdoDavtKBCzGPmIz80v7Fk2WU7f7v RB7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:to:cc:in-reply-to:date:subject :mime-version:message-id:from:dkim-signature; bh=CLUvaNFj/PurXHTr5z9vmApyltiJfzFSkjwCQHk27Nk=; b=BJs9LMJhA9lvzMWhUV9IStexweCiq0uFr3WK7XpOrQ4POoTzexx1I1tmv8gG5QWmi8 GGH0GeqT1bmSCY1c3t4eSJePli3UuA1WaCbtUftBQ+d0jy1nUWfH8bntOZSnIYIH5nv5 eVoFVb9CVIwaL4WP1JeogiE81lZTBxwd9h8a9F2Jm/KThH4nZjC/q7zUUEYrwAbKL+AG imdHZm9u0u3oKFC1QLs5e0sef2do+lhYB3EkxrHXAdnVgYwncw/FLwNWIaCAr7LgubNN QyAJWoqWdU43CKLsegScqU5OEwnGyqUxPBJypSRe6ORsV26fxITvO6PWg6lhECuGHHad Ox3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dilger-ca.20150623.gappssmtp.com header.s=20150623 header.b=WHW8I2y0; 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 r19si3710779ejr.323.2020.11.26.11.16.19; Thu, 26 Nov 2020 11:16:42 -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=@dilger-ca.20150623.gappssmtp.com header.s=20150623 header.b=WHW8I2y0; 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 S1731077AbgKZDAJ (ORCPT + 99 others); Wed, 25 Nov 2020 22:00:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729715AbgKZDAJ (ORCPT ); Wed, 25 Nov 2020 22:00:09 -0500 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F67EC061A04 for ; Wed, 25 Nov 2020 19:00:09 -0800 (PST) Received: by mail-pg1-x52c.google.com with SMTP id t21so490419pgl.3 for ; Wed, 25 Nov 2020 19:00:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dilger-ca.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=CLUvaNFj/PurXHTr5z9vmApyltiJfzFSkjwCQHk27Nk=; b=WHW8I2y0MPHzhrMDKHi79uizkexoDaIscCw1GWtxg7GTjVco8QFv3EJtcnKsebd3Vz EKfUZgtAH8UOGHk8/86XYCYQLqpF0+3NcJca/LK9g/1bYfgFbXaamLdpaBNMBL4Rht0j E05riYul8IlXDN3iEuYXFiKfXqr6g/S5PSgsRImYuqcJXnsq/YfYinh+6iZCACjGkPXz ms/gwQDPmF6pmWFboQQob42miT54K+sHWF9lWleReUxQ8rXgv2siOV3G/gPJPOk0QBbB 46Yez1jGTTVE3PydB9kZt0z5wqwVtTYHgf+o3QW70X9bJYqLY3n7MFzWo8Ynn8Qd1ZjV keCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=CLUvaNFj/PurXHTr5z9vmApyltiJfzFSkjwCQHk27Nk=; b=EqtwZqKJkhfvk61uNxNdk6tjXTGudW22maOaO21gJhvhg1LJSpNzWgZ6yC/12J4/mG CQh6lXEqPvM+8p97U4IcSgHsK92vh25HvJfCGZCmdvCub+asg1M1OhtMjM0oQoLNAarU N3x5+ccj7PiSjgTWygWm0PNn7wq7jU1bzgJuOeFZ3+9ZZl3QwRSLvTA9RNDrV9lhylL0 1S33moU9BYXMEL+cEex01UrvtreE9+Dgj5klq7WXaEGKxNPjRA4dglnocEQmhtcJc2WO nz4erxf2hl/g7TwvMnnPatM2yanPcaabCsbzEdrvR37Nb+H4OPgKDfqx+vDX6wvtpSgS 9pqw== X-Gm-Message-State: AOAM530nzqMC4YrsMqNF6o2Bv+Nj2mF40RzlqDfX+U1IVp+5Pyk0Yoim tWG77ovPQ8lCRe9RUuqiA19y6g== X-Received: by 2002:a17:90a:6588:: with SMTP id k8mr1056676pjj.197.1606359608591; Wed, 25 Nov 2020 19:00:08 -0800 (PST) Received: from [192.168.10.160] (S01061cabc081bf83.cg.shawcable.net. [70.77.221.9]) by smtp.gmail.com with ESMTPSA id s145sm3105674pfs.187.2020.11.25.19.00.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Nov 2020 19:00:07 -0800 (PST) From: Andreas Dilger Message-Id: <13D075AD-D08F-44DA-B01C-9CDF239D4358@dilger.ca> Content-Type: multipart/signed; boundary="Apple-Mail=_5232A0BF-221A-45DB-A681-BE4E94ED05F0"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: UAPI value collision: STATX_ATTR_MOUNT_ROOT vs STATX_ATTR_DAX Date: Wed, 25 Nov 2020 20:00:02 -0700 In-Reply-To: Cc: David Howells , Linus Torvalds , Miklos Szeredi , Ira Weiny , Eric Sandeen , linux-fsdevel@vger.kernel.org, linux-man , linux-kernel@vger.kernel.org To: Miklos Szeredi References: <1927370.1606323014@warthog.procyon.org.uk> X-Mailer: Apple Mail (2.3273) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Apple-Mail=_5232A0BF-221A-45DB-A681-BE4E94ED05F0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Nov 25, 2020, at 12:26 PM, Miklos Szeredi wrote: >=20 > On Wed, Nov 25, 2020 at 5:57 PM David Howells = wrote: >>=20 >> Hi Linus, Miklos, Ira, >>=20 >> It seems that two patches that got merged in the 5.8 merge window = collided and >> no one noticed until now: >>=20 >> 80340fe3605c0 (Miklos Szeredi 2020-05-14 184) #define = STATX_ATTR_MOUNT_ROOT 0x00002000 /* Root of a mount */ >> ... >> 712b2698e4c02 (Ira Weiny 2020-04-30 186) #define = STATX_ATTR_DAX 0x00002000 /* [I] File is DAX */ >>=20 >> The question is, what do we do about it? Renumber one or both of the >> constants? >=20 > : > * Note that the flags marked [I] correspond to generic FS_IOC_FLAGS > * semantically. Where possible, the numerical value is picked to = correspond > * also. >=20 > : > #define FS_DAX_FL 0x02000000 /* Inode is DAX */ >=20 > The DAX one can be the same value as FS_DAX_FL, the placement (after > STATX_ATTR_VERITY, instead of before) seems to confirm this intention. Yes, this looks like a bug in the STATX_ATTR_DAX value. It should be = the same as FS_DAX_FL, like all of the other STATX_ATTR_* [I] values are. Cheers, Andreas --Apple-Mail=_5232A0BF-221A-45DB-A681-BE4E94ED05F0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIzBAEBCAAdFiEEDb73u6ZejP5ZMprvcqXauRfMH+AFAl+/GjIACgkQcqXauRfM H+A16RAArYXwTjbh6UN5DHPHFjmKbi40h9BMIlxtwkeVKXptVB1oe4FsbhtpnYrm 5mQuxaCPBs70A8ZcSN7tMv5ldseeoThIGoCq84VqFC17lQHd6KzEZw+b2kc85wtc PCOVgT/xabaHVvRr4ZXYN8m+tdka+FSbBjS3S7pwPKM2Xam9Ov6Mv4YZ4E0Knsnd DvltX8X3cZ5cK+EXzRKcddbpgh6eUJgBxcIrk3RXD4q35OLNI6PIvP6kD/xBizti NUgpAWoJspTP95XurKHERCPMhwwmEDEEa5naBJpQvhKDkqzxAIbYSnGDORYXy+sF FW+GP3Z/EFgd994P0ZRaDNuuSBLdMzRCJtOCjE+bIpZLNhci5niGBjUdS+b6gA5N q2bNt8UJC+AgTlz0PVMFPlSKG33w65rnrBsGQnmY8l4YufmnD2z7nZglmwZVGVx8 RqLJYzYMYQwgFN9peQ4YEjo/NVTi1tiiKBq2eJ3cQ92lPrcxnYKNNgjyGGqWd5SX RXv8bmRn+iDsvYL0MH7N9Y/TKA5y2Y4MU4q9wKxwQfLzZEaSAWmVcw1A18+zIuPr if9rkcxqH5/ZMmgAmzDJXZ89PakYfYW4hc21AcUJV4Hy1eF9ohi3Hv+B1l/d5z1S hvHWuu/C5Kyq8/crZgE0ZT6d9f5bdHLaNLvKflXJ/feliySLb74= =HE3n -----END PGP SIGNATURE----- --Apple-Mail=_5232A0BF-221A-45DB-A681-BE4E94ED05F0--