syzbot


BUG: corrupted list in napi_complete_done

Status: auto-closed as invalid on 2021/06/27 12:17
Subsystems: net virt
[Documentation on labels]
First crash: 1089d, last: 1087d

Sample crash report:
list_del corruption. prev->next should be ffff88801d258008, but was ffff88800000004e
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:51!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 13 Comm: ksoftirqd/0 Not tainted 5.12.0-rc8-next-20210423-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_del_entry_valid.cold+0xf/0x4a lib/list_debug.c:51
Code: e8 0d a6 f2 ff 0f 0b 48 89 f1 48 c7 c7 a0 ed c2 89 4c 89 e6 e8 f9 a5 f2 ff 0f 0b 48 89 ee 48 c7 c7 40 ef c2 89 e8 e8 a5 f2 ff <0f> 0b 4c 89 ea 48 89 ee 48 c7 c7 80 ee c2 89 e8 d4 a5 f2 ff 0f 0b
RSP: 0018:ffffc90000d27af0 EFLAGS: 00010082
RAX: 0000000000000054 RBX: 0000000000000200 RCX: 0000000000000000
RDX: ffff8880123d0000 RSI: ffffffff815cebe5 RDI: fffff520001a4f50
RBP: ffff88801d258008 R08: 0000000000000054 R09: 0000000000000000
R10: ffffffff815c8a2e R11: 0000000000000000 R12: ffff88801d258008
R13: ffff88800000004e R14: ffff88801d258024 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f794a4698d0 CR3: 0000000015e74000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __list_del_entry include/linux/list.h:132 [inline]
 list_del_init include/linux/list.h:204 [inline]
 napi_complete_done+0x644/0x880 net/core/dev.c:6551
 virtqueue_napi_complete drivers/net/virtio_net.c:337 [inline]
 virtnet_poll+0xbeb/0x1180 drivers/net/virtio_net.c:1525
 __napi_poll+0xaf/0x440 net/core/dev.c:6966
 napi_poll net/core/dev.c:7033 [inline]
 net_rx_action+0x801/0xb40 net/core/dev.c:7120
 __do_softirq+0x29b/0x9fe kernel/softirq.c:559
 run_ksoftirqd kernel/softirq.c:921 [inline]
 run_ksoftirqd+0x2d/0x60 kernel/softirq.c:913
 smpboot_thread_fn+0x655/0x9e0 kernel/smpboot.c:165
 kthread+0x3b1/0x4a0 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294
Modules linked in:
---[ end trace 96c0e575804b4636 ]---
RIP: 0010:__list_del_entry_valid.cold+0xf/0x4a lib/list_debug.c:51
Code: e8 0d a6 f2 ff 0f 0b 48 89 f1 48 c7 c7 a0 ed c2 89 4c 89 e6 e8 f9 a5 f2 ff 0f 0b 48 89 ee 48 c7 c7 40 ef c2 89 e8 e8 a5 f2 ff <0f> 0b 4c 89 ea 48 89 ee 48 c7 c7 80 ee c2 89 e8 d4 a5 f2 ff 0f 0b
RSP: 0018:ffffc90000d27af0 EFLAGS: 00010082
RAX: 0000000000000054 RBX: 0000000000000200 RCX: 0000000000000000
RDX: ffff8880123d0000 RSI: ffffffff815cebe5 RDI: fffff520001a4f50
RBP: ffff88801d258008 R08: 0000000000000054 R09: 0000000000000000
R10: ffffffff815c8a2e R11: 0000000000000000 R12: ffff88801d258008
R13: ffff88800000004e R14: ffff88801d258024 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f794a4698d0 CR3: 0000000015e74000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/28 12:14 linux-next e3d35712f85a 805b5003 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: corrupted list in napi_complete_done
2021/04/26 08:08 linux-next e3d35712f85a 2a82f1b3 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: corrupted list in napi_complete_done
* Struck through repros no longer work on HEAD.