Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1408911lqo; Sun, 12 May 2024 00:53:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVlkDBoMX6hGW5No42UnK7U5V/gYVDKUsAaTIPzKD/Htuq4MvnImLlg7kVILw9OoVE1Wdaxl5MGocKdjCQbiceomTO2diWkVNQi58lBbA== X-Google-Smtp-Source: AGHT+IGi4jJ80AcFkZj3z8JvtD2Zq41hsInBmUbqA+N4IQErfXV6n0jawnuABRrmFINUamkfcnOP X-Received: by 2002:ac8:580c:0:b0:43a:b66d:1a67 with SMTP id d75a77b69052e-43dfce3d0camr136790241cf.29.1715500407081; Sun, 12 May 2024 00:53:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715500407; cv=pass; d=google.com; s=arc-20160816; b=VyjoALzYYsgtu9AmGLwGg4Pv1TLEyQVTl65Pz5b0YyWJw5QqxXqum8cB8Zkf0iDn4W WRbtyCyanFbWOklOtU1RPDQcWu5tNgjh5PA9Im9ieCsO/chtzcjExCG5cyleo8sot+bv ruDMIZEIedBl9HM3EQxlghUivH/e4hfisheU3aH8Uyd3HAVuGLneFq7IFcLhpqmcbSv0 j9D2p7ZhivNWauuOR00dMLcURWqlNS5DA076ybdqPc+w5fBA7XgSB20PmnMjZ+SiMFyA 3d4Zg/g//sI+CXATN1vNGdhtMuy0ni33ElNRN0sMFV+zOyr7HAVibF8yGtbfo4WdMQp+ 85RA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:user-agent:feedback-id:dkim-signature :dkim-signature; bh=qkvLE2hnnj9QTESFKiTg5ShrclNoU8nl5K0MOg/ShQU=; fh=5X15ndGIU71S4gDWB5yXv4XWUZIeWjP7nt9JihuAkKw=; b=OUtwXzQiKt7ecPMLFTN/hQV3m3tus8JpsTuVgvWmNRKq1X8XBm2LqoFDfx3zwnZ9Ue ATJEe9W5mpSSR0RGsp26UVKfzBJy5heF7hZnD5YWOznLzSTel5gGuVmxNcfwspwnZmUG UBcOPVr9zH6Yw3oealAGAMZptaSBQPBIyKIR+sQwS92xJz0dRD17FuebMcG+O111MRyN m+kEXhtYi9toMsq7GxZgjWdbb4bdPW48mDx2cusVJRhZ07mIySWFqw9l/RR1O5s/+MU7 +SDIi5jUVMV26vi57Plwy19sWDT17GeuY9TwD1I3jpHtRCDu+MnCPZwAv0Q+3ebsN25d 9Hrg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=IWHYpZkF; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=R528yBLu; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-176817-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176817-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43df54a1258si70800611cf.50.2024.05.12.00.53.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 00:53:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176817-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=IWHYpZkF; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=R528yBLu; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-176817-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176817-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CBEB31C20A23 for ; Sun, 12 May 2024 07:53:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57DE91757E; Sun, 12 May 2024 07:53:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="IWHYpZkF"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="R528yBLu" Received: from wfout3-smtp.messagingengine.com (wfout3-smtp.messagingengine.com [64.147.123.146]) (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 4D6FD3D6A; Sun, 12 May 2024 07:53:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.146 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715500400; cv=none; b=oLxdQMhO2kj5QmSxIa/DolEM/G6NC6qVV7YCYTqlcIqdk5OvTtOreVxr3b26OxzcgvhBKsTJHaVLkp9w6pAtvr255NsSpKrndXD7Qn79sjXjsENu4djvM6gSxIOICVUrcVb5v8//PLt02NHQqkTHKZtf6iXI51rowYfBgcT5/CM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715500400; c=relaxed/simple; bh=G32PthKcIMwHOlkSEv+ql7S5hSRmLbPeS6AmqWGaEG8=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=VVIWQd2i3DhxsP3g7bBA8gr+tRmBqPDCoJhGfL2FtnzmJ7guBT1YxSJj9EPFijVDJdue//kXIVATtwUHC9xfVIZQIM3EumLLKjStpsnsh02Afju2e5Dbxxu1Cf/PveoJvh/EOuWj6bRN0NRnQfnOyu+LJ+3JJZRvvO4c2AtMR/o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=IWHYpZkF; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=R528yBLu; arc=none smtp.client-ip=64.147.123.146 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.west.internal (Postfix) with ESMTP id CDF5C1C00195; Sun, 12 May 2024 03:53:16 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Sun, 12 May 2024 03:53:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1715500396; x=1715586796; bh=qkvLE2hnnj9QTESFKiTg5ShrclNoU8nl5K0MOg/ShQU=; b= IWHYpZkF9MbMCtAfW8nCtmSedLJaoK/FvVEPy543lIE81xa3hy7xqxVrDpk4sHcN 5opFJmE0ZjexrAiz6GJbIGYufpi/nUnPZnlj0/mUkBLdo7ty5pmKjVMSwHYstcYN CASDsBjPuBwHQcpnGOTe3zX85DSG6AamySWPLD1h2HVGLaodFaoFoOclVriXEeNP Hoh0IviCD5GBkIaFFEk6xlJxZWZWg3UNrhibDQWYZY4fum9QRfGHgFm+JgAo2c1x zRX/xhhQpZW5+forrLnIl9Bj2ycuH/YvU2005Jo02HErXQmiB9wrabDrd1+7T5u+ xOCBh9AwfobZ6rr+FCrfdQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1715500396; x= 1715586796; bh=qkvLE2hnnj9QTESFKiTg5ShrclNoU8nl5K0MOg/ShQU=; b=R 528yBLuuhm/CGTv8ufRb38zYxhAnYYur6J0CJB9pDiLZCbd2esi9e+l1gM5eDDWn ygcjdytUJgQqWfUP/PrjnpGaPpvtJ9i3La2fWyBC7vBcFwznIQFbCiavFS23mrcm rDvurobynOP6p8KgH3RQ+wYJTjjABFsYFLgqHiGbGt7LL1jdv9ifgFmfX9sLHUDR GyqX7NYxR31EIPNzT7YynWHEE59o1o/XK89UEC27r3QfbIPEBopClhWQMeC21UA3 pqFdDPuWA90oPlFU5Q2iK6Gviy8qawBC5j5o88TS7EnDJEWWOMcHDLBaEi0GOEcI e+8R4sUKLDWahXYIR7OeQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeguddgudduudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedf tehrnhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrf grthhtvghrnhepgeefjeehvdelvdffieejieejiedvvdfhleeivdelveehjeelteegudek tdfgjeevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 47EE9B6008D; Sun, 12 May 2024 03:53:14 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-443-g0dc955c2a-fm-20240507.001-g0dc955c2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: References: <20240511100157.2334539-1-chenhuacai@loongson.cn> Date: Sun, 12 May 2024 09:52:53 +0200 From: "Arnd Bergmann" To: "Huacai Chen" 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 Subject: Re: [PATCH] LoongArch: Define __ARCH_WANT_NEW_STAT in unistd.h Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sun, May 12, 2024, at 05:11, Huacai Chen wrote: > On Sat, May 11, 2024 at 11:39=E2=80=AFPM Arnd Bergmann = wrote: >> On Sat, May 11, 2024, at 16:28, Huacai Chen wrote: >> > On Sat, May 11, 2024 at 8:17=E2=80=AFPM Arnd Bergmann wrote: >> 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. What I meant is that the other architectures only work by accident if COMPAT_32BIT_TIME is enabled and statx() gets blocked, but then they truncate the timestamps to the tim32 range, which is not acceptable behavior. Actually mips64 is in the same situation because it also only supports 32-bit timestamps in newstatat(), despite being a 64-bit architecture with a 64-bit time_t in all other syscalls. Arnd