Received: by 10.223.185.116 with SMTP id b49csp2264646wrg; Mon, 12 Feb 2018 07:04:14 -0800 (PST) X-Google-Smtp-Source: AH8x227H0h/FOgfBV6yHb4FlMvv4GRoZh4WorriLzd4PFM2+YndhqiD4xQTv6epcdzjtsfaXGUFA X-Received: by 10.98.73.157 with SMTP id r29mr12018550pfi.218.1518447854202; Mon, 12 Feb 2018 07:04:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518447854; cv=none; d=google.com; s=arc-20160816; b=TlM5rSQbAm8ag7Veb/By5I+SIsr8gx7iwxHEnbxDS2e/Kx4O40K6SXYnsHK3C2dfN/ NOGYvAin2tCYWcZdbIungpJgOWN04uZOtplcqT7ht1Mqj7IbzDtCs4A/3sexezDoygW8 N+jTgN7c/epsj+q+FIa+jUVFRdrehzUz7KzEdgyWQQOb4WXG8IfNUTfNfcGsIorG22aY HtmvbyYo4F0jXySm6FO22dZG3jFbmwCpmJLTmknUAqEyQmwWKivFEkUtzJrOSpfi0HN1 tp6nrOSPWFhEniGfInpZgb8/yiXvuAb2IVAYH2FhwqtdlB2SnNZAkCT7kgh1FhsJ0TI6 Iqnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=GSEU5sUr6SV6Ct37ZSRvi6azMj8lL1p2kdA655QQIgs=; b=Xgjb7bh2C1OMdIr9WhhgIdtiw0cgHEhQeOvYbALygGBvIzklAe4WFrrfSLQed5EOr5 Xn452RFqifSNgrxLvdb+VWgbF0l6XdrnbAdUanCbtEo1n/F7l9y+4Df0pADS2bWgTBrY PM1Z8CCtmyj6urgV10YpL9Fn+BkDLU7Mr/CmSEUjPxzQS7aG45Cg4R8XuCmP7Aech9Qv 9zW7am7m6Ktw/5zhj/bYx+K4+0mgjhCsrYpHqyK0kO3HEuNaJRawJp95kDzv0HMoUf+n f8i46stKsaPWvP+UB7ISROND7R8RhBEZQC1UT7W5bgQUryVONzcy3Iu9a3nFbnSH49CF nx6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c6si2129007pgt.111.2018.02.12.07.03.59; Mon, 12 Feb 2018 07:04:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935862AbeBLOpF (ORCPT + 99 others); Mon, 12 Feb 2018 09:45:05 -0500 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:56363 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754448AbeBLOpD (ORCPT ); Mon, 12 Feb 2018 09:45:03 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04446;MF=zhang.jia@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0Sy3nhB9_1518446695; Received: from localhost(mailfrom:zhang.jia@linux.alibaba.com fp:106.11.233.52) by smtp.aliyun-inc.com(127.0.0.1); Mon, 12 Feb 2018 22:44:55 +0800 From: Jia Zhang To: tglx@linutronix.de, jolsa@redhat.com, mingo@redhat.com, hpa@zytor.com Cc: x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] /proc/kcore: Fix SMAP violation when dumping vsyscall user page Date: Mon, 12 Feb 2018 22:44:52 +0800 Message-Id: <1518446694-21124-1-git-send-email-zhang.jia@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset was validated with the combinations of pti=on/off and vsyscall=native/emulate/none. In addition, CONFIG_HARDENED_USERCOPY is always enabled. v2: - Use { } around kclist_add() when there's more than 1 line code Jia Zhang (2): /proc/kcore: Fix SMAP violation when dumping vsyscall user page x86/mm/64: Add vsyscall page to /proc/kcore conditionally arch/x86/mm/init_64.c | 6 ++++-- fs/proc/kcore.c | 4 ++++ include/linux/kcore.h | 1 + 3 files changed, 9 insertions(+), 2 deletions(-)