syzbot


BUG: unable to handle kernel paging request in sctp_v6_get_dst

Status: closed as invalid on 2019/10/04 04:26
Reported-by: syzbot+ae70faffd84f05295f27@syzkaller.appspotmail.com
First crash: 1323d, last: 1151d

Sample crash report:
BUG: unable to handle page fault for address: ffffffffffffa077
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 8a70067 P4D 8a70067 PUD 8a72067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 4672 Comm: syz-executor.0 Not tainted 5.2.0-rc4+ #52
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:194 [inline]
RIP: 0010:rt6_get_cookie include/net/ip6_fib.h:261 [inline]
RIP: 0010:sctp_v6_get_dst+0x8bf/0x1ce0 net/sctp/ipv6.c:363
Code: 10 ff ff ff 48 8d 78 70 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 bf 12 00 00 48 8b 85 10 ff ff ff <4c> 8b 60 70 e8 58 47 c5 fa 31 ff 89 c3 89 c6 e8 ed 6c d8 fa 85 db
RSP: 0018:ffff8880ae908f50 EFLAGS: 00010246
RAX: ffffffffffffa007 RBX: 0000000000000001 RCX: ffffffff86984585
RDX: 1ffffffffffff40e RSI: ffffffff86984592 RDI: ffffffffffffa077
RBP: ffff8880ae9090a0 R08: ffff88805da3a580 R09: ffffed1015d26be0
R10: ffffed1015d26bdf R11: ffff8880ae935efb R12: ffff888094dfa748
R13: dffffc0000000000 R14: 000000000000000a R15: 000000000000234e
FS:  00007f062a5f4700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffa077 CR3: 000000021ad61000 CR4: 00000000001426e0
Call Trace:
 <IRQ>
 sctp_transport_route+0x12d/0x360 net/sctp/transport.c:297
 sctp_assoc_add_peer+0x53e/0xfc0 net/sctp/associola.c:663
 sctp_process_param net/sctp/sm_make_chunk.c:2522 [inline]
 sctp_process_init+0x2458/0x2ad0 net/sctp/sm_make_chunk.c:2343
 sctp_sf_do_5_1B_init+0x8ba/0xe50 net/sctp/sm_statefuns.c:401
 sctp_do_sm+0x121/0x5190 net/sctp/sm_sideeffect.c:1152
 sctp_endpoint_bh_rcv+0x451/0x950 net/sctp/endpointola.c:443
 sctp_inq_push+0x1e4/0x280 net/sctp/inqueue.c:80
 sctp_rcv+0x282e/0x35e0 net/sctp/input.c:256
 sctp6_rcv+0x17/0x30 net/sctp/ipv6.c:1049
 ip6_protocol_deliver_rcu+0x2fe/0x16c0 net/ipv6/ip6_input.c:397
 ip6_input_finish+0x84/0x170 net/ipv6/ip6_input.c:438
 NF_HOOK include/linux/netfilter.h:305 [inline]
 NF_HOOK include/linux/netfilter.h:299 [inline]
 ip6_input+0xe4/0x3f0 net/ipv6/ip6_input.c:447
 dst_input include/net/dst.h:439 [inline]
 ip6_rcv_finish+0x1de/0x310 net/ipv6/ip6_input.c:76
 NF_HOOK include/linux/netfilter.h:305 [inline]
 NF_HOOK include/linux/netfilter.h:299 [inline]
 ipv6_rcv+0x10e/0x420 net/ipv6/ip6_input.c:272
 __netif_receive_skb_one_core+0x113/0x1a0 net/core/dev.c:4981
 __netif_receive_skb+0x2c/0x1d0 net/core/dev.c:5095
 process_backlog+0x206/0x750 net/core/dev.c:5906
 napi_poll net/core/dev.c:6329 [inline]
 net_rx_action+0x4f5/0x1070 net/core/dev.c:6395
 __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]
 ip6_finish_output2+0x10a0/0x2550 net/ipv6/ip6_output.c:117
 ip6_finish_output+0x56d/0xc20 net/ipv6/ip6_output.c:150
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip6_output+0x235/0x7f0 net/ipv6/ip6_output.c:167
 dst_output include/net/dst.h:433 [inline]
 NF_HOOK include/linux/netfilter.h:305 [inline]
 NF_HOOK include/linux/netfilter.h:299 [inline]
 ip6_xmit+0xe35/0x20b0 net/ipv6/ip6_output.c:271
 sctp_v6_xmit+0x313/0x660 net/sctp/ipv6.c:217
 sctp_packet_transmit+0x1bb8/0x36e0 net/sctp/output.c:626
 sctp_packet_singleton net/sctp/outqueue.c:772 [inline]
 sctp_outq_flush_ctrl.constprop.0+0x73c/0xd30 net/sctp/outqueue.c:903
 sctp_outq_flush+0xe8/0x2780 net/sctp/outqueue.c:1185
 sctp_outq_uncork+0x6c/0x80 net/sctp/outqueue.c:757
 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1781 [inline]
 sctp_side_effects net/sctp/sm_sideeffect.c:1184 [inline]
 sctp_do_sm+0x504/0x5190 net/sctp/sm_sideeffect.c:1155
 sctp_primitive_ASSOCIATE+0x9d/0xd0 net/sctp/primitive.c:73
 __sctp_connect+0x8c3/0xcd0 net/sctp/socket.c:1211
 __sctp_setsockopt_connectx+0x133/0x1a0 net/sctp/socket.c:1334
 sctp_setsockopt_connectx_old net/sctp/socket.c:1350 [inline]
 sctp_setsockopt net/sctp/socket.c:4644 [inline]
 sctp_setsockopt+0x22c0/0x6d10 net/sctp/socket.c:4608
 sock_common_setsockopt+0x94/0xd0 net/core/sock.c:3124
 __sys_setsockopt+0x17a/0x280 net/socket.c:2072
 __do_sys_setsockopt net/socket.c:2083 [inline]
 __se_sys_setsockopt net/socket.c:2080 [inline]
 __x64_sys_setsockopt+0xbe/0x150 net/socket.c:2080
 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:00007f062a5f3c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00000000004592c9
RDX: 000000000000006b RSI: 0000000000000084 RDI: 0000000000000004
RBP: 000000000075bfc8 R08: 000000000000001c R09: 0000000000000000
R10: 000000002055bfe4 R11: 0000000000000246 R12: 00007f062a5f46d4
R13: 00000000004ced98 R14: 00000000004dd4f0 R15: 00000000ffffffff
Modules linked in:
CR2: ffffffffffffa077
---[ end trace ae75bd67d3f51e3a ]---
RIP: 0010:__read_once_size include/linux/compiler.h:194 [inline]
RIP: 0010:rt6_get_cookie include/net/ip6_fib.h:261 [inline]
RIP: 0010:sctp_v6_get_dst+0x8bf/0x1ce0 net/sctp/ipv6.c:363
Code: 10 ff ff ff 48 8d 78 70 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 bf 12 00 00 48 8b 85 10 ff ff ff <4c> 8b 60 70 e8 58 47 c5 fa 31 ff 89 c3 89 c6 e8 ed 6c d8 fa 85 db
RSP: 0018:ffff8880ae908f50 EFLAGS: 00010246
RAX: ffffffffffffa007 RBX: 0000000000000001 RCX: ffffffff86984585
RDX: 1ffffffffffff40e RSI: ffffffff86984592 RDI: ffffffffffffa077
RBP: ffff8880ae9090a0 R08: ffff88805da3a580 R09: ffffed1015d26be0
R10: ffffed1015d26bdf R11: ffff8880ae935efb R12: ffff888094dfa748
R13: dffffc0000000000 R14: 000000000000000a R15: 000000000000234e
FS:  00007f062a5f4700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffa077 CR3: 000000021ad61000 CR4: 00000000001426e0

Crashes (4):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2019/06/16 11:37 upstream e01e060fe00d 442206d7 .config log report
ci-upstream-net-this-kasan-gce 2019/04/17 17:17 net e6986423d283 b0e8efcb .config log report
ci-upstream-net-kasan-gce 2019/06/06 09:16 net-next 8b5e07d7ee95 a547defc .config log report
ci-upstream-net-kasan-gce 2018/12/25 23:14 net-next 90cadbbf341d 8a41a0ad .config log report