Re: [syzbot] [rcu?] WARNING in rcu_note_context_switch (2)
From: Boqun Feng
Date: Mon Jul 22 2024 - 13:56:02 EST
On Mon, Jul 22, 2024 at 02:42:10PM +0800, Z qiang wrote:
[...]
> > >
> > > This should be caused by this modification (commit id:
> > > ca567df74a28a9fb368c6b2d93e864113f73f5c2)
> > > when tsk is null, miss invoke rcu_read_unlock() for NS_GET_TGID_IN_PIDNS.
> >
> > Very good, and it looks like that to me as well. Would you like to
> > submit a fix patch and see if syzbot agrees?
>
> I see there is a c test
> program(https://syzkaller.appspot.com/x/repro.c?x=17a3c349980000),
> I will run this test on my local machine, and then make a fix.
>
FWIW, syzbot provides a way to do tests automatically:
https://github.com/google/syzkaller/blob/master/docs/syzbot.md#testing-patches
But looks like Christian already fixed this:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=280e36f0d5b997173d014c07484c03a7f7750668
Regards,
Boqun
> Thanks
> Zqiang
>
>
[...]