syzbot


BUG: corrupted list in __netif_receive_skb_list_core

Status: fixed on 2019/10/15 23:40
Subsystems: net
[Documentation on labels]
Fix commit: c7a42eb49212 net: ipv6: fix listify ip6_rcv_finish in case of forwarding
First crash: 1714d, last: 1660d

Sample crash report:
bridge0: received packet on syz_tun with own address as source address (addr:aa:aa:aa:aa:aa:aa, vlan:0)
list_del corruption. prev->next should be ffff8880a737b400, but was ffff88806e934820
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:51!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 17655 Comm: syz-executor.5 Not tainted 5.4.0-rc1+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_del_entry_valid.cold+0xf/0x4f lib/list_debug.c:51
Code: e8 59 04 18 fe 0f 0b 48 89 f1 48 c7 c7 c0 9a e6 87 4c 89 e6 e8 45 04 18 fe 0f 0b 4c 89 f6 48 c7 c7 60 9c e6 87 e8 34 04 18 fe <0f> 0b 4c 89 ea 4c 89 f6 48 c7 c7 a0 9b e6 87 e8 20 04 18 fe 0f 0b
RSP: 0018:ffff888065fe75e8 EFLAGS: 00010282
RAX: 0000000000000054 RBX: ffff88806e934820 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff815cb5f6 RDI: ffffed100cbfceaf
RBP: ffff888065fe7600 R08: 0000000000000054 R09: ffffed1015d06159
R10: ffffed1015d06158 R11: ffff8880ae830ac7 R12: ffff88806e934820
R13: 0000000000000000 R14: ffff8880a737b400 R15: ffff8880a737b400
FS:  00007f20a70be700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000738008 CR3: 000000009f19c000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __list_del_entry include/linux/list.h:131 [inline]
 skb_list_del_init include/linux/skbuff.h:1482 [inline]
 __netif_receive_skb_list_core+0x2de/0x9d0 net/core/dev.c:5085
 __netif_receive_skb_list net/core/dev.c:5153 [inline]
 netif_receive_skb_list_internal+0x7eb/0xe60 net/core/dev.c:5248
 gro_normal_list.part.0+0x1e/0xb0 net/core/dev.c:5761
 gro_normal_list net/core/dev.c:5759 [inline]
 gro_normal_one net/core/dev.c:5773 [inline]
 napi_frags_finish net/core/dev.c:5786 [inline]
 napi_gro_frags+0xa6a/0xea0 net/core/dev.c:5859
 tun_get_user+0x2e98/0x3fa0 drivers/net/tun.c:1976
 tun_chr_write_iter+0xbd/0x156 drivers/net/tun.c:2022
 call_write_iter include/linux/fs.h:1895 [inline]
 do_iter_readv_writev+0x5f8/0x8f0 fs/read_write.c:693
 do_iter_write fs/read_write.c:970 [inline]
 do_iter_write+0x184/0x610 fs/read_write.c:951
 vfs_writev+0x1b3/0x2f0 fs/read_write.c:1015
 do_writev+0x15b/0x330 fs/read_write.c:1058
 __do_sys_writev fs/read_write.c:1131 [inline]
 __se_sys_writev fs/read_write.c:1128 [inline]
 __x64_sys_writev+0x75/0xb0 fs/read_write.c:1128
 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x459911
Code: 75 14 b8 14 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 34 b9 fb ff c3 48 83 ec 08 e8 fa 2c 00 00 48 89 04 24 b8 14 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 43 2d 00 00 48 89 d0 48 83 c4 08 48 3d 01
RSP: 002b:00007f20a70bdba0 EFLAGS: 00000293 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 0000000000000083 RCX: 0000000000459911
RDX: 0000000000000001 RSI: 00007f20a70bdc00 RDI: 00000000000000f0
RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 00007f20a70be6d4
R13: 00000000004c8c07 R14: 00000000004dffa8 R15: 00000000ffffffff
Modules linked in:
---[ end trace 04212a7a4d98c4bb ]---
RIP: 0010:__list_del_entry_valid.cold+0xf/0x4f lib/list_debug.c:51
Code: e8 59 04 18 fe 0f 0b 48 89 f1 48 c7 c7 c0 9a e6 87 4c 89 e6 e8 45 04 18 fe 0f 0b 4c 89 f6 48 c7 c7 60 9c e6 87 e8 34 04 18 fe <0f> 0b 4c 89 ea 4c 89 f6 48 c7 c7 a0 9b e6 87 e8 20 04 18 fe 0f 0b
RSP: 0018:ffff888065fe75e8 EFLAGS: 00010282
RAX: 0000000000000054 RBX: ffff88806e934820 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff815cb5f6 RDI: ffffed100cbfceaf
RBP: ffff888065fe7600 R08: 0000000000000054 R09: ffffed1015d06159
R10: ffffed1015d06158 R11: ffff8880ae830ac7 R12: ffff88806e934820
R13: 0000000000000000 R14: ffff8880a737b400 R15: ffff8880a737b400
FS:  00007f20a70be700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000738008 CR3: 000000009f19c000 CR4: 00000000001406f0
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
2019/10/08 10:13 net-old 503c9addef61 28ac6e64 .config console log report ci-upstream-net-this-kasan-gce
2019/09/28 01:33 net-old faeacb6ddb13 d8074e0b .config console log report ci-upstream-net-this-kasan-gce
2019/08/15 13:17 net-next-old ecb9f80db23a 0d298d6b .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.