Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2041498rwd; Sun, 28 May 2023 07:07:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7wnP6rBHfEAduY2iE4PdJZyA2OdF+bnik/ycDPDXYKYDZhB2GG6gfBvoyxltt00dJBV/Zx X-Received: by 2002:a05:6a20:258c:b0:111:26ee:8ed with SMTP id k12-20020a056a20258c00b0011126ee08edmr443255pzd.24.1685282863088; Sun, 28 May 2023 07:07:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685282863; cv=none; d=google.com; s=arc-20160816; b=VbCWAJYWDuATxoy5zBTGiDfHJS0ObzkLZbOXintYsiw49era//EBtuauuVBbIUQF2b EhmvZTDwwDWoXmO27uDfW28uBrC71mOQ8f81mMoegJi17Zf6meNNHfLdkS2D0oRfqmNf jkGMSE+g5tozh/sxpYlQvxlOFNzwjY3eJwHUaw1pIRlE6qdrMqlwRt7LUYPGmqmXx644 eFiAkiJDTAoeO6s4V8yJ09rUUlR2Ilg2BOx/PkwEfzU4jZkaYU8exoVkzq1hC1z1eg60 hLXI4FRnPN002KzMahMmob7SnhHj2Udy6ka9w2bIEJlbdS9amZQd0YzO2XQZJCT3RzML /VBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:subject :references:in-reply-to:message-id:cc:to:from:dkim-signature:date; bh=TNSOyj/R8fRwL21orChWBpSrPcruLGOuSxC646omTOA=; b=woVeNVgpyw5/RTPk6ockQ1eAyiFGNVCwFkT8NALSQQjTobaZAjCPbtAFmKW2pwIZSF RacUrqdmiDB5Nm94mDhxNGqNTiZVKV2BNmhx3Ci0d2V8lPmq2Usor5FJcmLSzGnxFtgj UcW23IX1L3fTY9CyqvbpBd1YE2ZcFh9huCMami8AL19Yy2G4W5zgSU4w0D8l2FSX41dq x1d4Uq2qyY6ivQq7Lb/ZXfArzEWyA6g9UPp/eeJQI7wi7hNoMcfGxgSQXklBR8R7D2d5 OuBia/azrNgBFN0UOwkSwIXJ4WQ33asWuoRM6U1o4e1tJaMwK1km2QII/39wo+rhCcem 49HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@t-8ch.de header.s=mail header.b=CVfO9Pj1; 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 y63-20020a638a42000000b00534842ba605si1384131pgd.89.2023.05.28.07.07.29; Sun, 28 May 2023 07:07:43 -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=@t-8ch.de header.s=mail header.b=CVfO9Pj1; 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 S229534AbjE1Np5 (ORCPT + 99 others); Sun, 28 May 2023 09:45:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjE1Np4 (ORCPT ); Sun, 28 May 2023 09:45:56 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB887B1; Sun, 28 May 2023 06:45:54 -0700 (PDT) Date: Sun, 28 May 2023 15:45:35 +0200 (GMT+02:00) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=t-8ch.de; s=mail; t=1685281552; bh=TNSOyj/R8fRwL21orChWBpSrPcruLGOuSxC646omTOA=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=CVfO9Pj1iezqL/76Vf1+9NQyZKUbHT4Arq7S+cTYS0BiJTkkMSVxTlA4bl5tDYX4X gA5L3UqFK3jEuNrZaHF6lqM5nCC3mzKTwPGgTmxjPR/k+mGZGtlVvUzxOs4B4fat+W Ua4VrvX3sD/pOPnEB5PRBnMLjFWeEaa0a39dhlcQ= From: =?UTF-8?Q?Thomas_Wei=C3=9Fschuh_?= To: Zhangjin Wu Cc: w@1wt.eu, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, palmer@dabbelt.com, paul.walmsley@sifive.com Message-ID: In-Reply-To: <20230528103957.318267-1-falcon@tinylab.org> References: <20230528075955.GE1956@1wt.eu> <20230528103957.318267-1-falcon@tinylab.org> Subject: Re: [PATCH 00/13] tools/nolibc: riscv: Add full rv32 support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Correlation-ID: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Hi Zhangjin, May 28, 2023 12:40:31 Zhangjin Wu : > Hi, Willy > >> 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 :-/ >> > > Yes, user-space signal() may be the right direction, we just need to let > user-space not crash the kernel, what about this 'solution' for current stage > (consider the pure time64 support too): If you did manage to crash the actual kernel than that would be a bug in the kernel that needs to be fixed. Feel free to describe how it happened and I'll take a look. Thomas