syzbot


BUG: corrupted list in __netif_napi_del (2)

Status: auto-closed as invalid on 2021/08/14 18:06
Subsystems: net
[Documentation on labels]
First crash: 1122d, last: 1075d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: corrupted list in __netif_napi_del net 1 1223d 1219d 0/26 auto-closed as invalid on 2021/03/20 15:15
upstream BUG: corrupted list in __netif_napi_del (3) net 1 526d 525d 0/26 auto-obsoleted due to no activity on 2023/03/16 19:11
upstream KASAN: use-after-free Read in __netif_napi_del net 5 876d 905d 0/26 auto-closed as invalid on 2022/03/02 04:36

Sample crash report:
list_del corruption. prev->next should be ffffe8ffffc3b0c0, but was ffffe8ffffc3b236
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:51!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 263 Comm: kworker/u4:7 Not tainted 5.12.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: netns cleanup_net
RIP: 0010:__list_del_entry_valid.cold+0xf/0x4a lib/list_debug.c:51
Code: e8 03 aa f2 ff 0f 0b 48 89 f1 48 c7 c7 00 ea c2 89 4c 89 e6 e8 ef a9 f2 ff 0f 0b 48 89 ee 48 c7 c7 a0 eb c2 89 e8 de a9 f2 ff <0f> 0b 4c 89 ea 48 89 ee 48 c7 c7 e0 ea c2 89 e8 ca a9 f2 ff 0f 0b
RSP: 0018:ffffc9000166f968 EFLAGS: 00010286
RAX: 0000000000000054 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff8880139e54c0 RSI: ffffffff815ccd65 RDI: fffff520002cdf1f
RBP: ffffe8ffffc3b0c0 R08: 0000000000000054 R09: 0000000000000000
R10: ffffffff815c6bce R11: 0000000000000000 R12: ffffe8ffffd3b0c0
R13: ffff88802e2a007a R14: ffffe8ffffc3af60 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000528430 CR3: 00000000727e8000 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_rcu include/linux/rculist.h:166 [inline]
 __netif_napi_del.part.0+0x118/0x520 net/core/dev.c:6958
 __netif_napi_del+0x3c/0x50 net/core/dev.c:6954
 gro_cells_destroy net/core/gro_cells.c:102 [inline]
 gro_cells_destroy+0x115/0x360 net/core/gro_cells.c:92
 ip6gre_dev_free+0x15/0x60 net/ipv6/ip6_gre.c:1411
 netdev_run_todo+0x6b4/0xa80 net/core/dev.c:10575
 ip6gre_exit_batch_net+0x516/0x750 net/ipv6/ip6_gre.c:1629
 ops_exit_list+0x10d/0x160 net/core/net_namespace.c:178
 cleanup_net+0x4ea/0xb10 net/core/net_namespace.c:595
 process_one_work+0x98d/0x1600 kernel/workqueue.c:2275
 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421
 kthread+0x3b1/0x4a0 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294
Modules linked in:
---[ end trace b095ef630a1403e1 ]---
RIP: 0010:__list_del_entry_valid.cold+0xf/0x4a lib/list_debug.c:51
Code: e8 03 aa f2 ff 0f 0b 48 89 f1 48 c7 c7 00 ea c2 89 4c 89 e6 e8 ef a9 f2 ff 0f 0b 48 89 ee 48 c7 c7 a0 eb c2 89 e8 de a9 f2 ff <0f> 0b 4c 89 ea 48 89 ee 48 c7 c7 e0 ea c2 89 e8 ca a9 f2 ff 0f 0b
RSP: 0018:ffffc9000166f968 EFLAGS: 00010286
RAX: 0000000000000054 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff8880139e54c0 RSI: ffffffff815ccd65 RDI: fffff520002cdf1f
RBP: ffffe8ffffc3b0c0 R08: 0000000000000054 R09: 0000000000000000
R10: ffffffff815c6bce R11: 0000000000000000 R12: ffffe8ffffd3b0c0
R13: ffff88802e2a007a R14: ffffe8ffffc3af60 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000014a53ad CR3: 000000001cc3b000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/16 17:58 net-old b81ac7841d51 f54a5c09 .config console log report info ci-upstream-net-this-kasan-gce BUG: corrupted list in __netif_napi_del
2021/03/31 12:34 bpf 861de02e5f3f 6a81331a .config console log report info ci-upstream-bpf-kasan-gce BUG: corrupted list in __netif_napi_del
2021/05/07 16:02 bpf-next 3733bfbbdd28 f6da8120 .config console log report info ci-upstream-bpf-next-kasan-gce BUG: corrupted list in __netif_napi_del
* Struck through repros no longer work on HEAD.