Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3077478pxp; Tue, 22 Mar 2022 11:32:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5ENKce33TLWFzLPXO9fyjWbPmnVxPSk3vraoYOvptzeA/oNW6F5XPSW4yAu2gqKTP9JeM X-Received: by 2002:a63:121f:0:b0:382:2513:df9e with SMTP id h31-20020a63121f000000b003822513df9emr18754065pgl.269.1647973973219; Tue, 22 Mar 2022 11:32:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647973973; cv=none; d=google.com; s=arc-20160816; b=Zitc11TuFSfMgi3dhM5frvTzEJQwVdV8RnyOuEwp4bqrUU5MG41zdQ+jdtgt1gY0ZA gr+1LqNiEfSyvi6UGloQnyW9plsDo5jIv82lDRi1RMhj59UzJruZRF/zJEh5lRhR0rYn buq+HPKw5Oy8IUZIHzKMA4wzTH7EqgIh1dqvKu1mm4yueNcJPiPR30BesdklW3oB8T7x Q8wCIrAAFnJcD3XDPQDGMu95UmgzzTWcfHSZYm2immc+A4l6N0zayc7p8k1c67njPnvz yJK+4BVeFKLJUln8DjhyTHKvOQMjH4wCwtNpEPRFDB/FonCPVGvLu5NxpGJIFDOAj5ur tgPA== 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=DanoSK8Ck2KEYrU0L86aDsDXro/FboqP63ynefRsdm4=; b=nouMJGY0qHsWUnrfCMO4VEro7Z/DqgAJOMQeQ8qN9CLfOK/mntJZKGz6mA+Zt8qfPh wbDSLIi2Bxhl621sFYJin86NkuMBliPShndynYHAAWil6m6AO7LYiRioitaRcPT11Da9 Nf92ALSillthPhQ+0JiPy5ehzCFrlJyKkDc+y2LKq7Uvtd/GfgG2T2sMQjOb40Lg/nQM arJismMxTsJ7SZ0U+NDhlnReF04+IFn4nls2l1VCssO1TL2aT2bm9Cs2aPzOIHpFIXXY HNybfhgMlKbPEWhvPTu1VP2Gzs9sV7GpJQHTsME87NcxpywgT1Epi/WMoMnnkN5EnueA PiUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TYTt1n9K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 194-20020a6306cb000000b00382274cbb1bsi13075523pgg.873.2022.03.22.11.32.37; Tue, 22 Mar 2022 11:32:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TYTt1n9K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236259AbiCVQEQ (ORCPT + 99 others); Tue, 22 Mar 2022 12:04:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234304AbiCVQEP (ORCPT ); Tue, 22 Mar 2022 12:04:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF4585C36E; Tue, 22 Mar 2022 09:02:47 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 4F38D6126E; Tue, 22 Mar 2022 16:02:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3B72C340EC; Tue, 22 Mar 2022 16:02:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647964966; bh=53qhTxwIy68V/G2LTGU3ZP7e3PIWiRm5YddHHvOGxXg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TYTt1n9K9NQ0sVF+i5iOM90fsEoISAnF4ekEo5NM2Q6qavYzlU8FTwRdkAFx4MH7D oKlB0+XXboSDJb9pHvpMLb+tymOJoyYKLhANS/IwqHsaxv9jk9P+POCejcbVc4g56I tgG1AHyFuMw0tqFhDQOXERtCjcMQBGewEE7HJv5aAKpN2CyuHBxECyjz62gVvzuGlm MqPxdmvBg8E8hP8zuGhRqXeaDz4V/rd00J18PJIteP71u7aJ9KNxrxA+2z9lYPchMp kDeTlOfpsijC4ucm7AQ5RyWcovn+UfaWKbkJwpixHhpetjmmkmXoYd7Jnwj8Od1nu+ 4qv0Jtg0q7FPA== Date: Tue, 22 Mar 2022 17:02:34 +0100 From: Christian Brauner To: Arnd Bergmann Cc: 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 , Jiaxun Yang , Huacai Chen , "H.J. Lu" Subject: Re: [PATCH V8 13/22] LoongArch: Add system call support Message-ID: <20220322160234.hxyiugzm3qstyun2@wittgenstein> References: <20220319142759.1026237-1-chenhuacai@loongson.cn> <20220319143817.1026708-1-chenhuacai@loongson.cn> <20220319143817.1026708-6-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=-7.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Mon, Mar 21, 2022 at 10:47:49AM +0100, Arnd Bergmann wrote: > On Mon, Mar 21, 2022 at 10:41 AM Huacai Chen wrote: > > On Mon, Mar 21, 2022 at 5:01 PM Arnd Bergmann wrote: > > > > > > On Sat, Mar 19, 2022 at 3:38 PM 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. > > > > > > Please leave those out of the mainline kernel support though: Any users > > > of existing glibc binaries can keep using patched kernels for the moment, > > > and then later drop those pages when the proper glibc support gets > > > merged. > > The glibc commit d8ea0d0168b190bdf138a20358293c939509367f ("Add an > > internal wrapper for clone, clone2 and clone3") modified nearly > > everything in order to move to clone3(), except arch_fork() which used > > by fork(). And I cannot find any submitted patches to solve it. So I > > don't think this is just a forget, maybe there are other fundamental > > problems? > > I don't think there are fundamental issues, they probably did not consider > it necessary because so far all architectures supported clone(). > > Adding Christian Brauner and H.J. Lu for clarificatoin. Probably, yes. I don't know of any fundamental problems there either.