KASAN: use-after-free Read in vlan_dev_get_iflink
From: syzbot <hidden>
Date: 2020-07-23 18:12:26
Hello, syzbot found the following issue on: HEAD commit: 8c26c87b Merge tag 'sound-5.8-rc7' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=128af5ef100000 kernel config: https://syzkaller.appspot.com/x/.config?x=f87a5e4232fdb267 dashboard link: https://syzkaller.appspot.com/bug?extid=d702fd2351989927037c compiler: gcc (GCC) 10.1.0-syz 20200507 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1567cae8900000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=150631b4900000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: <redacted> ================================================================== BUG: KASAN: use-after-free in vlan_dev_get_iflink+0x5f/0x70 net/8021q/vlan_dev.c:767 Read of size 4 at addr ffff888094a76100 by task syz-executor015/9454 CPU: 1 PID: 9454 Comm: syz-executor015 Not tainted 5.8.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x18f/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xae/0x436 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530 vlan_dev_get_iflink+0x5f/0x70 net/8021q/vlan_dev.c:767 dev_get_iflink+0x73/0xe0 net/core/dev.c:814 rfc2863_policy+0x243/0x2e0 net/core/link_watch.c:41 linkwatch_do_dev+0x2a/0x180 net/core/link_watch.c:160 linkwatch_forget_dev+0x16a/0x200 net/core/link_watch.c:237 netdev_wait_allrefs net/core/dev.c:9678 [inline] netdev_run_todo+0x258/0xac0 net/core/dev.c:9774 rtnl_unlock net/core/rtnetlink.c:112 [inline] rtnetlink_rcv_msg+0x45b/0xad0 net/core/rtnetlink.c:5461 netlink_rcv_skb+0x15a/0x430 net/netlink/af_netlink.c:2469 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline] netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1329
ffff888094a76100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^ ffff888094a76180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888094a76200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches