Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp464758imu; Fri, 25 Jan 2019 05:30:58 -0800 (PST) X-Google-Smtp-Source: ALg8bN7/gQ9+IOLXbQdmlFIvxnJa/HQTREUWlop7r1QaeZEox5z37twyYp9eXKa/6qwkqFsBcwU4 X-Received: by 2002:a65:520a:: with SMTP id o10mr10298811pgp.276.1548423058688; Fri, 25 Jan 2019 05:30:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548423058; cv=none; d=google.com; s=arc-20160816; b=hVSRMsN61R79LLXkFnzL2wv+t514dAqi695dcWUeR4TFTY2sBfdXkibj5dnmYpq7J/ wiQl1ohcorP+p2S1X9QlkwDekhca31H7dBBxPgykI9V0IB0pEgI5lGbZd56RlSqt6Jtq ylBBAqcIR5iZCjjq6iG4DsU28miwKQ43D5wqynLsNAOP0BH/sHAmcxN3pYyaAXhzULkT CFc+tX96lsU5QUp+BU6xSr5JSAUQg0BeEqCEZUf+lL2eUpTfXQbV0thguvfHeu6Ph5pu 22Fesb7kHGm0rZhi0hUA649NygVA94Zf6QrGjBvtJjQObO2krrpHsoQXNBJUnD3gTk/g uBSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=UA1u/pwBAu8VkY4HUBKZpTWyBGL19Q9Lbi20qNvOvvM=; b=FTQR0TnuZ6XX/jbH2CBZqMmvLEf68Ow3FNng6rRAmgmzDfa6eDqK7s4BCDvnsxE6r/ AuaAEareGTNYAAaWB0aVp0IJ8UhIS7XzRqdX9c80/Vds2FO0+c4Ncoac3twTVAqhzJ5u tgeCj3Kvl+1uSZsGNMWL/nc1FdU844AZiH3+CJ49rty2aS4sa15dhYgIjB+3ytL+i2J8 BEDijiRZ84O5HQwSLzUvVhj/ph8yr4R6nn8fKdOI4nyhzkf8VUwcS59U3znmUvxMFTRP A9D+sBQprmudl7VWHG+GGCNFRbuONHDwrVwRcczDsDbMrbR2DxKS0XAjZH/bml1gijp/ S1HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IetaIi+v; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l12si9967308plc.0.2019.01.25.05.30.42; Fri, 25 Jan 2019 05:30:58 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=IetaIi+v; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726311AbfAYN3A (ORCPT + 99 others); Fri, 25 Jan 2019 08:29:00 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:53762 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726095AbfAYN3A (ORCPT ); Fri, 25 Jan 2019 08:29:00 -0500 Received: by mail-it1-f193.google.com with SMTP id g85so10460727ita.3 for ; Fri, 25 Jan 2019 05:29:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UA1u/pwBAu8VkY4HUBKZpTWyBGL19Q9Lbi20qNvOvvM=; b=IetaIi+vZ+vCbBJRpoN+msM0ark4i4fE62DMDqYXkk5lY2UcWJ1/Rgmx94Ei1IHQyf 3dTZ4fbYa1BRaCkc4W5kAAy5H76BBaa+Nv6LK7fRmI7TAzCslqxjmUFnp/eywUZaYnBR 05UNGU8rYWNOEytXp0somC0M67AI8s9R4VIgk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UA1u/pwBAu8VkY4HUBKZpTWyBGL19Q9Lbi20qNvOvvM=; b=BCfzYIBuenyRUmQaU8sPGBoQqh/IKe9om5GcdWig3xpJJ+xaYxe0AWDwcuyFQvBYD4 MIpek1B89jtn4I1e9+UGTTpwP+Pq0pVp9nwVUl+akDuLULNxDSvGRx1g0+f3YG4F3CoY X6DtN0a24gLnxtc7zQ592kRpA0xWyqyhnRcNftAgJoRm8P1r6ccbPFQmdYYWLjZA5wLf yGrz8bzFTM2MbN2ZNsxEIGfYlm8q/JUqU/xD2bzUB9PYhM42tj6rdiKBLjCrKVDDGbAv Eh8EdnA26FwNYWPlSHZBr4ztDAdgyYBS4+XT93nHOU8mWUrXeqxvJQRrDb80dqAmvse1 0vAQ== X-Gm-Message-State: AJcUukcOUqDtDcMX84iXklYWSB9BZA2w2HwmxVDCcFdgGq1wYxNLiHha P33hkKqI+nYPHlwlzsAV1nZrzTJ7uDAH+VQ3VE0crg== X-Received: by 2002:a05:660c:4b:: with SMTP id p11mr4213764itk.71.1548422939554; Fri, 25 Jan 2019 05:28:59 -0800 (PST) MIME-Version: 1.0 References: <1547765160-15502-1-git-send-email-eugene.loh@oracle.com> In-Reply-To: <1547765160-15502-1-git-send-email-eugene.loh@oracle.com> From: Ard Biesheuvel Date: Fri, 25 Jan 2019 14:28:48 +0100 Message-ID: Subject: Re: [PATCH] Kbuild: Handle too long symbols in kallsyms.c To: eugene.loh@oracle.com Cc: Linux Kernel Mailing List , Andi Kleen , andi@firstfloor.org 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 On Thu, 17 Jan 2019 at 23:46, wrote: > > From: Eugene Loh > > When checking for symbols with excessively long names, > account for null terminating character. > > Fixes: f3462aa952cf ("Kbuild: Handle longer symbols in kallsyms.c") > Signed-off-by: Eugene Loh Acked-by: Ard Biesheuvel > --- > scripts/kallsyms.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c > index 77cebad..f75e7bd 100644 > --- a/scripts/kallsyms.c > +++ b/scripts/kallsyms.c > @@ -118,8 +118,8 @@ static int read_symbol(FILE *in, struct sym_entry *s) > fprintf(stderr, "Read error or end of file.\n"); > return -1; > } > - if (strlen(sym) > KSYM_NAME_LEN) { > - fprintf(stderr, "Symbol %s too long for kallsyms (%zu vs %d).\n" > + if (strlen(sym) >= KSYM_NAME_LEN) { > + fprintf(stderr, "Symbol %s too long for kallsyms (%zu >= %d).\n" > "Please increase KSYM_NAME_LEN both in kernel and kallsyms.c\n", > sym, strlen(sym), KSYM_NAME_LEN); > return -1; > -- > 1.8.3.1 >