From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752706AbdBMPEY (ORCPT ); Mon, 13 Feb 2017 10:04:24 -0500 Received: from mail.kernel.org ([198.145.29.136]:52818 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752601AbdBMPDY (ORCPT ); Mon, 13 Feb 2017 10:03:24 -0500 From: Masami Hiramatsu To: Russell King Cc: Masami Hiramatsu , linux-kernel@vger.kernel.org, Peter Zijlstra , Ananth N Mavinakayanahalli , Ingo Molnar , Thomas Gleixner , "H . Peter Anvin" , Jon Medhurst , Wang Nan , Catalin Marinas , Will Deacon , "David A . Long" , Sandeepa Prabhu Subject: [BUGFIX PATCH 0/3] kprobes/arm: Improve kprobes implementation on arm Date: Tue, 14 Feb 2017 00:02:26 +0900 Message-Id: <148699813647.8505.3671818093118978038.stgit@devbox> X-Mailer: git-send-email 2.9.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 patches which improve kprobe on arm implementation. This includes some improves ported from x86 for multiple kretprobes on same function and recursing kprobes on FIQ (NMI) path. Also, I've fixed a bug(?) on recursing path. - [1/3]: Port an improvement (and fix) for recursing kprobe on single-stepping by probing FIQ/NMI context. - [2/3]: Skip single-stepping (and counting nmissed) if the recursing kprobe was hit on a conditional instruction which should not be executed. - [3/3]: Fix to show correct return address with multiple kretprobe events on same function. David, I think arm64 also has some conditinal instructions which should be skipped to handle it and single stepping if the condition is false. Or, user will see the probe events even when the instruction is not executed. Thank you, --- Masami Hiramatsu (3): kprobes/arm: Allow to handle reentered kprobe on single-stepping kprobes/arm: Skip single-stepping in recursing path if possible kprobes/arm: Fix the return address of multiple kretprobes arch/arm/probes/kprobes/core.c | 49 +++++++++++++++++++++++++++++++--------- 1 file changed, 38 insertions(+), 11 deletions(-) -- Masami Hiramatsu