syzbot


general protection fault in vti6_ioctl

Status: fixed on 2019/12/13 00:31
Subsystems: net
[Documentation on labels]
Fix commit: 9077f052abd5 net: propagate errors correctly in register_netdevice()
First crash: 1702d, last: 1702d

Sample crash report:
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: 30864 Comm: syz-executor.3 Not tainted 5.3.0+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_add include/linux/list.h:64 [inline]
RIP: 0010:list_add include/linux/list.h:79 [inline]
RIP: 0010:rollback_registered+0xc0/0x1d0 net/core/dev.c:8406
Code: 76 54 cf fb 0f b6 b5 77 ff ff ff 40 84 f6 74 56 e8 25 53 cf fb 4c 89 fa 4c 89 7d a0 48 b9 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 0a 00 0f 85 f4 00 00 00 49 8d 7c 24 70 48 b8 00 00 00 00 00
RSP: 0018:ffff888065e7f8d0 EFLAGS: 00010202
RAX: 0000000000040000 RBX: ffff888065e7f8f8 RCX: dffffc0000000000
RDX: 000000000000000d RSI: ffffffff85a3b42b RDI: 0000000000000001
RBP: ffff888065e7f960 R08: ffff888096f60100 R09: fffffbfff1332f91
R10: fffffbfff1332f90 R11: ffffffff89997c87 R12: 0000000000000000
R13: 1ffff1100cbcff1b R14: ffff888065e7f938 R15: 0000000000000068
FS:  00007fecd98ab700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f353dd47518 CR3: 0000000099347000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 unregister_netdevice_queue net/core/dev.c:9462 [inline]
 unregister_netdevice_queue+0x1ee/0x2c0 net/core/dev.c:9455
 unregister_netdevice include/linux/netdevice.h:2654 [inline]
 vti6_ioctl+0x61d/0xa30 net/ipv6/ip6_vti.c:843
 dev_ifsioc+0x743/0xa00 net/core/dev_ioctl.c:322
 dev_ioctl+0x280/0xc60 net/core/dev_ioctl.c:514
 sock_ioctl+0x5d2/0x780 net/socket.c:1103
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:509 [inline]
 do_vfs_ioctl+0xdb6/0x13e0 fs/ioctl.c:696
 ksys_ioctl+0xab/0xd0 fs/ioctl.c:713
 __do_sys_ioctl fs/ioctl.c:720 [inline]
 __se_sys_ioctl fs/ioctl.c:718 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718
 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x459a59
Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fecd98aac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459a59
RDX: 0000000020000580 RSI: 00000000000089f2 RDI: 0000000000000006
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fecd98ab6d4
R13: 00000000004cd9d0 R14: 00000000004d7158 R15: 00000000ffffffff
Modules linked in:
---[ end trace b306e29747f9cce5 ]---
RIP: 0010:__list_add include/linux/list.h:64 [inline]
RIP: 0010:list_add include/linux/list.h:79 [inline]
RIP: 0010:rollback_registered+0xc0/0x1d0 net/core/dev.c:8406
Code: 76 54 cf fb 0f b6 b5 77 ff ff ff 40 84 f6 74 56 e8 25 53 cf fb 4c 89 fa 4c 89 7d a0 48 b9 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 0a 00 0f 85 f4 00 00 00 49 8d 7c 24 70 48 b8 00 00 00 00 00
RSP: 0018:ffff888065e7f8d0 EFLAGS: 00010202
RAX: 0000000000040000 RBX: ffff888065e7f8f8 RCX: dffffc0000000000
RDX: 000000000000000d RSI: ffffffff85a3b42b RDI: 0000000000000001
RBP: ffff888065e7f960 R08: ffff888096f60100 R09: fffffbfff1332f91
R10: fffffbfff1332f90 R11: ffffffff89997c87 R12: 0000000000000000
R13: 1ffff1100cbcff1b R14: ffff888065e7f938 R15: 0000000000000068
FS:  00007fecd98ab700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000016ba7d0 CR3: 0000000099347000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/15 20:03 bpf-next b8fc345d6b5d b5268b89 .config console log report ci-upstream-bpf-next-kasan-gce
* Struck through repros no longer work on HEAD.