Re: slab corruption with current -git

From: Linus Torvalds
Date: Mon Oct 10 2016 - 20:54:38 EST


On Mon, Oct 10, 2016 at 5:30 PM, David Miller <davem@xxxxxxxxxxxxx> wrote:
>
> Linus can you add some extra info to that:

Sure. I made it a WARN_ON_ONCE(), but then always just printed the
pf/hooknum. It's all over the map:

reg->pf=2 and reg->hooknum=4
reg->pf=2 and reg->hooknum=2
reg->pf=2 and reg->hooknum=3
reg->pf=10 and reg->hooknum=4
reg->pf=10 and reg->hooknum=2
reg->pf=10 and reg->hooknum=3
reg->pf=7 and reg->hooknum=1
reg->pf=7 and reg->hooknum=2
reg->pf=7 and reg->hooknum=3
reg->pf=2 and reg->hooknum=0
reg->pf=2 and reg->hooknum=3
reg->pf=2 and reg->hooknum=0
reg->pf=2 and reg->hooknum=3
reg->pf=2 and reg->hooknum=4
reg->pf=2 and reg->hooknum=4
reg->pf=2 and reg->hooknum=1
reg->pf=2 and reg->hooknum=1
reg->pf=10 and reg->hooknum=0
reg->pf=10 and reg->hooknum=3
reg->pf=10 and reg->hooknum=0
reg->pf=10 and reg->hooknum=3
reg->pf=10 and reg->hooknum=4
reg->pf=10 and reg->hooknum=4
reg->pf=10 and reg->hooknum=1
reg->pf=10 and reg->hooknum=1
reg->pf=7 and reg->hooknum=3
reg->pf=7 and reg->hooknum=4
reg->pf=7 and reg->hooknum=0
reg->pf=2 and reg->hooknum=4
reg->pf=2 and reg->hooknum=2
reg->pf=2 and reg->hooknum=3
reg->pf=10 and reg->hooknum=4
reg->pf=10 and reg->hooknum=2
reg->pf=10 and reg->hooknum=3
reg->pf=7 and reg->hooknum=1
reg->pf=7 and reg->hooknum=2
reg->pf=7 and reg->hooknum=3
reg->pf=2 and reg->hooknum=0
reg->pf=2 and reg->hooknum=3
reg->pf=2 and reg->hooknum=0
reg->pf=2 and reg->hooknum=3
reg->pf=2 and reg->hooknum=4
reg->pf=2 and reg->hooknum=4
reg->pf=2 and reg->hooknum=1
reg->pf=2 and reg->hooknum=1
reg->pf=10 and reg->hooknum=0
reg->pf=10 and reg->hooknum=3
reg->pf=10 and reg->hooknum=0
reg->pf=10 and reg->hooknum=3
reg->pf=10 and reg->hooknum=4
reg->pf=10 and reg->hooknum=4
reg->pf=10 and reg->hooknum=1
reg->pf=10 and reg->hooknum=1
reg->pf=7 and reg->hooknum=3
reg->pf=7 and reg->hooknum=4
reg->pf=7 and reg->hooknum=0

and putting that through "sort -n" and "uniq -c", I get:

4 reg->pf=10 and reg->hooknum=0
4 reg->pf=10 and reg->hooknum=1
2 reg->pf=10 and reg->hooknum=2
6 reg->pf=10 and reg->hooknum=3
6 reg->pf=10 and reg->hooknum=4
4 reg->pf=2 and reg->hooknum=0
4 reg->pf=2 and reg->hooknum=1
2 reg->pf=2 and reg->hooknum=2
6 reg->pf=2 and reg->hooknum=3
6 reg->pf=2 and reg->hooknum=4
2 reg->pf=7 and reg->hooknum=0
2 reg->pf=7 and reg->hooknum=1
2 reg->pf=7 and reg->hooknum=2
4 reg->pf=7 and reg->hooknum=3

which doesn't look much better. But clearly there's a lot of those
"try to unregister stuff that you can't even find".

Maybe it tells you something.

Linus