From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_DKIMWL_WL_HIGH, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 757B1C4321A for ; Mon, 10 Jun 2019 20:25:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4658B2089E for ; Mon, 10 Jun 2019 20:25:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560198338; bh=gDGsy2m0w4KjVtKFwe6BhIUXecNIJ+3dfki+ru/tPh8=; h=From:To:Cc:Subject:Date:List-ID:From; b=G4LRbP+mh1Ra58WFsWx2BQJ8n3KZYA0V2hNAPrNmmq70PH6hl3yJcK3AKzhLql6io Yc5IQ8Slap2CGSODDlF92ni8GfclevkEimtqualPKUXDsMozsiREWiowyCq40vbvZc M78fNKWWE38i6mEfTa8m+xrA0+qnkMqlJC3/Hpa8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728575AbfFJUZh (ORCPT ); Mon, 10 Jun 2019 16:25:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:45878 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728276AbfFJUZg (ORCPT ); Mon, 10 Jun 2019 16:25:36 -0400 Received: from localhost (c-67-180-165-146.hsd1.ca.comcast.net [67.180.165.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 55A1D2082E; Mon, 10 Jun 2019 20:25:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560198336; bh=gDGsy2m0w4KjVtKFwe6BhIUXecNIJ+3dfki+ru/tPh8=; h=From:To:Cc:Subject:Date:From; b=Yj8hOlAXMRwNLlH6Amy1TzXfZppDj4xeVMeEj0fQEUQnRwg7Mv7a605hX0mse2Fuk 3ouZynDrxCD6uEDnic2VdnvaHBN922w0/nf4WgQc1EGH5dS0Mk5n3DMSPFyOi12t/t ASqzAnr+09Bb7VwT+2j4C62GHBiYj456tra1Le4g= From: Andy Lutomirski To: x86@kernel.org Cc: LKML , Andy Lutomirski Subject: [PATCH 0/5] vsyscall xonly mode Date: Mon, 10 Jun 2019 13:25:26 -0700 Message-Id: X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all- This adds a new "xonly" mode for vsyscalls and makes it the default. xonly is a bit more secure -- Kees knows about an exploit that relied on read access to the vsyscall page. It's also nicer from a paging perspective, as it doesn't require user access to any of the kernel address space as far as the CPU is concerned. This would, for example, allow a much simpler implementation of per-process vsyscall disabling. Andy Lutomirski (5): x86/vsyscall: Remove the vsyscall=native documentation x86/vsyscall: Add a new vsyscall=xonly mode x86/vsyscall: Document odd #PF's error code for vsyscalls selftests/x86/vsyscall: Verify that vsyscall=none blocks execution x86/vsyscall: Change the default vsyscall mode to xonly .../admin-guide/kernel-parameters.txt | 11 ++- arch/x86/Kconfig | 32 ++++--- arch/x86/entry/vsyscall/vsyscall_64.c | 19 ++++- arch/x86/mm/fault.c | 7 ++ tools/testing/selftests/x86/test_vsyscall.c | 83 +++++++++++++------ 5 files changed, 107 insertions(+), 45 deletions(-) -- 2.21.0