Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753623Ab2KUBPu (ORCPT ); Tue, 20 Nov 2012 20:15:50 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:48227 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752159Ab2KUBPs (ORCPT ); Tue, 20 Nov 2012 20:15:48 -0500 Date: Tue, 20 Nov 2012 17:15:44 -0800 From: Greg Kroah-Hartman To: Johan Hovold Cc: Richard Retanubun , "linux-kernel@vger.kernel.org" , Alan Stern , Lennart Sorensen , Tang Nguyen , linux-usb mailing list , stable@vger.kernel.org, Ben Hutchings Subject: Re: kmemleak report on isp1763 and sierra MC8705 Message-ID: <20121121011544.GA5381@kroah.com> References: <509D804A.7080807@ruggedcom.com> <50A3D0E1.4060209@ruggedcom.com> <20121114175218.GA2912@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121114175218.GA2912@localhost> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1673 Lines: 40 On Wed, Nov 14, 2012 at 06:52:18PM +0100, Johan Hovold wrote: > On Wed, Nov 14, 2012 at 12:12:01PM -0500, Richard Retanubun wrote: > > On 10/11/12 09:30 AM, Johan Hovold wrote: > > Hi Johan, > > > > > There was a reference-count fix for the probe error path that went in to > > > v3.5. Haven't read all the details on how you trigger your leak, but at > > > the face of it, it could be related. > > > > > > Have a look at 0658a3366db7e27fa ("usb: use usb_serial_put in > > > usb_serial_probe errors). If related, you should be seeing "Ignoring > > > blacklisted interface #n" messages when you enable debug (e.g. #define > > > DEBUG) in the sierra driver. > > > > That was it! Thanks so much for the research. > > I can apply it cleanly to 3.0.22 and see usb_release_dev() being > > called and thus no more kmemleak. > > > > > > > > Greg, it seems to me that the fix referred to above should be backported > > > to the earlier stable trees either way. > > I would vote "yes" for this also. > > > > While my setup circumstances may be a corner case, (modem kept > > resetting to re-establish PPP connection) it was leaking 1192 bytes > > per occurrence. > > The leak affects every failed probe, for example due to blacklisted > interfaces which is quite common, so commit 0658a3366db7 ("usb: use > usb_serial_put in usb_serial_probe errors) should be backported to the > <= 3.4 stable trees. Thanks, now applied. greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/