From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751363AbeA2HSO (ORCPT ); Mon, 29 Jan 2018 02:18:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57734 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751042AbeA2HSN (ORCPT ); Mon, 29 Jan 2018 02:18:13 -0500 Date: Mon, 29 Jan 2018 08:18:10 +0100 From: Jiri Olsa To: Andy Shevchenko Cc: Jiri Olsa , Arnaldo Carvalho de Melo , lkml , Ingo Molnar , Namhyung Kim , David Ahern , Andi Kleen , Alexander Shishkin , Peter Zijlstra Subject: Re: [PATCH 1/2] tools lib symbol: Use strtoul instead of hex2u64 in kallsyms__parse Message-ID: <20180129071810.GA5774@krava> References: <20180119161103.15035-1-jolsa@kernel.org> <20180119161103.15035-2-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 26, 2018 at 07:27:06PM +0200, Andy Shevchenko wrote: > On Fri, Jan 26, 2018 at 7:22 PM, Andy Shevchenko > wrote: > > On Fri, Jan 19, 2018 at 6:11 PM, Jiri Olsa wrote: > >> Current kallsyms__parse uses hex2u64, which gives > >> no indication of error. Using strtoul to checkup > >> on failed attempt to parse the number and stop the > >> rest of the kallsyms__parse processing early. > > > >> + start = strtoul(line, &endptr, 16); > >> + if (line == endptr) > >> + continue; > >> + > >> + len = endptr - line + 1; > >> > >> - len++; > >> if (len + 2 >= line_len) > >> continue; > > > > https://patchwork.kernel.org/patch/4087681/ > > Even second attempt including recent ping left without consideration. > > http://lkml.iu.edu/hypermail/linux/kernel/1407.0/02791.html I see, sry we overlooked it.. could you please repost it? thanks, jirka