Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1747301rwd; Sun, 28 May 2023 01:38:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Y7CFIqIDBwEnpwmPC7wGzgngA76j18JQ1mcKV+B+IVo03aIaO2FRJfn6oydHGCaCv0nWh X-Received: by 2002:a05:6a20:9185:b0:101:2923:56cd with SMTP id v5-20020a056a20918500b00101292356cdmr6005475pzd.62.1685263128195; Sun, 28 May 2023 01:38:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685263128; cv=none; d=google.com; s=arc-20160816; b=v5wueZUa2LeXXKaoQ1zaExPTyGlOlUiSdHjsWEJU3Qo0d+XgfUwjkHwxAIpIpetSb3 yemZDLZkKXftVSRbq8j6osNrCGsSDgJtrJGfOuiVkASDgIW0t5eiLZ4fb88AV29DSXo+ 7zXKlQICkX7gb197F50KVsLA/aDUUJtQ+XX5C7pUiH9dy56TuSpIfMLw6gweI1A6f3oZ Wo5dWdHShoStDxy8DPc5isSrUovH2Fq/N+1p4wzbOT+EqT+TEza08QYH2PF35CvMgKrG 1BSho2dOM5Ta/jvQuwQS1sZu7coIsrzlsu1YkFVs+nf44AsIl4pQWZ5UY4O4FyfMeX0U VOZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Yigit+rw1LPkm4qQcfZBksbrtBvKzVwQ1t/EX5p9WpM=; b=bk+ZOFIn/liR0jJSRPwkQkbQCsNRsTQBzbWmihwbcidJWUurRJb7+PVy08YcV3z0Pr BZQEfKqewG7ePSgLlOB81P4yG4F4yKuqArlliIJquRzIiwnRzOug8BAPIZu5AgyPaTbb uEUarEkVgiL+x4GmXve05cuEWppJBLyoZkkAtbhqnKryXWHQONSPpuOKDHWXc/Iqmzx6 jBy+1OpTgx+P+dGlOOhoXEvqvc06SFy9P0yN1LlMasoZD9mg4c+x+ASdlYORa5OavGf8 WWT69Chtp6knUG0Ur8OkLR8UXTcalr+Sqtvuhee/AAsmJL6q0SDLb0SPZNnheJz87mHw cOpw== 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:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w20-20020a637b14000000b005347e036056si7818926pgc.633.2023.05.28.01.38.36; Sun, 28 May 2023 01:38:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229597AbjE1IAN (ORCPT + 99 others); Sun, 28 May 2023 04:00:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjE1IAK (ORCPT ); Sun, 28 May 2023 04:00:10 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D2B49DF; Sun, 28 May 2023 01:00:08 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 34S7xt8x001992; Sun, 28 May 2023 09:59:55 +0200 Date: Sun, 28 May 2023 09:59:55 +0200 From: Willy Tarreau To: Zhangjin Wu Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, palmer@dabbelt.com, paul.walmsley@sifive.com, thomas@t-8ch.de Subject: Re: [PATCH 00/13] tools/nolibc: riscv: Add full rv32 support Message-ID: <20230528075955.GE1956@1wt.eu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,SORTED_RECIPS, SPF_HELO_PASS,SPF_PASS,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 Hi Zhangjin, On Thu, May 25, 2023 at 01:33:14AM +0800, Zhangjin Wu wrote: > Hi, Willy > > Thanks very mush for your kindly review, discuss and suggestion, now we > get full rv32 support ;-) > > In the first series [1], we have fixed up the compile errors about > _start and __NR_llseek for rv32, but left compile errors about tons of > time32 syscalls (removed after kernel commit d4c08b9776b3 ("riscv: Use > latest system call ABI")) and the missing fstat in nolibc-test.c [2], > now we have fixed up all of them. (...) I have read the comments that others made on the series and overall agree. I've seen that you intend to prepare a v2. I think we must first decide how to better deal with emulated syscalls as I said in an earlier message. Probably that we should just add a specific test case for EFAULT in nolibc-test since it's the only one (I think) that risks to trigger crashes with emulated syscalls. We could also imagine dealing with the signal ourselves but I'm not that keen on going to implement signal() & longjmp() for now :-/ Regardless, in order to clean the things up and relieve you from the non-rv32 stuff, I've just reverted the two patches that your series reverts (1 & 2), and added the EOVERFLOW one (3). I'm pushing this to branch 20230528-nolibc-rv32+stkp5. Regards, Willy