Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4533546rwb; Tue, 8 Aug 2023 09:48:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHDO3/qvSAC7I8pFR38f/ySdPSC40lHd6H5cvoyjURechA91JuFlYSl1f6/vGlo6u7cRc7s X-Received: by 2002:a17:90b:1e0e:b0:269:4886:b388 with SMTP id pg14-20020a17090b1e0e00b002694886b388mr113278pjb.16.1691513295074; Tue, 08 Aug 2023 09:48:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691513295; cv=none; d=google.com; s=arc-20160816; b=a6FWD+n1ZimcSxLyfBEqXcOGsJi1KELfH71RrT36QWGB2CU+gM86wWYmIlIszYDSv1 afDDCb1EDNfZsNpvWSozEe1yrvmirqGBG1zjD4/uTKiEsKQeD0jOhWOd4se2BOsOXy58 awcOXXILgd84YKGscvOjiyTdYTyVvhrBV+bCQsD5bO448qYxRiA8P7nf263PJ5vVnPT4 yopgXyGQrsm3Jz0bX/Qncjod/ZNRNu+c7VjcxtgKFenzZBc5WR6cOyXmhJ5OBqNtSaBO 64yYJR5WflYf+QGVtkjCokJTIvxQi9yDozaBft8pv2jYd+G0+8H5WKUtWxmmVJj/V8NF n3Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=zQ6+JpddRSt/kMUmdkzJ8Ty6aVknEdXh8hukLlZVAY4=; fh=jYo8t3/aukkWyq9kiLPWVT4gPXcVLIas+QWr2cFbMzA=; b=ys9h2Dv60Ku5mD213no1fdXRzXeAPLZApxETDKhWHJGv9QiPOPkcUDaSEH0yg4K/BR NjU7oqkA7hP1RktoXaB8BpIBhS1+FpqgdFOFSv0DKH7tfRQ5/bBtjKRQP0M0KAnCytOw N3408hE19ILyFsDZitOUx2dFV1FvYI9FaUu6JpCY7FJaLgIYTZeXt/m9yUh89T9jUhBJ SbSBoQGOK8UKgaVNA7iQJ70JTydI6UZfVaS6DpaD8TN2itYTFyRm8h6aaX+FyhNc52P1 mvI4o1pw+sxtyaUnMY+4NVb8nfYAEqY/k+nFMfBCjRFNZW3QuWNvz2bN/QavrvDnbBK3 EzYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=pgNyyx5o; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=IT3+Zmmo; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a17090aad4400b0025653dc2881si10616458pjv.23.2023.08.08.09.48.02; Tue, 08 Aug 2023 09:48:15 -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=fail header.i=@alu.unizg.hr header.s=mail header.b=pgNyyx5o; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=IT3+Zmmo; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232744AbjHHQ3g (ORCPT + 99 others); Tue, 8 Aug 2023 12:29:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232692AbjHHQ2G (ORCPT ); Tue, 8 Aug 2023 12:28:06 -0400 Received: from domac.alu.hr (domac.alu.unizg.hr [161.53.235.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A222B11F44; Tue, 8 Aug 2023 08:50:55 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 154DC6016E; Tue, 8 Aug 2023 08:25:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1691475900; bh=rdkWAy74MmPIPfmSWwye6pBDQ406/q2KSxXyYpG4R9Q=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=pgNyyx5oLmIYMKJTAWksgcEEpnM827k30wzBo4uOeL3zl3yI27e/Xi5RX03G9jJV3 5YdAv6TGDLl4yvcRFE8FAXhbQrZ8DFkTqcrfjUAOb1E7NErT9/nI20/MmsbxzE+DDu XevniqjE227/Q3YTIPt+yYIvFe/+/2n7w5ayNVWNAGl3bFgi8NSlmKlckWBEtxjy5V 1iNYod3KFxZkvxVTsuz2hBlqKBj8juZXIcBXw5KDwOmT4ob2LTAwYf8Ni660qXABTI xuc+GDWvoM2d+RyQoQ4cEDoRt7QGJMU+PLIpYg+fJe6jIjR3MSesYoueUYEiDdqn8/ IsKRZIdeQfZvg== X-Virus-Scanned: Debian amavisd-new at domac.alu.hr Received: from domac.alu.hr ([127.0.0.1]) by localhost (domac.alu.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oqWFrB4_ikyt; Tue, 8 Aug 2023 08:24:57 +0200 (CEST) Received: from [192.168.1.6] (unknown [94.250.191.183]) by domac.alu.hr (Postfix) with ESMTPSA id AA3076015F; Tue, 8 Aug 2023 08:24:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1691475897; bh=rdkWAy74MmPIPfmSWwye6pBDQ406/q2KSxXyYpG4R9Q=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=IT3+Zmmo6uKBwamBs+nX0kOHHPMMCfbKBxKPlGaFbUEsTEQ/vUuAngC5+J+F6xf+p kwGrFIPckiy/TwVGxSY3xmOgBqEkAkx7yLBJXlTO8fLrYPEB7iOb+4DPi1WUC/MpRt AxyyXK+dMdi4pGxPTUjr5CCQkKwfftzkCzoVQ22YKloOlqAMB2SebOwYeulyqBBnWy QmAadHUXgfcFXr8DRuZxU+tAZ8mmraH91EnwKfIg1F0VrTm1zMyfhFzs1AFDYoXDl/ s1qJZftAemVhn7h5ptdANwu/LHSeG/dITbp8F+1qoigulv/WU66QBdfQlmw7t3voUl IiOevszC17NXg== Message-ID: <1269af66-bd86-0fab-e4ec-968f14371279@alu.unizg.hr> Date: Tue, 8 Aug 2023 08:24:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH v3 4.14 1/1] test_firmware: fix the memory leaks with the reqs buffer To: Greg Kroah-Hartman 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 References: <20230804170017.92671-1-mirsad.todorovac@alu.unizg.hr> <2023080705-poet-nickname-5e08@gregkh> <2023080802-moonrise-cascade-a4c0@gregkh> Content-Language: en-US From: Mirsad Todorovac In-Reply-To: <2023080802-moonrise-cascade-a4c0@gregkh> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,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 8/8/23 06:28, Greg Kroah-Hartman wrote: > 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? Hi, Mr. Greg, Actually, in our particular case, it was the Eprints that required old mysql on Debian stretch rather than MariaDB that came with Buster. So, the release required particular kernel version (4.9). Of course, we can upgrade to any mainline kernel, but that is no longer a tested distro kernel, and faults would be blamed on me entirely. Plus the overhead of regular patching ... This is what I now do, but the old hardware at work still requires 60 minutes to build a decent vanilla tree kernel ... > 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? As I said, the problem is with reliability and testing. We used to have only the production virtual servers w/o the testing ones, so the environment would be difficult to reproduce w/o interrupting the services we run because of. The Croatian universities are traditionally scarce in equipment. :-( Kind regards, Mirsad > thanks, > > greg k-h