Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2385414lqp; Sun, 24 Mar 2024 17:05:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVLSLwjANOY3FD/GSzXmOATr04sh2vvGTP5SJgEqjxmElQlIr2VXhniynnNxygr84mED/S2rrASgS4L6OjhIHkBcHt0svM5ZbNXlq6IQA== X-Google-Smtp-Source: AGHT+IELXCaKskFHBuFpTsSJTlZMk16e1PR+bbpW+CE9ellqltn3TVaUheGQiQtNTbi94ci2boE8 X-Received: by 2002:a05:6102:125b:b0:476:b7a4:d380 with SMTP id p27-20020a056102125b00b00476b7a4d380mr3042126vsg.8.1711325147415; Sun, 24 Mar 2024 17:05:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711325147; cv=pass; d=google.com; s=arc-20160816; b=rtXL5InhtSNcvh/1PO1DWnZOOY37VFdQ84pg1h/57AOKujI3yHZN+o1tU1fRmjwO7y TmbQDdpC+78RbPTOZOByg6ItnaFC45dTnS6anUQ+AhXQFGrlKoAFOjCNorURUpXEuUj5 zOkEBHGIUEBw332h83daXMkW99wiRFwIEPdbpiVbj/EzIrD6sRX7hiihteQ3wmLV47BG tVbO+3Rrtj8kermId7ywLRkWnjufpl023QnT+ilUkKo8fgsDhel8vnwFu3qTqsZ2XSOF iqQYYiiuZAU/q1QsFbacGABDwM7tsj+sHVgSBQittLrdmYAYToaUL9TZ9nmG1jxAqAcG rpvA== 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:cc:to:from:dkim-signature; bh=I3Kq4sYozu86jZQed4iQz+hBGdfhvC9xnsq9Oc83rzM=; fh=ULyhAvbY7+MIfPYE+2hK1P+o16o3/HyjlNIArFLPs4w=; b=vup3fsBLv8vsYK4LExGSj6V+jgyuxlvL6TxHbiZnUheyaATH1hg2p0E7OP6SSeS73s wrPgZxLqRSN0wEy+A08VIqRiQDvnKjZLJ7VJqltZfxviMB3gceumGepVce5D/1iwCfYH O3cGn6svKAUsD3wC55o2XSKDLmBRhMCI1YBi9S04WHYkR+X50wPEgBLBcbbzGhFbTIoG pVVIyZGOrLiGRB0OQJBmp/glfOqlWAjtJ62KtyCQEn6yjPfgbJ7+QxD61nDiy6dfAN5R 5NZ4l3F7NFpmZx7hQjJqE/pKqUxdUY+NNN79X8bR9C89ivuSLWcoN9h7FDuEB0pGQ/TL 6pog==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uLV912Jf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113305-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113305-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j22-20020a37ef16000000b0078a23d6899csi4321253qkk.533.2024.03.24.17.05.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:05:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113305-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uLV912Jf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113305-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113305-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2614D1C235EC for ; Mon, 25 Mar 2024 00:05:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0BEB191E98; Sun, 24 Mar 2024 22:41:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uLV912Jf" 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 BE6F26BFDD; Sun, 24 Mar 2024 22:41:46 +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=1711320106; cv=none; b=SSRwb8/fCqcWZQyEbYLFpnS3jbs1i0XVG+Ckyok/TsZ6YTa7AQ3Sw9Bs3hT2xpaCnqMnm8UeaocF6Row9C0RMbZPOUXCO/MUL66YTRJedSR8mmoYKuV2d9M+8lskiVj3f35m/Jx06M0xui/3FryeX/CNQCMH85Fgsy+EPVDw0DI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320106; c=relaxed/simple; bh=Ks6Rh39f4C3jBfEt62E8rPS/XnqfajC+vnztZG15Mmg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dEUyQmZAUG0793BDp7s+2M/A30PNUp7pobZAIxrSNo5rNxY1QH07ncsE2sKmoKGYV9aHSYtuxOBwHyiD2B0hAjlieolFFNJkyGWA+sKKb5XB3fu7HjLGGv4DPt/iaDNR8QBvEaOT+oAmxNLKPo0q+zA3Qk5I0XbVxdgP49ebqqQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uLV912Jf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F2C8C433C7; Sun, 24 Mar 2024 22:41:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320106; bh=Ks6Rh39f4C3jBfEt62E8rPS/XnqfajC+vnztZG15Mmg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uLV912JffiSPOBaVfJA03ilsXPXcg5DuMUm1P2JQNrgWb1yvtj2u7LAW+IsK3qQ8G phkftbn6KCJRNmzzyqbDoo4+f6cNb5jufFH+06B8GD/8voCY/WvC1wEPp0CNPCE2EH 651MCIRcygdgsE5nWxkUatoMCImcJcudUyX8lcAchrEuB0+29lfKEsZQ6buBleKIsV 0dkv1p6GbxErZnDV+YvHy6WZZnMg74GeNf0TQbPNVqNydZt/JAsh5o2iRC24Z4GjCx GuFzDwCdERTa+wv0J8SKzquMgTLVtlj2JbDhqa3NbMcFncZR1sMayWBsgtK7Fnizg6 0HJ99nco3Z8vw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Ian Rogers , Ravi Bangoria , James Clark , Nick Desaulniers , Nathan Chancellor , Kan Liang , John Garry , Tom Rix , llvm@lists.linux.dev, Namhyung Kim , Sasha Levin Subject: [PATCH 6.8 414/715] perf srcline: Add missed addr2line closes Date: Sun, 24 Mar 2024 18:29:53 -0400 Message-ID: <20240324223455.1342824-415-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Ian Rogers [ Upstream commit c7ba9d18ae47924a6ea6a47ca139779f58eb83c0 ] The child_process for addr2line sets in and out to -1 so that pipes get created. It is the caller's responsibility to close the pipes, finish_command doesn't do it. Add the missed closes. Fixes: b3801e791231 ("perf srcline: Simplify addr2line subprocess") Signed-off-by: Ian Rogers Cc: Ravi Bangoria Cc: James Clark Cc: Nick Desaulniers Cc: Nathan Chancellor Cc: Kan Liang Cc: John Garry Cc: Tom Rix Cc: llvm@lists.linux.dev Signed-off-by: Namhyung Kim Link: https://lore.kernel.org/r/20240201001504.1348511-8-irogers@google.com Signed-off-by: Sasha Levin --- tools/perf/util/srcline.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/util/srcline.c b/tools/perf/util/srcline.c index 034b496df2978..7addc34afcf5d 100644 --- a/tools/perf/util/srcline.c +++ b/tools/perf/util/srcline.c @@ -399,6 +399,8 @@ static void addr2line_subprocess_cleanup(struct child_process *a2l) kill(a2l->pid, SIGKILL); finish_command(a2l); /* ignore result, we don't care */ a2l->pid = -1; + close(a2l->in); + close(a2l->out); } free(a2l); -- 2.43.0