Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp667192pxb; Fri, 14 Jan 2022 13:34:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7I5mF9Fv3FdWEEynFFpbZTN862z+NKRe1vr3H+ZaS3xKVwQ9xNJAetNWGdyw6Y0L9DzjC X-Received: by 2002:aa7:8a19:0:b0:4c1:968c:3203 with SMTP id m25-20020aa78a19000000b004c1968c3203mr10631714pfa.42.1642196078116; Fri, 14 Jan 2022 13:34:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642196078; cv=none; d=google.com; s=arc-20160816; b=AYArlD9UKypP3J7EztjTzXLGFm4xpVFIPGtVV2+pI69e8ya22Ns0flrzJppv9MX/zc bZNGDG+v56dIuM7L8bSB7dqlwWwFrcF9aJ5OwGMdRIspZ3km+B5BjCkKYEqGxwpYZAnZ xXN5z8UEvfAV6+mbm7GlTLr2/7WuY8z98ae2nhP2zUk07O90UCokV7xoY5ABwmNcepDj wxpVJcEckgOK8aGfOPONFAdMTAQR917xKMkVqrEltnT4rYGhjj1IzuD/E5jiI6wDWaBg HxsSPs+JMoFjIa4qWKwXctF0a6qDUK5w8yBisIqfghftuwJrAT6kyfzzlu0+5pOqbNzz dpXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TUU+DMa7U3mjpjYCA+HNoEJPTDawZ7oiEXnBDzYpIQ4=; b=iTBSKfvLKLKUzxZeizKQG44Byz3xZlRv3DODn8qONW27x8qNyRGYrcjul5MNR22YwP +s4zJ99idoodOq/7r5azaAnC+HKHVpbKZzThM/F/lYoZGXEJFYXtks6kg8CL/SjfMky/ fBNd5yEgQk/tswsWmVX1vgJk7MXpheCdHa/pqwOkkQBlxV+YMAoK2TfPz6USYaoN5c7h +Vb9EFEQgB2uT/BkVhHOT0g0paM4pHBsb21F4Qq2SnmTML2G2EnlePbpSAIysRrA2QWJ V8YQ1e6/sBXHeRRmmFt3Y7nmDk9OWsae72kbPY7pMgJ6OuIfjQjeNt6LVvjXJJfDwLSN 7Rhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="b3RFYe7/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 23si6934534pgy.671.2022.01.14.13.34.26; Fri, 14 Jan 2022 13:34:38 -0800 (PST) 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=@gmail.com header.s=20210112 header.b="b3RFYe7/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242134AbiANPAa (ORCPT + 99 others); Fri, 14 Jan 2022 10:00:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242122AbiANPA3 (ORCPT ); Fri, 14 Jan 2022 10:00:29 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57170C06161C; Fri, 14 Jan 2022 07:00:28 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id e9so16116962wra.2; Fri, 14 Jan 2022 07:00:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=TUU+DMa7U3mjpjYCA+HNoEJPTDawZ7oiEXnBDzYpIQ4=; b=b3RFYe7/XHj7ObWRTcs3pjWGVbt3+gM9uVFlpJwpzMW0C1ctPeenn/MyAmsVBBVeGA +ZUjO6vS9nMnXPnDhPujXoztWypjxq3mEdok+zvImur9ei+1Gd+r3fMNjFIISkAKmlYq WfUjrFvYg2WNfdntHbJX12n4r2KNbxqb4cgFd7tXZEoMquIOODyMka1jMJhq8KauEbTz yt1EKqNaRpw5gUP62/JYim5D3Q9iEDG4Z82GIzv2rGkzy8929+uq2gDnh1bglacPvz4/ hL/sJhUkVNQx2NiVn0JP8uCfA0nvVR/TJHX236I+6+t9a5hPKUHqOiRYT/aNfvBQR79J WlPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=TUU+DMa7U3mjpjYCA+HNoEJPTDawZ7oiEXnBDzYpIQ4=; b=y5pJKGPkEPavbLlxFvMqzBVzsl731v1510OJGTJwTJ57YpZ0038tRZhoaKAYffBaGs 142dOa3JND96T3akLog9pQQcruyUOany/N76QlylLeFkH7i+fobpNfBQUvmDQPJY3Owy vwHVmPm8qJjYY0EJ6j2oTqZWLuUnPrL/Vj/ztkh0m8AdVxXQL4JlDK30acOD+BVtg48i YdGZhOfZ4isnicy+9XzAcLBaypHw9Js8RywTlinn3Gpk6Fp86iw2QeQQo3Jm6qqkDpWb HrImXOLKAy3YebQ9DDYSu1exGIW7b9GNbjSBqdPMmms5u5tf5aen7qpzr6u1KmGPHxgw tejA== X-Gm-Message-State: AOAM531xTZsFEdn/MOz3btR+xmLQ5hiMP+WadDtRigG22ESpWTC3o1+L uP40q20ZtN5U7LtrCr2qPNC4Ti43iatTEA== X-Received: by 2002:a5d:5590:: with SMTP id i16mr7911949wrv.34.1642172426900; Fri, 14 Jan 2022 07:00:26 -0800 (PST) Received: from elementary ([94.73.33.246]) by smtp.gmail.com with ESMTPSA id c22sm11516936wmr.27.2022.01.14.07.00.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jan 2022 07:00:26 -0800 (PST) Date: Fri, 14 Jan 2022 16:00:24 +0100 From: =?iso-8859-1?Q?Jos=E9_Exp=F3sito?= To: John Garry Cc: Arnaldo Carvalho de Melo , Ian Rogers , peterz@infradead.org, mingo@redhat.com, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, ak@linux.intel.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf util: Fix use after free in metric__new Message-ID: <20220114150024.GA5646@elementary> References: <20211208171113.22089-1-jose.exposito89@gmail.com> <44b8de2c-b976-a396-2363-61a014d7e71f@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <44b8de2c-b976-a396-2363-61a014d7e71f@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 14, 2022 at 02:48:35PM +0000, John Garry wrote: > On 14/01/2022 14:47, Arnaldo Carvalho de Melo wrote: > > > > Addresses-Coverity-ID: 1494000 > > > > Signed-off-by: Jos? Exp?sito > > > Acked-by: Ian Rogers > > > > > > This can only happen in the ENOMEM case, but it is a good fix. > > > > > > Fixes: b85a4d61d302 (perf metric: Allow modifiers on metrics) > > Sorry, I missed this one_as well_, sigh... > > > > - Arnaldo > > > Isn't there a v3 out there? Not sure if you noticed... > > Cheers Yes, here is v3 including the Fixes, Acked-by and Reviewed-by tags: https://lore.kernel.org/linux-perf-users/20220107182106.138418-1-jose.exposito89@gmail.com/