syzbot


general protection fault in dev_get_by_index_rcu

Status: auto-closed as invalid on 2019/10/25 08:51
Reported-by: syzbot+48127bec5a5cd81411e3@syzkaller.appspotmail.com
First crash: 1499d, last: 1325d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in dev_get_by_index_rcu (2) C error 18 395d 395d 22/24 fixed on 2022/03/08 16:11

Sample crash report:
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 13200 Comm: syz-executor.0 Not tainted 5.2.0-rc5+ #31
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:dev_get_by_index_rcu+0x2e/0x150 net/core/dev.c:836
Code: 41 56 41 55 41 89 f5 41 54 53 48 89 fb e8 0a 6a f0 fb 48 8d bb c8 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 c8 01 00 00 41 0f b6 c5 48
RSP: 0018:ffff8880ae909500 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: 0000ffff8880a64c RCX: ffffffff85ea41bd
RDX: 00001ffff1101502 RSI: ffffffff85805726 RDI: 0000ffff8880a814
RBP: ffff8880ae909520 R08: ffff88808e6e65c0 R09: ffffed1015d26c70
R10: ffffed1015d26c6f R11: ffff8880ae93637b R12: ffff88805e7ff382
R13: 0000000000000001 R14: 0000000000000000 R15: 0000ffff8880a64c
FS:  00007f5794cc2700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fac5603c000 CR3: 0000000057e5a000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 netif_index_is_l3_master include/net/l3mdev.h:134 [inline]
 ip_send_unicast_reply+0xcb6/0x11a0 net/ipv4/ip_output.c:1584
 tcp_v4_send_reset+0xe9a/0x2130 net/ipv4/tcp_ipv4.c:773
 tcp_v4_rcv+0x20ed/0x3870 net/ipv4/tcp_ipv4.c:1945
 ip_protocol_deliver_rcu+0x5a/0x8e0 net/ipv4/ip_input.c:204
 ip_local_deliver_finish+0x23b/0x390 net/ipv4/ip_input.c:231
 NF_HOOK include/linux/netfilter.h:305 [inline]
 NF_HOOK include/linux/netfilter.h:299 [inline]
 ip_local_deliver+0x1e9/0x520 net/ipv4/ip_input.c:252
 dst_input include/net/dst.h:439 [inline]
 ip_rcv_finish+0x1d9/0x2f0 net/ipv4/ip_input.c:413
 NF_HOOK include/linux/netfilter.h:305 [inline]
 NF_HOOK include/linux/netfilter.h:299 [inline]
 ip_rcv+0xe8/0x3f0 net/ipv4/ip_input.c:523
 __netif_receive_skb_one_core+0x113/0x1a0 net/core/dev.c:5009
 __netif_receive_skb+0x2c/0x1d0 net/core/dev.c:5123
 process_backlog+0x206/0x750 net/core/dev.c:5934
 napi_poll net/core/dev.c:6357 [inline]
 net_rx_action+0x4f5/0x1070 net/core/dev.c:6423
 __do_softirq+0x25c/0x94c kernel/softirq.c:292
 do_softirq_own_stack+0x2a/0x40 arch/x86/entry/entry_64.S:1040
 </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:682 [inline]
 ip_finish_output2+0x93a/0x24b0 net/ipv4/ip_output.c:229
 ip_finish_output+0x729/0xd40 net/ipv4/ip_output.c:315
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip_output+0x21f/0x670 net/ipv4/ip_output.c:403
 dst_output include/net/dst.h:433 [inline]
 ip_local_out+0xbb/0x1b0 net/ipv4/ip_output.c:125
 __ip_queue_xmit+0x86f/0x1bf0 net/ipv4/ip_output.c:503
 ip_queue_xmit+0x5a/0x70 include/net/ip.h:198
 __tcp_transmit_skb+0x1a23/0x3740 net/ipv4/tcp_output.c:1156
 tcp_transmit_skb net/ipv4/tcp_output.c:1172 [inline]
 tcp_send_syn_data net/ipv4/tcp_output.c:3500 [inline]
 tcp_connect+0x1e89/0x42c0 net/ipv4/tcp_output.c:3539
 tcp_v4_connect+0x1514/0x1c40 net/ipv4/tcp_ipv4.c:310
 tcp_v6_connect+0x6da/0x1ff0 net/ipv6/tcp_ipv6.c:245
 __inet_stream_connect+0x834/0xe90 net/ipv4/af_inet.c:655
 tcp_sendmsg_fastopen net/ipv4/tcp.c:1144 [inline]
 tcp_sendmsg_locked+0x2318/0x3920 net/ipv4/tcp.c:1186
 tcp_sendmsg+0x30/0x50 net/ipv4/tcp.c:1420
 inet_sendmsg+0x141/0x5d0 net/ipv4/af_inet.c:798
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg+0xd7/0x130 net/socket.c:665
 ___sys_sendmsg+0x803/0x920 net/socket.c:2286
 __sys_sendmsg+0x105/0x1d0 net/socket.c:2324
 __do_sys_sendmsg net/socket.c:2333 [inline]
 __se_sys_sendmsg net/socket.c:2331 [inline]
 __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2331
 do_syscall_64+0xfd/0x680 arch/x86/entry/common.c:301
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4592c9
Code: fd b7 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f5794cc1c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004592c9
RDX: 0000000024000001 RSI: 0000000020000000 RDI: 0000000000000004
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f5794cc26d4
R13: 00000000004c6f76 R14: 00000000004dc0b0 R15: 00000000ffffffff
Modules linked in:
---[ end trace 2a664e4d5a077776 ]---
RIP: 0010:dev_get_by_index_rcu+0x2e/0x150 net/core/dev.c:836
Code: 41 56 41 55 41 89 f5 41 54 53 48 89 fb e8 0a 6a f0 fb 48 8d bb c8 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 c8 01 00 00 41 0f b6 c5 48
RSP: 0018:ffff8880ae909500 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: 0000ffff8880a64c RCX: ffffffff85ea41bd
RDX: 00001ffff1101502 RSI: ffffffff85805726 RDI: 0000ffff8880a814
RBP: ffff8880ae909520 R08: ffff88808e6e65c0 R09: ffffed1015d26c70
R10: ffffed1015d26c6f R11: ffff8880ae93637b R12: ffff88805e7ff382
R13: 0000000000000001 R14: 0000000000000000 R15: 0000ffff8880a64c
FS:  00007f5794cc2700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fac5603c000 CR3: 0000000057e5a000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600

Crashes (6):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-selinux-root 2019/06/23 06:56 upstream abf02e2964b3 34bf9440 .config console log report
ci-upstream-net-this-kasan-gce 2018/12/31 04:45 net c433570458e4 2b42fdc8 .config console log report
ci-upstream-net-kasan-gce 2019/06/11 01:41 net-next a248384e6420 0159583c .config console log report
ci-upstream-net-kasan-gce 2019/03/21 22:43 net-next 0b03a5ca8b14 dce6e62f .config console log report
ci-upstream-linux-next-kasan-gce-root 2019/03/03 17:51 linux-next c63e9e91a254 1c0e457a .config console log report
ci-upstream-linux-next-kasan-gce-root 2019/02/19 10:47 linux-next 43dc36c945ef 59f36113 .config console log report
* Struck through repros no longer work on HEAD.