syzbot


BUG: unable to handle kernel paging request in dev_get_by_index_rcu

Status: closed as invalid on 2019/04/26 00:05
Subsystems: net
[Documentation on labels]
First crash: 1869d, last: 1869d

Sample crash report:
BUG: unable to handle kernel paging request at ffffffffffff01c0
#PF error: [normal kernel read fault]
PGD 8874067 P4D 8874067 PUD 8876067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 25477 Comm: syz-executor.2 Not tainted 5.0.0+ #97
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:dev_index_hash net/core/dev.c:218 [inline]
RIP: 0010:dev_get_by_index_rcu+0x38/0x150 net/core/dev.c:840
Code: 48 89 fb e8 ea 83 fe fb 48 8d bb c0 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 0a 01 00 00 <48> 8b 93 c0 01 00 00 41 0f b6 c5 48 8d 1c c2 48 b8 00 00 00 00 00
RSP: 0018:ffff8880ae907500 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffffffffffff0000 RCX: ffffffff85d7188d
RDX: 1fffffffffffe038 RSI: ffffffff85713286 RDI: ffffffffffff01c0
RBP: ffff8880ae907520 R08: ffff888094524580 R09: ffffed1015d25bd0
R10: ffffed1015d25bcf R11: ffff8880ae92de7b R12: ffff88809bf4edbe
R13: 0000000000000001 R14: 0000000000000000 R15: ffffffffffff0000
FS:  00007f5ae70fa700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffff01c0 CR3: 000000005ac8c000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 netif_index_is_l3_master include/net/l3mdev.h:138 [inline]
 ip_send_unicast_reply+0xcb6/0x11a0 net/ipv4/ip_output.c:1588
 tcp_v4_send_reset+0xe9a/0x2140 net/ipv4/tcp_ipv4.c:778
 tcp_v4_rcv+0x209e/0x3730 net/ipv4/tcp_ipv4.c:1939
kobject: 'loop3' (00000000601bb449): kobject_uevent_env
kobject: 'loop3' (00000000601bb449): fill_kobj_path: path = '/devices/virtual/block/loop3'
 ip_protocol_deliver_rcu+0x60/0x8f0 net/ipv4/ip_input.c:208
 ip_local_deliver_finish+0x23b/0x390 net/ipv4/ip_input.c:234
 NF_HOOK include/linux/netfilter.h:289 [inline]
 NF_HOOK include/linux/netfilter.h:283 [inline]
 ip_local_deliver+0x1e9/0x520 net/ipv4/ip_input.c:255
 dst_input include/net/dst.h:450 [inline]
 ip_rcv_finish+0x1e1/0x300 net/ipv4/ip_input.c:414
 NF_HOOK include/linux/netfilter.h:289 [inline]
 NF_HOOK include/linux/netfilter.h:283 [inline]
 ip_rcv+0xe8/0x3f0 net/ipv4/ip_input.c:524
 __netif_receive_skb_one_core+0x115/0x1a0 net/core/dev.c:4973
 __netif_receive_skb+0x2c/0x1c0 net/core/dev.c:5083
 process_backlog+0x206/0x750 net/core/dev.c:5923
 napi_poll net/core/dev.c:6346 [inline]
 net_rx_action+0x4fa/0x1070 net/core/dev.c:6412
 __do_softirq+0x266/0x95a kernel/softirq.c:292
 do_softirq_own_stack+0x2a/0x40 arch/x86/entry/entry_64.S:1027
 </IRQ>
 do_softirq.part.0+0x11a/0x170 kernel/softirq.c:337
 do_softirq kernel/softirq.c:329 [inline]
 __local_bh_enable_ip+0x211/0x270 kernel/softirq.c:189
 local_bh_enable include/linux/bottom_half.h:32 [inline]
 rcu_read_unlock_bh include/linux/rcupdate.h:696 [inline]
 ip_finish_output2+0x99c/0x1740 net/ipv4/ip_output.c:231
 ip_finish_output+0x73c/0xd50 net/ipv4/ip_output.c:317
 NF_HOOK_COND include/linux/netfilter.h:278 [inline]
 ip_output+0x21f/0x670 net/ipv4/ip_output.c:405
 dst_output include/net/dst.h:444 [inline]
 ip_local_out+0xc4/0x1b0 net/ipv4/ip_output.c:124
 __ip_queue_xmit+0x86f/0x1bf0 net/ipv4/ip_output.c:505
 ip_queue_xmit+0x5a/0x70 include/net/ip.h:198
 __tcp_transmit_skb+0x1a32/0x3750 net/ipv4/tcp_output.c:1159
 tcp_transmit_skb net/ipv4/tcp_output.c:1175 [inline]
 tcp_connect+0x2e43/0x4330 net/ipv4/tcp_output.c:3538
 tcp_v4_connect+0x1514/0x1c40 net/ipv4/tcp_ipv4.c:315
 __inet_stream_connect+0x83f/0xea0 net/ipv4/af_inet.c:655
 inet_stream_connect+0x58/0xa0 net/ipv4/af_inet.c:719
 __sys_connect+0x266/0x330 net/socket.c:1685
 __do_sys_connect net/socket.c:1696 [inline]
 __se_sys_connect net/socket.c:1693 [inline]
 __x64_sys_connect+0x73/0xb0 net/socket.c:1693
 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457f29
Code: ad b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f5ae70f9c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457f29
RDX: 0000000000000010 RSI: 0000000020ccb000 RDI: 0000000000000003
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f5ae70fa6d4
R13: 00000000004be34e R14: 00000000004cead0 R15: 00000000ffffffff
Modules linked in:
CR2: ffffffffffff01c0
---[ end trace 7a3adc6df03c71b2 ]---
RIP: 0010:dev_index_hash net/core/dev.c:218 [inline]
RIP: 0010:dev_get_by_index_rcu+0x38/0x150 net/core/dev.c:840
Code: 48 89 fb e8 ea 83 fe fb 48 8d bb c0 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 0a 01 00 00 <48> 8b 93 c0 01 00 00 41 0f b6 c5 48 8d 1c c2 48 b8 00 00 00 00 00
RSP: 0018:ffff8880ae907500 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffffffffffff0000 RCX: ffffffff85d7188d
RDX: 1fffffffffffe038 RSI: ffffffff85713286 RDI: ffffffffffff01c0
RBP: ffff8880ae907520 R08: ffff888094524580 R09: ffffed1015d25bd0
R10: ffffed1015d25bcf R11: ffff8880ae92de7b R12: ffff88809bf4edbe
R13: 0000000000000001 R14: 0000000000000000 R15: ffffffffffff0000
FS:  00007f5ae70fa700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffff01c0 CR3: 000000005ac8c000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/03/13 22:44 net-next-old d9862cfbe209 2881fc25 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.