Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp218412pxb; Tue, 31 Aug 2021 19:39:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFnIwldPj19DAuTWXWXHPSGxvsFz61ho1qlP0ZPh7PLH+uvMG7BcSi/6bxqQGn/f26zFNC X-Received: by 2002:aa7:d1d3:: with SMTP id g19mr32476882edp.373.1630463964578; Tue, 31 Aug 2021 19:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630463964; cv=none; d=google.com; s=arc-20160816; b=XA+Pbk2npsfz+dL5sBQ30Tj1sVLHQzP0blRtzeEf8uHNSDB7ub4Nd/1aoXhjbfxE+d mPQ6ydlT/OHY6DlkVcOND02zE+/A00FlWjcjlF5U/lMcio/SNduv6YEvY3H6sxGOS56e K5B19m2+x0NGSPqS2+lCHZvCTwaDpVXfIzKhBbBuwnCTjNQRcoZ0czxZKAYxqcrtyB/B DnmBKJQCus0ED0Jc/0uOMewfSAs7ai4Voj+YSwHos75WN4S9zBZBVGIw47JBM9r+OdfP aNBWXa2832SnfMTq3I9AKS372u3TMBd2UbMaJq/QNkP9s+peJBdyaH9m/i668cYYqH56 AtpQ== 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=Cw7bhPbYyKnp3w2zcHRmO2VwhbhG3swwUsSsPKOfMjo=; b=NvIZL9jKzRTyYa0SfoHC6Q+4123YiZSOe3BR7VqFaackym+GAGVCCS3TmINtKNxPal RNo7uaymFsERC5f+fKUESF9fI3XqJZQ2zoATCopQtv/F0tIDFK19/yrQwYsHaSnELYb8 2FCQAsxZRyr8wzM4Z+/ISPrjILYkxkenutu6Rv+tMA8xRjELDJhE9oDKT0JpEzFBJLrQ G4pZY31zK/C47ghmlqNpQ7tGxvywGtrPA1jQKEissmdqRonIfLC+Qf3qZE0h7oq4MLau iUiT7M+vV32R7QNeX9RxF7beTTyWi2ER78mZF4l3TY/AJTPFhWW3nBpz5QofNR3L8+y6 86vg== 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 u4si14832654ejy.271.2021.08.31.19.39.01; Tue, 31 Aug 2021 19:39:24 -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 S241613AbhIACik (ORCPT + 99 others); Tue, 31 Aug 2021 22:38:40 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:14443 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231613AbhIACij (ORCPT ); Tue, 31 Aug 2021 22:38:39 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Gzp5k3m7bzbfdy; Wed, 1 Sep 2021 10:33:46 +0800 (CST) Received: from dggpemm000001.china.huawei.com (7.185.36.245) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 1 Sep 2021 10:37:41 +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.2308.8; Wed, 1 Sep 2021 10:37:41 +0800 From: Tong Tiangen To: Paul Walmsley , Palmer Dabbelt , Palmer Dabbelt , Albert Ou , CC: , Subject: [PATCH -next v3 0/3] riscv: Fix two vdso issue Date: Wed, 1 Sep 2021 02:46:18 +0000 Message-ID: <20210901024621.2528797-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 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(-) -- 2.18.0.huawei.25