Re: [3.1-rc6] kmalloc(64) leak from IDE

From: Borislav Petkov
Date: Thu Sep 29 2011 - 05:27:17 EST


On Tue, Sep 27, 2011 at 07:07:55PM +0200, Borislav Petkov wrote:
> (forgot to Cc linux-ide earlier, sorry)
>
> On Mon, Sep 26, 2011 at 01:05:50AM -0700, Simon Kirby wrote:
> > Ok, good. It's still running without any problem, and no new leaks
> > reported.
>
> Ok.
>
> [..]
>
> > > backporting it to -stable is a good point. I'll add the proper tagging
> > > to the patch.
> >
> > Do you know in which version the issue started, then?
> >
> > If not, all I have to start with is that it was fine on 2.6.36, and I can
> > bisect it, if that would help.
>
> This is exactly the question: AFAICT, it could be that changes in the
> block layer at some point have caused the ide bust and since almost no
> one tests ide...
>
> The patch adding the dynamic ide_cmd struct allocation is
> 395d8ef5bebe547a80737692f9789d2e36da16f2 from 2008 and I don't think it
> caused the issue then but I could also be remembering it wrong.
>
> So I wouldn't bisect it but test stable trees after 2.6.36 to see
> whether they have the issue, and if so, only then the patch should be
> backported.
>
> And this is not that easy now with k.org down but looking at
>
> http://web.archive.org/web/20110725015737/http://kernel.org/
>
> the only stable trees which need to be tested are 2.6.39 and 3.0.
>
> How does that sound?

Btw, here's the patch, if you would like to test 2.6.39 once without it
to see whether kmemleak screams and once with it, I'll add the stable
tagging.

Thanks.

--