[....] Starting enhanced syslogd: rsyslogd[ 15.342375] audit: type=1400 audit(1520402166.464:5): avc: denied { syslog } for pid=4021 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.874963] audit: type=1400 audit(1520402169.996:6): avc: denied { map } for pid=4162 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.58' (ECDSA) to the list of known hosts. [ 25.181066] audit: type=1400 audit(1520402176.302:7): avc: denied { map } for pid=4175 comm="syzkaller293741" path="/root/syzkaller293741018" 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.192336] 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.207050] audit: type=1400 audit(1520402176.303:8): avc: denied { sys_admin } for pid=4175 comm="syzkaller293741" 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.241894] audit: type=1400 audit(1520402176.363:9): avc: denied { net_admin } for pid=4176 comm="syzkaller293741" 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 RTNETLINK answers: File exists RTNETLINK answers: Operation not supported RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported [ 25.483473] 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.839868] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 25.845963] 8021q: adding VLAN 0 to HW filter on device bond0 executing program [ 25.882690] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 25.919960] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 25.934534] audit: type=1400 audit(1520402177.056:10): avc: denied { sys_chroot } for pid=4176 comm="syzkaller293741" 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 [ 25.939523] ================================================================== [ 25.966476] BUG: KASAN: use-after-free in ip6_xmit+0x1f76/0x2260 [ 25.972605] Read of size 8 at addr ffff8801cb4a1a18 by task syzkaller293741/4176 [ 25.980104] [ 25.981707] CPU: 0 PID: 4176 Comm: syzkaller293741 Not tainted 4.16.0-rc4+ #343 [ 25.989118] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.998440] Call Trace: [ 26.001004] dump_stack+0x194/0x24d [ 26.004611] ? arch_local_irq_restore+0x53/0x53 [ 26.009249] ? show_regs_print_info+0x18/0x18 [ 26.013721] ? ip6_xmit+0x1f76/0x2260 [ 26.017494] print_address_description+0x73/0x250 [ 26.022309] ? ip6_xmit+0x1f76/0x2260 [ 26.026078] kasan_report+0x23c/0x360 [ 26.029850] __asan_report_load8_noabort+0x14/0x20 [ 26.034750] ip6_xmit+0x1f76/0x2260 [ 26.038359] ? ip6_finish_output2+0x23a0/0x23a0 [ 26.042999] ? fl6_update_dst+0x127/0x2b0 [ 26.047125] ? inet6_csk_route_socket+0x691/0xe80 [ 26.051939] ? trace_hardirqs_off+0x10/0x10 [ 26.056230] ? lock_acquire+0x1d5/0x580 [ 26.060173] ? lock_acquire+0x1d5/0x580 [ 26.064115] ? inet6_csk_xmit+0x114/0x580 [ 26.068235] ? trace_hardirqs_off+0x10/0x10 [ 26.072531] ? lock_release+0xa40/0xa40 [ 26.076491] inet6_csk_xmit+0x2fc/0x580 [ 26.080435] ? inet6_csk_update_pmtu+0x160/0x160 [ 26.085161] ? __sk_dst_check+0x1a5/0x380 [ 26.089284] ? sock_kfree_s+0x60/0x60 [ 26.093071] l2tp_xmit_skb+0x105f/0x1410 [ 26.097112] ? l2tp_session_create+0xb80/0xb80 [ 26.101663] ? sock_wmalloc+0x15d/0x1d0 [ 26.105609] ? iov_iter_advance+0x13f0/0x13f0 [ 26.110076] ? pppol2tp_sendmsg+0x41b/0x670 [ 26.114370] pppol2tp_sendmsg+0x470/0x670 [ 26.118493] ? selinux_socket_sendmsg+0x36/0x40 [ 26.123132] ? pppol2tp_getsockopt+0x900/0x900 [ 26.127684] sock_sendmsg+0xca/0x110 [ 26.131369] ___sys_sendmsg+0x767/0x8b0 [ 26.135320] ? copy_msghdr_from_user+0x590/0x590 [ 26.140051] ? __pmd_alloc+0x4e0/0x4e0 [ 26.143916] ? selinux_socket_connect+0x311/0x730 [ 26.148732] ? trace_hardirqs_off+0x10/0x10 [ 26.153029] ? find_held_lock+0x35/0x1d0 [ 26.157073] ? __fget_light+0x2b2/0x3c0 [ 26.161026] ? fget_raw+0x20/0x20 [ 26.164469] ? __do_page_fault+0x5f7/0xc90 [ 26.168677] ? lock_downgrade+0x980/0x980 [ 26.172806] __sys_sendmsg+0xe5/0x210 [ 26.176578] ? __sys_sendmsg+0xe5/0x210 [ 26.180524] ? SyS_shutdown+0x290/0x290 [ 26.184478] ? __do_page_fault+0x3d6/0xc90 [ 26.188692] ? move_addr_to_kernel+0x60/0x60 [ 26.193075] SyS_sendmsg+0x2d/0x50 [ 26.196585] ? __sys_sendmsg+0x210/0x210 [ 26.200620] do_syscall_64+0x281/0x940 [ 26.204476] ? __do_page_fault+0xc90/0xc90 [ 26.208679] ? _raw_spin_unlock_irq+0x27/0x70 [ 26.213145] ? finish_task_switch+0x1c1/0x7e0 [ 26.217611] ? syscall_return_slowpath+0x550/0x550 [ 26.222513] ? syscall_return_slowpath+0x2ac/0x550 [ 26.227412] ? prepare_exit_to_usermode+0x350/0x350 [ 26.232396] ? retint_user+0x18/0x18 [ 26.236085] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 26.240903] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 26.246063] RIP: 0033:0x441ca9 [ 26.249221] RSP: 002b:00000000007dfea8 EFLAGS: 00000217 ORIG_RAX: 000000000000002e [ 26.256898] RAX: ffffffffffffffda RBX: 000000000000001a RCX: 0000000000441ca9 [ 26.264136] RDX: 0000000000000081 RSI: 000000002037ffc8 RDI: 0000000000000004 [ 26.271375] RBP: 00000000004a3cc6 R08: 0000000120080522 R09: 0000000120080522 [ 26.278617] R10: 0000000120080522 R11: 0000000000000217 R12: 00000000007dff70 [ 26.285854] R13: 0000000000402ce0 R14: 0000000000000000 R15: 0000000000000000 [ 26.293109] [ 26.294709] Allocated by task 4166: [ 26.298308] save_stack+0x43/0xd0 [ 26.301728] kasan_kmalloc+0xad/0xe0 [ 26.305408] kasan_slab_alloc+0x12/0x20 [ 26.309350] kmem_cache_alloc+0x12e/0x760 [ 26.313468] dst_alloc+0x11f/0x1a0 [ 26.316979] rt_dst_alloc+0xe9/0x520 [ 26.320663] ip_route_output_key_hash_rcu+0xa59/0x2f00 [ 26.325907] ip_route_output_key_hash+0x20b/0x370 [ 26.330717] __ip4_datagram_connect+0xa67/0x1240 [ 26.335469] __ip6_datagram_connect+0x749/0x12d0 [ 26.340200] ip6_datagram_connect+0x2f/0x50 [ 26.344494] inet_dgram_connect+0x16b/0x1f0 [ 26.348791] SYSC_connect+0x213/0x4a0 [ 26.352557] SyS_connect+0x24/0x30 [ 26.356071] do_syscall_64+0x281/0x940 [ 26.359929] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 26.365083] [ 26.366681] Freed by task 0: [ 26.369670] save_stack+0x43/0xd0 [ 26.373089] __kasan_slab_free+0x11a/0x170 [ 26.377291] kasan_slab_free+0xe/0x10 [ 26.381060] kmem_cache_free+0x83/0x2a0 [ 26.385002] dst_destroy+0x257/0x370 [ 26.388683] dst_destroy_rcu+0x16/0x20 [ 26.392540] rcu_process_callbacks+0xd6c/0x17f0 [ 26.397177] __do_softirq+0x2d7/0xb85 [ 26.400942] [ 26.402540] The buggy address belongs to the object at ffff8801cb4a1a00 [ 26.402540] which belongs to the cache ip_dst_cache of size 168 [ 26.415248] The buggy address is located 24 bytes inside of [ 26.415248] 168-byte region [ffff8801cb4a1a00, ffff8801cb4a1aa8) [ 26.427004] The buggy address belongs to the page: [ 26.431901] page:ffffea00072d2840 count:1 mapcount:0 mapping:ffff8801cb4a1000 index:0xffff8801cb4a1000 [ 26.441312] flags: 0x2fffc0000000100(slab) [ 26.445516] raw: 02fffc0000000100 ffff8801cb4a1000 ffff8801cb4a1000 0000000100000008 [ 26.453364] raw: ffff8801d5bb6738 ffffea0006e74320 ffff8801d6bc2340 0000000000000000 [ 26.461212] page dumped because: kasan: bad access detected [ 26.466887] [ 26.468481] Memory state around the buggy address: [ 26.473379] ffff8801cb4a1900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.480706] ffff8801cb4a1980: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc [ 26.488033] >ffff8801cb4a1a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.495359] ^ [ 26.499472] ffff8801cb4a1a80: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc [ 26.506799] ffff8801cb4a1b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.514122] ================================================================== [ 26.521446] Disabling lock debugging due to kernel taint [ 26.526915] Kernel panic - not syncing: panic_on_warn set ... [ 26.526915] [ 26.534248] CPU: 0 PID: 4176 Comm: syzkaller293741 Tainted: G B 4.16.0-rc4+ #343 [ 26.542961] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.552286] Call Trace: [ 26.554845] dump_stack+0x194/0x24d [ 26.558442] ? arch_local_irq_restore+0x53/0x53 [ 26.563076] ? kasan_end_report+0x32/0x50 [ 26.567190] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.571912] ? vsnprintf+0x1ed/0x1900 [ 26.575685] ? ip6_xmit+0x1f30/0x2260 [ 26.579453] panic+0x1e4/0x41c [ 26.582613] ? refcount_error_report+0x214/0x214 [ 26.587338] ? add_taint+0x1c/0x50 [ 26.590846] ? add_taint+0x1c/0x50 [ 26.594357] ? ip6_xmit+0x1f76/0x2260 [ 26.598123] kasan_end_report+0x50/0x50 [ 26.602063] kasan_report+0x149/0x360 [ 26.605833] __asan_report_load8_noabort+0x14/0x20 [ 26.610730] ip6_xmit+0x1f76/0x2260 [ 26.614329] ? ip6_finish_output2+0x23a0/0x23a0 [ 26.618968] ? fl6_update_dst+0x127/0x2b0 [ 26.623085] ? inet6_csk_route_socket+0x691/0xe80 [ 26.627899] ? trace_hardirqs_off+0x10/0x10 [ 26.632187] ? lock_acquire+0x1d5/0x580 [ 26.636127] ? lock_acquire+0x1d5/0x580 [ 26.640069] ? inet6_csk_xmit+0x114/0x580 [ 26.644184] ? trace_hardirqs_off+0x10/0x10 [ 26.648472] ? lock_release+0xa40/0xa40 [ 26.652425] inet6_csk_xmit+0x2fc/0x580 [ 26.656367] ? inet6_csk_update_pmtu+0x160/0x160 [ 26.661090] ? __sk_dst_check+0x1a5/0x380 [ 26.665207] ? sock_kfree_s+0x60/0x60 [ 26.668988] l2tp_xmit_skb+0x105f/0x1410 [ 26.673025] ? l2tp_session_create+0xb80/0xb80 [ 26.677577] ? sock_wmalloc+0x15d/0x1d0 [ 26.681522] ? iov_iter_advance+0x13f0/0x13f0 [ 26.685987] ? pppol2tp_sendmsg+0x41b/0x670 [ 26.690277] pppol2tp_sendmsg+0x470/0x670 [ 26.694394] ? selinux_socket_sendmsg+0x36/0x40 [ 26.699030] ? pppol2tp_getsockopt+0x900/0x900 [ 26.703579] sock_sendmsg+0xca/0x110 [ 26.707259] ___sys_sendmsg+0x767/0x8b0 [ 26.711202] ? copy_msghdr_from_user+0x590/0x590 [ 26.715932] ? __pmd_alloc+0x4e0/0x4e0 [ 26.719793] ? selinux_socket_connect+0x311/0x730 [ 26.724603] ? trace_hardirqs_off+0x10/0x10 [ 26.728891] ? find_held_lock+0x35/0x1d0 [ 26.732924] ? __fget_light+0x2b2/0x3c0 [ 26.736866] ? fget_raw+0x20/0x20 [ 26.740299] ? __do_page_fault+0x5f7/0xc90 [ 26.744502] ? lock_downgrade+0x980/0x980 [ 26.748621] __sys_sendmsg+0xe5/0x210 [ 26.752390] ? __sys_sendmsg+0xe5/0x210 [ 26.756334] ? SyS_shutdown+0x290/0x290 [ 26.760280] ? __do_page_fault+0x3d6/0xc90 [ 26.764488] ? move_addr_to_kernel+0x60/0x60 [ 26.768867] SyS_sendmsg+0x2d/0x50 [ 26.772373] ? __sys_sendmsg+0x210/0x210 [ 26.776405] do_syscall_64+0x281/0x940 [ 26.780262] ? __do_page_fault+0xc90/0xc90 [ 26.784900] ? _raw_spin_unlock_irq+0x27/0x70 [ 26.789367] ? finish_task_switch+0x1c1/0x7e0 [ 26.793832] ? syscall_return_slowpath+0x550/0x550 [ 26.798728] ? syscall_return_slowpath+0x2ac/0x550 [ 26.803625] ? prepare_exit_to_usermode+0x350/0x350 [ 26.808608] ? retint_user+0x18/0x18 [ 26.812291] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 26.817104] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 26.822263] RIP: 0033:0x441ca9 [ 26.825420] RSP: 002b:00000000007dfea8 EFLAGS: 00000217 ORIG_RAX: 000000000000002e [ 26.833095] RAX: ffffffffffffffda RBX: 000000000000001a RCX: 0000000000441ca9 [ 26.840335] RDX: 0000000000000081 RSI: 000000002037ffc8 RDI: 0000000000000004 [ 26.847586] RBP: 00000000004a3cc6 R08: 0000000120080522 R09: 0000000120080522 [ 26.854824] R10: 0000000120080522 R11: 0000000000000217 R12: 00000000007dff70 [ 26.862064] R13: 0000000000402ce0 R14: 0000000000000000 R15: 0000000000000000 [ 26.869661] Dumping ftrace buffer: [ 26.873167] (ftrace buffer empty) [ 26.876846] Kernel Offset: disabled [ 26.880440] Rebooting in 86400 seconds..