Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4805615ooa; Tue, 14 Aug 2018 10:48:00 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyOj9u12bWlxauOi/R8E8f1vNY+MyGzotPGTXDL//1UnR1OUV20UYMT3P3Z4Y3bxL5TIVjy X-Received: by 2002:a63:4d47:: with SMTP id n7-v6mr21978976pgl.270.1534268880507; Tue, 14 Aug 2018 10:48:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534268880; cv=none; d=google.com; s=arc-20160816; b=HcS8f22fpq61is+EFf8BvzDbBGWB/AlUytSKJ2LOHhfxzd60bxSBpg6triHVtI6PAQ f1WfNgODWtkcQgE4SYpLXtQ0oOVegiu2PdOM5EvxUPdV5JXT1QiAREIkafsKhRiexnBC kKVXT7fr6g8tjXetmyB79c8v4elDyY+gwC9yLVVPB4qZTVqI3U65VFWTDv3iwFaotxYH MSxZE372ZfAGauMkTGb5pwG2MXuk8zlJTpq7QUGDr8hTNNTV0gKzLJmTgqUwtyrLC0nU m6tl7C0Sywq5PEzyvPAJT+5gVAbInojBCWPjGUmkulF3vGoZsn5P9OZ7FDtZZhnW11pw Esdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=mYWs/4RtOHe/ICfjDUObTiYlTpsx41SaAwzQlcya+q4=; b=WKHl0PTtyLNpRI8QJEjqn1x20W9HShyLPQAb38AZERO8BJjXu0BTRikdo7upONJQfP a3Dzvs1vsCScTvp20L8pT8YU9Elmpr9V3e0pZo5fITmIG4g0CRc02Su8mJCIQIGhUfHp wof5ovuNQj367tedAxRXcasn5BGfafOvByAdqNNAnCh/yyRmr/BCXeEEjZHUzAPw3GYS loEUdZ1Vz/YeMwCQXqtaauT/txMFyBR0o5fJMg7t50MLKmqStuqAoef/mcPwj10ZalF6 szUJc9hOG1ztWGUT5r8VfAQs6bvB08IdAz1fyypLoxabT/EoeEj5POn6iZ2TnxfNfDNx bfsg== 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 z18-v6si21574368pfl.209.2018.08.14.10.47.45; Tue, 14 Aug 2018 10:48:00 -0700 (PDT) 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 S2391079AbeHNUel (ORCPT + 99 others); Tue, 14 Aug 2018 16:34:41 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:60430 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390473AbeHNUel (ORCPT ); Tue, 14 Aug 2018 16:34:41 -0400 Received: from localhost (unknown [194.244.16.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A7D87CA5; Tue, 14 Aug 2018 17:46:28 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masami Hiramatsu , Ananth N Mavinakayanahalli , Anil S Keshavamurthy , Arnd Bergmann , David Howells , "David S . Miller" , Heiko Carstens , Jon Medhurst , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , Thomas Richter , "Tobin C . Harding" , Will Deacon , acme@kernel.org, akpm@linux-foundation.org, brueckner@linux.vnet.ibm.com, linux-arch@vger.kernel.org, rostedt@goodmis.org, schwidefsky@de.ibm.com, Ingo Molnar Subject: [PATCH 4.4 19/43] kprobes/x86: Fix %p uses in error messages Date: Tue, 14 Aug 2018 19:17:55 +0200 Message-Id: <20180814171518.394579359@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180814171517.014285600@linuxfoundation.org> References: <20180814171517.014285600@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Masami Hiramatsu commit 0ea063306eecf300fcf06d2f5917474b580f666f upstream. Remove all %p uses in error messages in kprobes/x86. Signed-off-by: Masami Hiramatsu Cc: Ananth N Mavinakayanahalli Cc: Anil S Keshavamurthy Cc: Arnd Bergmann Cc: David Howells Cc: David S . Miller Cc: Heiko Carstens Cc: Jon Medhurst Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Thomas Richter Cc: Tobin C . Harding Cc: Will Deacon Cc: acme@kernel.org Cc: akpm@linux-foundation.org Cc: brueckner@linux.vnet.ibm.com Cc: linux-arch@vger.kernel.org Cc: rostedt@goodmis.org Cc: schwidefsky@de.ibm.com Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/lkml/152491902310.9916.13355297638917767319.stgit@devbox Signed-off-by: Ingo Molnar Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/kprobes/core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/arch/x86/kernel/kprobes/core.c +++ b/arch/x86/kernel/kprobes/core.c @@ -393,7 +393,6 @@ int __copy_instruction(u8 *dest, u8 *src newdisp = (u8 *) src + (s64) insn.displacement.value - (u8 *) dest; if ((s64) (s32) newdisp != newdisp) { pr_err("Kprobes error: new displacement does not fit into s32 (%llx)\n", newdisp); - pr_err("\tSrc: %p, Dest: %p, old disp: %x\n", src, dest, insn.displacement.value); return 0; } disp = (u8 *) dest + insn_offset_displacement(&insn); @@ -609,8 +608,7 @@ static int reenter_kprobe(struct kprobe * Raise a BUG or we'll continue in an endless reentering loop * and eventually a stack overflow. */ - printk(KERN_WARNING "Unrecoverable kprobe detected at %p.\n", - p->addr); + pr_err("Unrecoverable kprobe detected.\n"); dump_kprobe(p); BUG(); default: