Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10916429imu; Thu, 6 Dec 2018 08:42:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/VpwPxsjTPVJJl3BofRE33/rauABm7VmQISJMPEu+bKw+HMWveX9JiryDo5coHlas4sIzWk X-Received: by 2002:a65:41c2:: with SMTP id b2mr24402753pgq.67.1544114534781; Thu, 06 Dec 2018 08:42:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544114534; cv=none; d=google.com; s=arc-20160816; b=YGKMl9id7zWKMvLmdc1GGXO2/HTvQHJDJ1HItEfxNuERBifLApp2Jp/JXMCDVATsBO 4U/GeuMdkL1ZE/b5scEfrQL3oUXFBBIFO1MuUZzdMa+VKg/PoN4kKhAS9W5PN7Xe5CxJ 7oGCiSLByo9fjldzJCM/5wV1mPznt+o+pA3iJM1y1zKPYm5CersqU38os3t2/zfUen59 qgcRwceTMkMWmztDPvaigHXuWV2a6LcVg6/QSoNwkdWrqgKIEqc/NU+biLzxOQUWTcSH yUuQht+NuIvJ3s+wI2o8w+EW6Dg8BLg8lOiGuR/iIsAVhATiAKMNXy4ei/G4gB4JnS7+ 6cTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=uD7vRF9IA6ZFc3w8CL7Lhl69MMwWjogq4ACXsOPxaCc=; b=Oj51k1LxHeS5sNjbvELL7jOz8ArDOr6hqq66t4erTxISas6KuDkYmfZHRASXlyGU2I kYWUbE45iXg23O4SJ5A/sK/nL1g5n6FmEnMqDL9YKkLb/DaxEHsPJkE538zAeErtUvcV RtPLXDd0DlQODd+OpMltfK5rNXCL/ERpBZs3AnrO1UXnH3g32EbCBhJweZZPlG5dnFP7 Wuo/hjQYJ5wlqB1dj9hHrjEmAp3oDeOdYM91fU0qTF3GBbIoK7LBoMVyGNWDLmE6SS5s ka2R5mAZ+FKnGDFrh8kl9ikVxpzZzwNZZLIalsRHik1NMjb4gHpAUO9LZnSIxJPk04kj Re6A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 23si611488pfk.287.2018.12.06.08.41.55; Thu, 06 Dec 2018 08:42: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726058AbeLFQkq (ORCPT + 99 others); Thu, 6 Dec 2018 11:40:46 -0500 Received: from terminus.zytor.com ([198.137.202.136]:48349 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725889AbeLFQkp (ORCPT ); Thu, 6 Dec 2018 11:40:45 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id wB6GdrRB1769300 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 6 Dec 2018 08:39:54 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id wB6GdrRM1769297; Thu, 6 Dec 2018 08:39:53 -0800 Date: Thu, 6 Dec 2018 08:39:53 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Andrea Righi Message-ID: Cc: yhs@fb.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, mhiramat@kernel.org, luto@kernel.org, hpa@zytor.com, righi.andrea@gmail.com, torvalds@linux-foundation.org, bp@alien8.de, peterz@infradead.org, naveen.n.rao@linux.vnet.ibm.com, mingo@kernel.org, davem@davemloft.net, anil.s.keshavamurthy@intel.com Reply-To: torvalds@linux-foundation.org, bp@alien8.de, peterz@infradead.org, naveen.n.rao@linux.vnet.ibm.com, mingo@kernel.org, davem@davemloft.net, anil.s.keshavamurthy@intel.com, tglx@linutronix.de, yhs@fb.com, linux-kernel@vger.kernel.org, mhiramat@kernel.org, righi.andrea@gmail.com, luto@kernel.org, hpa@zytor.com In-Reply-To: <20181206095648.GA8249@Dell> References: <20181206095648.GA8249@Dell> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] kprobes/x86: Blacklist non-attachable interrupt functions Git-Commit-ID: a50480cb6d61d5c5fc13308479407b628b6bc1c5 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,BAYES_00, FREEMAIL_FORGED_REPLYTO,T_DATE_IN_FUTURE_96_Q autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: a50480cb6d61d5c5fc13308479407b628b6bc1c5 Gitweb: https://git.kernel.org/tip/a50480cb6d61d5c5fc13308479407b628b6bc1c5 Author: Andrea Righi AuthorDate: Thu, 6 Dec 2018 10:56:48 +0100 Committer: Ingo Molnar CommitDate: Thu, 6 Dec 2018 16:52:03 +0100 kprobes/x86: Blacklist non-attachable interrupt functions These interrupt functions are already non-attachable by kprobes. Blacklist them explicitly so that they can show up in /sys/kernel/debug/kprobes/blacklist and tools like BCC can use this additional information. Signed-off-by: Andrea Righi Cc: Andy Lutomirski Cc: Anil S Keshavamurthy Cc: Borislav Petkov Cc: David S. Miller Cc: Linus Torvalds Cc: Masami Hiramatsu Cc: Naveen N. Rao Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Yonghong Song Link: http://lkml.kernel.org/r/20181206095648.GA8249@Dell Signed-off-by: Ingo Molnar --- arch/x86/entry/entry_64.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S index ce25d84023c0..1f0efdb7b629 100644 --- a/arch/x86/entry/entry_64.S +++ b/arch/x86/entry/entry_64.S @@ -566,6 +566,7 @@ ENTRY(interrupt_entry) ret END(interrupt_entry) +_ASM_NOKPROBE(interrupt_entry) /* Interrupt entry/exit. */ @@ -766,6 +767,7 @@ native_irq_return_ldt: jmp native_irq_return_iret #endif END(common_interrupt) +_ASM_NOKPROBE(common_interrupt) /* * APIC interrupts. @@ -780,6 +782,7 @@ ENTRY(\sym) call \do_sym /* rdi points to pt_regs */ jmp ret_from_intr END(\sym) +_ASM_NOKPROBE(\sym) .endm /* Make sure APIC interrupt handlers end up in the irqentry section: */ @@ -960,6 +963,7 @@ ENTRY(\sym) jmp error_exit .endif +_ASM_NOKPROBE(\sym) END(\sym) .endm