Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3704033iob; Mon, 2 May 2022 03:36:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3ywAS6VrcCJqQnpmNbY0MCbOJTzaNwsTuuM5f5JsZOcqtNv8kd6ECpSDxohmglYMA2cUE X-Received: by 2002:a2e:b5cd:0:b0:24f:e86:be54 with SMTP id g13-20020a2eb5cd000000b0024f0e86be54mr7854506ljn.250.1651487777968; Mon, 02 May 2022 03:36:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651487777; cv=none; d=google.com; s=arc-20160816; b=tTOQDFKO+VHG1WY32QlNESgItGlZOoiv0NN1y8TWbj6ICjFLrv0wYIqWjaLU2nhw7w rllaOgzp79wJv1M3xSwgw2zaj1iGFmtNkPZ+swiNdhj8CBgxFRcFtjIVNl3Cvr+TaM7r 9ktLwGoP2NswCrw6ptn65yt5Yu0seH/pqm9lqvmh4gd1eK7rIHCOX+2M+EQMhcEyL/gM niiU01/+HVX1ODebxwjlJLg+psDzaQzSRbLWI6Yp24Ufmcp9YJh/0Ap1lbVsHcM8M0kg cUjR9KTCzyGKcX53DHAdMysbrLDqoFB+EcC7THwQtPn0yE4XnqhpugmwNmlRLVGtQFy9 l2rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=jDlJEsYHsH5/u4hrMRhfUbsT0qjmPw77962C19d54XE=; b=dhS9QUrWUYcDezC7A0iXsf0kpuJzQhaXPb6nYQHtcv/tA8tRZuGPe4LeXJ4x7SReNM 3yI/33tNRUrrQ4rYGhITCleJeDinsqmmrWX4KMYe5pQR/ocg3w4n8YcApXxRC+gU4vhT 2Q+vfFSW+esoc9ADKMKwcbfZwpJswlKV0X0QGgiLl7QxNuCj9d4Oof+1XgdFYdT4Szqy OptPxBMM0p8x7RyjkXWJLEE8VOtAPJaBcRyxDARhnxHsoRTvaj5jkL3DhXU2zkkW4kwW oUpeE2wvn96QAehSfBZyM0AtsufwB6Thl+BSua/KZOoO3ddq69Nr3r3p4KTBedY9dAxO nyRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MOdZAyOy; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13-20020ac247ed000000b0046cff822d1csi12728157lfp.495.2022.05.02.03.35.51; Mon, 02 May 2022 03:36:17 -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=@gmail.com header.s=20210112 header.b=MOdZAyOy; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238353AbiD3KJR (ORCPT + 99 others); Sat, 30 Apr 2022 06:09:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382556AbiD3KIm (ORCPT ); Sat, 30 Apr 2022 06:08:42 -0400 Received: from mail-vs1-xe32.google.com (mail-vs1-xe32.google.com [IPv6:2607:f8b0:4864:20::e32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E82D15FFE; Sat, 30 Apr 2022 03:05:19 -0700 (PDT) Received: by mail-vs1-xe32.google.com with SMTP id t85so9684120vst.4; Sat, 30 Apr 2022 03:05:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jDlJEsYHsH5/u4hrMRhfUbsT0qjmPw77962C19d54XE=; b=MOdZAyOylVEF9SHL6setlZ43OIx9F+W6/c/NrJKf7DW4FGIlMHhfB4tzN3SQZf11Z3 QQo6L95/ja4fa+5ds9gJXdSVto5O+awjhKs5JNu9cJLhZpThas37pc1ca2HnnWbqEJCb WNkPGP5Okq7/BIj1ltz5ZIj9gLkOperYtSygRb4wIqLgzoxc66Y7/ZEqjxSmjgkAaQ+m OQI8VNL5flG4E0GjNWyaCeKAwojjPfvjS2J9AeAm9dMA9mky9me3ivk4j4H57L3xuH+V KBSJQSheDl/1GK6K9/MmxQ+AV8KwqGlvUTj4xXPt/rKg08Ce73gwj1qkvhF6HBUovwst sdAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jDlJEsYHsH5/u4hrMRhfUbsT0qjmPw77962C19d54XE=; b=COZMT6xdEzfS+y9NlTNrKIubUyuGL/gzItxALGkt3EjSgONqn5VLNdwsqx7/Xqn033 FdfuJZA3gKvivfDNJZlWBSSiDNeRXzQwPGxWiubGYzEk4NexVp2okd7FhYPf9LKz6oQs NiMAPHL276U/AN5sEcgo280bTv2nQGQYP+8pNPkPqPXg+11HiD4d05wih/t15wK6hQU8 uAIhl5BUOHZtpr4oREn7it/MN9QG+AT3IMjH5yRzJkallYrqBKhRRyXZGbZqR355tGH5 xj86eLmbzLg5E3kFxFQJoNMgJ3ZVH6S/byi2hhSXpFtnYFHEC7LOZif92pSLJBzyl9q1 wRLA== X-Gm-Message-State: AOAM5301A3QU1fFJ1FAPdMMhk6wwvJDDiMJAyXntbzfGUrKeeqKgV2Om tqB+MCIN0qNtlnBZDm80GTBR9HyN4xFQ6RjkY8E= X-Received: by 2002:a67:ea4f:0:b0:328:1db4:d85c with SMTP id r15-20020a67ea4f000000b003281db4d85cmr963977vso.20.1651313118631; Sat, 30 Apr 2022 03:05:18 -0700 (PDT) MIME-Version: 1.0 References: <20220430090518.3127980-1-chenhuacai@loongson.cn> <20220430090518.3127980-14-chenhuacai@loongson.cn> In-Reply-To: From: Huacai Chen Date: Sat, 30 Apr 2022 18:05:07 +0800 Message-ID: Subject: Re: [PATCH V9 13/24] LoongArch: Add system call support 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 , Guo Ren , Xuerui Wang , Jiaxun Yang Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Hi, Arnd, 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. Huacai > > Arnd