syzbot


general protection fault in ip6_tnl_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: 1667d, last: 1656d
Cause bisection: introduced by (bisect log) :
commit b89f625e28d44552083f43752f62d8621ded0a04
Author: Ming Lei <ming.lei@redhat.com>
Date: Mon Sep 23 15:12:09 2019 +0000

  block: don't release queue's sysfs lock during switching elevator

Crash: WARNING: ODEBUG bug in netdev_freemem (log)
Repro: C syz .config
  

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: 8847 Comm: syz-executor295 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: e6 55 cf fb 0f b6 b5 77 ff ff ff 40 84 f6 74 56 e8 95 54 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:ffff88808b5178e0 EFLAGS: 00010202
RAX: ffff8880a23ee240 RBX: ffff88808b517908 RCX: dffffc0000000000
RDX: 000000000000000d RSI: ffffffff85a3b16b RDI: 0000000000000001
RBP: ffff88808b517970 R08: ffff8880a23ee240 R09: fffffbfff1332f89
R10: fffffbfff1332f88 R11: ffffffff89997c47 R12: 0000000000000000
R13: 1ffff110116a2f1d R14: ffff88808b517948 R15: 0000000000000068
FS:  0000000000deb880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006cd090 CR3: 000000009674f000 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]
 ip6_tnl_ioctl+0x605/0xab0 net/ipv6/ip6_tunnel.c:1671
 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:0x441e59
Code: e8 1c b4 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 eb 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc879c85f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000000000001140c RCX: 0000000000441e59
RDX: 0000000020000080 RSI: 00000000000089f2 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000009
R13: 00007ffc879c8650 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace be20ad6cbe99e6b1 ]---
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: e6 55 cf fb 0f b6 b5 77 ff ff ff 40 84 f6 74 56 e8 95 54 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:ffff88808b5178e0 EFLAGS: 00010202
RAX: ffff8880a23ee240 RBX: ffff88808b517908 RCX: dffffc0000000000
RDX: 000000000000000d RSI: ffffffff85a3b16b RDI: 0000000000000001
RBP: ffff88808b517970 R08: ffff8880a23ee240 R09: fffffbfff1332f89
R10: fffffbfff1332f88 R11: ffffffff89997c47 R12: 0000000000000000
R13: 1ffff110116a2f1d R14: ffff88808b517948 R15: 0000000000000068
FS:  0000000000deb880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006cd090 CR3: 000000009674f000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/03 11:28 bpf-next 03bd4773d898 fc17ba49 .config console log report syz C ci-upstream-bpf-next-kasan-gce
2019/10/14 12:02 bpf-next b8fc345d6b5d a6aef847 .config console log report ci-upstream-bpf-next-kasan-gce
2019/10/12 20:37 bpf-next e78dcbf41454 426631dd .config console log report ci-upstream-bpf-next-kasan-gce
2019/10/12 14:35 bpf-next 409017847d20 426631dd .config console log report ci-upstream-bpf-next-kasan-gce
2019/10/10 05:50 bpf-next 25bfef430e96 c4b9981b .config console log report ci-upstream-bpf-next-kasan-gce
2019/10/06 18:01 bpf-next a9eb048d5615 f3f7d9c8 .config console log report ci-upstream-bpf-next-kasan-gce
2019/10/03 10:53 bpf-next 03bd4773d898 fc17ba49 .config console log report ci-upstream-bpf-next-kasan-gce
* Struck through repros no longer work on HEAD.