From patchwork Tue Nov 1 17:10:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Covington X-Patchwork-Id: 9407731 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EDD1F60234 for ; Tue, 1 Nov 2016 17:14:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DDF8029A74 for ; Tue, 1 Nov 2016 17:14:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D291C29A80; Tue, 1 Nov 2016 17:14:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7070C29A74 for ; Tue, 1 Nov 2016 17:14:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c1cce-0007JB-1q; Tue, 01 Nov 2016 17:13:16 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c1caz-0005wu-9T for linux-arm-kernel@lists.infradead.org; Tue, 01 Nov 2016 17:11:34 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 491E462337; Tue, 1 Nov 2016 17:11:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1478020274; bh=fHN9ikLmlt7fSUxZJkEomxV9B1OKQ8MVwactYYM/iFo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LcfN34KHWx5l6AwjDundqgisMouSKNdY/pCNFEXMNwXUYEvUH5lkNKg3tIdyL+g7a u5HD9LKLHd/HgAfaqZ0e4RCawqXeyPFmjnMZeESM/oM8+nW4G5PS0KTfRG6hj+Sj+J s4yCrnAOaQkTOlr4RUKZhQNvjDV+9yggwDtKzY5c= Received: from localhost.localdomain (unknown [198.233.217.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: cov@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id F076A62329; Tue, 1 Nov 2016 17:11:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1478020273; bh=fHN9ikLmlt7fSUxZJkEomxV9B1OKQ8MVwactYYM/iFo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZURzMrHN9/XyRjqSpx13HHrVIw0vcvGJzE0rl6Tx2JXHZKVB/Tij4iQwbn96tebvW 26EQbIJsUo9po4xRM87LJ1/D6q2S5YjC/RE0w15r/WgYZybJKwfSKbb1bVdG4vtu16 iqBqI3Av5WR8VSYpOi7HNGEVuSChdZGEAN9LoKgw= DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org F076A62329 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=cov@codeaurora.org From: Christopher Covington To: criu@openvz.org, Will Deacon , linux-mm@kvack.org, Laurent Dufour Subject: [RFC v2 4/7] arm64: Use generic VDSO unmap and remap functions Date: Tue, 1 Nov 2016 11:10:58 -0600 Message-Id: <20161101171101.24704-4-cov@codeaurora.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161101171101.24704-1-cov@codeaurora.org> References: <20161101171101.24704-1-cov@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161101_101133_587183_9783059B X-CRM114-Status: GOOD ( 10.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Catalin Marinas , Christopher Covington , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Checkpoint/Restore In Userspace (CRIU) must be able to remap and unmap the Virtual Dynamic Shared Object (VDSO) to be able to handle the changing addresses that result from address space layout randomization. Now that generic support is available and arm64 has adopted unsigned long for the type of mm->context.vdso, opt-in to VDSO unmap and remap support. Signed-off-by: Christopher Covington --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 969ef88..534df3f 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -50,6 +50,7 @@ config ARM64 select GENERIC_STRNCPY_FROM_USER select GENERIC_STRNLEN_USER select GENERIC_TIME_VSYSCALL + select GENERIC_VDSO select HANDLE_DOMAIN_IRQ select HARDIRQS_SW_RESEND select HAVE_ALIGNED_STRUCT_PAGE if SLUB