Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1337555lqo; Sat, 11 May 2024 20:11:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9gNozmdmxpIvbN4YhStgcNwHEy5lZuoA2BpcMwv823EowjtBNlH9hwCt6dHdW5NmjESouFYDPhe3eL5cKZ1ig8joNP409nkt3aXBZqg== X-Google-Smtp-Source: AGHT+IG5iksS9JcG3VOQSPcgDMMDpt/9TtJmrHlAQe49KimDH39hoCd5NyHdMIOpy4S34RHbq7tY X-Received: by 2002:a17:903:283:b0:1e3:e081:e7f5 with SMTP id d9443c01a7336-1ef4404bf29mr74713235ad.66.1715483492965; Sat, 11 May 2024 20:11:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715483492; cv=pass; d=google.com; s=arc-20160816; b=TAtehHi55s24yOsplz/u/IyF1fdjA+jJNsdB4f0llM5wk9mIhxnblD5lK274MgMj63 2rPyXphEhgnSTHxfkpbQXWVZhGwRXkjn8llv9BUilBwFZrywdweMSo5QzSk0kY6HlUGi B8LHnbYJgMvXJ9auDJ8xK18A2Twxyyhv7xMvX8ENzYxa2VWjesGRZ9WDhKja3viA4E2q VclGNdWkSb4o4Er8dr0dgIiFNOcvmhwZuuFImeVJCHecMasUsq3CGSY+8wT49N9/g1fs nv+Bs8ALslAZEBG9KWPlIZkNm+bFw0o+gcKeTeXzXRmc4iVieX4dJa6GI6pFaWb9hKKO fU+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=E0C/DiwVNlAFC3Ywqcwyrx/1SAypsWvBNTMWE37Wrb8=; fh=7xCLrSX88QNbwgIZ16kkHo9ACysTyy7OYkZe2mmr7Mc=; b=BWP7QyhLL1C/UHwJsVM69zengDsn8CsJ+L8C3SkyI1a/Ul9qW/9Cjj/IxE44+Dykv1 OTUtlrfjDoyrFqqH+9VLw2m7T6azFG/yxBorvtxTXVfmMF8zYsXCAzSZ8h3SHo2yT5EH nhUuP48n/zdZsYoe03dJ56jQ0NTQbRu1AwJ27rg+2Fqq13CzGtvlkwxVPKFNIVVWBdPF 4zrFdSwZbShKFhgzSLw3h8j94HzZOwzCkgmXqM3HZDBOLz0haRKKSa5lUwGh/hyT2GJr PZDJW/YKltOw3AONaaXJEmFT/eKhZFiZVJIJnOLY/jxCWApyBSi9mRymsqGL6CJm0Lvm DjuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NIdQ5QKN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-176789-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176789-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c14d0a5si66550665ad.478.2024.05.11.20.11.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 May 2024 20:11:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176789-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NIdQ5QKN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-176789-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176789-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7ED6C281AD2 for ; Sun, 12 May 2024 03:11:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4DB7BCA62; Sun, 12 May 2024 03:11:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NIdQ5QKN" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6341FBA55; Sun, 12 May 2024 03:11:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715483484; cv=none; b=YrkgWRQrNfydJotYjHEN2oD963qWfiAXoQzfAlmIh8VpYvl5kV1tG084eNbX0aFTNZTCu3+1jV8YCLcw87A/cHL5d1/SZ7fHU1StGSKV/NVtkztJzZkdviRoZN2Vn96KwaSe9tPkv7IUceQArFBQiIl7zlqsvo/BrDc6CnHuLNs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715483484; c=relaxed/simple; bh=GnE0N9IiKS/rZSXWZH1oKPV8RtXcCBleeY98LXa792w=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=oe3m4S0BbENCgJb7OtKaVI6yr5s5P/FvpicT+HiWxx37EKzBS+PWYttLr0tqID4JbGSj8xgvrhu8Lf7kK+U6t0Yp0U3I8KPshdhJDRDXeUkHQMOPe43qnToL39Qv0989tfJih8UoCCqXqadrdfKJldTbEbhZ6yVp6qXbz8f4L7Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NIdQ5QKN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E51D3C4AF08; Sun, 12 May 2024 03:11:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715483483; bh=GnE0N9IiKS/rZSXWZH1oKPV8RtXcCBleeY98LXa792w=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=NIdQ5QKNZjoJkMPF2uCcTDfU83i8uPf2IpuUWEPg1hYUDatxUO8bgXZtr+tNUZBjO K9BA1B+vRlGc01dHqDf+rGObGO/rtSMn16grHr+DfQQLu95SEqY7PEENsXG5zB/w69 I8QbuQjTr8iQD/R3ngocD+ABehzgyYQjqAtBftcIUaYz/H+ANEt2j+UEykmKmBQfad q36dBnn9oNtA23mPXHNndrLzypfbjfaTyx7L0GCfd2i2JfJp+7CO7s7GKofmSyRoPi uPNNvDNvmguzPw3G3IpGiT2bUdHSghjjq08pErpZIdvz4x8E3y2SnLZu5wU29cohao OyyVRlEOLqiFQ== Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-51aa6a8e49aso4226194e87.3; Sat, 11 May 2024 20:11:23 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWXRLDeni0Nu9/DCVHhRP+clz6Hqhf73WoSSxZDdu+ksEwVzT6XKJ3IE86v7H73TPE0WnVWo+3lDAn6JTFHc62cyr20ltMnCDV7x8Ysy3BAaETZCmeML7bloI15zCHFUSQaTfvI3UlfS5rSlPGw+6IskZFAW7rHrFDcqQUN1ptTow== X-Gm-Message-State: AOJu0YzGtuLjr06kpPJs80DmBY2YLWkCm/nAlLnW0MhklwtGHQhbGjfr dgTzJdU5HbRK3fS2F4YnB/rxS7MmBOEaPMhWgwdua2CI1UfvnHgcSVgq2tyyqse9SN+KkWnM8pw MbocXhCEcbI+HOlKuE5KiPbm3yCQ= X-Received: by 2002:a19:381e:0:b0:51c:c1a3:a4f9 with SMTP id 2adb3069b0e04-5220ff72f76mr3513970e87.64.1715483482254; Sat, 11 May 2024 20:11:22 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240511100157.2334539-1-chenhuacai@loongson.cn> In-Reply-To: From: Huacai Chen Date: Sun, 12 May 2024 11:11:10 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] LoongArch: Define __ARCH_WANT_NEW_STAT in unistd.h To: Arnd Bergmann Cc: Huacai Chen , loongarch@lists.linux.dev, Linux-Arch , Xuefeng Li , guoren , WANG Xuerui , Jiaxun Yang , linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, May 11, 2024 at 11:39=E2=80=AFPM Arnd Bergmann wrot= e: > > On Sat, May 11, 2024, at 16:28, Huacai Chen wrote: > > On Sat, May 11, 2024 at 8:17=E2=80=AFPM Arnd Bergmann w= rote: > > >> Importantly, we can't just add fstatat64() on riscv32 because > >> there is no time64 version for it other than statx(), and I don't > >> want the architectures to diverge more than necessary. > >> I would not mind adding a variant of statx() that works for > >> both riscv32 and loongarch64 though, if it gets added to all > >> architectures. > > > > As far as I know, Ren Guo is trying to implement riscv64 kernel + > > riscv32 userspace, so I think riscv32 kernel won't be widely used? > > I was talking about the ABI, so it doesn't actually matter > what the kernel is: any userspace ABI without > CONFIG_COMPAT_32BIT_TIME is equally affected here. On riscv32 > this is the only allowed configuration, while on others (arm32 > or x86-32 userland) you can turn off COMPAT_32BIT_TIME on > both 32-bit kernel and on 64-bit kernels with compat mode. I don't know too much detail, but I think riscv32 can do something similar to arm32 and x86-32, or we can wait for Xuerui to improve seccomp. But there is no much time for loongarch because the Debian loong64 port is coming soon. Huacai > > Arnd >