Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp253402rwe; Tue, 23 Aug 2022 23:41:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR6/Eqlbmoya9R30A3R8CRO64GEw9OrA9j5S6lXaFpYBcomxBAn+6WT35+/SOrNj9SDwE+yW X-Received: by 2002:a05:6402:1e8a:b0:43e:93ab:5ab8 with SMTP id f10-20020a0564021e8a00b0043e93ab5ab8mr6436313edf.211.1661323277122; Tue, 23 Aug 2022 23:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661323277; cv=none; d=google.com; s=arc-20160816; b=m2d3OpyZo219P9bS44G5Rpdcph5n1T1qpNZ5sSc1L32vkgIPLTPR02sYJfoCZTEAXQ rJv9c2uD7W8xZjK3UjDBgxtG52WJ9aUQjXaRD0k5YcGoA0V/NKo3idx6kkQXoFzKeop/ uOPevBxSiQfRW67ySmRQd2Mvg9bjdws2xMsJfCFwi96OpKnVclgcXDkGLaQu7DNM6Opd xRwRCiZGlmm+uFBJZAnYD3B4BTfslsQc4hHbb5F8zGK8XZPDElAxaKTh1xpcsKJPdVYx OZsqdTAzMgIjKOE5fHsHY961MnUHKMWvFdmg94d3nmbDfNT1j7Ucp0OkyXUnhM4HSA4m c+0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=PGpRTiPU4JT0yRN5+hIxZ0WG971gByTmX8Wkl/nwBLw=; b=ObYGiilZwHYX1/71n7GPAcnQ0wyiu0nV66XBO6wYi1TE32WfdgvlscxkovqmNrN6bt FYFnw64IyC4jVqv7sqGUyLkcnUjnhSpCClelWO3v2p1XOkxW8Jrk7mMi7UbLVUNV93UI 7HjLjr40OJb0VF01WZBI/U2EvKdYlQlzx0/DqJAkbMLQ3mOd/O/1C5gq3yR8rjX88Xt3 Jc4FlT64F5kLUwoPQYPoiQmX1TJqYpt7QvBwU8tHEfLlvPBl+zTDogJMXnXnRP3Mczo7 z1lFtwzIiX+pB7FGEkFt+35c3D2T6SlkYUEULOg/IOBg2j4yJIsSsrSSo9S4mF+u4kE0 JdXw== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r7-20020a50c007000000b00445dc9e0dbbsi3263935edb.425.2022.08.23.23.40.51; Tue, 23 Aug 2022 23:41:17 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234971AbiHXGc2 (ORCPT + 99 others); Wed, 24 Aug 2022 02:32:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234026AbiHXGc0 (ORCPT ); Wed, 24 Aug 2022 02:32:26 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A036D7E83C for ; Tue, 23 Aug 2022 23:32:24 -0700 (PDT) Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MCGSL05SyzGpmK; Wed, 24 Aug 2022 14:30:42 +0800 (CST) Received: from kwepemm600017.china.huawei.com (7.193.23.234) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 24 Aug 2022 14:31:50 +0800 Received: from [10.174.179.234] (10.174.179.234) by kwepemm600017.china.huawei.com (7.193.23.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 24 Aug 2022 14:31:49 +0800 Message-ID: <4063da85-b110-4afd-2023-59d4da41c27f@huawei.com> Date: Wed, 24 Aug 2022 14:31:48 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH -next v2 0/2]riscv: some refactorings realted to uaccess and extable To: Paul Walmsley , Palmer Dabbelt , Palmer Dabbelt , Albert Ou , CC: , , , Guohanjun References: <20220815032025.2685516-1-tongtiangen@huawei.com> From: Tong Tiangen In-Reply-To: <20220815032025.2685516-1-tongtiangen@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.179.234] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600017.china.huawei.com (7.193.23.234) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 riscv maintainers, kindly ping... Thanks, Tong. 在 2022/8/15 11:20, Tong Tiangen 写道: > This patchset do some refactorings related to riscv's uaccess and extable, > mainly for the usage of __get/put_user_nocheck() which not distinguish user > access and kernel access. > > v1 -> v2: > According to Conor's suggestion, split into two logically independent > patches. > > Tong Tiangen (2): > riscv: uaccess: rename __get/put_user_nocheck to __get/put_mem_nocheck > riscv: extable: add new extable type EX_TYPE_KACCESS_ERR_ZERO support > > arch/riscv/include/asm/asm-extable.h | 12 ++ > arch/riscv/include/asm/uaccess.h | 162 +++++++++++++-------------- > arch/riscv/mm/extable.c | 1 + > 3 files changed, 94 insertions(+), 81 deletions(-) >