Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2916747rwe; Mon, 29 Aug 2022 02:35:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Q02AqL2Q0ALh5Yx5Pkza6IKr8lgegw+fGMHb/Hp8hP4C/FKiQ6Zlqger4/pbmU9p+/E0P X-Received: by 2002:a50:aa82:0:b0:445:dbba:6cb1 with SMTP id q2-20020a50aa82000000b00445dbba6cb1mr16157466edc.267.1661765757108; Mon, 29 Aug 2022 02:35:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661765757; cv=none; d=google.com; s=arc-20160816; b=Kd2otUprYaOBcvw6X+X9BEdkJ8VV4MOp4YR5tN5U9kosOsSzae1rXrjtNCkjo0wKJf Cep2C8JOsaK2jV1s9cfPBgJs5PfznqLCULaDEDXWCIVC1octhaDkgt17DtO6uqmxdtVI Sh6L+kdJldWcoS4BTnujlneqwEm6nkSrYkPlLDuA9YOkGFA9jYy8/tGrenZTAOde1ZYB PJcJkVucSFSaMmeo9+zDduZyJe41E+b4kmswHLW3cShkEq50DFFi7+aiOQ0mFv8OkUvP Ct+WEd9qKb7f4nk+B+hBrT7iUIDvPFyJmlga/OOH2YpGoBPmGxxZmFLoYy66fcaa9+WD xdHw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fw6qKmlwJlk5mizRT3UXQ9jE1QiDNcOvXwBhLVbEIl0=; b=kR+6vOsdnJK01iMVpPoB1DiTqcwRV9P/wzJbmtYNHbe2PT/bDECJF+5ngbQHsOwrH5 Fh5S7bApkQ+wTT9P7/7cDC5HloRRdk6lPLW1msLSHa1ZVvZnJncrLoBGyiUyHlcX3oVN fmfPMaJjo9Oiz/M5afRpQ+xNBuYtIiIyo1JsYiqPC4kbyWRUyjkKrwGvRoh9Bf5NoWsT mQJ0omeA24nePptiJ9AIcaFehtn4Qllp53H9sNH4Tit7BFN0gsaKho/se3X6rJoU8Wqn Vg9JGnrPG2fmp5oN/lPfGSYlmt7T3EyQKFO0bhekyB7e9/CTCepu9245oJulugStavHD J2QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OUKJCmW4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn21-20020a1709070d1500b007417c6edb0asi2445494ejc.402.2022.08.29.02.35.30; Mon, 29 Aug 2022 02:35:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OUKJCmW4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229995AbiH2Jd6 (ORCPT + 99 others); Mon, 29 Aug 2022 05:33:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbiH2Jdz (ORCPT ); Mon, 29 Aug 2022 05:33:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 407775C94C; Mon, 29 Aug 2022 02:33:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BC37B60FC6; Mon, 29 Aug 2022 09:33:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9350BC433C1; Mon, 29 Aug 2022 09:33:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661765632; bh=lT0Gv6sCfp7Xa8kCHxUOI7Yq9QfRd2TNlO/WqA0gGLk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OUKJCmW4/I+GLUy1XFmCpQh8lII1juX35mwZ+5ttPVDgD70Ie4Xo6rUYqpGZhZvHh orS7Bnm+NSLdNJMPN2Onn2EEhvdScPiWgVwlI1RlR8TbGIQCl67TtA+TgjUMqdyQ2u nt2fGjIl0Lvob4E7wvH6UIfupSM4E1bWQmI0cgtc= Date: Mon, 29 Aug 2022 11:33:48 +0200 From: Greg Kroah-Hartman To: Jiri Slaby Cc: Ondrej Mosnacek , Linux kernel mailing list , Linux Stable maillist , Masahiro Yamada Subject: Re: [PATCH 5.19 145/365] kbuild: dummy-tools: avoid tmpdir leak in dummy gcc Message-ID: References: <20220823080118.128342613@linuxfoundation.org> <20220823080124.294570326@linuxfoundation.org> <9996285f-5a50-e56a-eb1c-645598381a20@kernel.org> <71dbe196-a3d4-41f4-a00c-24f8b0222288@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Mon, Aug 29, 2022 at 10:05:13AM +0200, Greg Kroah-Hartman wrote: > On Mon, Aug 29, 2022 at 09:12:39AM +0200, Jiri Slaby wrote: > > On 27. 08. 22, 10:34, Ondrej Mosnacek wrote: > > > On Sat, Aug 27, 2022 at 9:51 AM Jiri Slaby wrote: > > > > On 23. 08. 22, 10:00, Greg Kroah-Hartman wrote: > > > > > From: Ondrej Mosnacek > > > > > > > > > > commit aac289653fa5adf9e9985e4912c1d24a3e8cbab2 upstream. > > > > > > > > > > When passed -print-file-name=plugin, the dummy gcc script creates a > > > > > temporary directory that is never cleaned up. To avoid cluttering > > > > > $TMPDIR, instead use a static directory included in the source tree. > > > > > > > > This breaks our (SUSE) use of dummy tools (GCC_PLUGINS became =n). I > > > > will investigate whether this is stable-only and the root cause later. > > > > > > It looks like both the Greg's generated patch and the final stable > > > commit (d7e676b7dc6a) are missing the addition of the empty > > > plugin-version.h file. It appears in the patch's diffstat, but not in > > > the actual diff. The mainline commit does include the empty file > > > correctly, so it's likely a bug in the stable cherry pick automation. > > > > Right, this fixed the issue for me: > > --- a/patches.kernel.org/5.19.4-144-kbuild-dummy-tools-avoid-tmpdir-leak-in-dummy-.patch > > +++ b/patches.kernel.org/5.19.4-144-kbuild-dummy-tools-avoid-tmpdir-leak-in-dummy-.patch > > @@ -20,6 +20,8 @@ Signed-off-by: Jiri Slaby > > scripts/dummy-tools/gcc | 8 ++------ > > 1 file changed, 2 insertions(+), 6 deletions(-) > > > > +diff --git a/scripts/dummy-tools/dummy-plugin-dir/include/plugin-version.h > > b/scripts/dummy-tools/dummy-plugin-dir/include/plugin-version.h > > +new file mode 100644 > > diff --git a/scripts/dummy-tools/gcc b/scripts/dummy-tools/gcc > > index b2483149bbe5..7db825843435 100755 > > --- a/scripts/dummy-tools/gcc > > Ick, looks like a bad interaction between git and quilt, and then back > to git. I'll manually fix this up and push out a new stable release > with it. Odd, 5.15.y worked just fine, but 5.10.y and 5.19.y did not. I've done a new 5.10 and 5.19 release with this fixed up. If there are still any issues here, please let me know. thanks, greg k-h