Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2887826rwe; Mon, 29 Aug 2022 01:59:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR66qYDcRU59CpoK/1AWqa0SCbBAzf1MINvXhWS6fOih+zl8DYVY+5xTsbH7jkYE0uDiWUfa X-Received: by 2002:a17:902:f681:b0:172:f8ee:b1f7 with SMTP id l1-20020a170902f68100b00172f8eeb1f7mr15416730plg.19.1661763556400; Mon, 29 Aug 2022 01:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661763556; cv=none; d=google.com; s=arc-20160816; b=gLCxuA46uldyJOghFVTMwM83MlvbdxEnd69rxW7J5cJLU9dtupRU5rRyaE+L12LTFn BSZayNPWwVnnkWRAnV7OWoS5Ka0phIgKjpLcmcYgy10gz8xWuPND/9iChi/98aGu4/ro ug6HgTvf+X/hNTR3h5yPdhSIHh+CXB6l6unSOHhtpG6asRFbOf3TjGLZaHD6I0sF/e6f edzrJT84qBlOUunf1AAHPgdYXgfdraI0JNGyBz41UmKIut01HqWtWk9Byeuj3ehiZPc7 1F6kAXo4SKnAsk4aiy85eeIibc8bIODi32IA1n7Ze6IJSZ33f36CAXP6TgewG500rfds EtTw== 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=a8WRsBXMfe1lH3S7mHaa/L1hb7fwLNAwaLEaxJtjSfc=; b=WnfZu/sWQOEv7Q4SnrXxZpUvRR8j/34OwnYyVCDB4QTrmINyi9w5irtcDV4NZEoh0c dNFySTrUKpqgGprvmxkh87duGIX2MybYfg83PDXEBcxb6LWl7DbCy1orPZob6sEvMyn5 lCFcSy9PZYPP0lwnAiX+dTq5lpPdBZlFxQvBmdcDawfkT8SMXzA4RpGo2UXW26ykXJwc uOCgS/FiGL+UBmrRIib9h2C3gk9PirEjgwFtqhgQQqKNrLvZlnkth6ssUm1lo1FyyIjk fvyaaAGss8kavFGcPlWLxwfiesaJK8sCKqQpmn0ctoIaCDPcqf49ltm06GBK2zqGAzy/ ZqWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OTdSqzyd; 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 j7-20020a170902690700b001713e787531si8170714plk.619.2022.08.29.01.59.05; Mon, 29 Aug 2022 01:59:16 -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=OTdSqzyd; 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 S229576AbiH2IFZ (ORCPT + 99 others); Mon, 29 Aug 2022 04:05:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229820AbiH2IFW (ORCPT ); Mon, 29 Aug 2022 04:05:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8721175BA; Mon, 29 Aug 2022 01:05:17 -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 2C83F60BA7; Mon, 29 Aug 2022 08:05:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2587AC433D7; Mon, 29 Aug 2022 08:05:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661760316; bh=UWECdm7rp3R9ItSrxJKp63Jk1SyourJhkXCk/PaOj50=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OTdSqzydVJwO1IbImYWQtj+c9w8qheBL0PoRsMmsrIk1qgov9rjRLUVDFuPABiw2S zy2BwmWxAYCTj+YNX3E58t2nfL1psp5g2ft/7nuqmF2KyHv+6shcK3PU3nuWJ1xTEi bB8PYAoj6FYmdu01r4NeRa03PohnUQl2RBqJNAzc= Date: Mon, 29 Aug 2022 10:05:13 +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: <71dbe196-a3d4-41f4-a00c-24f8b0222288@kernel.org> 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 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. thanks for reporting this! greg k-h