Re: 2.6.25-mm1: kmmcd NULL pointer dereference at klist_del+0xe/0x30

From: Rafael J. Wysocki
Date: Mon May 12 2008 - 15:44:15 EST


On Monday, 12 of May 2008, Pierre Ossman wrote:
> On Fri, 9 May 2008 16:47:38 -0700
> Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> > On Fri, 9 May 2008 10:19:56 -0700
> > Andy Isaacson <adi@xxxxxxxxxxxxx> wrote:
> >
> > > Got this twice with 2.6.25-mm1 on my Thinkpad X40, AData 16GB SDHC card
> > > in mmc0 but no filesystem mounted. I think the oops happened at
> > > suspend/resume time. Previous kernel was 2.6.25-rc5-mm1 which didn't
> > > exhibit this problem across multiple suspend-resume cycles.
> > >
> > > Complete logs and pretty much everything else you could want at
> > > http://web.hexapodia.org/~adi/bobble/bobble_2.6.25-mm1-dirty_20080509100634/
> > >
> > > [104375.816331] BUG: unable to handle kernel NULL pointer dereference at 0000000c
> > > [104375.816338] IP: [<c02d86ce>] klist_del+0xe/0x30
> >
> > This could be one of those nasty situations where one driver leaves a mess
> > behind it and then another driver later comes along and trips over that
> > mess.
> >
>
> There were some problems with removing devices during suspend (which
> the MMC layer does), but AFAIK those patches were backed out and were
> only supposed to come back in a form that allowed such usage. Rafael
> should have the most correct information on that subject.

Those changes went away for good. At the moment, we only print a warning
if there's a suspend ordering violation.

The problem described here looks like the one fixed by commits
29591b92e19f409d5ad4c099c2b7b5ea56f50dfa and
08119e8966e993993d0ba92b2fba38c582c8f787,
so Andy, please try the current linux-next or even -rc2.

Thanks,
Rafael
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/