Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp503630lqg; Fri, 1 Mar 2024 11:32:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUb6LbcQyfuYRHEh1vGJG8ynwJVZtBnBvUedCK18I7B/Urs1CZ5YVQr6i8xHNOoi6V64cbYU3wR8gS6nLLA6kzpl77qwvK1l5aG9TQrQQ== X-Google-Smtp-Source: AGHT+IGElIpBjfqY78uo2/c8/OWxLKgLR/kgd64Hqi8BjUuPJClt/Lksf8qC6T4CB7HRhb2RiXJt X-Received: by 2002:a05:6a00:1955:b0:6e3:b7cb:b110 with SMTP id s21-20020a056a00195500b006e3b7cbb110mr2783421pfk.30.1709321572957; Fri, 01 Mar 2024 11:32:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709321572; cv=pass; d=google.com; s=arc-20160816; b=zVbNjzxT+/7QmNEUQmrIgdriLUIU//wPslmy3gSk4AUvuce+ozTwAydr2c2wNbnXS3 j570upiRs049SnCaAfPFanrPkVpea1eDVD6hjNMJcWK9jibatz2qfiXdnQrtlarsw7ml Csp4dF7kWsgJtAANXBcAABtSEgewY1XsRCqKHpTnkdUBsaL8M4cHlXzB6FfeuDmjr7Aq 2PlGF8q1+dd7BDAjZ+G6hny5ri+z5XW2cwjV1QB0Ow+q3BN46/4WOkLxvrLasnmIZQ60 v2iAJ1sJJ/IJuz17cCCtytGc5XsXCcEFWvxMM/O+6M/YrKptKyoT6NBS7U78ISsRkHAq or4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=YU+qjwCaw1L9FxYW0Zs5eoOLPekAKRAZe7jdn1GdnEw=; fh=9e/trp0NaiaqFGOzq/5jN7maaOkGFM8obXGdG8sAIaY=; b=YVO3klLdvq0PQdZ6zEXcI7qybCNsWc9MKI43lP/5SIbFDarifOIhFd2XpsHixtF6dC b5gojaCjNQGPtOYjt+R/gmirJxM7xWGXv6xP4vqDS23fb5CwJFu/mzWzweH5C4PxUcNl TaOOafPbR1Yx1pmeJwfvy/rsKdn1R9nqMo7RZIr09QYePGJ5zyrg6+Pccr1wlAAy7fu+ rm8iR6K1LaE+Fr+2+6BTUdZ6IQkhq7fpQbtVk6rrTB+glLEE+twgjQuR7MtqRUnUBOoK IEDwLtGzy491Ca3mJAImCYtNRKv/rZKqXci/4JjnpqG3Yb+iefwr981I8R1Cyionpd9w mrfw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AOfMQX4a; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-89025-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89025-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c26-20020a63725a000000b005dbde0102b0si4216706pgn.288.2024.03.01.11.32.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 11:32:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89025-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AOfMQX4a; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-89025-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89025-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 04E1428A547 for ; Fri, 1 Mar 2024 19:31:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 866243B19B; Fri, 1 Mar 2024 19:30:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AOfMQX4a" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ADCBA3A1C2; Fri, 1 Mar 2024 19:30:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709321443; cv=none; b=bEMPHGKtsDMXEZ4qEgOkQjvohwYkYvZAMEzXBRj5TqJmBzXdOqdJ0C7rzOhzyz7YuSv68ZWZRuCpHjdVLWaRezyK9F5DDpNSrk5O+Ch10nnK7yz+epKeeCJQCP/taA83+IzUuePDcbQiuIXd+gvMeW5z6vtjafvVlWUGE26x40U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709321443; c=relaxed/simple; bh=2tiUMGVucLnTsfdQmtV4Q/wjRqqk/yhTGxrQh1MIwak=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gN8wiY/SpideqIhezHLMaPYpWGeorUNvzlYv0/2SVNoy7faxH2LM52nVOsxFA3gtKZPsLxvJnasYJLggXpAEcz0fQueK3J3OXGLxjnVbSjmqa72LAuS61DYERzfeJHbsgpw/n0Z9GF+ng4X+8pmi4P4l6qzblk0wdptObbyJmZI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AOfMQX4a; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC33DC433C7; Fri, 1 Mar 2024 19:30:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709321443; bh=2tiUMGVucLnTsfdQmtV4Q/wjRqqk/yhTGxrQh1MIwak=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AOfMQX4a48hOiQtATpUXJXg8Ffm8UIvp3TBzML2FaepaEFuo0Ma1N4CoeuRfTaKsM O8Ic/vhEf09LTzyBkOgLX+1J5Nfli+HujskJYi+DjdwtS12MIyqUD+Rjl18b9ZtXFY rXSu4aZfAu2B/9m7KhFsw17hcOXONj0qiRnw43m5DVLrGM7SSeHQMlNoQM+BXGlSan t0Em5IaW1/DfJopc8OSYvWCwHwlBML6M4/n6TnvHqFLfGKG+MDYoMexma6tQWoTegG 7CRnRzkWd97RVNlW8LW5P/NKTb+MC4c76x/OhgNtgBGmZZq2msm84jyZ5J3SueOz2w 6x/4KMcIzTYsw== From: Namhyung Kim To: Ian Rogers , Peter Zijlstra , Alexander Shishkin , Mark Rutland , linux-kernel@vger.kernel.org, Jiri Olsa , Adrian Hunter , Arnaldo Carvalho de Melo , linux-perf-users@vger.kernel.org, Yang Jihong , Ingo Molnar Subject: Re: [PATCH v1] libperf evlist: Avoid out-of-bounds access Date: Fri, 1 Mar 2024 11:30:41 -0800 Message-ID: <170932136988.3731358.14011113608352874223.b4-ty@kernel.org> X-Mailer: git-send-email 2.44.0.rc1.240.g4c46232300-goog In-Reply-To: <20240229070757.796244-1-irogers@google.com> References: <20240229070757.796244-1-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Wed, 28 Feb 2024 23:07:57 -0800, Ian Rogers wrote: > Parallel testing appears to show a race between allocating and setting > evsel ids. As there is a bounds check on the xyarray it yields a segv > like: > > ``` > AddressSanitizer:DEADLYSIGNAL > > [...] Applied to perf-tools-next, thanks! Best regards, -- Namhyung Kim