Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5499784rdb; Sat, 16 Sep 2023 22:28:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHqvHP0Z5pPStKGLK8D8MaR5RB12ij6c6JxgWRxIBSBlvRpSlkAxH4K/fsmTRk+qQTy7taf X-Received: by 2002:a17:902:e884:b0:1bf:8916:8d21 with SMTP id w4-20020a170902e88400b001bf89168d21mr13225431plg.13.1694928525954; Sat, 16 Sep 2023 22:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694928525; cv=none; d=google.com; s=arc-20160816; b=pUiE9BCJPOGrrXz3OsrKZU2V0+gSfGj0usZ3i+/tGhXvT1VbAOXWJ8ZuoZ/TPvT1U9 qgooues9c0kTrrm3/fu9YM8+aK9arOPHcL77MzqAdwmgMJkPShNAM7caK8k1GjAKIMQQ /gqCgyJuYmQwWbw61HwvnX0IGB/QNBk+lnwsNsXajNoSIi1KLD9kU7EMW1DaxeHVnbgc +qrFOlFo6LMxqVfHhuSW+2GH/+ZjCyf0ezq66UjKMu35lNMRGc3zedNwWrGTJjB8I14f MstAE55hecl81LlZGF2vlVN85F+j+vPM8iqQToBo429xRYV+d5BjMn8SxOiL3K0XXTld wZ0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=BQkJF1d1GbNMFPtbrdc2uT9l4ILRRf9rpLNOOyK5gzg=; fh=JInvXeNCVgiFov9zNyi38YPv3A/GEVYwWKEHJAqO0PQ=; b=x8G32gl/wmOfvzWg3j9NJYDvLhxLeKMv35GFDbA+OnqKqkoa9CRvHi7b0txvHPuf9C /tjUPlqs87Kydi5kOjbriCyV5VtHxmcjEMmxKvsxHF3LwXu9K7rCNXzV59frGpbe5ARD HAsP2cfU7/b6doeemewmK2OBysWSpiIu+Z7kwADYfS+FEymtMeMSTszwRZFpWF5/fOXR g5lSl/NABoTx8qY5OEJdD8KaZxIHCjBkDHx8BT9xT7394TPbUCjlWyUAJndachJraUkJ TcnoN/x+Wnuzk9VbgvViUe+sHBHPBOBqWm6EWHgZwlbrjYoRHwG8uG9MYEc1y6v7kdam rHxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id t187-20020a632dc4000000b00565322ef4f1si5920103pgt.348.2023.09.16.22.28.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 22:28:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8DDDE810C2C3; Sat, 16 Sep 2023 22:28:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233394AbjIQF14 convert rfc822-to-8bit (ORCPT + 99 others); Sun, 17 Sep 2023 01:27:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234810AbjIQF1h (ORCPT ); Sun, 17 Sep 2023 01:27:37 -0400 Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F8F31AD; Sat, 16 Sep 2023 22:27:28 -0700 (PDT) Received: by mail-io1-f42.google.com with SMTP id ca18e2360f4ac-7926b7f8636so86506039f.1; Sat, 16 Sep 2023 22:27:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694928448; x=1695533248; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TzRftMfR+qB5FSzonRS1Mmq5OWomLaO6LI1sl+SH1Lw=; b=RqQZqHAkrCtjb8z6FNZmp/dCR78/Xcknju9+DzsvLwZtQi+KcYooVGY50H8updOQ3M JTmqY9d2vDanxSxWPGXaEkd0c9oSWQhWXfs0y/iSHmggp7NJCXUXpN8WZnVWQZdwvCcn /NYXbkavzdQaeRPthmbY03PiDmsf+Xeq28ppuAbzJUtuWHJAs3ZU3v0bnIT1nc+1XxOb SspK6LvZlGEZPR6EAZnoD2hI3FDdtYu9BF33l81gSzeHm13c18FFRu6oQE8KBW+Mg4Mj CMvOjzFCKdiGzbXxR9A6gEEc5xoCZpTn+Mg+JnLnaVwWdRJS0FHxY1Rz1TzFXAnDoxfc j+VA== X-Gm-Message-State: AOJu0YxbqRaaEXXzFEiFTB+vnx8YipE+aaHjPVwp/BfxLLd7pNZnGxy8 DTcUIDEm06bIEaZIKK9J3Y5V8VQHXhsi0go5ugE= X-Received: by 2002:a5e:a808:0:b0:794:eb37:b0da with SMTP id c8-20020a5ea808000000b00794eb37b0damr5660549ioa.2.1694928447734; Sat, 16 Sep 2023 22:27:27 -0700 (PDT) MIME-Version: 1.0 References: <20230914022425.1489035-1-irogers@google.com> In-Reply-To: <20230914022425.1489035-1-irogers@google.com> From: Namhyung Kim Date: Sat, 16 Sep 2023 22:27:15 -0700 Message-ID: Subject: Re: [PATCH v1] perf pmu: Ensure all alias variables are initialized To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , James Clark , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 16 Sep 2023 22:28:42 -0700 (PDT) On Wed, Sep 13, 2023 at 7:24 PM Ian Rogers wrote: > > Fix an error detected by memory sanitizer: > ``` > ==4033==WARNING: MemorySanitizer: use-of-uninitialized-value > #0 0x55fb0fbedfc7 in read_alias_info tools/perf/util/pmu.c:457:6 > #1 0x55fb0fbea339 in check_info_data tools/perf/util/pmu.c:1434:2 > #2 0x55fb0fbea339 in perf_pmu__check_alias tools/perf/util/pmu.c:1504:9 > #3 0x55fb0fbdca85 in parse_events_add_pmu tools/perf/util/parse-events.c:1429:32 > #4 0x55fb0f965230 in parse_events_parse tools/perf/util/parse-events.y:299:6 > #5 0x55fb0fbdf6b2 in parse_events__scanner tools/perf/util/parse-events.c:1822:8 > #6 0x55fb0fbdf8c1 in __parse_events tools/perf/util/parse-events.c:2094:8 > #7 0x55fb0fa8ffa9 in parse_events tools/perf/util/parse-events.h:41:9 > #8 0x55fb0fa8ffa9 in test_event tools/perf/tests/parse-events.c:2393:8 > #9 0x55fb0fa8f458 in test__pmu_events tools/perf/tests/parse-events.c:2551:15 > #10 0x55fb0fa6d93f in run_test tools/perf/tests/builtin-test.c:242:9 > #11 0x55fb0fa6d93f in test_and_print tools/perf/tests/builtin-test.c:271:8 > #12 0x55fb0fa6d082 in __cmd_test tools/perf/tests/builtin-test.c:442:5 > #13 0x55fb0fa6d082 in cmd_test tools/perf/tests/builtin-test.c:564:9 > #14 0x55fb0f942720 in run_builtin tools/perf/perf.c:322:11 > #15 0x55fb0f942486 in handle_internal_command tools/perf/perf.c:375:8 > #16 0x55fb0f941dab in run_argv tools/perf/perf.c:419:2 > #17 0x55fb0f941dab in main tools/perf/perf.c:535:3 > ``` > > Fixes: 7b723dbb96e8 ("perf pmu: Be lazy about loading event info files > from sysfs") > > Signed-off-by: Ian Rogers Applied to perf-tools, thanks! Namhyung