Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp55739pxa; Wed, 26 Aug 2020 04:47:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVagkcRzfQuXRbInNvmO12oRrULwkTK8zpGNAlHlJEn3/PbJ1FCbv4NAe9fWmAyXfYkwFr X-Received: by 2002:a05:6402:2031:: with SMTP id ay17mr14121249edb.46.1598442463134; Wed, 26 Aug 2020 04:47:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598442463; cv=none; d=google.com; s=arc-20160816; b=WoNTpKX6BrjwVu5kbv+xUa9Oam6AiiSSP+OJ50vVb03o+wmgamM3a0PX4sPJFYaep1 73vXM4sdSiJp4uKRQDY1tznPpMwQy3p0kpKC3y3KqAhW+HuViLbVVw1P7aVwjWEX5N5r z+Bddf6B4NgmX2End6/XXyMQZAKLwuIaf8iKIPv6H8LQXXRsOTlObkA05Om2ONcOPy25 uAv0braa8XY7UWXGGwXpbebBr9mYcUCwH8RJr1wKAgNm3HZmoVG17LA5rD5Uz5mHefbU JhHhaFIz1SAp3LozLBYC1w6RZsgeCiy4rE4ZD7JEQomR3PJ9g3yLXBGQVheLq48Nokhh 024Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=biGK0C5zLbKBklHb38iprkSCHMCsgSBM/q/ddja/KEE=; b=MBkp+6JCpQ6hOGZ8mqVLvVIeBAk5Ss2HEzfnZ0BpE16Fcg30cjI5BtyK5vnLIbnsIA osg2AQaLDwsfTiRddTJlPormWp9OHl3VsWzomjBQjeya1KW34NoLbJTFPjLodSSodv6b XIrG6DC3QRrRz5yVcdsTf4dPmTshKvi0Xy3zdC5IqM3wlfUBPa1xRNTyeiz0UdyhOOX7 kl68/m6VFrL1uklC7itK76DX9iFauvE9ky88teTrHSRH+q3Vu8QQGIP1pTjruUWj/jJt tlbl+zsjQiskWfZ4Rq3wa3q9hNCqI3eA7FbnaKNbbiGJaTA7jMYqBMrvCoOQ4AUgQ+26 7wBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0G+G6Qnb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si1374532edj.275.2020.08.26.04.47.20; Wed, 26 Aug 2020 04:47:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0G+G6Qnb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729102AbgHZLqC (ORCPT + 99 others); Wed, 26 Aug 2020 07:46:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:41018 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728932AbgHZLdK (ORCPT ); Wed, 26 Aug 2020 07:33:10 -0400 Received: from quaco.ghostprotocols.net (unknown [179.97.37.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 063352087C; Wed, 26 Aug 2020 11:33:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598441586; bh=rkdJpqDKGPr3YuL3BMdQcX/bSGlko7vm4k18JNIejrg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0G+G6QnbzQCztoPazul2NDxfGxy+ETcF1gEEIZZayu7JlY9ANQnRvDrI6lUgYRi08 xEwmaStf8q60ERX1sQjaPflMPh5yrwA7y1clzs1AnlAMTNQQG71hmcZId0Hpizshnv JBupRTtfjGyzEnB7/+k8pm3BG3bpH+HzHx6gfC0U= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 1BD4940D3D; Wed, 26 Aug 2020 08:33:04 -0300 (-03) Date: Wed, 26 Aug 2020 08:33:04 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: Thomas Richter , LKML , linux-perf-users , svens@linux.ibm.com, gor@linux.ibm.com, sumanthk@linux.ibm.com, heiko.carstens@de.ibm.com Subject: Re: [PATCH] perf test: Perf test 67 dumps core on s390 Message-ID: <20200826113304.GC1059382@kernel.org> References: <20200825071211.16959-1-tmricht@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Aug 25, 2020 at 02:04:30PM -0700, Ian Rogers escreveu: > On Tue, Aug 25, 2020 at 12:12 AM Thomas Richter wrote: > > > > Linux 5.9 introduced perf test case "Parse and process metrics" and > > on s390 this test case always dumps core: > > Signed-off-by: Thomas Richter > > Reviewed-by: Sumanth Korikkar > > Acked-by: Ian Rogers I'll add your comments and... > This also shows up with address sanitizer on all architectures > (perhaps change the patch title) and perhaps add a "Fixes: " > tag. > ================================================================= > ==4718==ERROR: AddressSanitizer: global-buffer-overflow on address > 0x55c93b4d59e8 at pc 0x55c93a1541e2 bp 0x7ffd24327c60 sp > 0x7ffd24327c58 > READ of size 8 at 0x55c93b4d59e8 thread T0 > #0 0x55c93a1541e1 in find_metric tools/perf/util/metricgroup.c:764:2 > > +++ b/tools/perf/tests/parse-metric.c > > @@ -70,6 +70,11 @@ static struct pmu_event pme_test[] = { > > { > > .metric_expr = "1/m3", > > .metric_name = "M3", > > +}, > > +{ > > + .metric_expr = NULL, > > + .metric_name = NULL, > > + .metric_group = NULL No need to set all three to NULL, just one is enough and then the compiler will zero out all the rest. - Arnaldo