syzbot


WARNING in napi_complete_done

Status: internal: reported C repro on 2022/11/05 01:08
Reported-by: syzbot+@syzkaller.appspotmail.com
Fix commit: 07d120aa33cc net: tun: call napi_schedule_prep() to ensure we own a napi
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 85d, last: 81d

Cause bisection: failed (bisect log)

Sample crash report:
syz-executor150 uses obsolete (PF_INET,SOCK_PACKET)
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3619 at net/core/dev.c:6076 napi_complete_done+0x45b/0x880 net/core/dev.c:6076
Modules linked in:
CPU: 1 PID: 3619 Comm: syz-executor150 Not tainted 6.1.0-rc3-syzkaller-00175-g1118b2049d77 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:napi_complete_done+0x45b/0x880 net/core/dev.c:6076
Code: c1 ea 03 0f b6 14 02 4c 89 f0 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 24 04 00 00 41 89 5d 1c e9 73 fc ff ff e8 b5 53 22 fa <0f> 0b e9 82 fe ff ff e8 a9 53 22 fa 48 8b 5c 24 08 31 ff 48 89 de
RSP: 0018:ffffc90003c7fb08 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000030 RCX: 0000000000000000
RDX: ffff88807eb057c0 RSI: ffffffff875a58db RDI: 0000000000000007
RBP: 0000000000000001 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffff888026620628
R13: ffff888026620618 R14: ffff888026620634 R15: 0000000000000000
FS:  0000555555eaa300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc5f593b70 CR3: 0000000077721000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 napi_complete include/linux/netdevice.h:510 [inline]
 tun_get_user+0x206d/0x3a60 drivers/net/tun.c:1980
 tun_chr_write_iter+0xdb/0x200 drivers/net/tun.c:2027
 call_write_iter include/linux/fs.h:2191 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x9e9/0xdd0 fs/read_write.c:584
 ksys_write+0x127/0x250 fs/read_write.c:637
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f0631d84d49
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcb99ad508 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f0631d84d49
RDX: 000000000000002e RSI: 00000000200001c0 RDI: 0000000000000003
RBP: 00007f0631d48ef0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f0631d48f80
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (104):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-net-this-kasan-gce 2022/11/05 06:27 net 1118b2049d77 6d752409 .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 05:34 net 1118b2049d77 6d752409 .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/09 01:38 net ce9e57feeed8 060f945e .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/08 09:19 net c23fb2c82267 881db35d .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/08 00:18 net f9027f88f7d1 a779b11a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/07 09:54 net b7cbc6740bd6 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/07 08:52 net b7cbc6740bd6 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/06 19:01 net b7cbc6740bd6 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/06 14:28 net b7cbc6740bd6 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 22:48 net b7cbc6740bd6 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 21:28 net b7cbc6740bd6 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 20:21 net b7cbc6740bd6 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 18:37 net b7cbc6740bd6 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 16:03 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 14:31 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 12:25 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 11:00 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 04:26 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 03:20 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 03:19 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 03:18 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 03:09 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 03:08 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 03:04 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 03:00 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 02:58 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 02:56 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 02:51 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 02:50 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 02:45 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 02:43 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 02:35 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 02:35 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 02:34 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 02:29 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 02:27 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 02:26 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 02:22 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 02:19 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 02:17 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 02:12 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 02:06 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 02:05 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 02:01 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 01:59 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
ci-upstream-net-this-kasan-gce 2022/11/05 01:07 net 1118b2049d77 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in napi_complete_done
* Struck through repros no longer work on HEAD.