Re: BUG: kernel NULL pointer dereference from check_preempt_wakeup()

From: Peter Zijlstra
Date: Fri Jun 05 2020 - 06:56:35 EST


On Fri, Jun 05, 2020 at 12:38:59PM +0200, Peter Zijlstra wrote:
> On Thu, Jun 04, 2020 at 03:54:45PM -0700, Paul E. McKenney wrote:
> > Hello!
> >
> > I get the splat below at a rate of roughly two per thirty hours when
> > running rcutorture scenario TREE03 on x86 at the June 3rd mainline commit:
> >
> > cb8e59cc8720 ("Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next")
> >
> > Running 140 hours of this same scenario at the following June 2nd mainline
> > commit shows no errors:
> >
> > d9afbb350990 ("Merge branch 'next-general' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security")
> >
> > I have started a bisection, but it is likely to take several days to
> > complete. I am looking at ways of speeding this up, but in the meantime,
> > I figured that I should check to see if others are also encountering this.
> >
> > Thoughts?
>
> I think this shows there's a boo-boo with the IPI patches. I've not
> managed to reproduce, but I'll give them another hard look.
>
> Would you have a .config for me? My compiler's check_preempt_wakeup
> isn't anywhere near 0x180 bytes long. I'm thiknig you have
> instrumentation enabled, KCSAN?

n/m, I was looking at the wrong function.. let me go puzzle.