syzbot


KMSAN: uninit-value in ip6_dst_lookup_tail

Status: closed as invalid on 2018/09/05 16:40
Subsystems: net
[Documentation on labels]
First crash: 2573d, last: 2573d

Sample crash report:
sctp: [Deprecated]: syz-executor2 (pid 7114) Use of int in max_burst socket option deprecated.
Use struct sctp_assoc_value instead
==================================================================
BUG: KMSAN: uninit-value in ___neigh_lookup_noref include/net/neighbour.h:290 [inline]
BUG: KMSAN: uninit-value in __ipv6_neigh_lookup_noref include/net/ndisc.h:379 [inline]
BUG: KMSAN: uninit-value in ip6_dst_lookup_tail+0x99d/0x1ab0 net/ipv6/ip6_output.c:995
CPU: 1 PID: 7114 Comm: syz-executor2 Not tainted 4.18.0-rc8+ #33
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x17c/0x1c0 lib/dump_stack.c:113
 kmsan_report+0x188/0x2a0 mm/kmsan/kmsan.c:982
 __msan_warning+0x70/0xc0 mm/kmsan/kmsan_instr.c:645
 ___neigh_lookup_noref include/net/neighbour.h:290 [inline]
 __ipv6_neigh_lookup_noref include/net/ndisc.h:379 [inline]
 ip6_dst_lookup_tail+0x99d/0x1ab0 net/ipv6/ip6_output.c:995
 ip6_dst_lookup_flow+0xf8/0x270 net/ipv6/ip6_output.c:1079
 sctp_v6_get_dst+0x5bb/0x1b60 net/sctp/ipv6.c:274
 sctp_transport_route+0x213/0xc10 net/sctp/transport.c:303
 sctp_assoc_add_peer+0x7ea/0x1d30 net/sctp/associola.c:656
 sctp_process_param net/sctp/sm_make_chunk.c:2540 [inline]
 sctp_process_init+0x1853/0x3a40 net/sctp/sm_make_chunk.c:2356
 sctp_sf_do_5_1B_init+0xe4d/0x1b80 net/sctp/sm_statefuns.c:416
 sctp_do_sm+0x295/0x8d30 net/sctp/sm_sideeffect.c:1188
 sctp_endpoint_bh_rcv+0xd4f/0xff0 net/sctp/endpointola.c:456
 sctp_inq_push+0x304/0x430 net/sctp/inqueue.c:95
 sctp_rcv+0x3c62/0x4ba0 net/sctp/input.c:267
 sctp6_rcv+0x41/0x70 net/sctp/ipv6.c:1045
 ip6_input_finish+0xe7a/0x21a0 net/ipv6/ip6_input.c:284
 NF_HOOK include/linux/netfilter.h:287 [inline]
 ip6_input+0x290/0x320 net/ipv6/ip6_input.c:327
 dst_input include/net/dst.h:450 [inline]
 ip6_rcv_finish+0x4d2/0x710 net/ipv6/ip6_input.c:71
 NF_HOOK include/linux/netfilter.h:287 [inline]
 ipv6_rcv+0x1d5e/0x20d0 net/ipv6/ip6_input.c:208
 __netif_receive_skb_core+0x4511/0x49d0 net/core/dev.c:4628
 __netif_receive_skb net/core/dev.c:4693 [inline]
 process_backlog+0x5f1/0xd80 net/core/dev.c:5373
 napi_poll net/core/dev.c:5771 [inline]
 net_rx_action+0x723/0x19d0 net/core/dev.c:5837
 __do_softirq+0x582/0x969 kernel/softirq.c:292
 do_softirq_own_stack+0x49/0x80 arch/x86/entry/entry_64.S:1054
 </IRQ>
 do_softirq kernel/softirq.c:336 [inline]
 __local_bh_enable_ip+0x115/0x140 kernel/softirq.c:189
 local_bh_enable+0x36/0x40 include/linux/bottom_half.h:32
 rcu_read_unlock_bh include/linux/rcupdate.h:725 [inline]
 ip6_finish_output2+0x19ef/0x2160 net/ipv6/ip6_output.c:121
 ip6_finish_output+0xaf3/0xbb0 net/ipv6/ip6_output.c:154
 NF_HOOK_COND include/linux/netfilter.h:276 [inline]
 ip6_output+0x572/0x6a0 net/ipv6/ip6_output.c:171
 dst_output include/net/dst.h:444 [inline]
 NF_HOOK include/linux/netfilter.h:287 [inline]
 ip6_xmit+0x1e1b/0x22f0 net/ipv6/ip6_output.c:277
 sctp_v6_xmit+0x43b/0x550 net/sctp/ipv6.c:225
 sctp_packet_transmit+0x3f63/0x43e0 net/sctp/output.c:650
 sctp_packet_singleton net/sctp/outqueue.c:791 [inline]
 sctp_outq_flush_ctrl net/sctp/outqueue.c:922 [inline]
 sctp_outq_flush+0x8ff/0x56d0 net/sctp/outqueue.c:1203
 sctp_outq_uncork+0xd0/0xf0 net/sctp/outqueue.c:776
 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1820 [inline]
 sctp_side_effects net/sctp/sm_sideeffect.c:1220 [inline]
 sctp_do_sm+0x86f3/0x8d30 net/sctp/sm_sideeffect.c:1191
 sctp_primitive_ASSOCIATE+0x172/0x1a0 net/sctp/primitive.c:88
 sctp_sendmsg_to_asoc+0x182f/0x2640 net/sctp/socket.c:1936
 sctp_sendmsg+0x3bfb/0x5f60 net/sctp/socket.c:2124
 inet_sendmsg+0x49a/0x740 net/ipv4/af_inet.c:798
 sock_sendmsg_nosec net/socket.c:642 [inline]
 sock_sendmsg net/socket.c:652 [inline]
 __sys_sendto+0x6a3/0x7c0 net/socket.c:1798
 __do_sys_sendto net/socket.c:1810 [inline]
 __se_sys_sendto net/socket.c:1806 [inline]
 __x64_sys_sendto+0x1a1/0x210 net/socket.c:1806
 do_syscall_64+0x15b/0x220 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
RIP: 0033:0x457089
Code: fd b4 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 b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 
RSP: 002b:00007f6c7a151c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f6c7a1526d4 RCX: 0000000000457089
RDX: 0000000000000001 RSI: 0000000020000180 RDI: 0000000000000006
RBP: 00000000009300a0 R08: 000000002005ffe4 R09: 000000000000001c
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004d3d20 R14: 00000000004c8999 R15: 0000000000000000

Uninit was created at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:256 [inline]
 kmsan_internal_poison_shadow+0xb8/0x1b0 mm/kmsan/kmsan.c:181
 kmsan_kmalloc+0x98/0x100 mm/kmsan/kmsan_hooks.c:91
 kmsan_slab_alloc+0x10/0x20 mm/kmsan/kmsan_hooks.c:100
 slab_post_alloc_hook mm/slab.h:446 [inline]
 slab_alloc_node mm/slub.c:2720 [inline]
 __kmalloc_node_track_caller+0xb4c/0x11d0 mm/slub.c:4353
 __kmalloc_reserve net/core/skbuff.c:138 [inline]
 __alloc_skb+0x2ce/0x9b0 net/core/skbuff.c:206
 alloc_skb include/linux/skbuff.h:988 [inline]
 new_skb drivers/block/aoe/aoecmd.c:67 [inline]
 aoecmd_cfg_pkts drivers/block/aoe/aoecmd.c:426 [inline]
 aoecmd_cfg+0x203/0xa60 drivers/block/aoe/aoecmd.c:1373
 discover_timer+0x87/0xa0 drivers/block/aoe/aoemain.c:24
 call_timer_fn+0x270/0x5c0 kernel/time/timer.c:1326
 expire_timers kernel/time/timer.c:1363 [inline]
 __run_timers+0xd74/0x1170 kernel/time/timer.c:1666
 run_timer_softirq+0x43/0x70 kernel/time/timer.c:1692
 __do_softirq+0x582/0x969 kernel/softirq.c:292
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/08/11 06:29 https://github.com/google/kmsan.git master 0cc51dc9a291 7a88b141 .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.