Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1484675pxb; Sun, 22 Aug 2021 19:04:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcxAfbE1YRp/lhu0KT+fdoy1sLLYuvxRsZZgNtjAndeGU5cMGsLkrzyXT22VYt1mzvob17 X-Received: by 2002:a92:c56b:: with SMTP id b11mr2874263ilj.225.1629684269800; Sun, 22 Aug 2021 19:04:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629684269; cv=none; d=google.com; s=arc-20160816; b=CIJZO56mpEbeiWhCiPn1D/+gw0eLAVNpyP2+uBNgVwe1gDlb3i4lnEZNfe0XJPNIoD 49CFSnQaT9b/L0qC3bnN9wES6xNLIg+8pLXEx6A0ckDnLKuhLluau1t4uUP6RX2FEuK5 e6mgzLPm0HOZ7gUXXsCqRJs7EppCbnufsSCAcxEkAzLAhYwlV/9dRNK1hH7ubU1dP3C1 aOJVrE3zyoe14wkdcNdrURPcaN3WdsgWwFLLj6OdOq9C3Ml1BYLQra9YzuWV9hKNr5tH LbaE17fSUsPDWWIoKdkH+CGXX/RXOjGOmGfzFNFmLuE1jXXxElzmf9kl0rBNIFuG5x2Y 78FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=0q07MtL29HyK0MRN2Nw6VAkh+jCm+5+V+rOf51kHdhc=; b=EvJHmv0YFsr6LLNkq4M9+SscXg09OCo8dU5Kny7wH+qOhD/3HGMoYgsTaW/zWpsWY0 v7ZnQQZZC8ab22Qh/TOO1zm6kDih4wEYtw+uHvHrxlH06yAHa5Erm7BjonGLXLprxF3v kvUPWBbJab1rFEyUN8xlGN3FVvumOBWMk/eStSUIQ2tmf2+Lf0CuC+5MjPqNmaoHYQQC j5Q5Y8k8bgx9nfxv5cY12v+OkJiVQbz7TuqrmVco5diYrvnQr023s8plQSNTI2qa5GVB pVv3/vuP53AhA4VyurPS/0Z1Pe+qLQAcZBepn9SN8pNVFdwsIujkJNDt3u+qfnfIOywK O0QQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u6si13523927ilq.19.2021.08.22.19.04.18; Sun, 22 Aug 2021 19:04:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234762AbhHWCDt (ORCPT + 99 others); Sun, 22 Aug 2021 22:03:49 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:14408 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234740AbhHWCDt (ORCPT ); Sun, 22 Aug 2021 22:03:49 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4GtFm45q3KzbdNk; Mon, 23 Aug 2021 09:59:16 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) 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.2176.2; Mon, 23 Aug 2021 10:02:41 +0800 Received: from [10.174.177.243] (10.174.177.243) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 23 Aug 2021 10:02:40 +0800 Subject: Re: [PATCH -next v2 0/3] riscv: Fix two vdso issue To: Tong Tiangen , Paul Walmsley , Palmer Dabbelt , "Palmer Dabbelt" , Albert Ou CC: , References: <20210820125042.1844629-1-tongtiangen@huawei.com> From: Kefeng Wang Message-ID: <0fa49162-18c2-0643-7495-86f2c891a285@huawei.com> Date: Mon, 23 Aug 2021 10:02:40 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20210820125042.1844629-1-tongtiangen@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [10.174.177.243] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/8/20 20:50, Tong Tiangen wrote: > v2->v1: > Add patch "Refactor asm/vdso.h" to avoid vdso.lds syntax error if > CONFIG_GENERIC_TIME_VSYSCALL=n. This is better than v1. > > 1) Refactor the asm/vdso.h to avoid vdso.lds syntax error. > > 2) Move vdso data page up front MoveĀ  vdso data page before code page could save the problem which the .text section could be bigger than PAGE_SIZE. > and introduce enum vvar_pages, To pave the > way for the subsequent support of TIME_NS, the support of TIME_NS will be > issued in the later patch. This makes it easier to introduce new features TIME_NS. > > 3) 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. For series, Reviewed-by: Kefeng Wang > 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 | 10 ++---- > arch/riscv/kernel/syscall_table.c | 1 - > arch/riscv/kernel/vdso.c | 53 +++++++++++++++++++------------ > arch/riscv/kernel/vdso/vdso.lds.S | 3 +- > 5 files changed, 39 insertions(+), 29 deletions(-) >