From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763311AbdDSMv0 (ORCPT ); Wed, 19 Apr 2017 08:51:26 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:34429 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763295AbdDSMvY (ORCPT ); Wed, 19 Apr 2017 08:51:24 -0400 From: "Naveen N. Rao" To: Michael Ellerman , Ingo Molnar Cc: Ananth N Mavinakayanahalli , Masami Hiramatsu , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/7] powerpc: a few kprobe fixes and refactoring Date: Wed, 19 Apr 2017 18:20:59 +0530 X-Mailer: git-send-email 2.12.1 X-TM-AS-MML: disable x-cbid: 17041912-0008-0000-0000-000005586209 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17041912-0009-0000-0000-000013653B95 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-04-19_10:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1704190113 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v2: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1375870.html v3 changes: - Patch 3/5 in the previous series ("powerpc: introduce a new helper to obtain function entry points") has been dropped from this series and will instead be posted as part of the KPROBES_ON_FTRACE patchset. - Patch 5/5 in the previous series ("powerpc: kprobes: emulate instructions on kprobe handler re-entry") has been split into two patches as recommended by Masami. They represent patches 6/7 and 7/7 in this series. - Patches 3/7 and 4/7 are new in this series to address review comments from David Laight. - Naveen Naveen N. Rao (7): kprobes: convert kprobe_lookup_name() to a function powerpc: kprobes: fix handling of function offsets on ABIv2 kprobes: validate the symbol name length powerpc: kprobes: use safer string functions in kprobe_lookup_name() powerpc: kprobes: factor out code to emulate instruction into a helper powerpc: kprobes: emulate instructions on kprobe handler re-entry powerpc: kprobes: remove duplicate saving of msr arch/powerpc/include/asm/kprobes.h | 53 ----------------- arch/powerpc/kernel/kprobes.c | 118 ++++++++++++++++++++++++++++++------- arch/powerpc/kernel/optprobes.c | 4 +- include/linux/kprobes.h | 2 + kernel/kprobes.c | 45 ++++++++++---- kernel/trace/trace_kprobe.c | 4 ++ 6 files changed, 137 insertions(+), 89 deletions(-) -- 2.12.1