From patchwork Tue Nov 1 17:10:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Covington X-Patchwork-Id: 9407729 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 31D8660234 for ; Tue, 1 Nov 2016 17:14:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21C0229A74 for ; Tue, 1 Nov 2016 17:14:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 166D129A80; Tue, 1 Nov 2016 17:14:16 +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 AEB4429A74 for ; Tue, 1 Nov 2016 17:14:15 +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 1c1cc6-0006rd-QX; Tue, 01 Nov 2016 17:12:42 +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-0005wL-9U 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 501D06171D; 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=1478020272; bh=mz1v1Bt9gyrgVS9250pQd/f0pl+5PihXAyRCuPrvdNI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oXAMvAekpzp0vUi4fo9ef7+Mr7EUdzp0+2gz10itvAg/AqPOhamb0ZN6cSE2TLyTO b4XrkjOwI3qErbKm4QkvuVzdtvIen/1T2dsUYpM571oX4nGPwnKUBJHp98otCXSUq0 WP3Zldq6FHYiNB5gGo+JnQMmTBljvRIzopc4nUno= 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 001C76167D; Tue, 1 Nov 2016 17:11:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1478020271; bh=mz1v1Bt9gyrgVS9250pQd/f0pl+5PihXAyRCuPrvdNI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eNyE9cH/KAluCMMzCKj2hO9T5BPW/9UwDV4O4xDn684xjkKX7xU0GolOSYKnR/iaK PCsVK4FKE8llYq9bYNyXDapXH6Sy5TgqOoeQAyPdmzkEphkW33g+HUDgvX0oFD0+AO IpnAjFh9z7ZnYpnJ128DSXMGFtns8lfNRGb/1Ee8= DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 001C76167D 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 2/7] arm: Use generic VDSO unmap and remap Date: Tue, 1 Nov 2016 11:10:56 -0600 Message-Id: <20161101171101.24704-2-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_524228_FC0D498F X-CRM114-Status: GOOD ( 11.75 ) 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: linux-kernel@vger.kernel.org, Christopher Covington , linux-arm-kernel@lists.infradead.org, Russell King 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) needs to be able to unmap and remap the VDSO to successfully checkpoint and restore applications in the face of changing VDSO addresses due to Address Space Layout Randomization (ASLR, randmaps). Previously, this was implemented in architecture-specific code for PowerPC and x86. However, a generic version based on Laurent Dufour's PowerPC implementation is now available, so begin using it on ARM. Signed-off-by: Christopher Covington --- arch/arm/mm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig index c1799dd..1d3312b 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig @@ -845,6 +845,7 @@ config VDSO depends on AEABI && MMU && CPU_V7 default y if ARM_ARCH_TIMER select GENERIC_TIME_VSYSCALL + select GENERIC_VDSO help Place in the process address space an ELF shared object providing fast implementations of gettimeofday and