[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 16.878213] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 25.647915] random: sshd: uninitialized urandom read (32 bytes read) [ 26.067802] random: sshd: uninitialized urandom read (32 bytes read) [ 26.790628] random: sshd: uninitialized urandom read (32 bytes read) [ 26.924382] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.14' (ECDSA) to the list of known hosts. [ 32.369693] random: sshd: uninitialized urandom read (32 bytes read) [ 32.463819] IPVS: ftp: loaded support on port[0] = 21 [ 32.551612] bridge0: port 1(bridge_slave_0) entered blocking state [ 32.557990] bridge0: port 1(bridge_slave_0) entered disabled state [ 32.565245] device bridge_slave_0 entered promiscuous mode [ 32.577179] bridge0: port 2(bridge_slave_1) entered blocking state [ 32.583513] bridge0: port 2(bridge_slave_1) entered disabled state [ 32.590379] device bridge_slave_1 entered promiscuous mode [ 32.602416] IPv6: ADDRCONF(NETDEV_UP): veth0_to_bridge: link is not ready [ 32.615083] IPv6: ADDRCONF(NETDEV_UP): veth1_to_bridge: link is not ready [ 32.644789] bond0: Enslaving bond_slave_0 as an active interface with an up link [ 32.658816] bond0: Enslaving bond_slave_1 as an active interface with an up link [ 32.701424] IPv6: ADDRCONF(NETDEV_UP): team_slave_0: link is not ready [ 32.708394] team0: Port device team_slave_0 added [ 32.719334] IPv6: ADDRCONF(NETDEV_UP): team_slave_1: link is not ready [ 32.726287] team0: Port device team_slave_1 added [ 32.737803] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready RTNETLINK answers: Operation not supported [ 32.751447] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_1: link becomes ready [ 32.764347] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_bridge: link becomes ready [ 32.775667] IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_bridge: link becomes ready RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported [ 32.851533] bridge0: port 2(bridge_slave_1) entered blocking state [ 32.857875] bridge0: port 2(bridge_slave_1) entered forwarding state [ 32.864466] bridge0: port 1(bridge_slave_0) entered blocking state [ 32.870799] bridge0: port 1(bridge_slave_0) entered forwarding state RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument [ 33.142528] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 33.148623] 8021q: adding VLAN 0 to HW filter on device bond0 [ 33.178510] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 33.208823] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 33.216005] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready [ 33.242780] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 33.248849] 8021q: adding VLAN 0 to HW filter on device team0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 33.514309] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 35.389769] ================================================================== [ 35.397179] BUG: KASAN: use-after-free in ip6_hold_safe+0xe6/0x670 [ 35.403493] Read of size 4 at addr ffff8801aea9a880 by task syz-executor129/4829 [ 35.411009] [ 35.412617] CPU: 0 PID: 4829 Comm: syz-executor129 Not tainted 4.18.0-rc7-next-20180802+ #30 [ 35.421165] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.430494] Call Trace: [ 35.433060] dump_stack+0x1c9/0x2b4 [ 35.436665] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.441831] ? printk+0xa7/0xcf [ 35.445088] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.449823] ? ip6_hold_safe+0xe6/0x670 [ 35.453779] print_address_description+0x6c/0x20b [ 35.458599] ? ip6_hold_safe+0xe6/0x670 [ 35.462552] kasan_report.cold.7+0x242/0x30d [ 35.466936] check_memory_region+0x13e/0x1b0 [ 35.471326] kasan_check_read+0x11/0x20 [ 35.475277] ip6_hold_safe+0xe6/0x670 [ 35.479057] ? trace_hardirqs_on+0x10/0x10 [ 35.483274] ? ip6_rt_update_pmtu+0xc0/0xc0 [ 35.487583] ? lock_acquire+0x1e4/0x540 [ 35.491543] ? rt6_find_cached_rt+0x232/0x350 [ 35.496019] ? __rt6_find_exception_rcu+0x510/0x510 [ 35.501017] ? ip6_pol_route+0x2b2/0xd20 [ 35.505056] ip6_pol_route+0x354/0xd20 [ 35.508925] ? ip6_pol_route_lookup+0x1130/0x1130 [ 35.513751] ? trace_hardirqs_on+0x10/0x10 [ 35.517974] ip6_pol_route_output+0x54/0x70 [ 35.522276] fib6_rule_lookup+0x283/0x890 [ 35.526404] ? ip6_pol_route_input+0x80/0x80 [ 35.530789] ? fib6_lookup+0x480/0x480 [ 35.534655] ? __dev_get_by_index+0x1c0/0x1c0 [ 35.539126] ? lock_release+0xa30/0xa30 [ 35.543084] ip6_route_output_flags+0x2c5/0x350 [ 35.547731] ip6_dst_lookup_tail+0x1278/0x1da0 [ 35.552296] ? dst_output+0x180/0x180 [ 35.556073] ? sk_dst_check+0x3d0/0x790 [ 35.560025] ? lock_downgrade+0x8f0/0x8f0 [ 35.564151] ? lock_release+0xa30/0xa30 [ 35.568106] ? sk_dst_check+0x4af/0x790 [ 35.572057] ? sock_def_write_space+0x9d0/0x9d0 [ 35.576705] ip6_dst_lookup_flow+0xc8/0x270 [ 35.581004] ? ip6_dst_lookup+0x60/0x60 [ 35.584978] ip6_sk_dst_lookup_flow+0x5ed/0xc50 [ 35.589628] ? ip6_dst_lookup_flow+0x270/0x270 [ 35.594187] ? trace_hardirqs_on+0x10/0x10 [ 35.598402] udpv6_sendmsg+0x2163/0x36b0 [ 35.602443] ? ip_reply_glue_bits+0xc0/0xc0 [ 35.606745] ? udpv6_queue_rcv_skb+0x15d0/0x15d0 [ 35.611492] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 35.617006] ? rw_copy_check_uvector+0x30d/0x3e0 [ 35.621741] ? lock_acquire+0x1e4/0x540 [ 35.625696] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 35.631212] ? import_iovec+0x269/0x470 [ 35.635165] ? dup_iter+0x270/0x270 [ 35.638775] inet_sendmsg+0x1a1/0x690 [ 35.642554] ? udpv6_queue_rcv_skb+0x15d0/0x15d0 [ 35.647287] ? inet_sendmsg+0x1a1/0x690 [ 35.651241] ? copy_msghdr_from_user+0x3c4/0x580 [ 35.655991] ? ipip_gro_receive+0x100/0x100 [ 35.660293] ? move_addr_to_kernel.part.18+0x100/0x100 [ 35.665550] ? security_socket_sendmsg+0x94/0xc0 [ 35.670281] ? ipip_gro_receive+0x100/0x100 [ 35.674587] sock_sendmsg+0xd5/0x120 [ 35.678282] ___sys_sendmsg+0x51d/0x930 [ 35.682242] ? copy_msghdr_from_user+0x580/0x580 [ 35.686986] ? __fget_light+0x2f7/0x440 [ 35.690940] ? fget_raw+0x20/0x20 [ 35.694383] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 35.699897] ? sockfd_lookup_light+0xc5/0x160 [ 35.704372] __sys_sendmmsg+0x240/0x6f0 [ 35.708329] ? __ia32_sys_sendmsg+0xb0/0xb0 [ 35.712637] ? finish_task_switch+0x1d3/0x870 [ 35.717110] ? lock_downgrade+0x8f0/0x8f0 [ 35.721238] ? finish_task_switch+0x18a/0x870 [ 35.725713] ? kasan_check_read+0x11/0x20 [ 35.730066] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.734453] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.739017] __x64_sys_sendmmsg+0x9d/0x100 [ 35.743235] do_syscall_64+0x1b9/0x820 [ 35.747101] ? finish_task_switch+0x1d3/0x870 [ 35.751574] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.756486] ? syscall_return_slowpath+0x31d/0x5e0 [ 35.761394] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.766389] ? __switch_to_asm+0x34/0x70 [ 35.770427] ? __switch_to_asm+0x34/0x70 [ 35.774467] ? __switch_to_asm+0x40/0x70 [ 35.778506] ? __switch_to_asm+0x34/0x70 [ 35.782549] ? __switch_to_asm+0x40/0x70 [ 35.786589] ? __switch_to_asm+0x34/0x70 [ 35.790626] ? __switch_to_asm+0x40/0x70 [ 35.794669] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.799493] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.804661] RIP: 0033:0x446a29 [ 35.807833] Code: e8 ac b8 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 eb 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 35.826709] RSP: 002b:00007f4de5532db8 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 [ 35.834395] RAX: ffffffffffffffda RBX: 00000000006dcc38 RCX: 0000000000446a29 [ 35.841641] RDX: 00000000000000b8 RSI: 0000000020001b00 RDI: 0000000000000003 [ 35.848887] RBP: 00000000006dcc30 R08: 00007f4de5533700 R09: 0000000000000000 [ 35.856135] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dcc3c [ 35.863380] R13: 00007ffe2b830fdf R14: 00007f4de55339c0 R15: 0000000000000001 [ 35.870628] [ 35.872232] Allocated by task 4576: [ 35.875837] save_stack+0x43/0xd0 [ 35.879265] kasan_kmalloc+0xc4/0xe0 [ 35.882963] kasan_slab_alloc+0x12/0x20 [ 35.886918] kmem_cache_alloc+0x12e/0x760 [ 35.891045] dst_alloc+0xbb/0x1d0 [ 35.894479] ip6_dst_alloc+0x35/0xa0 [ 35.898168] ip6_pol_route+0x6e4/0xd20 [ 35.902031] ip6_pol_route_output+0x54/0x70 [ 35.906327] fib6_rule_lookup+0x283/0x890 [ 35.910450] ip6_route_output_flags+0x2c5/0x350 [ 35.915097] ip6_dst_lookup_tail+0xe3f/0x1da0 [ 35.919571] ip6_dst_lookup_flow+0xc8/0x270 [ 35.923872] ip6_datagram_dst_update+0x75b/0xf80 [ 35.928605] __ip6_datagram_connect+0x5fe/0x1470 [ 35.933339] ip6_datagram_connect+0x2f/0x50 [ 35.937636] inet_dgram_connect+0x154/0x2e0 [ 35.941938] __sys_connect+0x37d/0x4c0 [ 35.945810] __x64_sys_connect+0x73/0xb0 [ 35.949849] do_syscall_64+0x1b9/0x820 [ 35.953716] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.958877] [ 35.960483] Freed by task 4828: [ 35.963738] save_stack+0x43/0xd0 [ 35.967169] __kasan_slab_free+0x11a/0x170 [ 35.971381] kasan_slab_free+0xe/0x10 [ 35.975159] kmem_cache_free+0x86/0x2d0 [ 35.979110] dst_destroy+0x267/0x3c0 [ 35.982802] dst_destroy_rcu+0x16/0x20 [ 35.986666] rcu_process_callbacks+0xf98/0x2860 [ 35.991310] __do_softirq+0x2e8/0xb17 [ 35.995082] [ 35.996688] The buggy address belongs to the object at ffff8801aea9a840 [ 35.996688] which belongs to the cache ip6_dst_cache of size 240 [ 36.009495] The buggy address is located 64 bytes inside of [ 36.009495] 240-byte region [ffff8801aea9a840, ffff8801aea9a930) [ 36.021255] The buggy address belongs to the page: [ 36.026171] page:ffffea0006baa680 count:1 mapcount:0 mapping:ffff8801cdeb2c40 index:0x0 [ 36.034289] flags: 0x2fffc0000000100(slab) [ 36.038505] raw: 02fffc0000000100 ffffea00075dfb48 ffffea00074cf048 ffff8801cdeb2c40 [ 36.046364] raw: 0000000000000000 ffff8801aea9a0c0 000000010000000c 0000000000000000 [ 36.054219] page dumped because: kasan: bad access detected [ 36.059900] [ 36.061501] Memory state around the buggy address: [ 36.066406] ffff8801aea9a780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc [ 36.073739] ffff8801aea9a800: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 36.081075] >ffff8801aea9a880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.088405] ^ [ 36.091747] ffff8801aea9a900: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc [ 36.099084] ffff8801aea9a980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.106414] ================================================================== [ 36.113790] Kernel panic - not syncing: panic_on_warn set ... [ 36.113790] [ 36.121144] CPU: 0 PID: 4829 Comm: syz-executor129 Tainted: G B 4.18.0-rc7-next-20180802+ #30 [ 36.131084] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.140413] Call Trace: [ 36.142986] dump_stack+0x1c9/0x2b4 [ 36.146594] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.151763] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.156503] panic+0x238/0x4e7 [ 36.159673] ? add_taint.cold.5+0x16/0x16 [ 36.163802] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.168199] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.172682] ? ip6_hold_safe+0xe6/0x670 [ 36.176635] kasan_end_report+0x47/0x4f [ 36.180588] kasan_report.cold.7+0x76/0x30d [ 36.184888] check_memory_region+0x13e/0x1b0 [ 36.189284] kasan_check_read+0x11/0x20 [ 36.193237] ip6_hold_safe+0xe6/0x670 [ 36.197020] ? trace_hardirqs_on+0x10/0x10 [ 36.201234] ? ip6_rt_update_pmtu+0xc0/0xc0 [ 36.205534] ? lock_acquire+0x1e4/0x540 [ 36.209489] ? rt6_find_cached_rt+0x232/0x350 [ 36.213973] ? __rt6_find_exception_rcu+0x510/0x510 [ 36.218981] ? ip6_pol_route+0x2b2/0xd20 [ 36.223030] ip6_pol_route+0x354/0xd20 [ 36.226901] ? ip6_pol_route_lookup+0x1130/0x1130 [ 36.231722] ? trace_hardirqs_on+0x10/0x10 [ 36.235942] ip6_pol_route_output+0x54/0x70 [ 36.240251] fib6_rule_lookup+0x283/0x890 [ 36.244379] ? ip6_pol_route_input+0x80/0x80 [ 36.248766] ? fib6_lookup+0x480/0x480 [ 36.252632] ? __dev_get_by_index+0x1c0/0x1c0 [ 36.257106] ? lock_release+0xa30/0xa30 [ 36.261064] ip6_route_output_flags+0x2c5/0x350 [ 36.265716] ip6_dst_lookup_tail+0x1278/0x1da0 [ 36.270282] ? dst_output+0x180/0x180 [ 36.274063] ? sk_dst_check+0x3d0/0x790 [ 36.278017] ? lock_downgrade+0x8f0/0x8f0 [ 36.282147] ? lock_release+0xa30/0xa30 [ 36.286102] ? sk_dst_check+0x4af/0x790 [ 36.290055] ? sock_def_write_space+0x9d0/0x9d0 [ 36.294704] ip6_dst_lookup_flow+0xc8/0x270 [ 36.299004] ? ip6_dst_lookup+0x60/0x60 [ 36.302969] ip6_sk_dst_lookup_flow+0x5ed/0xc50 [ 36.307633] ? ip6_dst_lookup_flow+0x270/0x270 [ 36.312199] ? trace_hardirqs_on+0x10/0x10 [ 36.316417] udpv6_sendmsg+0x2163/0x36b0 [ 36.320459] ? ip_reply_glue_bits+0xc0/0xc0 [ 36.324760] ? udpv6_queue_rcv_skb+0x15d0/0x15d0 [ 36.329505] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 36.335020] ? rw_copy_check_uvector+0x30d/0x3e0 [ 36.339757] ? lock_acquire+0x1e4/0x540 [ 36.343712] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 36.349233] ? import_iovec+0x269/0x470 [ 36.353190] ? dup_iter+0x270/0x270 [ 36.356797] inet_sendmsg+0x1a1/0x690 [ 36.360578] ? udpv6_queue_rcv_skb+0x15d0/0x15d0 [ 36.365310] ? inet_sendmsg+0x1a1/0x690 [ 36.369263] ? copy_msghdr_from_user+0x3c4/0x580 [ 36.374000] ? ipip_gro_receive+0x100/0x100 [ 36.378302] ? move_addr_to_kernel.part.18+0x100/0x100 [ 36.383563] ? security_socket_sendmsg+0x94/0xc0 [ 36.388301] ? ipip_gro_receive+0x100/0x100 [ 36.392602] sock_sendmsg+0xd5/0x120 [ 36.396295] ___sys_sendmsg+0x51d/0x930 [ 36.400264] ? copy_msghdr_from_user+0x580/0x580 [ 36.405004] ? __fget_light+0x2f7/0x440 [ 36.408961] ? fget_raw+0x20/0x20 [ 36.412408] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 36.417925] ? sockfd_lookup_light+0xc5/0x160 [ 36.422400] __sys_sendmmsg+0x240/0x6f0 [ 36.426368] ? __ia32_sys_sendmsg+0xb0/0xb0 [ 36.430676] ? finish_task_switch+0x1d3/0x870 [ 36.435151] ? lock_downgrade+0x8f0/0x8f0 [ 36.439279] ? finish_task_switch+0x18a/0x870 [ 36.443755] ? kasan_check_read+0x11/0x20 [ 36.447880] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.452265] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.456826] __x64_sys_sendmmsg+0x9d/0x100 [ 36.461043] do_syscall_64+0x1b9/0x820 [ 36.464906] ? finish_task_switch+0x1d3/0x870 [ 36.469380] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.474287] ? syscall_return_slowpath+0x31d/0x5e0 [ 36.479193] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.484191] ? __switch_to_asm+0x34/0x70 [ 36.488235] ? __switch_to_asm+0x34/0x70 [ 36.492279] ? __switch_to_asm+0x40/0x70 [ 36.496317] ? __switch_to_asm+0x34/0x70 [ 36.500357] ? __switch_to_asm+0x40/0x70 [ 36.504394] ? __switch_to_asm+0x34/0x70 [ 36.508433] ? __switch_to_asm+0x40/0x70 [ 36.512474] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.517299] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.522465] RIP: 0033:0x446a29 [ 36.525641] Code: e8 ac b8 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 eb 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 36.544519] RSP: 002b:00007f4de5532db8 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 [ 36.552208] RAX: ffffffffffffffda RBX: 00000000006dcc38 RCX: 0000000000446a29 [ 36.559457] RDX: 00000000000000b8 RSI: 0000000020001b00 RDI: 0000000000000003 [ 36.566705] RBP: 00000000006dcc30 R08: 00007f4de5533700 R09: 0000000000000000 [ 36.573956] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dcc3c [ 36.581212] R13: 00007ffe2b830fdf R14: 00007f4de55339c0 R15: 0000000000000001 [ 36.588863] Dumping ftrace buffer: [ 36.592382] (ftrace buffer empty) [ 36.596078] Kernel Offset: disabled [ 36.599684] Rebooting in 86400 seconds..