Re: WARNING: refcount bug in kobject_add_internal

From: Benjamin Herrenschmidt
Date: Mon Jul 01 2019 - 22:49:58 EST


Munchun, is this what your patch fixes ?


On Mon, 2019-07-01 at 16:27 -0700, syzbot wrote:
> syzbot has bisected this bug to:
>
> commit 726e41097920a73e4c7c33385dcc0debb1281e18
> Author: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
> Date: Tue Jul 10 00:29:10 2018 +0000
>
> drivers: core: Remove glue dirs from sysfs earlier
>
> bisection log:
> https://syzkaller.appspot.com/x/bisect.txt?x=140d6739a00000
> start commit: 6fbc7275 Linux 5.2-rc7
> git tree: upstream
> final crash:
> https://syzkaller.appspot.com/x/report.txt?x=160d6739a00000
> console output:
> https://syzkaller.appspot.com/x/log.txt?x=120d6739a00000
> kernel config:
> https://syzkaller.appspot.com/x/.config?x=bff6583efcfaed3f
> dashboard link:
> https://syzkaller.appspot.com/bug?extid=32259bb9bc1a487ad206
> syz repro:
> https://syzkaller.appspot.com/x/repro.syz?x=115bad39a00000
> C reproducer:
> https://syzkaller.appspot.com/x/repro.c?x=1241bdd5a00000
>
> Reported-by: syzbot+32259bb9bc1a487ad206@xxxxxxxxxxxxxxxxxxxxxxxxx
> Fixes: 726e41097920 ("drivers: core: Remove glue dirs from sysfs
> earlier")
>
> For information about bisection process see:
> https://goo.gl/tpsmEJ#bisection