Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp465527imu; Fri, 25 Jan 2019 05:31:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN5p3O4cS9vP2RpgzG5sxoLMkdbDjRatvXDB7mfD3KysD3qGv34Pexlw61cO2A9ttIqrv/g/ X-Received: by 2002:a17:902:14e:: with SMTP id 72mr11066019plb.287.1548423102048; Fri, 25 Jan 2019 05:31:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548423102; cv=none; d=google.com; s=arc-20160816; b=GoO2GS12Nx3wFkOkrqKcfkF43FVUdpcwgg2R2Jxtmi77I1ivmRD40HSbOjRYaUMhQp s3a4b04D5WCz7XAkZrB25zHXsOU9M2732HDa1WoB09asZk41rpfbKrjys9c2BdS1WCRF trU7e6AHtxlB0xg1rqTp7eQO155KWE4xMGIU9XaHsCiqu4Vumfva6lqkn7oU0L3Y42/X xA0Qe2ahbPnBYMTqlQo7AhzRZoBxEcB79cB20RvPF3kopS6zUlKPmoUIyIyrvoRzVb7S QceVmC83Kl7pESZ+IEGA4WhW1dvuXZ/ZXSqTM5ZjUs/+JxT3fnishOmpVhxTQ4e5t/VV Ubrg== 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=G4QzuC+ZKMoTiYj4W9byPDHdN7qj/96L4I+3Bz2JbzI=; b=B/TaC3zmNqouC1v49OR/OROrXAF++tQ0bil9Rb5LYmnGO21Iaeo5GQn06W/e74C8uK JHHb9m9yUZjwDzZMZsJlEPi73+9NFIWf39vBc/uX1BccQpjQdygaaf4RK+KjpmDm3fec vA/jbk7gzL96ZhANbtcgQ8u3Yu8fMqQ8WWv43UCnUG4pDpJFz7xlMvfGJ4aLsrFHT9HI bBqVQa76C/LFEw7sPlixlQFfPQtqh2ecT7fFBfEhpu0z2otSUV9g32OTZBxPPTG8plpl EXgLGx7cyoefbwKXxM2y3kAZ1vfcwnzPJMWMa8wwT6R/GMIhzoiTig+ICqC1TNyy7WT6 TROg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UFydvYEo; 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 w24si12610432plp.304.2019.01.25.05.31.26; Fri, 25 Jan 2019 05:31:42 -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=UFydvYEo; 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 S1728268AbfAYN3w (ORCPT + 99 others); Fri, 25 Jan 2019 08:29:52 -0500 Received: from mail-io1-f66.google.com ([209.85.166.66]:35449 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726095AbfAYN3w (ORCPT ); Fri, 25 Jan 2019 08:29:52 -0500 Received: by mail-io1-f66.google.com with SMTP id f4so7739503ion.2 for ; Fri, 25 Jan 2019 05:29:51 -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=G4QzuC+ZKMoTiYj4W9byPDHdN7qj/96L4I+3Bz2JbzI=; b=UFydvYEosyJLqaSjmoDr45Y64ShHj7jJZioif7pYl5IJWZCOXiFwjuetm+/ohHrtvU Ycmoj7MYvXMphgwvDNBRc7A4WlSFnwNljkp/ufrOQZy2Tim4sTITrvQJ6lb50JVPKKIy OnGqMs13rczRdS+gUikN6bMnYCQggKiW0warY= 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=G4QzuC+ZKMoTiYj4W9byPDHdN7qj/96L4I+3Bz2JbzI=; b=lI7MjOvhyyqJ4S/PnXnf0Hlw+bsxt8BQNTWdM+wf8NWFA0NmGLvDHBxCweU9ZiUNYc upF9eCjbU2j3whYfEWx4sBNG8mPjuhaTb4fBV+kFHZOFDSZaoHDiI4QpZcx3Y979Sg6P jkOJAlSB6PoDvKDtyPmti1hQoaBG88LgHuYqNPsqfIYH1AO7DDqXPbUhPG6ZrxK+221I gFh0pPMK5nuvdIRQFvthNWicLp03zhD4JJXhQD9RF62FpfabYcIC0zHCV56zVHLBLK/Y 4qGsrP79vBOXGHSqwe4caLkErjuhI4xOD77gF43XpCPF3Im7r6YpqHebZsSV60itK/7N gbMg== X-Gm-Message-State: AHQUAub3IUjQHuT8jazysXPA5dTguG+SAFwYUeEIiuWKstK0Oye+HURJ BiG6s49JCVrbRBcNsAr2kKr0oOV8SUUMN/y4hRHQiQ== X-Received: by 2002:a6b:5d01:: with SMTP id r1mr6215402iob.170.1548422991301; Fri, 25 Jan 2019 05:29:51 -0800 (PST) MIME-Version: 1.0 References: <1547765160-15502-1-git-send-email-eugene.loh@oracle.com> In-Reply-To: From: Ard Biesheuvel Date: Fri, 25 Jan 2019 14:29:40 +0100 Message-ID: Subject: Re: [PATCH] Kbuild: Handle too long symbols in kallsyms.c To: eugene.loh@oracle.com, Masahiro Yamada , Linux Kbuild mailing list 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 (+ masahiro) On Fri, 25 Jan 2019 at 14:28, Ard Biesheuvel wrote: > > 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 > >