Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1437114pxb; Fri, 20 Aug 2021 05:43:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtuuKyPW6Q8MCmK3/n8p9uN1IZ30gu8zTM2LyMsKAZjZhtU1D8OsAop52qhgULMcw/Mi5V X-Received: by 2002:a5d:9e0f:: with SMTP id h15mr2223175ioh.133.1629463423259; Fri, 20 Aug 2021 05:43:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629463423; cv=none; d=google.com; s=arc-20160816; b=Dz2FkcD61m0Xdrbnhv061Oj7LOi/5TFJ91DQ22axqbUOzrHzkmJUY9mpeRZ2hyKd9a LfjpehnjxYfGtIVOM+ULG7shKEdQtZCQsufHHDCxKH8xTmIx2rEWTISrc990p1dyYJC3 ae4th/hPmZZtlJNMF5uJLPDwv7kRIOP95QlVN3oY1xASu1E0rGaNXBXQv0ZmC5Nakj12 C3oj3QGnwW+OVzuvcz1niqbFStIlrZG1Lo9K5dlJu71v6z7IUDZAGKilz+cpzWcRK9oz wNdTtyKZ/n7zoC2IoBgcFvfd2ZrbRcayoKn6tJ1cXwUa4V8VpNENjgjaoSxmOfAupaVF gJwA== 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=ScQPNaDSCMkfwGasi+H7/o5ma7p7VVxLYTQz4oBYvCI=; b=Co+zfZ1CEjL26LABZxzCGxtmjc4T4kzZTfFo4Y0ua094xnBAQF+ZmmVgnFPhFnid4s 59g0nU+AdWRQnjYgNGm3XCA2MULFlPmxpq7KpldYhPSfH7HJUIreHEZEf8uxXBgBFZF7 +77Sz+l6XPbVc8QH+rfudXyTosLWS3zQE8m4CXG3XxdAr3Jhjr3Lwe6i9bc0UUybjv37 3DhNkuoyD0tPTrraEE6B77sPb1K1PIWBnXWvKKKORj2/ax48eykHjctWbYagWRCT5nm9 Y/YOfHoOySy/8FHn2XG+BHL0nYXUky9k6qC2VMNjIQUSe+S+lrUXeqTXGgUKACT8wgvD 9XxQ== 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 u2si6406569ioc.87.2021.08.20.05.43.31; Fri, 20 Aug 2021 05:43:43 -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 S238510AbhHTMmX (ORCPT + 99 others); Fri, 20 Aug 2021 08:42:23 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:14390 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233303AbhHTMmW (ORCPT ); Fri, 20 Aug 2021 08:42:22 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Grh4J0t60zdc7C; Fri, 20 Aug 2021 20:37:52 +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; Fri, 20 Aug 2021 20:41:38 +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; Fri, 20 Aug 2021 20:41:37 +0800 From: Tong Tiangen To: Paul Walmsley , Palmer Dabbelt , Palmer Dabbelt , Albert Ou CC: , , "Tong Tiangen" Subject: [PATCH -next v2 0/3] riscv: Fix two vdso issue Date: Fri, 20 Aug 2021 12:50:39 +0000 Message-ID: <20210820125042.1844629-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 v2->v1: Add patch "Refactor asm/vdso.h" to avoid vdso.lds syntax error if CONFIG_GENERIC_TIME_VSYSCALL=n. 1) Refactor the asm/vdso.h to avoid vdso.lds syntax error. 2) 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. 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. 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(-) -- 2.18.0.huawei.25