Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2938057rdh; Mon, 27 Nov 2023 02:53:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IH4ZLFtJrgD15wHQtym/CByW5EL50KA17cJd/vTliYP3zv21DAIJbDj7CWFQQhwY18gWMAM X-Received: by 2002:a05:6a00:2d90:b0:6c9:9e11:859d with SMTP id fb16-20020a056a002d9000b006c99e11859dmr11313525pfb.1.1701082428613; Mon, 27 Nov 2023 02:53:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701082428; cv=none; d=google.com; s=arc-20160816; b=Tl+tBjfeW/Un+hqUEgq2TLojlmTSnaJEELqURoKyXJ2anXTXzjvxnOwkg7zXJYpmxm hVy3Q0fhtJw7vzuper557llHEM5/seDvmEVvcsh6kDBpjeOU80Vi+IeSxvP0xBDFuc6U cXyr9+mP9m34rWQ0WceoLooOen3rxLbx+5FzIBAByP5laJj9+r+W6idpMRINyOjpEOTZ KTBKWX85OWeRkF7I1w3+jqKrjFlyVXh1Yc+zYyI1Mf3BRun9EDL/AFOoe03sLuDEIK+s k3m0daGsIrnhCM0BYM76GlECVe/7rGi15+Y2CU4SUorYLEpyKaOAxjvOH61T2MUW1rx3 SFhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=d5/6kG5aHmxE4URs6O+qH9jjJKN3fX72FFECePlC/hY=; fh=2uY8aaJJ6pNT/k03DnD594WU9+I0axtMbQYOJLOjgmk=; b=namZM4d5DVJlicQ6LqxC3A1DgT/rLLVrvMWO7Tq6fXaTF/u4OVIgyckGnYVygFpNbc ekydgZx0IKLxjHJbLlW8Phi5f2u59BhCwjbx5mfBlZQ2EaY4ucqPUVpunCd0QjwS3C+y Li0LQwYHotYhXxw+sLBm+fGdjC2YNby49e8+NcOI26vUpYiNTHggWS5n+4moBbUbZDv/ bTzVxhtyCUMQ9KaG7O0d1wtR4BB8Ll5U9Ctcpeqz/+1vvkuqJj90z4N8+wHBUJN3yqKm DgsqOsmUFOPa6hIhSe11JCCoi4So0SlVQeVb177ZHDD2K3tfCC06zsi5YLREf8COTBdr Zs6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id d19-20020a63d653000000b00573f885c4easi9336560pgj.753.2023.11.27.02.53.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 02:53:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 23F208089E57; Mon, 27 Nov 2023 02:53:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233081AbjK0Kxc (ORCPT + 99 others); Mon, 27 Nov 2023 05:53:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233059AbjK0Kxb (ORCPT ); Mon, 27 Nov 2023 05:53:31 -0500 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98878AA for ; Mon, 27 Nov 2023 02:53:36 -0800 (PST) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mtapsc-7-m_tqE__5NZGwoxcnVdDhBA-1; Mon, 27 Nov 2023 10:52:29 +0000 X-MC-Unique: m_tqE__5NZGwoxcnVdDhBA-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 27 Nov 2023 10:51:16 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Mon, 27 Nov 2023 10:51:16 +0000 From: David Laight To: =?utf-8?B?J0Nsw6ltZW50IEzDqWdlcic=?= , Paul Walmsley , Palmer Dabbelt , Albert Ou , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" CC: Christoph Hellwig , Ben Dooks , kernel test robot Subject: RE: [PATCH v2] riscv: fix incorrect use of __user pointer Thread-Topic: [PATCH v2] riscv: fix incorrect use of __user pointer Thread-Index: AQHaHsrcAiRrTVkzkEi8HCpEAmrYerCLK9CggALOZICAAAHAIIAAAeUAgAABpPA= Date: Mon, 27 Nov 2023 10:51:16 +0000 Message-ID: <40a577e9f0b54e8eab0a1f78114dffa8@AcuMS.aculab.com> References: <20231124113803.165431-1-cleger@rivosinc.com> <9cb1fadf-bb83-4e9f-9c29-bff53e30b0c6@rivosinc.com> <72fb7d8085a644e4a3e2e540a9ed6847@AcuMS.aculab.com> <603c39d4-2764-4f85-b173-069ced2a3a13@rivosinc.com> In-Reply-To: <603c39d4-2764-4f85-b173-069ced2a3a13@rivosinc.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 27 Nov 2023 02:53:46 -0800 (PST) RnJvbTogQ2zDqW1lbnQgTMOpZ2VyDQo+IFNlbnQ6IDI3IE5vdmVtYmVyIDIwMjMgMTA6MzcNCj4g DQo+IE9uIDI3LzExLzIwMjMgMTE6MzUsIERhdmlkIExhaWdodCB3cm90ZToNCj4gPiBGcm9tOiBD bMOpbWVudCBMw6lnZXINCj4gPj4gU2VudDogMjcgTm92ZW1iZXIgMjAyMyAxMDoyNA0KPiA+Pg0K PiA+PiBPbiAyNS8xMS8yMDIzIDE2OjM3LCBEYXZpZCBMYWlnaHQgd3JvdGU6DQo+ID4+PiAuLi4N Cj4gPj4+PiBAQCAtNDkxLDcgKzQ4Niw3IEBAIGludCBoYW5kbGVfbWlzYWxpZ25lZF9sb2FkKHN0 cnVjdCBwdF9yZWdzICpyZWdzKQ0KPiA+Pj4+DQo+ID4+Pj4gIAl2YWwuZGF0YV91NjQgPSAwOw0K PiA+Pj4+ICAJZm9yIChpID0gMDsgaSA8IGxlbjsgaSsrKSB7DQo+ID4+Pj4gLQkJaWYgKGxvYWRf dTgocmVncywgKHZvaWQgKikoYWRkciArIGkpLCAmdmFsLmRhdGFfYnl0ZXNbaV0pKQ0KPiA+Pj4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