Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp945843rdg; Fri, 11 Aug 2023 05:16:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFgora1k9F47i3hmC27y5bzE61BHWLdMlBh8LPXVUEa/ptBkC9Z9KhCQ7nFRTeQYZ+RgHhd X-Received: by 2002:a05:6a20:938c:b0:140:98b2:899b with SMTP id x12-20020a056a20938c00b0014098b2899bmr2532871pzh.59.1691756203120; Fri, 11 Aug 2023 05:16:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691756203; cv=none; d=google.com; s=arc-20160816; b=gpjWMKMmMKrfIHWlY/wZy5FQ2tIvEf52MsdE7gtBBnPQDHelgjnDf2vZ7jugHyAVEo JSfxIH4IT0amic3PNWeaChSsSBff0/ud99Yiotxt4BX8EQ2TGZYQJPgCwDZXAC98Vffp 6DnONsqAm2tkp3CgCPBQcmPkSN89DGpeGBUVmlB+o/4mU/VazYDGZNYVbCfEkrgCLPgU ToSo1pMNQcK1q1bjl7MOA1JESPo/owA2IqDLnRMGLUm1EF9vIMJxxin/8Sgm1FfXUSX3 /qvMDfoHkgxSxEOD01FlByqEtvzyIY8OlOGuX2n7ysMErkLgJJdDQZHi8+raVbti2E7P MKUA== 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=wkQiXD5lhHC4BlkyLDnM817+Xs35EEJIrj//vDXJ1+E=; fh=AQQ87bcUL5IO3oFwgGEk2bSqFEmNdJ+GuDVR0TflZFo=; b=lMQa0HUCCgUhEk7Q02adzKn+liSOPPXn+meAdmQ6h1m58f2sxZj1KekzkywaC38mxV xMejmHzHzobSTS5nuxxYoWMumxQHbUJFlu8mMB5U062iPE7R17MDQNt1SqjP6fQ06ZMM DlbV4/69SxoBeJ46aNw2LMehBSG7soFY74v4YKk9FWH9ZoC1K3zr84K+mflMd1mCKaLI boVHqdVecJLOUkX2R1QRiQTmtmRSm8xJKHDstdjW9/Ho7NgDSgWzRrf1I9zOR3jmkVu/ KwT6wvh41iFi45QehjJMn7C7XT3vKxi1BYgKW/UE/tGj4ir43YUBNWe/IYVJoxaf6hFb +GGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=RGJ6fQeN; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b15-20020a631b4f000000b0055b640a6b3csi3358435pgm.884.2023.08.11.05.16.29; Fri, 11 Aug 2023 05:16: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=@microchip.com header.s=mchp header.b=RGJ6fQeN; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231588AbjHKLzO (ORCPT + 99 others); Fri, 11 Aug 2023 07:55:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229927AbjHKLzN (ORCPT ); Fri, 11 Aug 2023 07:55:13 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BAFE10F for ; Fri, 11 Aug 2023 04:55:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1691754913; x=1723290913; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=wkQiXD5lhHC4BlkyLDnM817+Xs35EEJIrj//vDXJ1+E=; b=RGJ6fQeNMFePoIhNZryeBwT6zFMQnZQfxVsqabvUyOanBXdLUYDfBJPi oRRd0LXbHRS8lOLmWShg9wezElLof+jqq+VFigvyjYt/xv0DlbpNke9Jf ExasImZD8iXJioUIP8wj51C+IhsczWp7m7RNwaL7Y5hATvW1er+3ptEr9 v8jRVdAI0hKrUYakR4T68A80Q3yxihLwGHDBAN59bRxcJOkK4f1XMqFqE M3gGBKO5I9xi9akISy4UGNb0m5mHBrvCg2lvZeWB/XsFXKWCBHZCan1sv ZEwEyRifmL1WoZa5/NOLYcF/BlKLfExAfFVCK0k4K/V3bWU8pHb7sY64t g==; X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="asc'?scan'208";a="241105573" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 11 Aug 2023 04:55:12 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 11 Aug 2023 04:55:06 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Fri, 11 Aug 2023 04:55:04 -0700 Date: Fri, 11 Aug 2023 12:54:26 +0100 From: Conor Dooley To: Alexandre Ghiti CC: Alexandre Ghiti , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alan Kao , , , Bo YU , Aurelien Jarno Subject: Re: [PATCH -fixes] riscv: uaccess: Return the number of bytes effectively copied Message-ID: <20230811-overture-catnip-2b004303cbc5@wendy> References: <20230811110304.1613032-1-alexghiti@rivosinc.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="utvI2jTqZvG5HlnU" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, URIBL_BLOCKED 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 --utvI2jTqZvG5HlnU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 11, 2023 at 01:39:16PM +0200, Alexandre Ghiti wrote: > On 11/08/2023 13:03, Alexandre Ghiti wrote: > > It was reported that the riscv kernel hangs while executing the test > > in [1]. > >=20 > > Indeed, the test hangs when trying to write a buffer to a file. The > > problem is that the riscv implementation of raw_copy_from_user() does n= ot > > return the number of bytes written when an exception happens and is fix= ed > > up. >=20 >=20 > I'll respin another version as the changelog and the title are incorrect: > the uaccess routines should not return the number of bytes copied but > actually the number of bytes not copied (this is what this patch > implements). >=20 > I'll wait for feedbacks before doing so! While you're editing te changelog, can you make the link a regular Link: tag? You can do `Link: [1]`. --utvI2jTqZvG5HlnU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZNYhcgAKCRB4tDGHoIJi 0hKBAQCQBCxeWgLbOKa053boEyjUTJSr9hF6K1Lz9DQbnvSa9AD/Tow8dsW2O5Nh xIRwuL7H4GhlsBa32V3l2JqT/gkP7Q8= =Dq+D -----END PGP SIGNATURE----- --utvI2jTqZvG5HlnU--