From patchwork Sun Aug 11 00:55:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Kleen X-Patchwork-Id: 2842556 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 769F2BF546 for ; Sun, 11 Aug 2013 00:56:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B3FFE201FA for ; Sun, 11 Aug 2013 00:56:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C2AF3201EC for ; Sun, 11 Aug 2013 00:56:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751460Ab3HKAz6 (ORCPT ); Sat, 10 Aug 2013 20:55:58 -0400 Received: from mga11.intel.com ([192.55.52.93]:37325 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751223Ab3HKAzy (ORCPT ); Sat, 10 Aug 2013 20:55:54 -0400 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 10 Aug 2013 17:55:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.89,853,1367996400"; d="scan'208";a="384386388" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.78]) by fmsmga002.fm.intel.com with ESMTP; 10 Aug 2013 17:55:51 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 5778630128D; Sat, 10 Aug 2013 17:55:51 -0700 (PDT) From: Andi Kleen To: linux-kernel@vger.kernel.org Cc: mmarek@suse.cz, linux-kbuild@vger.kernel.org, Joe Mario , ananth@in.ibm.com, Andi Kleen Subject: [PATCH 3/3] kprobes: Use KSYM_NAME_LEN to size identifier buffers Date: Sat, 10 Aug 2013 17:55:33 -0700 Message-Id: <1376182533-17530-3-git-send-email-andi@firstfloor.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1376182533-17530-1-git-send-email-andi@firstfloor.org> References: <1376182533-17530-1-git-send-email-andi@firstfloor.org> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Joe Mario Use KSYM_NAME_LEN to size identifier buffers, so that it can be easier increased. Cc: ananth@in.ibm.com Signed-off-by: Joe Mario Signed-off-by: Andi Kleen Acked-by: Ananth N Mavinakayanahalli --- kernel/kprobes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/kprobes.c b/kernel/kprobes.c index 6e33498..e174daf 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c @@ -2083,7 +2083,7 @@ static int __init init_kprobes(void) { int i, err = 0; unsigned long offset = 0, size = 0; - char *modname, namebuf[128]; + char *modname, namebuf[KSYM_NAME_LEN]; const char *symbol_name; void *addr; struct kprobe_blackpoint *kb; @@ -2209,7 +2209,7 @@ static int __kprobes show_kprobe_addr(struct seq_file *pi, void *v) const char *sym = NULL; unsigned int i = *(loff_t *) v; unsigned long offset = 0; - char *modname, namebuf[128]; + char *modname, namebuf[KSYM_NAME_LEN]; head = &kprobe_table[i]; preempt_disable();