Re: general protection fault in devlink_get_from_attrs

From: Eric Biggers
Date: Mon Oct 07 2019 - 15:16:20 EST


On Mon, Oct 07, 2019 at 09:11:02PM +0200, Jiri Pirko wrote:
> Mon, Oct 07, 2019 at 08:59:11PM CEST, syzbot+896295c817162503d359@xxxxxxxxxxxxxxxxxxxxxxxxx wrote:
> >Hello,
> >
> >syzbot found the following crash on:
> >
> >HEAD commit: 056ddc38 Merge branch 'stmmac-next'
> >git tree: net-next
> >console output: https://syzkaller.appspot.com/x/log.txt?x=1590218f600000
> >kernel config: https://syzkaller.appspot.com/x/.config?x=d9be300620399522
> >dashboard link: https://syzkaller.appspot.com/bug?extid=896295c817162503d359
> >compiler: gcc (GCC) 9.0.0 20181231 (experimental)
> >syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10a6a6c3600000
> >C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15fd50dd600000
> >
> >IMPORTANT: if you fix the bug, please add the following tag to the commit:
> >Reported-by: syzbot+896295c817162503d359@xxxxxxxxxxxxxxxxxxxxxxxxx
> >
> >kasan: CONFIG_KASAN_INLINE enabled
> >kasan: GPF could be caused by NULL-ptr deref or user memory access
> >general protection fault: 0000 [#1] PREEMPT SMP KASAN
> >CPU: 1 PID: 8790 Comm: syz-executor447 Not tainted 5.4.0-rc1+ #0
> >Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
> >Google 01/01/2011
> >RIP: 0010:devlink_get_from_attrs+0x32/0x300 net/core/devlink.c:124
>
> This is fixed already by:
> 5c23afb980b2 ("net: devlink: fix reporter dump dumpit")
>

Great, let's tell syzbot so that it will close this bug report:

#syz fix: net: devlink: fix reporter dump dumpit

(It's actually commit 82a843de41d42, by the way.)

- Eric