Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1284588lqs; Sat, 15 Jun 2024 02:29:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWb9bfQa9MrXgGTz9pXg6QHrhvS8gf64QRDjfY06Hc1/Epx9LDz+oOO69es82LQfzFptWod1Wl/HrVHAjQ82z8G+ODnHG/87qdr/3ipaA== X-Google-Smtp-Source: AGHT+IHW9fhE9zUXxEEZLW+7DDmm6xIv70lktrgFDSEzxohdFXXZLyZN7+lawVPQQ/2gWSj9Eb89 X-Received: by 2002:a05:622a:44c:b0:439:577d:9a93 with SMTP id d75a77b69052e-4421687d3e8mr67765331cf.20.1718443774158; Sat, 15 Jun 2024 02:29:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718443774; cv=pass; d=google.com; s=arc-20160816; b=iG2cOtH5v4pV9NWNKIBKNzhPdxTkVVs5wyVHC7N8/XSJfud0xAV6TQA5w+p6kONeL/ G9bLfHx83+n8tIZmfGBvhav09rGrc+rTnyEsMlMymH7jHMher/JDD5239V36mToAvsSY +beybbO86bO+ybpvvNgYtST7gqBeKns+HyK1W9+4XtEkszyQ3eAIqvPv93Z5TulshLzr EH8862mW1suD+dVStf3ydA6eoIX4E7hXWd1Q9YznSne0OxNzawCAC1fbsuNu/q1rVaig fgl6nzDK/PKKgZbmm4Khc7PbYA2tV+ZEKMszwMEQp38L6EfNI4cRgR/geICOB46ZWucO ekfA== 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=wk+CB2WpVGVxrCxanALiAcHLNl8143HvhTbT9DUJprU=; fh=2l64KcGSGs4OyWv7rugAyo9kanrgoiW4q9qtIlQizME=; b=Qi6NSd3EH6cw4ceDtwqMcnU3wFvR3codBtMcRGgGdK4HMsvYhWXEVz6VLKQu/q4V62 RrqfMw5g9+DHht9kqos8uZ41L1y1kxKSkBTxGfcWa3I9JpLeOR58PCz/pYkOC/rwMZeI n2GZ8AfDrxtCRmMreRFEG3e31KnPjp+moOX/DDAi2gpTf/X/lfHIA5vDjj42XFXf9Tag SB+z6cnpcjOO4FENuljdnZCX/ylUMjxQXzqPtMdRq87iNi1xeZleUow0e19X52omjXQW vbp2zxgRbbKRaFVho59x4xG7u/it9cHv+QV/s5eceESV94FOdFi8J8p3YoGYO9dKk8Vw XT0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aeRqYHqd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-215810-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215810-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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-441f30f86basi58324641cf.677.2024.06.15.02.29.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 02:29:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215810-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=@kernel.org header.s=k20201202 header.b=aeRqYHqd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-215810-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215810-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C7EC21C20B5F for ; Sat, 15 Jun 2024 09:29:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3CCAE28DDF; Sat, 15 Jun 2024 09:29:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aeRqYHqd" 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 59F10208D1; Sat, 15 Jun 2024 09:29: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=1718443764; cv=none; b=rceUifBqq+4QKLKwU1xIvl6nkWCNFJ2zpcpQct88iydO+2wgorPByCBEO/cqKfXMQ1JXr/0UBqt51RGQnXxTv2Ocb1stZEKwfVqao6KRRnNjcU/9HU7A+RtuCgWR5MwWaXm5y8UsY78CdB6Ry9ORozHuDcTWG8wmrN5/EZoGKng= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718443764; c=relaxed/simple; bh=dODNvqGMI75Evnd4E0dnnJCUYrocpv9kYFTDYSbSQuE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=qy593LslwoLNe2tIaprs+4d75eqP3f8C36N8rR16kJ0RsFdAnF668Tt0EXGWNm7drExAOlQhByReMi0+xbt65u3bENXss2syBhFgmS77gK4jmDiBwAJdV9qPA6t8IujXUUijKmDKS1k5ai8ZbEITq87osUd7+XK9QmX49Jd7nq8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aeRqYHqd; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBBD1C4AF48; Sat, 15 Jun 2024 09:29:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718443763; bh=dODNvqGMI75Evnd4E0dnnJCUYrocpv9kYFTDYSbSQuE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=aeRqYHqdKMOYYr5uE9gUJ0y7LavT08QSTNDTJpU6iX6fQQqnU23igzVCrIO3uILfX zSAtsbbMrTlXrnUcizk8XECs2HB6zNkNW07RXgsDch06RVUdeyQ292MJ5O8nA9eofd gBlMFVavRHTYlKGVcKbi6d5wkwyODhrjXvQCV7KoPw2hrZFNjatrXWb59qAVoXxvHv +Me5evZZ9XF4ZVMPu9VvWOTv2v5vrIupvfAjdzCvl/J3BxN7oagISdled2N+MQoihZ F/LKeTxDkHKvy7n3Z7yvf2bFaB6LXOnema1Rj3n4plIFxhGZIx0awl03KaaSfSF+Kj GvghNaclX4RyQ== Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-57a30dbdb7fso4604690a12.3; Sat, 15 Jun 2024 02:29:23 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWJYUxtTdXp8jnY6OXcaTuxp2SZfHWDaB6rQXF5J8zLbGA8uB7BW5i9EB7PccdA5GzKDzuURQz37ZmI3l+8quCs4ey3xEBrSqHoCam4OKD7iSjr+gHMHxocjGwnqb2yDaBbNGRJMDu+Sqde+5M/O5MHjYehse6KHkuHKm5efpObyw== X-Gm-Message-State: AOJu0YwqdmjFW0hlC+A6xC6BdUYBphXZnYW/Do/gkLmsUxpMPFGVYIvi rfMapG/7WwNpzHBDNe0u/i7Ve2zlJS+H6/W2kmHHOPreGTNKM/aReejRACOYj9Bs2pLYnw0FBN4 UOQl8Y6nyvKDuaOGSpfyAHEeqrbU= X-Received: by 2002:a17:906:6a02:b0:a69:67e3:57f6 with SMTP id a640c23a62f3a-a6f60cefd5cmr441644266b.5.1718443762325; Sat, 15 Jun 2024 02:29: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: Sat, 15 Jun 2024 17:29:10 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] LoongArch: Define __ARCH_WANT_NEW_STAT in unistd.h To: Xi Ruoyao Cc: Arnd Bergmann , 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, Jun 15, 2024 at 4:55=E2=80=AFPM Xi Ruoyao wrot= e: > > On Sat, 2024-06-15 at 16:52 +0800, Huacai Chen wrote: > > Hi, Arnd, > > > > On Sun, May 12, 2024 at 3:53=E2=80=AFPM Arnd Bergmann w= rote: > > > > > > 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. > > We can only wait for the seccomp side to be fixed now? Or we can get > > this patch upstream for LoongArch64 at the moment, and wait for > > seccomp to fix RISCV32 (and LoongArch32) in future? > > I'm wondering why not just introduce a new syscall or extend statx with > a new flag, as we've discussed many times. They have their own > disadvantages but better than this, IMO. We should move things forward, in any way. :) Huacai > > -- > Xi Ruoyao > School of Aerospace Science and Technology, Xidian University >