syzbot


kernel BUG in tun_attach

Status: upstream: reported C repro on 2022/06/18 00:41
Reported-by: syzbot+e559f12bb7b41ef21d10@syzkaller.appspotmail.com
Fix commit: bec1be0a745a net: tun: unlink NAPI from device on destruction
Patched on: [ci2-android-5-10 ci2-android-5-10-perf], missing on: []
First crash: 889d, last: 847d
Cause bisection: failed (error log, bisect log)
  
Last patch testing requests (1)
Created Duration User Patch Repo Result
2022/07/11 21:21 15m tadeusz.struk@linaro.org patch android12-5.10-lts OK log

Sample crash report:
R10: 00007fa6c1979700 R11: 0000000000000246 R12: 00007fa6c1a7043c
R13: 00007fa6c1a3e064 R14: 74656e2f7665642f R15: 0000000000022000
---[ end trace 13da049e63cace7e ]---
------------[ cut here ]------------
kernel BUG at include/linux/netdevice.h:518!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 376 Comm: syz-executor885 Tainted: G        W         5.10.118-syzkaller-00163-gfa7f6a5f56d9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
RIP: 0010:napi_enable include/linux/netdevice.h:518 [inline]
RIP: 0010:tun_napi_init drivers/net/tun.c:278 [inline]
RIP: 0010:tun_attach+0x14b3/0x14c0 drivers/net/tun.c:818
Code: 89 df e8 70 b5 b7 fe e9 cf fa ff ff e8 96 b9 7d fe 48 c7 c7 20 13 68 86 48 89 de e8 47 7a 7b ff e9 e0 fb ff ff e8 7d b9 7d fe <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41
RSP: 0018:ffffc90000b57b50 EFLAGS: 00010293
RAX: ffffffff82eef973 RBX: 0000000000000000 RCX: ffff8881065ee2c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000b57c70 R08: ffffffff82eeed75 R09: ffffed1020ab5686
R10: ffffed1020ab5686 R11: 1ffff11020ab5685 R12: ffff8881055ab428
R13: ffff8881051d8980 R14: ffff8881051d8000 R15: dffffc0000000000
FS:  00007fa6c1979700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffdbf456e28 CR3: 000000011da3b000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 tun_set_iff+0xadf/0x1100 drivers/net/tun.c:2803
 __tun_chr_ioctl+0x8ab/0x2130 drivers/net/tun.c:3084
 tun_chr_ioctl+0x2a/0x40 drivers/net/tun.c:3360
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl+0x115/0x190 fs/ioctl.c:739
 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:739
 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7fa6c19e8a69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa6c1979308 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fa6c1a70438 RCX: 00007fa6c19e8a69
RDX: 0000000020000200 RSI: 00000000400454ca RDI: 0000000000000003
RBP: 00007fa6c1a70430 R08: 0000000000000000 R09: 0000000000000000
R10: 00007fa6c1979700 R11: 0000000000000246 R12: 00007fa6c1a7043c
R13: 00007fa6c1a3e064 R14: 74656e2f7665642f R15: 0000000000022000
Modules linked in:
---[ end trace 13da049e63cace7f ]---
RIP: 0010:napi_enable include/linux/netdevice.h:518 [inline]
RIP: 0010:tun_napi_init drivers/net/tun.c:278 [inline]
RIP: 0010:tun_attach+0x14b3/0x14c0 drivers/net/tun.c:818
Code: 89 df e8 70 b5 b7 fe e9 cf fa ff ff e8 96 b9 7d fe 48 c7 c7 20 13 68 86 48 89 de e8 47 7a 7b ff e9 e0 fb ff ff e8 7d b9 7d fe <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41
RSP: 0018:ffffc90000b57b50 EFLAGS: 00010293
RAX: ffffffff82eef973 RBX: 0000000000000000 RCX: ffff8881065ee2c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000b57c70 R08: ffffffff82eeed75 R09: ffffed1020ab5686
R10: ffffed1020ab5686 R11: 1ffff11020ab5685 R12: ffff8881055ab428
R13: ffff8881051d8980 R14: ffff8881051d8000 R15: dffffc0000000000
FS:  00007fa6c1979700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffdbf456e28 CR3: 000000011da3b000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (31):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/07/03 22:12 android12-5.10-lts fa7f6a5f56d9 1434eec0 .config strace log report syz C ci2-android-5-10 kernel BUG in tun_attach
2022/07/03 19:35 android12-5.10-lts fa7f6a5f56d9 1434eec0 .config strace log report syz C ci2-android-5-10 kernel BUG in tun_attach
2022/06/21 16:13 android12-5.10-lts fdd06dc6b0f8 0fc5c330 .config strace log report syz C ci2-android-5-10 kernel BUG in tun_attach
2022/06/18 03:21 android12-5.10-lts fdd06dc6b0f8 8f633d84 .config strace log report syz C ci2-android-5-10 kernel BUG in tun_attach
2022/06/18 02:31 android12-5.10-lts fdd06dc6b0f8 8f633d84 .config strace log report syz C ci2-android-5-10 kernel BUG in tun_attach
2022/06/18 01:40 android12-5.10-lts fdd06dc6b0f8 8f633d84 .config strace log report syz C ci2-android-5-10 kernel BUG in tun_attach
2022/06/18 00:40 android12-5.10-lts fdd06dc6b0f8 8f633d84 .config strace log report syz C ci2-android-5-10 kernel BUG in tun_attach
2022/07/29 16:12 android12-5.10-lts 2de0a17df44a fef302b1 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/07/24 21:13 android12-5.10-lts ebc9fb07d294 22343af4 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/07/23 10:58 android12-5.10-lts ebc9fb07d294 22343af4 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/07/22 18:31 android12-5.10-lts ebc9fb07d294 22343af4 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/07/21 06:42 android12-5.10-lts ebc9fb07d294 88cb1383 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/07/18 17:56 android12-5.10-lts ebc9fb07d294 ff988920 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/07/15 07:21 android12-5.10-lts fa7f6a5f56d9 5d921b08 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/07/14 13:50 android12-5.10-lts fa7f6a5f56d9 5d921b08 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/07/14 00:56 android12-5.10-lts fa7f6a5f56d9 5d921b08 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/07/12 11:30 android12-5.10-lts fa7f6a5f56d9 da3d6955 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/07/11 03:16 android12-5.10-lts fa7f6a5f56d9 b5765a15 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/07/11 03:08 android12-5.10-lts fa7f6a5f56d9 b5765a15 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/07/08 08:06 android12-5.10-lts fa7f6a5f56d9 bff65f44 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/07/06 13:27 android12-5.10-lts fa7f6a5f56d9 bff65f44 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/07/04 10:40 android12-5.10-lts fa7f6a5f56d9 1434eec0 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/07/03 19:04 android12-5.10-lts fa7f6a5f56d9 1434eec0 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/07/02 23:16 android12-5.10-lts fa7f6a5f56d9 1434eec0 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/07/01 11:33 android12-5.10-lts 73c2a811f6d1 1434eec0 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/07/01 09:19 android12-5.10-lts 73c2a811f6d1 1434eec0 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/06/24 02:20 android12-5.10-lts fdd06dc6b0f8 912f5df7 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/06/19 14:52 android12-5.10-lts fdd06dc6b0f8 8f633d84 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/06/19 14:51 android12-5.10-lts fdd06dc6b0f8 8f633d84 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/06/19 10:17 android12-5.10-lts fdd06dc6b0f8 8f633d84 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
2022/06/18 08:58 android12-5.10-lts fdd06dc6b0f8 8f633d84 .config console log report info ci2-android-5-10 kernel BUG in tun_attach
* Struck through repros no longer work on HEAD.