Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp943444ybh; Wed, 22 Jul 2020 18:03:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEQt/jWcE02icEebTix65t5dU9pTMHfAgPrb+1rEWt5gzH1jXP/sVZWVkw8WEMpAbiEtKI X-Received: by 2002:a17:906:c1d8:: with SMTP id bw24mr2040333ejb.91.1595466216573; Wed, 22 Jul 2020 18:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595466216; cv=none; d=google.com; s=arc-20160816; b=AZ2S/BqNLcd1LBlvAj+2CZpnPeChzOlS+EFKTXY1LP57K/hq+wJiHyV4i86NHIr9PP TF93MpOrcefiUs3f7mllVXmU9tnmgcevDL2xMHc3Uzh7MJ+7sRqgPWG0qEwRgeQO/eRG vTYl2nxIPC1tuDWqCkUAsi10UEz/aZ8X05o3+YVjVxUvO6x+kowrZDQ2Hq105UbegbYy Lfe5dcOWfrQGB06JaC2W8mylaSe9Du1T/mOx4in+wocpsZ2Qu9UYT5RkLZUsLmyIiyMj hwSjMDwHKPLPB8ZpkKXUCPO00aGPsLc7scIpu5shxxkI6aNeD1SgtO5Cdu4Zg1JHZaY3 zbnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=sDG8UD1yIfznhmPJ2PiKr3+3rSEP20wc4Lnr/zlaZ9w=; b=ljjxTzlNmwDdRViLGoOySUyfsZR/a0ZqeRMpxjbtJZpowib58fs5awBa+fpoxRhQEH A/v2CEym/XXKWsZks03UpsFZSboxKzdny0P547FnmXdOrBHZiN32U6botOdhqZZi9Rzh RRIOBs0TnGOI8Qp04XjAlaYe93n7ajgAPAxJIAixH9AFGsz8x8LAf/0xAOV2vm0DTMn2 qbKG4NLl5o3Vc10Duf8Z0Mqk3ejgyBA6Ucvd64NmovIZXRGyGNSYZxOYlTSyYkorIj7V egyVuio3Kj97eZdsWUxCxZDPmGT6a8JMj96czSAJxrhHxPX8jtF9KMXSqin5GUbLlXe2 1JvQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id va1si1040800ejb.558.2020.07.22.18.03.14; Wed, 22 Jul 2020 18:03:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733280AbgGWBCk (ORCPT + 99 others); Wed, 22 Jul 2020 21:02:40 -0400 Received: from netrider.rowland.org ([192.131.102.5]:35547 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1729423AbgGWBCj (ORCPT ); Wed, 22 Jul 2020 21:02:39 -0400 Received: (qmail 1334263 invoked by uid 1000); 22 Jul 2020 21:02:38 -0400 Date: Wed, 22 Jul 2020 21:02:38 -0400 From: Alan Stern To: Benjamin Herrenschmidt Cc: Evgeny Novikov , Felipe Balbi , Greg Kroah-Hartman , Kees Cook , Arnd Bergmann , Corentin Labbe , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "ldv-project@linuxtesting.org" Subject: Re: [PATCH] usb: gadget: net2280: fix memory leak on probe error handling paths Message-ID: <20200723010238.GB1333715@rowland.harvard.edu> References: <20200721201558.20069-1-novikov@ispras.ru> <20200722141741.GA1310843@rowland.harvard.edu> <2097231595446720@mail.yandex.ru> <35a367f7d71014cf9a6890abc248e18a3d07bc35.camel@kernel.crashing.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <35a367f7d71014cf9a6890abc248e18a3d07bc35.camel@kernel.crashing.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 23, 2020 at 10:59:06AM +1000, Benjamin Herrenschmidt wrote: > On Wed, 2020-07-22 at 22:56 +0300, Evgeny Novikov wrote: > > Hi Alan, > > > > I have neither an appropriate hardware nor an experience to deal with > > issues that you mentioned. Our framework does not allow to detect > > them as well at the moment. At last, it seems that rather many > > drivers can suffer from these issues. So, it would be much better if > > somebody else will suggest necessary fixes and test them carefully. > > > > BTW, you have already discussed the race within net2280_remove() with > > my colleague about 3 years ago. But you did not achieve a consensus > > at that time and no fixes were made after all. > > > > Anyway, one can consider both issues independently on the one fixed > > by the patch. > > FYI. It looks like I'm likely to resume my work on that driver in the > next few weeks in which case I could probably look into these Alan. That probably won't be needed, although thanks for the offer. I'll CC you on any patches when they are submitted. Alan Stern