Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4667474rwb; Tue, 8 Aug 2023 11:47:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGDKCEii6vTDA9FXOFDavnVyFkw1ECZ0o4wqWcq/YB/1MvYJRqlmjxN90yX3YvlSiy+ooEk X-Received: by 2002:a17:90a:2dce:b0:268:5477:811c with SMTP id q14-20020a17090a2dce00b002685477811cmr413538pjm.23.1691520474455; Tue, 08 Aug 2023 11:47:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691520474; cv=none; d=google.com; s=arc-20160816; b=JY6miqletZNJaZxzAqp2R4HvooYKYcJOX07xkQOiDIMB7qNyOK+lNlnpPmN5s6PJrD PCvWcEk3cN0d11PZWCXjrxTEbcghpx/4kJk+gPN3PFkNCa8NvvfPJqo/gGoo2lUFvnx5 8k8RypqI2O/5l5lFj3j9ZvQfB6SZn4QHEqUlaj4Bkvjgga83oDN3H8lvDLx2B5/+5uhO qT+iPLilPdDhgNRnuQDHCb8bA1gVtGgyVZJ8scgWONAiboSzorx/Wviquzn7N/RKKL9j yPA/jznu98bMlh6OGMboCFvTx0ClcFceJ2bDVeGcLUUwNaGHap20pjVKT7LvmgbyaS0Z Fx4A== 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=1onbPU4HhcgnHjRq3Pq/5CWKWL098m8f/EY6NesCWoU=; fh=gw12gEqdw/sMgDIHtvFBrjllVmsGCUQU3xxVvjHdBYA=; b=D/7+NdbpgONAlxxYIJG2HvxfOsmt+gFpWearidHjkqekFgE0aPeQY1H8Xtj6HacCKk IbpnVptKiVWZxrxaL/eJkdmKMawgtOXjqvTy8qKozE45bER7kos1jsdQ5a/KDs1TXVw8 0eEfCXkL5cOzSzHCB1qJ/I7ddRpSl+bkE0CyIuTDWhfcxCU9aLJ46E988GxhU+lnfbqp k4F+EDAP1imrggLbnpkkM+SII10skoxWjiOTPjIa/g2fJ4IYQ9POyEM6AJ75Md0s2eiq B0aBAMpBG2yi+fIxsTVCJfbFll45MGguA3g7ykyDq5QL0JNEpGj/kI7mXeFwnVBatL92 nlTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="hk60F37/"; 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 40-20020a17090a0fab00b00268093d0a8csi7618123pjz.155.2023.08.08.11.47.42; Tue, 08 Aug 2023 11:47:54 -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="hk60F37/"; 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 S232919AbjHHRhS (ORCPT + 99 others); Tue, 8 Aug 2023 13:37:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234805AbjHHRgK (ORCPT ); Tue, 8 Aug 2023 13:36:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20D862293D; Tue, 8 Aug 2023 09:15:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 433B1623A8; Tue, 8 Aug 2023 04:28:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14067C433C7; Tue, 8 Aug 2023 04:28:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1691468921; bh=krx+jXVuWSu4fhroh4sjQzLoGhsDFkn9d7FeP3pekg8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hk60F37/SMSpBpL2QEF6vyZZ1p0RJySb4h2NiQbvCDNj6AqUmqo9jqgxgHw2Q7+Rs sZg3rk3CCt6XUYcBkKiZPiby4gjNwLP2y1A/T0QU3/imzMvaNN9+JNKA8W8y9gnoH8 Nxjg4wK96p5b7HGI/tFF9jNLBFA5b4UVDHgjkW1g= Date: Tue, 8 Aug 2023 06:28:38 +0200 From: Greg Kroah-Hartman To: Mirsad Todorovac Cc: linux-kernel@vger.kernel.org, Luis Chamberlain , Russ Weight , Tianfei Zhang , Shuah Khan , Colin Ian King , Randy Dunlap , linux-kselftest@vger.kernel.org, stable@vger.kernel.org, Dan Carpenter , Takashi Iwai Subject: Re: [PATCH v3 4.14 1/1] test_firmware: fix the memory leaks with the reqs buffer Message-ID: <2023080802-moonrise-cascade-a4c0@gregkh> References: <20230804170017.92671-1-mirsad.todorovac@alu.unizg.hr> <2023080705-poet-nickname-5e08@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 07, 2023 at 08:28:04PM +0200, Mirsad Todorovac wrote: > On 8/7/23 11:15, Greg Kroah-Hartman wrote: > > On Fri, Aug 04, 2023 at 07:00:18PM +0200, Mirsad Todorovac wrote: > > > [ commit be37bed754ed90b2655382f93f9724b3c1aae847 upstream ] > > > > > > Dan Carpenter spotted that test_fw_config->reqs will be leaked if > > > trigger_batched_requests_store() is called two or more times. > > > The same appears with trigger_batched_requests_async_store(). > > > > > > This bug wasn't triggered by the tests, but observed by Dan's visual > > > inspection of the code. > > > > > > The recommended workaround was to return -EBUSY if test_fw_config->reqs > > > is already allocated. > > > > > > Fixes: c92316bf8e94 ("test_firmware: add batched firmware tests") > > > Cc: Luis Chamberlain > > > Cc: Greg Kroah-Hartman > > > Cc: Russ Weight > > > Cc: Tianfei Zhang > > > Cc: Shuah Khan > > > Cc: Colin Ian King > > > Cc: Randy Dunlap > > > Cc: linux-kselftest@vger.kernel.org > > > Cc: stable@vger.kernel.org # v4.14 > > > Suggested-by: Dan Carpenter > > > Suggested-by: Takashi Iwai > > > Link: https://lore.kernel.org/r/20230509084746.48259-2-mirsad.todorovac@alu.unizg.hr > > > Signed-off-by: Mirsad Todorovac > > > > > > [ This fix is applied against the 4.14 stable branch. There are no changes to the ] > > > [ fix in code when compared to the upstread, only the reformatting for backport. ] > > > > Thanks for all of these, now queued up. > > No problem, I should have done it right the first time to reduce your load. > > I really believe that backporting bug fix patches is important because many systems > cannot upgrade because of the legacy apps and hardware, to state the obvious. What "legacy apps" rely on a specific kernel version? As for hardware, just get the needed drivers merged into Linus's tree and then you can upgrade to newer kernels. What is preventing that from happening? thanks, greg k-h