Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4732312iob; Sun, 8 May 2022 23:36:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxT+UwViH9ru/8KbotQmoWBuanr/H+87VgCXxt+8Dj9mspShMlGjjNZQLFUY5/a5ZMnpHTL X-Received: by 2002:a17:90b:4a02:b0:1dc:4710:c1fe with SMTP id kk2-20020a17090b4a0200b001dc4710c1femr25162824pjb.208.1652078177296; Sun, 08 May 2022 23:36:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652078177; cv=none; d=google.com; s=arc-20160816; b=R8cmQj5pfI5efxy/EnaXfVH3MU04UFfOUaGhh6zXghzPpNuoSXIcOergXyXwoY+pSI laQJcK1k8oD0HIUh4Bwj4SgKaGIN+73iVuA6L/5I7ROmIFUs2phXC6naNjTShvZoRXt1 wZHIO+FPuuw0pCdZywXomOReYVSzmSimeXbN9kPGgfDn4WMhyIucdaTTEat41Tgp2S0w Hm6yzPxxC2pNmV98x6qZJn0g6BDu5ZBtkTC2vijUDLYpI59TP5CBACApeJ7lMC4Z/DQh 8iOWDHCqg03erVjnDDj5nuUlVREtI2Yrpt8s9tGBnc1ja8f3zP5mBe/KQte8UlLo3HWF PIEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MMae2kkL0ecBuPtGC+u45lPIfhhCtPBKrOcbxBFFNfY=; b=CT2z6sIWnHBOoJqX3p9+OWy72ZeB/74qRX3DWeJeRPDG72NQMGxptSEkECUoigfD8d sdFO9Mw5RiNBbFM6FNoEolf/KqOFh3pmOWJVKylIGWJjdRlk5hfYmzEfnElU9Ougio4F srYazZ/aVaOtZSbDMZ9xu/+9orl8u23oc2Ux2sumWmiZiqtnkhDr/DW1V0DVTT+VjItw a97h2uuHOu4IvCiYOm+AkJeB5UPCo2MkKvD4t03T1CCkF7Veu8qTWyQnV2qfeAgXYOIc QEVIYrKX5jRdsLoRyvxsC1MMmMF/p0I0OyYXLsFzVwGX1g9Z2vBDtENE3MKdc3Yk8BYS Bohw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="YW/RatCk"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y28-20020a634b1c000000b003aba0e9aa20si13531084pga.828.2022.05.08.23.36.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 23:36:17 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="YW/RatCk"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8931111906D; Sun, 8 May 2022 23:31:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1446344AbiEGMPE (ORCPT + 99 others); Sat, 7 May 2022 08:15:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1391180AbiEGMPB (ORCPT ); Sat, 7 May 2022 08:15:01 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DD4033884; Sat, 7 May 2022 05:11:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BAC15B8009F; Sat, 7 May 2022 12:11:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE1A7C385A6; Sat, 7 May 2022 12:11:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651925472; bh=ny0hixdm2DB1RZtEMrHXgACsqdZeemYTQuhSsXAyMAQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YW/RatCk8lNqeYJ1ojv5lru5Rw94pEIjaS0Hr8WaAXhjDPEQzKEk6OwQtyjRQKsqV X4vxkcKZItcNhYtEERfPTd2aVVu3bLMQpxtFgwGUbQeEkd8UZ7paOdYxod1Hv9RYBb 5L3QuWJ3nkLRvkUcX7RevWAz2F8UJXQT4zR6VTw535S6VaZbNHKDtESBkKNBVJoDQa iKHGcQOVxeCqWmNKWw0WDUoEI6Xh/vho/9QsUvlzDK2h8hUdmKtZhRo/jERXARmo/i 5A+aU9pxupmDFO7WigUACN918yMjoLFQvWHI8uWtc5Tk+Ns7xrcyApL5YPx4oxccB+ H1eFW5aaPCiFg== Date: Sat, 7 May 2022 14:11:04 +0200 From: Christian Brauner To: Arnd Bergmann Cc: Huacai Chen , Huacai Chen , Andy Lutomirski , Thomas Gleixner , Peter Zijlstra , Andrew Morton , David Airlie , Jonathan Corbet , Linus Torvalds , linux-arch , "open list:DOCUMENTATION" , Linux Kernel Mailing List , Xuefeng Li , Yanteng Si , Guo Ren , Xuerui Wang , Jiaxun Yang , Linux API Subject: Re: [PATCH V9 13/24] LoongArch: Add system call support Message-ID: <20220507121104.7soocpgoqkvwv3gc@wittgenstein> References: <20220430090518.3127980-1-chenhuacai@loongson.cn> <20220430090518.3127980-14-chenhuacai@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Sat, Apr 30, 2022 at 12:34:52PM +0200, Arnd Bergmann wrote: > On Sat, Apr 30, 2022 at 12:05 PM Huacai Chen wrote: > > On Sat, Apr 30, 2022 at 5:45 PM Arnd Bergmann wrote: > > > On Sat, Apr 30, 2022 at 11:05 AM Huacai Chen wrote: > > > > > > > > This patch adds system call support and related uaccess.h for LoongArch. > > > > > > > > Q: Why keep __ARCH_WANT_NEW_STAT definition while there is statx: > > > > A: Until the latest glibc release (2.34), statx is only used for 32-bit > > > > platforms, or 64-bit platforms with 32-bit timestamp. I.e., Most 64- > > > > bit platforms still use newstat now. > > > > > > > > Q: Why keep _ARCH_WANT_SYS_CLONE definition while there is clone3: > > > > A: The latest glibc release (2.34) has some basic support for clone3 but > > > > it isn't complete. E.g., pthread_create() and spawni() have converted > > > > to use clone3 but fork() will still use clone. Moreover, some seccomp > > > > related applications can still not work perfectly with clone3. E.g., > > > > Chromium sandbox cannot work at all and there is no solution for it, > > > > which is more terrible than the fork() story [1]. > > > > > > > > [1] https://chromium-review.googlesource.com/c/chromium/src/+/2936184 > > > > > > I still think these have to be removed. There is no mainline glibc or musl > > > port yet, and neither of them should actually be required. Please remove > > > them here, and modify your libc patches accordingly when you send those > > > upstream. > > > > If this is just a problem that can be resolved by upgrading > > glibc/musl, I will remove them. But the Chromium problem (or sandbox > > problem in general) seems to have no solution now. > > I added Christian Brauner to Cc now, maybe he has come across the > sandbox problem before and has an idea for a solution. (I just got back from LSFMM so I'll reply in more detail next week. I'm still pretty jet-lagged.)