From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754044AbdG3KLs (ORCPT ); Sun, 30 Jul 2017 06:11:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:42508 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753739AbdG3KLr (ORCPT ); Sun, 30 Jul 2017 06:11:47 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9D5B322BCD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=mhiramat@kernel.org From: Masami Hiramatsu To: Ingo Molnar , Thomas Gleixner Cc: Francis Deslauriers , mathieu.desnoyers@efficios.com, Ingo Molnar , "H . Peter Anvin" , x86@kernel.org, Masami Hiramatsu , Ananth N Mavinakayanahalli , Anil S Keshavamurthy , "David S . Miller" , linux-kernel@vger.kernel.org, Yoshinori Sato , Chris Zankel , Max Filippov Subject: [PATCH -tip v8 0/4] kprobes related bugfix Date: Sun, 30 Jul 2017 19:10:29 +0900 Message-Id: <150140941409.26851.4427272757319161479.stgit@devbox> X-Mailer: git-send-email 2.13.3 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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Here are the series of patches to fix kprobes not to optimize on the functions in irqentry text ([4/4]). To check the irqentry text always, [3/4] makes irqentry text section unconditional. This involves some other cleanups on h8300, xtensa, because those sources declare section start/end symbol as single characters, but generic sections.h declares it as character arrays. So it leads build errors if we apply [3/4]. Thank you, --- Masami Hiramatsu (4): h8300: mark _stext and _etext as char-arrays, not single char xtensa: mark _stext and _end as char-arrays, not single char irq: Make irqentry text section unconditional [BUGFIX] kprobes/x86: Do not jump-optimize kprobes on irq entry code arch/arm/include/asm/traps.h | 7 ------- arch/arm64/include/asm/traps.h | 7 ------- arch/h8300/include/asm/traps.h | 6 +++--- arch/x86/entry/entry_64.S | 9 ++------- arch/x86/kernel/kprobes/opt.c | 9 ++++++--- arch/x86/kernel/unwind_frame.c | 2 -- arch/xtensa/kernel/setup.c | 6 +++--- include/asm-generic/sections.h | 4 ++++ include/asm-generic/vmlinux.lds.h | 8 -------- include/linux/interrupt.h | 14 +------------- 10 files changed, 19 insertions(+), 53 deletions(-) -- Masami Hiramatsu