Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp224248iob; Mon, 2 May 2022 17:44:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVfdVcFxCAggDDPy/S1npF3k7OaQTWdAFMGWWy3T6d54/CbzxYfU9iFVdy0KekgOASwoPO X-Received: by 2002:a17:90a:b78d:b0:1d9:4f4f:bc2a with SMTP id m13-20020a17090ab78d00b001d94f4fbc2amr1977102pjr.155.1651538656306; Mon, 02 May 2022 17:44:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651538656; cv=none; d=google.com; s=arc-20160816; b=uaTHfAM6wOJ8DEAL9YJ/l05sRAmvWtEw1cB/tT24Ur/xiiiBEGY+T6cCKo1ewvYZF8 2LWxrpfneW6VUdiuBvBe/rc8My4xa9hJ+t0gjESnE1oRoNPtKDvl7XVRGOr9MhfDgdhe C1HTNZnPA8sAbBBfoXPz8R5J0+aGyUZiwrsjgvqNbSQ0unJa3MARTFcLOd5r5ssWmBPX 4Pgsvqf0zTcOb9Cicg00vv9IOc+mW1rAp5Iiy28LEFd2HU8xBeOdeRTm3GTpG9oY1BwB oxswAGOf0Uo/ogto4zQQtKBsEIz+1DO5u+vMdLZzzDgNrCfPQ7DO+2PhgvI9YnZxTzKu 2/AQ== 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; bh=0gasB4oBNrt7o60rAYbD8CW1aw+Nx+JM639yFbYm+P4=; b=tDu7gl8Py+WMN0gbsOBsNFCnaouk0uCOf6rL6UIa5+4wvx+vZFU2cDUpWVjtebO+Tp LTudiRfxEZGv86a2QF/AeTR9RtQkbCSq6z070eij+lUfoe2H1m5oF+dp05OdaC+lYrn0 rS9Y5nnxdPouh0X6wm24JnZ3NyQnG8g+mz48GhwilX+/Tr0LdssYYgUy/bktI5WPRxJY IuVH59wiDU7rAPYjgMOQFY9DIg7FLiWkroS/ag12qRg4zUGMdUvq7r1cO9Hkh0tsueCT 25paTaAAP5QRLzo9PbDGzmT/aBSJJydv0jzBcWbsb3ibMH7lOVT0XWNi6YVsVBDNsLAN kx/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m7-20020a638c07000000b003aa52189f04si14992240pgd.625.2022.05.02.17.44.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 17:44:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EE3CF3DA61; Mon, 2 May 2022 17:33:57 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237756AbiD3LIm (ORCPT + 99 others); Sat, 30 Apr 2022 07:08:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235451AbiD3LIk (ORCPT ); Sat, 30 Apr 2022 07:08:40 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 862152183C for ; Sat, 30 Apr 2022 04:05:11 -0700 (PDT) Received: from mail-yb1-f175.google.com ([209.85.219.175]) by mrelayeu.kundenserver.de (mreue107 [213.165.67.113]) with ESMTPSA (Nemesis) id 1Ma1HG-1nNjqD27l6-00W23Y; Sat, 30 Apr 2022 13:05:09 +0200 Received: by mail-yb1-f175.google.com with SMTP id w187so18600390ybe.2; Sat, 30 Apr 2022 04:05:09 -0700 (PDT) X-Gm-Message-State: AOAM531o/3BAN8nqceJV/xsr+E4yVz2GNdptZvfqIMN9bInkV6Fq3mxS XF/+7H5zHjU7aXJJnZT4XERP7tJBoQdkJtbSIAs= X-Received: by 2002:a25:cdc7:0:b0:648:f57d:c0ed with SMTP id d190-20020a25cdc7000000b00648f57dc0edmr3093454ybf.480.1651314908194; Sat, 30 Apr 2022 03:35:08 -0700 (PDT) MIME-Version: 1.0 References: <20220430090518.3127980-1-chenhuacai@loongson.cn> <20220430090518.3127980-14-chenhuacai@loongson.cn> In-Reply-To: From: Arnd Bergmann Date: Sat, 30 Apr 2022 12:34:52 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V9 13/24] LoongArch: Add system call support To: Huacai Chen Cc: Arnd Bergmann , 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 , Christian Brauner , Linux API Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:5Q9ONKpvezK/gY6sK2MPxh0TEU0BEAAMPsvROxQ36cnlmFEuzsX HJsG/sjFOKpipVSpnXpq9/Ku4sBDl72eHjTZI/jSDmrqMQ8IIFStXLMVQjFdfwzt3St4jP7 E07FbeDW1UzkQp6jGVh7QHV6fYvi4I2RH664Dtr/txCTm7/GLBVUuHn6rRjXvAUTb4m+3ZQ bP4jZMRxNSRZ3WHWQ1MAQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:eulq2tmNm+M=:VWpAPGIqyAGE8XZZ/597/q 607IIA8lc0UkUcwtoSUWiqCDiv8NkDTjZf5CfBWHkyYWI5v6ugJBx1Sep2d2fKTf9s0CcHV+6 AC38+yBaNitt5RSzHOgXZuTrZmc4ItLRupVyAkJ4tio57vcY6BdgebYO6WRZNYdMhYGAQC1Qg 4R1mA/zuN3nLbNArfF04xmD5HwT1GIGKvGxa0IHcazrEThfL7T80cxAsgB1saMOA9GKwz9OFu Qm/nhJIhjdXrLNzmGYDbU7wN794V4uAAFevqSJ5zZfWZFm21pUCI1Yph3EH6SrRBdeq0QKOD1 UgBLtiXPwRImYhyQf25phvFNGnitD+4UT1VGY1mJf8m/Nh9DehgXVOwRG1N22h7h3VLuN3wJV 7QdiEKnBs+IE7+InKpGuKvZzJGeOzoNNimUPHf7f8MOI/KC8d5IBTTbLW2Ogj/NSqloietbNR a15a4J80YGoQh4iO+hmZtJd4JYFy3RAfsXmX1k/3JcJfrBPUU0x/xFIL0vfI5P/oXW4Uv8dOe KU3tB5VkK49Q3JPO3spAK/SX9qtD6KjhicJspuTXEi4MzBMtXin7xYVFMqCYC4NWoMqL6UlAC wmh2K38Cac6xYB8ctKQ6zDCnJTSVI3yfygTJWisblgZYfKjc6+XiJ9KuLrTP8QEfmXoeuWFY2 XFIgsjyIGJ1/sLF4fJux9e1rW1r5tEhy0/Z3zbRoDoYHiznnc69tgmUHkeO6VcNtoijrVXV3w ZnjocAxXp3e/Lrwbn22lKkzUmskpbwYQvJ3096awfpKnrfwS6OWs4AC6pvVp0Z6tDfFze+o6b FsBpaMjQIFzmgpcf9e6egimZxIfpmtmobma8O7cfTq18vbEI8U= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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: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. Arnd