Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp198270pxb; Wed, 18 Aug 2021 19:58:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzufaFIuksf7lH2jaH80acmqT7nSzy1AUJLdEH93JyhQnb4jOCP1ZSrvChBy9UkUODtVTpI X-Received: by 2002:a05:6e02:1d08:: with SMTP id i8mr8480133ila.185.1629341933163; Wed, 18 Aug 2021 19:58:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629341933; cv=none; d=google.com; s=arc-20160816; b=KhHpnyvBUvJWPfiLY9o9if7yhk7aj1aXJebBBX5yN5nkUoysaP9EUjrdwzEPunqx2M Lci+l6Au6Rf8ZZgQjlgqUSrEsgEoE9RuoEG68T7VF/UpUbMotCb/mKdF6U81ak3RXeaz xD2DyFFpQN7jCKLsF8+/6HutjYL9m4tKX/tJnM5qKttcJklFyqOJZEpUr4sem1ElKsll yNDONT8/fjkEJBn0OMfIguOKNAqTyW+KUWVvQdi7YsjV3WkqufrtcmWej4p9aACvnFoJ y4POVwCheWgNs2oHCXt7VOEkovqtHIYXJFPlj5LgPzjxotm6rxe4NPPgkUmi42J0/bwY hKlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=ByYeBDfy1l6x52MLOX3LSDo+O1oWXiuOVvBoaT2G+pQ=; b=MK4+p4JFs2KucenacpdYvOFe4FAXJ2rAuhvIaQgrJnriB7e4VU2JFWA1CCmdFAekR6 X/YSyS1BOdJHGwDo9fa3oI4H1GK11LDfJ/673QCVqu3PoFSGnOLsurJiqQjCZlCg2EUf z/0v9q02d7LaPJHEie/7UKLztvrZP2cNcEPkBL8V4TjNBRE1y6bpMnv9zUvsFAoFVAdd H8e2He1biO1+vNKrxVhixIRFBupuXkejU26ex833uRb8BPoAcOFm2HKaD8CiYkT4Oq2C 7KQZt1X/qx9bIN0NJkyC+lHx+whFBKPJlLMu3xNlG8pxuYMPLQqgewCWsqFVet9G1g7N ttaw== 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 q7si2101608ilu.111.2021.08.18.19.58.42; Wed, 18 Aug 2021 19:58:53 -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 S235832AbhHSC6g (ORCPT + 99 others); Wed, 18 Aug 2021 22:58:36 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:17043 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235920AbhHSC6f (ORCPT ); Wed, 18 Aug 2021 22:58:35 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Gqq9J4l2HzbfM1; Thu, 19 Aug 2021 10:54:12 +0800 (CST) Received: from dggpemm000001.china.huawei.com (7.185.36.245) 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.2176.2; Thu, 19 Aug 2021 10:57:44 +0800 Received: from localhost.localdomain (10.175.112.125) by dggpemm000001.china.huawei.com (7.185.36.245) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 19 Aug 2021 10:57:44 +0800 From: Tong Tiangen To: Paul Walmsley , Palmer Dabbelt , Palmer Dabbelt , Albert Ou CC: , , "Tong Tiangen" Subject: [PATCH -next 0/2] riscv: Fix two vdso issue Date: Thu, 19 Aug 2021 03:06:48 +0000 Message-ID: <20210819030650.716478-1-tongtiangen@huawei.com> X-Mailer: git-send-email 2.18.0.huawei.25 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm000001.china.huawei.com (7.185.36.245) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 1) Move vdso data page up front 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. 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 (2): 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 | 2 ++ arch/riscv/include/asm/vdso.h | 4 +-- arch/riscv/kernel/vdso.c | 51 ++++++++++++++++++------------- arch/riscv/kernel/vdso/vdso.lds.S | 3 +- 4 files changed, 36 insertions(+), 24 deletions(-) -- 2.18.0.huawei.25