[....] Starting enhanced syslogd: rsyslogd[ 15.603874] audit: type=1400 audit(1520401253.637:5): avc: denied { syslog } for pid=3872 comm="rsyslogd" capability=34 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 [?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 18.906814] audit: type=1400 audit(1520401256.940:6): avc: denied { map } for pid=4013 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 Warning: Permanently added '10.128.0.45' (ECDSA) to the list of known hosts. [ 25.237541] audit: type=1400 audit(1520401263.271:7): avc: denied { map } for pid=4027 comm="syzkaller793936" path="/root/syzkaller793936682" 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 [ 25.249520] IPVS: ftp: loaded support on port[0] = 21 net.ipv6.conf.syz_tun.accept_dad = 0 net.ipv6.conf.syz_tun.router_solicitations = 0 [ 25.263496] audit: type=1400 audit(1520401263.275:8): avc: denied { sys_admin } for pid=4027 comm="syzkaller793936" capability=21 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 [ 25.312553] audit: type=1400 audit(1520401263.346:9): avc: denied { net_admin } for pid=4028 comm="syzkaller793936" capability=12 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 [ 25.385221] ip (4044) used greatest stack depth: 16376 bytes left RTNETLINK answers: File exists RTNETLINK answers: Operation not supported RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported [ 25.556375] IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument [ 25.911712] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 25.917820] 8021q: adding VLAN 0 to HW filter on device bond0 executing program [ 25.956749] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 25.996008] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 26.007533] audit: type=1400 audit(1520401264.041:10): avc: denied { sys_chroot } for pid=4028 comm="syzkaller793936" capability=18 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 [ 26.013137] ================================================================== [ 26.039540] BUG: KASAN: use-after-free in ip6_xmit+0x1f76/0x2260 [ 26.045658] Read of size 8 at addr ffff8801d3a42c18 by task syzkaller793936/4028 [ 26.053158] [ 26.054761] CPU: 1 PID: 4028 Comm: syzkaller793936 Not tainted 4.16.0-rc4+ #254 [ 26.062181] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.071510] Call Trace: [ 26.074079] dump_stack+0x194/0x24d [ 26.077680] ? arch_local_irq_restore+0x53/0x53 [ 26.082321] ? show_regs_print_info+0x18/0x18 [ 26.086798] ? ip6_xmit+0x1f76/0x2260 [ 26.090574] print_address_description+0x73/0x250 [ 26.095390] ? ip6_xmit+0x1f76/0x2260 [ 26.099162] kasan_report+0x23c/0x360 [ 26.102947] __asan_report_load8_noabort+0x14/0x20 [ 26.107848] ip6_xmit+0x1f76/0x2260 [ 26.111458] ? ip6_finish_output2+0x23d0/0x23d0 [ 26.116629] ? fl6_update_dst+0x127/0x2b0 [ 26.120754] ? inet6_csk_route_socket+0x691/0xe80 [ 26.125572] ? trace_hardirqs_off+0x10/0x10 [ 26.129867] ? lock_acquire+0x1d5/0x580 [ 26.133810] ? lock_acquire+0x1d5/0x580 [ 26.137758] ? inet6_csk_xmit+0x114/0x580 [ 26.141888] ? trace_hardirqs_off+0x10/0x10 [ 26.146187] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.150927] ? lock_release+0xa40/0xa40 [ 26.154899] inet6_csk_xmit+0x2fc/0x580 [ 26.158850] ? inet6_csk_update_pmtu+0x160/0x160 [ 26.163579] ? __sk_dst_check+0x1a5/0x380 [ 26.167703] ? sock_kzfree_s+0x60/0x60 [ 26.171578] l2tp_xmit_skb+0x105f/0x1410 [ 26.175619] ? l2tp_session_create+0xb80/0xb80 [ 26.180174] ? sock_wmalloc+0x15d/0x1d0 [ 26.184135] ? iov_iter_advance+0x13f0/0x13f0 [ 26.188627] ? pppol2tp_sendmsg+0x41b/0x670 [ 26.192951] pppol2tp_sendmsg+0x470/0x670 [ 26.197098] ? selinux_socket_sendmsg+0x36/0x40 [ 26.201765] ? pppol2tp_getsockopt+0x900/0x900 [ 26.206344] sock_sendmsg+0xca/0x110 [ 26.210058] ___sys_sendmsg+0x767/0x8b0 [ 26.214034] ? copy_msghdr_from_user+0x590/0x590 [ 26.218787] ? __pmd_alloc+0x4e0/0x4e0 [ 26.222652] ? selinux_socket_connect+0x311/0x730 [ 26.227475] ? trace_hardirqs_off+0x10/0x10 [ 26.231769] ? find_held_lock+0x35/0x1d0 [ 26.235808] ? __fget_light+0x2b2/0x3c0 [ 26.239757] ? fget_raw+0x20/0x20 [ 26.243201] ? __do_page_fault+0x5f7/0xc90 [ 26.247411] ? lock_downgrade+0x980/0x980 [ 26.251549] __sys_sendmsg+0xe5/0x210 [ 26.255324] ? __sys_sendmsg+0xe5/0x210 [ 26.259270] ? SyS_shutdown+0x290/0x290 [ 26.263225] ? __do_page_fault+0x3d6/0xc90 [ 26.267445] ? move_addr_to_kernel+0x60/0x60 [ 26.271836] SyS_sendmsg+0x2d/0x50 [ 26.275349] ? __sys_sendmsg+0x210/0x210 [ 26.279384] do_syscall_64+0x281/0x940 [ 26.283251] ? __do_page_fault+0xc90/0xc90 [ 26.287462] ? _raw_spin_unlock_irq+0x27/0x70 [ 26.291935] ? finish_task_switch+0x1c1/0x7e0 [ 26.296409] ? syscall_return_slowpath+0x550/0x550 [ 26.301323] ? syscall_return_slowpath+0x2ac/0x550 [ 26.306226] ? prepare_exit_to_usermode+0x350/0x350 [ 26.311218] ? retint_user+0x18/0x18 [ 26.314907] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 26.319726] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 26.324891] RIP: 0033:0x441ca9 [ 26.328054] RSP: 002b:00000000007dfea8 EFLAGS: 00000217 ORIG_RAX: 000000000000002e [ 26.335733] RAX: ffffffffffffffda RBX: 000000000000001a RCX: 0000000000441ca9 [ 26.342974] RDX: 0000000000000081 RSI: 000000002037ffc8 RDI: 0000000000000004 [ 26.350215] RBP: 00000000004a3cc6 R08: 0000000120080522 R09: 0000000120080522 [ 26.357455] R10: 0000000120080522 R11: 0000000000000217 R12: 00000000007dff70 [ 26.364695] R13: 0000000000402ce0 R14: 0000000000000000 R15: 0000000000000000 [ 26.371956] [ 26.373557] Allocated by task 4024: [ 26.377243] save_stack+0x43/0xd0 [ 26.380668] kasan_kmalloc+0xad/0xe0 [ 26.384352] kasan_slab_alloc+0x12/0x20 [ 26.388297] kmem_cache_alloc+0x12e/0x760 [ 26.392421] dst_alloc+0x11f/0x1a0 [ 26.395934] rt_dst_alloc+0xe9/0x4e0 [ 26.399617] ip_route_output_key_hash_rcu+0xa59/0x2fe0 [ 26.404862] ip_route_output_key_hash+0x20b/0x370 [ 26.409676] __ip4_datagram_connect+0xa67/0x1240 [ 26.414404] __ip6_datagram_connect+0x749/0x12d0 [ 26.419132] ip6_datagram_connect+0x2f/0x50 [ 26.423425] inet_dgram_connect+0x16b/0x1f0 [ 26.427719] SYSC_connect+0x213/0x4a0 [ 26.431489] SyS_connect+0x24/0x30 [ 26.435004] do_syscall_64+0x281/0x940 [ 26.438873] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 26.444031] [ 26.445629] Freed by task 16: [ 26.448707] save_stack+0x43/0xd0 [ 26.452131] __kasan_slab_free+0x11a/0x170 [ 26.456338] kasan_slab_free+0xe/0x10 [ 26.460111] kmem_cache_free+0x83/0x2a0 [ 26.464059] dst_destroy+0x257/0x370 [ 26.467741] dst_destroy_rcu+0x16/0x20 [ 26.471603] rcu_process_callbacks+0xd6c/0x17f0 [ 26.476245] __do_softirq+0x2d7/0xb85 [ 26.480015] [ 26.481619] The buggy address belongs to the object at ffff8801d3a42c00 [ 26.481619] which belongs to the cache ip_dst_cache of size 160 [ 26.494332] The buggy address is located 24 bytes inside of [ 26.494332] 160-byte region [ffff8801d3a42c00, ffff8801d3a42ca0) [ 26.506098] The buggy address belongs to the page: [ 26.510998] page:ffffea00074e9080 count:1 mapcount:0 mapping:ffff8801d3a42000 index:0xffff8801d3a42000 [ 26.520420] flags: 0x2fffc0000000100(slab) [ 26.524625] raw: 02fffc0000000100 ffff8801d3a42000 ffff8801d3a42000 0000000100000009 [ 26.532478] raw: ffffea000731fd20 ffff8801d5b68738 ffff8801d5b6d800 0000000000000000 [ 26.540328] page dumped because: kasan: bad access detected [ 26.546005] [ 26.547608] Memory state around the buggy address: [ 26.552509] ffff8801d3a42b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.559840] ffff8801d3a42b80: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc [ 26.567169] >ffff8801d3a42c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.574496] ^ [ 26.578614] ffff8801d3a42c80: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc [ 26.585941] ffff8801d3a42d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.593272] ================================================================== [ 26.600601] Disabling lock debugging due to kernel taint [ 26.606068] Kernel panic - not syncing: panic_on_warn set ... [ 26.606068] [ 26.613411] CPU: 1 PID: 4028 Comm: syzkaller793936 Tainted: G B 4.16.0-rc4+ #254 [ 26.622130] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.631452] Call Trace: [ 26.634021] dump_stack+0x194/0x24d [ 26.637625] ? arch_local_irq_restore+0x53/0x53 [ 26.642266] ? kasan_end_report+0x32/0x50 [ 26.646388] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.651113] ? vsnprintf+0x1ed/0x1900 [ 26.654886] ? ip6_xmit+0x1ec0/0x2260 [ 26.658660] panic+0x1e4/0x41c [ 26.661832] ? refcount_error_report+0x214/0x214 [ 26.666559] ? add_taint+0x1c/0x50 [ 26.670070] ? add_taint+0x1c/0x50 [ 26.673581] ? ip6_xmit+0x1f76/0x2260 [ 26.677350] kasan_end_report+0x50/0x50 [ 26.681293] kasan_report+0x149/0x360 [ 26.685065] __asan_report_load8_noabort+0x14/0x20 [ 26.689973] ip6_xmit+0x1f76/0x2260 [ 26.693579] ? ip6_finish_output2+0x23d0/0x23d0 [ 26.698220] ? fl6_update_dst+0x127/0x2b0 [ 26.702341] ? inet6_csk_route_socket+0x691/0xe80 [ 26.707168] ? trace_hardirqs_off+0x10/0x10 [ 26.711459] ? lock_acquire+0x1d5/0x580 [ 26.715401] ? lock_acquire+0x1d5/0x580 [ 26.719346] ? inet6_csk_xmit+0x114/0x580 [ 26.723466] ? trace_hardirqs_off+0x10/0x10 [ 26.727759] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.732485] ? lock_release+0xa40/0xa40 [ 26.736436] inet6_csk_xmit+0x2fc/0x580 [ 26.740380] ? inet6_csk_update_pmtu+0x160/0x160 [ 26.745109] ? __sk_dst_check+0x1a5/0x380 [ 26.749229] ? sock_kzfree_s+0x60/0x60 [ 26.753104] l2tp_xmit_skb+0x105f/0x1410 [ 26.757146] ? l2tp_session_create+0xb80/0xb80 [ 26.761698] ? sock_wmalloc+0x15d/0x1d0 [ 26.765644] ? iov_iter_advance+0x13f0/0x13f0 [ 26.770111] ? pppol2tp_sendmsg+0x41b/0x670 [ 26.774405] pppol2tp_sendmsg+0x470/0x670 [ 26.778528] ? selinux_socket_sendmsg+0x36/0x40 [ 26.783169] ? pppol2tp_getsockopt+0x900/0x900 [ 26.787720] sock_sendmsg+0xca/0x110 [ 26.791404] ___sys_sendmsg+0x767/0x8b0 [ 26.795351] ? copy_msghdr_from_user+0x590/0x590 [ 26.800082] ? __pmd_alloc+0x4e0/0x4e0 [ 26.803948] ? selinux_socket_connect+0x311/0x730 [ 26.808767] ? trace_hardirqs_off+0x10/0x10 [ 26.813058] ? find_held_lock+0x35/0x1d0 [ 26.817098] ? __fget_light+0x2b2/0x3c0 [ 26.821043] ? fget_raw+0x20/0x20 [ 26.824477] ? __do_page_fault+0x5f7/0xc90 [ 26.828680] ? lock_downgrade+0x980/0x980 [ 26.832802] __sys_sendmsg+0xe5/0x210 [ 26.836573] ? __sys_sendmsg+0xe5/0x210 [ 26.840516] ? SyS_shutdown+0x290/0x290 [ 26.844465] ? __do_page_fault+0x3d6/0xc90 [ 26.848673] ? move_addr_to_kernel+0x60/0x60 [ 26.853053] SyS_sendmsg+0x2d/0x50 [ 26.856562] ? __sys_sendmsg+0x210/0x210 [ 26.860592] do_syscall_64+0x281/0x940 [ 26.864450] ? __do_page_fault+0xc90/0xc90 [ 26.868656] ? _raw_spin_unlock_irq+0x27/0x70 [ 26.873123] ? finish_task_switch+0x1c1/0x7e0 [ 26.877588] ? syscall_return_slowpath+0x550/0x550 [ 26.882486] ? syscall_return_slowpath+0x2ac/0x550 [ 26.887384] ? prepare_exit_to_usermode+0x350/0x350 [ 26.892369] ? retint_user+0x18/0x18 [ 26.896057] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 26.900875] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 26.906035] RIP: 0033:0x441ca9 [ 26.909197] RSP: 002b:00000000007dfea8 EFLAGS: 00000217 ORIG_RAX: 000000000000002e [ 26.916874] RAX: ffffffffffffffda RBX: 000000000000001a RCX: 0000000000441ca9 [ 26.924114] RDX: 0000000000000081 RSI: 000000002037ffc8 RDI: 0000000000000004 [ 26.931353] RBP: 00000000004a3cc6 R08: 0000000120080522 R09: 0000000120080522 [ 26.938593] R10: 0000000120080522 R11: 0000000000000217 R12: 00000000007dff70 [ 26.945831] R13: 0000000000402ce0 R14: 0000000000000000 R15: 0000000000000000 [ 26.953495] Dumping ftrace buffer: [ 26.957013] (ftrace buffer empty) [ 26.960692] Kernel Offset: disabled [ 26.964300] Rebooting in 86400 seconds..