Re: v5.9-rc3-rt3 boot time networking lockdep splat

From: Mike Galbraith
Date: Tue Sep 08 2020 - 15:25:48 EST


On Tue, 2020-09-08 at 17:12 +0200, Sebastian Andrzej Siewior wrote:
> On 2020-09-05 07:19:10 [+0200], Mike Galbraith wrote:
> > Lappy, which does not use bridge, boots clean... but lock leakage
> > pretty darn quickly inspires lockdep to craps its drawers.
> >
> > [ 209.001111] BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
> > [ 209.001113] turning off the locking correctness validator.
> > [ 209.001114] CPU: 2 PID: 3773 Comm: Socket Thread Tainted: G S I E 5.9.0.gc70672d-rt3-rt #8
> > [ 209.001117] Hardware name: HP HP Spectre x360 Convertible/804F, BIOS F.47 11/22/2017
> > [ 209.001118] Call Trace:
> > [ 209.001123] dump_stack+0x77/0x9b
> > [ 209.001129] validate_chain+0xf60/0x1230
>
> I have no idea how to debug this based on this report. Can you narrow
> it down to something?

I instrumented what I presume is still this problem once upon a time,
structures containing locks are allocated/initialized/freed again and
again with no cleanup until we increment into the wall.

> Is Lappy new, got a new something or has a new config switch? I'm just
> curious if this something or something that was always there but
> remained undetected.

Nah, this is nothing new. Turn lockdep on in RT, it's just a matter of
time before it turns itself off. It's usually just not _that_ quick.

-Mike