[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 18.402305] audit: type=1400 audit(1520572621.274:6): avc: denied { map } for pid=4219 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 18.920876] audit: type=1400 audit(1520572621.792:7): avc: denied { map } for pid=4224 comm="sh" path="/bin/dash" dev="sda1" ino=1473 scontext=system_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Warning: Permanently added '10.128.0.48' (ECDSA) to the list of known hosts. net.ipv6.conf.syz_tun.accept_dad = 0 net.ipv6.conf.syz_tun.router_solicitations = 0 [ 24.750961] audit: type=1400 audit(1520572627.622:8): avc: denied { map } for pid=4236 comm="syzkaller263919" path="/root/syzkaller263919421" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 24.759537] IPVS: ftp: loaded support on port[0] = 21 RTNETLINK answers: File exists RTNETLINK answers: Operation not supported RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported [ 25.037467] IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument [ 25.398726] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 25.404853] 8021q: adding VLAN 0 to HW filter on device bond0 executing program [ 25.444865] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 25.483401] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 25.493592] ================================================================== [ 25.501035] BUG: KASAN: use-after-free in ip6_xmit+0x1f76/0x2260 [ 25.507157] Read of size 8 at addr ffff8801b0698b18 by task syzkaller263919/4237 [ 25.514665] [ 25.516269] CPU: 0 PID: 4237 Comm: syzkaller263919 Not tainted 4.16.0-rc4+ #346 [ 25.523687] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.533023] Call Trace: [ 25.535590] dump_stack+0x194/0x24d [ 25.539197] ? arch_local_irq_restore+0x53/0x53 [ 25.543839] ? show_regs_print_info+0x18/0x18 [ 25.548317] ? ip6_xmit+0x1f76/0x2260 [ 25.552097] print_address_description+0x73/0x250 [ 25.556913] ? ip6_xmit+0x1f76/0x2260 [ 25.560689] kasan_report+0x23c/0x360 [ 25.564465] __asan_report_load8_noabort+0x14/0x20 [ 25.569369] ip6_xmit+0x1f76/0x2260 [ 25.572983] ? ip6_finish_output2+0x23a0/0x23a0 [ 25.577637] ? fl6_update_dst+0x127/0x2b0 [ 25.581772] ? inet6_csk_route_socket+0x691/0xe80 [ 25.586591] ? trace_hardirqs_off+0x10/0x10 [ 25.590895] ? lock_acquire+0x1d5/0x580 [ 25.594843] ? lock_acquire+0x1d5/0x580 [ 25.598791] ? inet6_csk_xmit+0x114/0x580 [ 25.602915] ? trace_hardirqs_off+0x10/0x10 [ 25.607224] ? lock_release+0xa40/0xa40 [ 25.611192] inet6_csk_xmit+0x2fc/0x580 [ 25.615142] ? inet6_csk_update_pmtu+0x160/0x160 [ 25.619874] ? __sk_dst_check+0x1a5/0x380 [ 25.624001] ? sock_kfree_s+0x60/0x60 [ 25.627801] l2tp_xmit_skb+0x105f/0x1410 [ 25.631848] ? l2tp_session_create+0xb80/0xb80 [ 25.636406] ? sock_wmalloc+0x15d/0x1d0 [ 25.640358] ? iov_iter_advance+0x13f0/0x13f0 [ 25.644833] ? pppol2tp_sendmsg+0x41b/0x670 [ 25.649137] pppol2tp_sendmsg+0x470/0x670 [ 25.653266] ? selinux_socket_sendmsg+0x36/0x40 [ 25.657914] ? pppol2tp_getsockopt+0x900/0x900 [ 25.662474] sock_sendmsg+0xca/0x110 [ 25.666169] ___sys_sendmsg+0x767/0x8b0 [ 25.670125] ? copy_msghdr_from_user+0x590/0x590 [ 25.674864] ? __pmd_alloc+0x4e0/0x4e0 [ 25.678741] ? trace_hardirqs_off+0x10/0x10 [ 25.683041] ? find_held_lock+0x35/0x1d0 [ 25.687087] ? __fget_light+0x2b2/0x3c0 [ 25.691041] ? fget_raw+0x20/0x20 [ 25.694485] ? __do_page_fault+0x5f7/0xc90 [ 25.698695] ? lock_downgrade+0x980/0x980 [ 25.702826] __sys_sendmsg+0xe5/0x210 [ 25.706603] ? __sys_sendmsg+0xe5/0x210 [ 25.710557] ? SyS_shutdown+0x290/0x290 [ 25.714517] ? __do_page_fault+0x3d6/0xc90 [ 25.718749] ? move_addr_to_kernel+0x60/0x60 [ 25.723147] SyS_sendmsg+0x2d/0x50 [ 25.726667] ? __sys_sendmsg+0x210/0x210 [ 25.730706] do_syscall_64+0x281/0x940 [ 25.734568] ? __do_page_fault+0xc90/0xc90 [ 25.738777] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.743510] ? syscall_return_slowpath+0x550/0x550 [ 25.748417] ? syscall_return_slowpath+0x2ac/0x550 [ 25.753327] ? prepare_exit_to_usermode+0x350/0x350 [ 25.758336] ? retint_user+0x18/0x18 [ 25.762041] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.766866] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 25.772035] RIP: 0033:0x442119 [ 25.775200] RSP: 002b:00007fff21dc6f08 EFLAGS: 00000217 ORIG_RAX: 000000000000002e [ 25.782883] RAX: ffffffffffffffda RBX: 000000000000001a RCX: 0000000000442119 [ 25.790129] RDX: 0000000000000081 RSI: 000000002037ffc8 RDI: 0000000000000004 [ 25.797373] RBP: 00000000004a3c7c R08: 0000000000000140 R09: 0000000000000140 [ 25.804617] R10: 0000000000000140 R11: 0000000000000217 R12: 00007fff21dc6fe0 [ 25.811862] R13: 0000000000402ea0 R14: 0000000000000000 R15: 0000000000000000 [ 25.819146] [ 25.820763] Allocated by task 4230: [ 25.824363] save_stack+0x43/0xd0 [ 25.827789] kasan_kmalloc+0xad/0xe0 [ 25.831475] kasan_slab_alloc+0x12/0x20 [ 25.835420] kmem_cache_alloc+0x12e/0x760 [ 25.839540] dst_alloc+0x11f/0x1a0 [ 25.843058] rt_dst_alloc+0xe9/0x520 [ 25.846744] ip_route_output_key_hash_rcu+0xa59/0x2f00 [ 25.851995] ip_route_output_key_hash+0x20b/0x370 [ 25.856815] __ip4_datagram_connect+0xa67/0x1240 [ 25.861545] __ip6_datagram_connect+0x749/0x12d0 [ 25.866274] ip6_datagram_connect+0x2f/0x50 [ 25.870583] inet_dgram_connect+0x16b/0x1f0 [ 25.875316] SYSC_connect+0x213/0x4a0 [ 25.879092] SyS_connect+0x24/0x30 [ 25.882604] do_syscall_64+0x281/0x940 [ 25.886464] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 25.891621] [ 25.893223] Freed by task 0: [ 25.896214] save_stack+0x43/0xd0 [ 25.899639] __kasan_slab_free+0x11a/0x170 [ 25.903845] kasan_slab_free+0xe/0x10 [ 25.907621] kmem_cache_free+0x83/0x2a0 [ 25.911581] dst_destroy+0x257/0x370 [ 25.915280] dst_destroy_rcu+0x16/0x20 [ 25.919146] rcu_process_callbacks+0xd6c/0x17f0 [ 25.923797] __do_softirq+0x2d7/0xb85 [ 25.927590] [ 25.929193] The buggy address belongs to the object at ffff8801b0698b00 [ 25.929193] which belongs to the cache ip_dst_cache of size 168 [ 25.941909] The buggy address is located 24 bytes inside of [ 25.941909] 168-byte region [ffff8801b0698b00, ffff8801b0698ba8) [ 25.953672] The buggy address belongs to the page: [ 25.958580] page:ffffea0006c1a600 count:1 mapcount:0 mapping:ffff8801b0698000 index:0xffff8801b0698000 [ 25.968006] flags: 0x2fffc0000000100(slab) [ 25.972223] raw: 02fffc0000000100 ffff8801b0698000 ffff8801b0698000 0000000100000007 [ 25.980089] raw: ffffea00073ca520 ffff8801d6bca438 ffff8801d6bce340 0000000000000000 [ 25.987947] page dumped because: kasan: bad access detected [ 25.993640] [ 25.995239] Memory state around the buggy address: [ 26.000140] ffff8801b0698a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.007493] ffff8801b0698a80: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc [ 26.015000] >ffff8801b0698b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.022353] ^ [ 26.026478] ffff8801b0698b80: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc [ 26.033811] ffff8801b0698c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.041154] ================================================================== [ 26.048493] Disabling lock debugging due to kernel taint [ 26.053971] Kernel panic - not syncing: panic_on_warn set ... [ 26.053971] [ 26.061326] CPU: 0 PID: 4237 Comm: syzkaller263919 Tainted: G B 4.16.0-rc4+ #346 [ 26.070066] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.079399] Call Trace: [ 26.081969] dump_stack+0x194/0x24d [ 26.085568] ? arch_local_irq_restore+0x53/0x53 [ 26.090210] ? kasan_end_report+0x32/0x50 [ 26.094330] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.099057] ? vsnprintf+0x1ed/0x1900 [ 26.102828] ? ip6_xmit+0x1f30/0x2260 [ 26.106601] panic+0x1e4/0x41c [ 26.109766] ? refcount_error_report+0x214/0x214 [ 26.114507] ? add_taint+0x1c/0x50 [ 26.118023] ? add_taint+0x1c/0x50 [ 26.121546] ? ip6_xmit+0x1f76/0x2260 [ 26.125332] kasan_end_report+0x50/0x50 [ 26.129279] kasan_report+0x149/0x360 [ 26.133064] __asan_report_load8_noabort+0x14/0x20 [ 26.137966] ip6_xmit+0x1f76/0x2260 [ 26.141573] ? ip6_finish_output2+0x23a0/0x23a0 [ 26.146214] ? fl6_update_dst+0x127/0x2b0 [ 26.150340] ? inet6_csk_route_socket+0x691/0xe80 [ 26.155156] ? trace_hardirqs_off+0x10/0x10 [ 26.159453] ? lock_acquire+0x1d5/0x580 [ 26.163398] ? lock_acquire+0x1d5/0x580 [ 26.167348] ? inet6_csk_xmit+0x114/0x580 [ 26.171468] ? trace_hardirqs_off+0x10/0x10 [ 26.175762] ? lock_release+0xa40/0xa40 [ 26.179714] inet6_csk_xmit+0x2fc/0x580 [ 26.183660] ? inet6_csk_update_pmtu+0x160/0x160 [ 26.188387] ? __sk_dst_check+0x1a5/0x380 [ 26.192506] ? sock_kfree_s+0x60/0x60 [ 26.196285] l2tp_xmit_skb+0x105f/0x1410 [ 26.200337] ? l2tp_session_create+0xb80/0xb80 [ 26.204898] ? sock_wmalloc+0x15d/0x1d0 [ 26.208852] ? iov_iter_advance+0x13f0/0x13f0 [ 26.213322] ? pppol2tp_sendmsg+0x41b/0x670 [ 26.217614] pppol2tp_sendmsg+0x470/0x670 [ 26.221734] ? selinux_socket_sendmsg+0x36/0x40 [ 26.226374] ? pppol2tp_getsockopt+0x900/0x900 [ 26.230927] sock_sendmsg+0xca/0x110 [ 26.234613] ___sys_sendmsg+0x767/0x8b0 [ 26.238562] ? copy_msghdr_from_user+0x590/0x590 [ 26.243292] ? __pmd_alloc+0x4e0/0x4e0 [ 26.247152] ? trace_hardirqs_off+0x10/0x10 [ 26.251446] ? find_held_lock+0x35/0x1d0 [ 26.255479] ? __fget_light+0x2b2/0x3c0 [ 26.259431] ? fget_raw+0x20/0x20 [ 26.262863] ? __do_page_fault+0x5f7/0xc90 [ 26.267067] ? lock_downgrade+0x980/0x980 [ 26.271202] __sys_sendmsg+0xe5/0x210 [ 26.274984] ? __sys_sendmsg+0xe5/0x210 [ 26.278936] ? SyS_shutdown+0x290/0x290 [ 26.282887] ? __do_page_fault+0x3d6/0xc90 [ 26.287097] ? move_addr_to_kernel+0x60/0x60 [ 26.291482] SyS_sendmsg+0x2d/0x50 [ 26.294994] ? __sys_sendmsg+0x210/0x210 [ 26.299038] do_syscall_64+0x281/0x940 [ 26.302898] ? __do_page_fault+0xc90/0xc90 [ 26.307104] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.311830] ? syscall_return_slowpath+0x550/0x550 [ 26.316729] ? syscall_return_slowpath+0x2ac/0x550 [ 26.321628] ? prepare_exit_to_usermode+0x350/0x350 [ 26.326615] ? retint_user+0x18/0x18 [ 26.330314] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 26.335128] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 26.340290] RIP: 0033:0x442119 [ 26.343451] RSP: 002b:00007fff21dc6f08 EFLAGS: 00000217 ORIG_RAX: 000000000000002e [ 26.351126] RAX: ffffffffffffffda RBX: 000000000000001a RCX: 0000000000442119 [ 26.358368] RDX: 0000000000000081 RSI: 000000002037ffc8 RDI: 0000000000000004 [ 26.365607] RBP: 00000000004a3c7c R08: 0000000000000140 R09: 0000000000000140 [ 26.372855] R10: 0000000000000140 R11: 0000000000000217 R12: 00007fff21dc6fe0 [ 26.380095] R13: 0000000000402ea0 R14: 0000000000000000 R15: 0000000000000000 [ 26.387856] Dumping ftrace buffer: [ 26.391376] (ftrace buffer empty) [ 26.395055] Kernel Offset: disabled [ 26.398650] Rebooting in 86400 seconds..