From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C282C433EF for ; Tue, 28 Sep 2021 02:20:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3A16A61260 for ; Tue, 28 Sep 2021 02:20:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238630AbhI1CVp (ORCPT ); Mon, 27 Sep 2021 22:21:45 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:13338 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238598AbhI1CVo (ORCPT ); Mon, 27 Sep 2021 22:21:44 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4HJNQ70yygz8yrj; Tue, 28 Sep 2021 10:15:27 +0800 (CST) Received: from dggpemm500009.china.huawei.com (7.185.36.225) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Tue, 28 Sep 2021 10:19:57 +0800 Received: from [10.174.179.24] (10.174.179.24) by dggpemm500009.china.huawei.com (7.185.36.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Tue, 28 Sep 2021 10:19:56 +0800 Subject: Re: [PATCH -next v3 0/3] riscv: Fix two vdso issue To: Tong Tiangen , Paul Walmsley , Palmer Dabbelt , "Palmer Dabbelt" , Albert Ou , References: <20210901024621.2528797-1-tongtiangen@huawei.com> CC: , From: Liu Shixin Message-ID: <935c5e32-8df2-670d-da33-869e6dce4917@huawei.com> Date: Tue, 28 Sep 2021 10:19:56 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20210901024621.2528797-1-tongtiangen@huawei.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.179.24] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500009.china.huawei.com (7.185.36.225) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/9/1 10:46, Tong Tiangen wrote: > v3->v2: > Adapt to the latest code. > > v2->v1: > Add patch "Refactor asm/vdso.h" to avoid vdso.lds syntax error if > CONFIG_GENERIC_TIME_VSYSCALL=n. > > 1) Move vdso data page up front and introduce enum vvar_pages, This makes it > easier to introduce new feature TIME_NS. > > 2) In arch_setup_additional_pages(), make Wait for the lock in the killable mode > and return with EINTR if the task got killed while waiting. > > Tong Tiangen (3): > riscv/vdso: Refactor asm/vdso.h > riscv/vdso: Move vdso data page up front > riscv/vdso: make arch_setup_additional_pages wait for mmap_sem for > write killable > > arch/riscv/include/asm/syscall.h | 1 + > arch/riscv/include/asm/vdso.h | 15 ++++----- > arch/riscv/kernel/syscall_table.c | 1 - > arch/riscv/kernel/vdso.c | 53 +++++++++++++++++++------------ > arch/riscv/kernel/vdso/vdso.lds.S | 3 +- > 5 files changed, 42 insertions(+), 31 deletions(-) > Test-by: Liu Shixin