Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2374408imu; Mon, 17 Dec 2018 00:24:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/U6qmtk3KJBU8jo0p+BATO0e0C4gvxWfjLuxWIQVwOvXNYxLcfpVEKZvhuyLgDntS9A8RIa X-Received: by 2002:a17:902:9b93:: with SMTP id y19mr12025892plp.336.1545035067118; Mon, 17 Dec 2018 00:24:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545035067; cv=none; d=google.com; s=arc-20160816; b=OA0fj2Sgrz2ZyBz7d7bQLo1KWRFX/VGUFBYIJoW2X6FVetnUo0CQTauWb3aR20W797 ZaYVS/vuf2yefE1w9m+OX9K1kuNBna+4Jme+ur2FphsybMssGLRKx5+TdL/Y4lJcWmam S8dgZ9OKJRloqxUPdeoLYRNvuWfX2jJHdWzQjBCSB6CB54uS8OOXvCZXEyKGzeQSnEej Zo9GTmcY2s+Xabrr9n1yEvTjPQNL51xLqhHHqAms0whIPFYtuRN8U8G4UDAwxKnrXwPA ZvPnAPFqgPymx2pR5u1FCZE00VftNnFZLANz9kzoH931G0e0YojE0G7plYw87Nx+8Pfi AodA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:date:subject:cc:to:from:dkim-signature; bh=aaIPjUbfTLZXK2GmAGZQfv3TDCfBHzRrlYbUtRz8wTw=; b=MQTym7JAq23xAHZY5peJDFHWIWJh9ijyuui4SWybvf6GpKtA0R1/+2mHwKfCi5cN9F /XbG2tkfs6V/k/gGVHRA0SHUO92bm5NdgobLhJIF2XdNjDk/GR0tUpmVIpWI23QwhRXe KQFeSm23icM5kPXDy7h64UFUaQf2R1ud/nwLIx4xiq+ghW8RfAcPPcLgUKoM3kBvZ/QX MAFWknv9I6xEREdzL1PDiAApvF7JwaqYyDcrdoYWM7vA+8Cog3JfnaXVVL51M/V+wG5J VL9pcfSUzu4VRp2YZ2P2If4947bW0SOb/Rj+OCUHXSvZ4PaD3CSe8r3G4oOPHjbdWOnG PFYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aTe6NpUw; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w185si7711232pgb.588.2018.12.17.00.24.11; Mon, 17 Dec 2018 00:24:27 -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; dkim=pass header.i=@kernel.org header.s=default header.b=aTe6NpUw; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731711AbeLQIUu (ORCPT + 99 others); Mon, 17 Dec 2018 03:20:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:55768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731637AbeLQIUu (ORCPT ); Mon, 17 Dec 2018 03:20:50 -0500 Received: from localhost.localdomain (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (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 BFABA20672; Mon, 17 Dec 2018 08:20:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545034849; bh=ZTNQXw9mjqaDhnbOX2ukZ2znjixQTWuBC6q6DSC/nDw=; h=From:To:Cc:Subject:Date:From; b=aTe6NpUwnJWV51lW3mk8zRT9YJ8dQ/xqRbzy9qbgITVESP2OEavsaJgLWK33qMPLM OrpgFE1ZedTP/PUbi9Wbg3R6LNhakVEudxqNw2BWnpNVUIHiMXYSJiD6WKizktftKm xf/JCwxMO5strp0mhqts0j5GL4Wg41M0LEvmGLmc= From: Masami Hiramatsu To: Ingo Molnar , Andrea Righi Cc: "Naveen N . Rao" , Anil S Keshavamurthy , "David S . Miller" , Masami Hiramatsu , Yonghong Song , Andy Lutomirski , Thomas Gleixner , Borislav Petkov , "H . Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] x86: kprobes: Show correct blaclkist in debugfs Date: Mon, 17 Dec 2018 17:20:25 +0900 Message-Id: <154503482486.26176.6224515860220847638.stgit@devbox> X-Mailer: git-send-email 2.13.6 User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is v2 series for showing correct kprobe blacklist in debugfs. v1 is here: https://lkml.org/lkml/2018/12/7/517 I splitted the RFC v1 patch into x86 and generic parts, also added a patch to remove unneeded arch-specific blacklist check function (because those have been added to the generic blacklist.) If this style is good, I will make another series for the archs which have own arch_within_kprobe_blacklist(), and eventually replace that with arch_populate_kprobe_blacklist() so that user can get the correct kprobe blacklist in debugfs. Thank you, --- Masami Hiramatsu (3): kprobes: Blacklist symbols in arch-defined prohibited area x86/kprobes: Show x86-64 specific blacklisted symbols correctly x86/kprobes: Remove unneeded arch_within_kprobe_blacklist from x86 arch/x86/kernel/kprobes/core.c | 8 ++--- include/linux/kprobes.h | 3 ++ kernel/kprobes.c | 67 ++++++++++++++++++++++++++++++++-------- 3 files changed, 59 insertions(+), 19 deletions(-) -- Masami Hiramatsu (Linaro)