[?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. [ 20.831647] audit: type=1400 audit(1520374099.539:6): avc: denied { map } for pid=4272 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 Warning: Permanently added '10.128.0.51' (ECDSA) to the list of known hosts. syzkaller login: [ 27.114350] audit: type=1400 audit(1520374105.822:7): avc: denied { map } for pid=4286 comm="syz-execprog" path="/root/syz-execprog" dev="sda1" ino=16479 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 2018/03/06 22:08:26 parsed 1 programs 2018/03/06 22:08:26 executed programs: 0 [ 27.365340] audit: type=1400 audit(1520374106.072:8): avc: denied { map } for pid=4286 comm="syz-execprog" path="/root/syzkaller-shm912325313" dev="sda1" ino=16482 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:file_t:s0 tclass=file permissive=1 [ 27.378301] IPVS: ftp: loaded support on port[0] = 21 [ 27.658344] IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready [ 28.031288] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 28.037379] 8021q: adding VLAN 0 to HW filter on device bond0 [ 28.075201] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 28.113489] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 28.130156] ================================================================== [ 28.137570] BUG: KASAN: use-after-free in ip6_xmit+0x1f76/0x2260 [ 28.144145] Read of size 8 at addr ffff8801cc567718 by task syz-executor0/4451 [ 28.151472] [ 28.153076] CPU: 0 PID: 4451 Comm: syz-executor0 Not tainted 4.16.0-rc4+ #253 [ 28.160318] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.169644] Call Trace: [ 28.172206] dump_stack+0x194/0x24d [ 28.175807] ? arch_local_irq_restore+0x53/0x53 [ 28.180449] ? show_regs_print_info+0x18/0x18 [ 28.184923] ? ip6_xmit+0x1f76/0x2260 [ 28.188699] print_address_description+0x73/0x250 [ 28.193513] ? ip6_xmit+0x1f76/0x2260 [ 28.197287] kasan_report+0x23c/0x360 [ 28.201063] __asan_report_load8_noabort+0x14/0x20 [ 28.205962] ip6_xmit+0x1f76/0x2260 [ 28.209583] ? ip6_finish_output2+0x23a0/0x23a0 [ 28.214235] ? fl6_update_dst+0x127/0x2b0 [ 28.218364] ? inet6_csk_route_socket+0x691/0xe80 [ 28.223180] ? trace_hardirqs_off+0x10/0x10 [ 28.227472] ? lock_acquire+0x1d5/0x580 [ 28.231415] ? lock_acquire+0x1d5/0x580 [ 28.235361] ? inet6_csk_xmit+0x114/0x580 [ 28.239486] ? trace_hardirqs_off+0x10/0x10 [ 28.243781] ? lock_release+0xa40/0xa40 [ 28.247743] inet6_csk_xmit+0x2fc/0x580 [ 28.251693] ? inet6_csk_update_pmtu+0x160/0x160 [ 28.256421] ? __sk_dst_check+0x1a5/0x380 [ 28.260556] ? sock_kfree_s+0x60/0x60 [ 28.264350] l2tp_xmit_skb+0x105f/0x1410 [ 28.268396] ? l2tp_session_create+0xb80/0xb80 [ 28.272950] ? sock_wmalloc+0x15d/0x1d0 [ 28.276899] ? iov_iter_advance+0x13f0/0x13f0 [ 28.281370] ? pppol2tp_sendmsg+0x41b/0x670 [ 28.285668] pppol2tp_sendmsg+0x470/0x670 [ 28.289801] ? selinux_socket_sendmsg+0x36/0x40 [ 28.294447] ? pppol2tp_getsockopt+0x900/0x900 [ 28.299004] sock_sendmsg+0xca/0x110 [ 28.302701] ___sys_sendmsg+0x767/0x8b0 [ 28.306652] ? copy_msghdr_from_user+0x590/0x590 [ 28.311385] ? __handle_mm_fault+0x5ba/0x38c0 [ 28.315858] ? __pmd_alloc+0x4e0/0x4e0 [ 28.319718] ? trace_hardirqs_off+0x10/0x10 [ 28.324014] ? selinux_socket_setsockopt+0x80/0x80 [ 28.328936] ? lock_release+0xa40/0xa40 [ 28.332886] ? __fget_light+0x2b2/0x3c0 [ 28.336833] ? fget_raw+0x20/0x20 [ 28.340270] ? find_held_lock+0x35/0x1d0 [ 28.344316] __sys_sendmsg+0xe5/0x210 [ 28.348088] ? __sys_sendmsg+0xe5/0x210 [ 28.352038] ? SyS_shutdown+0x290/0x290 [ 28.355994] ? compat_SyS_futex+0x288/0x380 [ 28.360314] compat_SyS_sendmsg+0x2a/0x40 [ 28.364435] ? compat_SyS_getsockopt+0x420/0x420 [ 28.369163] do_fast_syscall_32+0x3ec/0xf9f [ 28.373464] ? do_int80_syscall_32+0x9c0/0x9c0 [ 28.378025] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 28.382760] ? syscall_return_slowpath+0x2ac/0x550 [ 28.387661] ? prepare_exit_to_usermode+0x350/0x350 [ 28.392651] ? sysret32_from_system_call+0x5/0x3c [ 28.397468] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 28.402289] entry_SYSENTER_compat+0x70/0x7f [ 28.406669] RIP: 0023:0xf7fd0c99 [ 28.410007] RSP: 002b:00000000ffe018dc EFLAGS: 00000282 ORIG_RAX: 0000000000000172 [ 28.417695] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000002037ffc8 [ 28.424935] RDX: 0000000000000081 RSI: 0000000000000000 RDI: 0000000000000000 [ 28.432177] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 28.439419] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 28.446658] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 28.453914] [ 28.455527] Allocated by task 4276: [ 28.459137] save_stack+0x43/0xd0 [ 28.462563] kasan_kmalloc+0xad/0xe0 [ 28.466251] kasan_slab_alloc+0x12/0x20 [ 28.470197] kmem_cache_alloc+0x12e/0x760 [ 28.474317] dst_alloc+0x11f/0x1a0 [ 28.477827] rt_dst_alloc+0xe9/0x520 [ 28.481529] ip_route_output_key_hash_rcu+0xa59/0x2f00 [ 28.486783] ip_route_output_key_hash+0x20b/0x370 [ 28.491597] __ip4_datagram_connect+0xa67/0x1240 [ 28.496325] __ip6_datagram_connect+0x749/0x12d0 [ 28.501055] ip6_datagram_connect+0x2f/0x50 [ 28.505351] inet_dgram_connect+0x16b/0x1f0 [ 28.509660] SYSC_connect+0x213/0x4a0 [ 28.513434] SyS_connect+0x24/0x30 [ 28.516946] do_syscall_64+0x281/0x940 [ 28.520805] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 28.525964] [ 28.527567] Freed by task 0: [ 28.530561] save_stack+0x43/0xd0 [ 28.533986] __kasan_slab_free+0x11a/0x170 [ 28.538191] kasan_slab_free+0xe/0x10 [ 28.541965] kmem_cache_free+0x83/0x2a0 [ 28.545910] dst_destroy+0x257/0x370 [ 28.549595] dst_destroy_rcu+0x16/0x20 [ 28.553453] rcu_process_callbacks+0xd6c/0x17f0 [ 28.558104] __do_softirq+0x2d7/0xb85 [ 28.561872] [ 28.563472] The buggy address belongs to the object at ffff8801cc567700 [ 28.563472] which belongs to the cache ip_dst_cache of size 168 [ 28.576186] The buggy address is located 24 bytes inside of [ 28.576186] 168-byte region [ffff8801cc567700, ffff8801cc5677a8) [ 28.587940] The buggy address belongs to the page: [ 28.592841] page:ffffea00073159c0 count:1 mapcount:0 mapping:ffff8801cc567000 index:0x0 [ 28.600955] flags: 0x2fffc0000000100(slab) [ 28.605161] raw: 02fffc0000000100 ffff8801cc567000 0000000000000000 0000000100000010 [ 28.613018] raw: ffff8801d6bf5248 ffff8801d6bf5248 ffff8801d6bfa340 0000000000000000 [ 28.620871] page dumped because: kasan: bad access detected [ 28.626548] [ 28.628149] Memory state around the buggy address: [ 28.633052] ffff8801cc567600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.640391] ffff8801cc567680: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc [ 28.647719] >ffff8801cc567700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.655047] ^ [ 28.659173] ffff8801cc567780: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc [ 28.666501] ffff8801cc567800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.673829] ================================================================== [ 28.681155] Disabling lock debugging due to kernel taint [ 28.686618] Kernel panic - not syncing: panic_on_warn set ... [ 28.686618] [ 28.693965] CPU: 0 PID: 4451 Comm: syz-executor0 Tainted: G B 4.16.0-rc4+ #253 [ 28.702516] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.711838] Call Trace: [ 28.714396] dump_stack+0x194/0x24d [ 28.717993] ? arch_local_irq_restore+0x53/0x53 [ 28.722636] ? kasan_end_report+0x32/0x50 [ 28.726754] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 28.731478] ? vsnprintf+0x1ed/0x1900 [ 28.735252] ? ip6_xmit+0x1f30/0x2260 [ 28.739028] panic+0x1e4/0x41c [ 28.742190] ? refcount_error_report+0x214/0x214 [ 28.746918] ? add_taint+0x1c/0x50 [ 28.750427] ? add_taint+0x1c/0x50 [ 28.753937] ? ip6_xmit+0x1f76/0x2260 [ 28.757705] kasan_end_report+0x50/0x50 [ 28.761647] kasan_report+0x149/0x360 [ 28.765419] __asan_report_load8_noabort+0x14/0x20 [ 28.770319] ip6_xmit+0x1f76/0x2260 [ 28.773920] ? ip6_finish_output2+0x23a0/0x23a0 [ 28.778563] ? fl6_update_dst+0x127/0x2b0 [ 28.782680] ? inet6_csk_route_socket+0x691/0xe80 [ 28.787496] ? trace_hardirqs_off+0x10/0x10 [ 28.791786] ? lock_acquire+0x1d5/0x580 [ 28.795726] ? lock_acquire+0x1d5/0x580 [ 28.799668] ? inet6_csk_xmit+0x114/0x580 [ 28.803783] ? trace_hardirqs_off+0x10/0x10 [ 28.808076] ? lock_release+0xa40/0xa40 [ 28.812032] inet6_csk_xmit+0x2fc/0x580 [ 28.815977] ? inet6_csk_update_pmtu+0x160/0x160 [ 28.820701] ? __sk_dst_check+0x1a5/0x380 [ 28.824820] ? sock_kfree_s+0x60/0x60 [ 28.828600] l2tp_xmit_skb+0x105f/0x1410 [ 28.832638] ? l2tp_session_create+0xb80/0xb80 [ 28.837192] ? sock_wmalloc+0x15d/0x1d0 [ 28.841136] ? iov_iter_advance+0x13f0/0x13f0 [ 28.845602] ? pppol2tp_sendmsg+0x41b/0x670 [ 28.849903] pppol2tp_sendmsg+0x470/0x670 [ 28.854029] ? selinux_socket_sendmsg+0x36/0x40 [ 28.858669] ? pppol2tp_getsockopt+0x900/0x900 [ 28.863223] sock_sendmsg+0xca/0x110 [ 28.866906] ___sys_sendmsg+0x767/0x8b0 [ 28.870852] ? copy_msghdr_from_user+0x590/0x590 [ 28.875581] ? __handle_mm_fault+0x5ba/0x38c0 [ 28.880048] ? __pmd_alloc+0x4e0/0x4e0 [ 28.883901] ? trace_hardirqs_off+0x10/0x10 [ 28.888190] ? selinux_socket_setsockopt+0x80/0x80 [ 28.893087] ? lock_release+0xa40/0xa40 [ 28.897034] ? __fget_light+0x2b2/0x3c0 [ 28.900987] ? fget_raw+0x20/0x20 [ 28.904416] ? find_held_lock+0x35/0x1d0 [ 28.908452] __sys_sendmsg+0xe5/0x210 [ 28.912232] ? __sys_sendmsg+0xe5/0x210 [ 28.916175] ? SyS_shutdown+0x290/0x290 [ 28.920124] ? compat_SyS_futex+0x288/0x380 [ 28.924423] compat_SyS_sendmsg+0x2a/0x40 [ 28.928545] ? compat_SyS_getsockopt+0x420/0x420 [ 28.933269] do_fast_syscall_32+0x3ec/0xf9f [ 28.937563] ? do_int80_syscall_32+0x9c0/0x9c0 [ 28.942113] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 28.946842] ? syscall_return_slowpath+0x2ac/0x550 [ 28.951740] ? prepare_exit_to_usermode+0x350/0x350 [ 28.956726] ? sysret32_from_system_call+0x5/0x3c [ 28.961544] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 28.966360] entry_SYSENTER_compat+0x70/0x7f [ 28.970736] RIP: 0023:0xf7fd0c99 [ 28.974071] RSP: 002b:00000000ffe018dc EFLAGS: 00000282 ORIG_RAX: 0000000000000172 [ 28.981747] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000002037ffc8 [ 28.988985] RDX: 0000000000000081 RSI: 0000000000000000 RDI: 0000000000000000 [ 28.996224] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 29.003473] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 29.010712] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 29.018386] Dumping ftrace buffer: [ 29.021896] (ftrace buffer empty) [ 29.025576] Kernel Offset: disabled [ 29.029172] Rebooting in 86400 seconds..