[....] Starting enhanced syslogd: rsyslogd[ 12.457432] audit: type=1400 audit(1516436094.681:5): avc: denied { syslog } for pid=3509 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: [ 19.589719] audit: type=1400 audit(1516436101.813:6): avc: denied { map } for pid=3650 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.15.205' (ECDSA) to the list of known hosts. executing program [ 25.821245] audit: type=1400 audit(1516436108.044:7): avc: denied { map } for pid=3664 comm="syzkaller662699" path="/root/syzkaller662699627" 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.826952] ================================================================== [ 25.854535] BUG: KASAN: use-after-free in ip6_xmit+0x1ce9/0x2090 [ 25.860662] Read of size 8 at addr ffff8801cc6dfd18 by task syzkaller662699/3664 [ 25.868164] [ 25.869763] CPU: 0 PID: 3664 Comm: syzkaller662699 Not tainted 4.15.0-rc8-mm1+ #58 [ 25.877441] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.886768] Call Trace: [ 25.889333] dump_stack+0x194/0x257 [ 25.892936] ? arch_local_irq_restore+0x53/0x53 [ 25.897597] ? show_regs_print_info+0x18/0x18 [ 25.902072] ? ip6_xmit+0x1ce9/0x2090 [ 25.905847] print_address_description+0x73/0x250 [ 25.910667] ? ip6_xmit+0x1ce9/0x2090 [ 25.914449] kasan_report+0x23b/0x360 [ 25.918226] __asan_report_load8_noabort+0x14/0x20 [ 25.923128] ip6_xmit+0x1ce9/0x2090 [ 25.926740] ? ip6_finish_output2+0x23a0/0x23a0 [ 25.931384] ? fl6_update_dst+0x127/0x2b0 [ 25.935508] ? check_noncircular+0x20/0x20 [ 25.939719] ? inet6_csk_route_socket+0x691/0xe80 [ 25.944537] ? lock_acquire+0x1d5/0x580 [ 25.948482] ? lock_acquire+0x1d5/0x580 [ 25.952429] ? inet6_csk_xmit+0x114/0x580 [ 25.956551] ? __lock_is_held+0xb6/0x140 [ 25.960596] ? lock_release+0xa40/0xa40 [ 25.964545] ? __lock_is_held+0xb6/0x140 [ 25.968608] inet6_csk_xmit+0x2fc/0x580 [ 25.972572] ? inet6_csk_update_pmtu+0x160/0x160 [ 25.977303] ? rt_cpu_seq_show+0x2c0/0x2c0 [ 25.981514] ? refcount_add_not_zero+0x133/0x200 [ 25.986257] tcp_transmit_skb+0x1b1b/0x38c0 [ 25.990564] ? __tcp_select_window+0x900/0x900 [ 25.995122] ? tcp_fastopen_cache_get+0x449/0x720 [ 25.999941] ? tcp_peer_is_proven+0xc60/0xc60 [ 26.004414] ? __lock_is_held+0xb6/0x140 [ 26.008472] ? tcp_try_fastopen+0x1b50/0x1b50 [ 26.012945] ? tcp_init_transfer+0x3d0/0x3d0 [ 26.017333] ? tcp_rbtree_insert+0x135/0x190 [ 26.021720] tcp_connect+0x1edb/0x4090 [ 26.025597] ? tcp_push_one+0x100/0x100 [ 26.029548] ? lock_downgrade+0x8c7/0x980 [ 26.033683] ? pvclock_read_flags+0x160/0x160 [ 26.038153] ? mark_held_locks+0xaf/0x100 [ 26.042273] ? ip_route_output_key_hash+0x229/0x370 [ 26.047271] ? ktime_get_with_offset+0x188/0x420 [ 26.052006] ? kvm_clock_get_cycles+0x25/0x30 [ 26.056473] ? ktime_get_with_offset+0x2c1/0x420 [ 26.061267] ? do_gettimeofday+0x190/0x190 [ 26.065483] ? tcp_fastopen_defer_connect+0x163/0x4a0 [ 26.070655] ? tcp_fastopen_cookie_check+0x720/0x720 [ 26.075728] ? siphash_1u64+0x18/0x270 [ 26.079604] tcp_v4_connect+0x15ef/0x1e70 [ 26.083728] ? __sys_sendmsg+0xe5/0x210 [ 26.087687] ? tcp_v4_inbound_md5_hash+0x510/0x510 [ 26.092594] ? __lock_is_held+0xb6/0x140 [ 26.096657] __inet_stream_connect+0x2d4/0xf00 [ 26.101220] ? inet_bind+0x910/0x910 [ 26.104944] ? tcp_sendmsg_locked+0x1f71/0x3c70 [ 26.109592] ? rcu_read_lock_sched_held+0x108/0x120 [ 26.114584] ? kmem_cache_alloc_trace+0x456/0x750 [ 26.119400] ? depot_save_stack+0x2ca/0x460 [ 26.123696] ? lock_downgrade+0x980/0x980 [ 26.127826] tcp_sendmsg_locked+0x264e/0x3c70 [ 26.132300] ? avc_has_perm+0x35e/0x680 [ 26.136248] ? lock_downgrade+0x980/0x980 [ 26.140367] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.145888] ? lock_release+0xa40/0xa40 [ 26.149848] ? tcp_sendpage+0x60/0x60 [ 26.153632] ? save_stack+0x43/0xd0 [ 26.157247] ? print_irqtrace_events+0x270/0x270 [ 26.161980] ? find_held_lock+0x35/0x1d0 [ 26.166124] ? lock_acquire+0x1d5/0x580 [ 26.170066] ? lock_acquire+0x1d5/0x580 [ 26.174015] ? tcp_sendmsg+0x21/0x50 [ 26.177713] ? mark_held_locks+0xaf/0x100 [ 26.181972] ? do_raw_spin_trylock+0x190/0x190 [ 26.186529] ? __local_bh_enable_ip+0x121/0x230 [ 26.191176] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.196166] ? lock_sock_nested+0x91/0x110 [ 26.200374] ? trace_hardirqs_on+0xd/0x10 [ 26.204497] ? __local_bh_enable_ip+0x121/0x230 [ 26.209148] tcp_sendmsg+0x2f/0x50 [ 26.212665] inet_sendmsg+0x11f/0x5e0 [ 26.216441] ? inet_create+0xf50/0xf50 [ 26.220311] ? selinux_socket_sendmsg+0x36/0x40 [ 26.224982] ? security_socket_sendmsg+0x89/0xb0 [ 26.229716] ? inet_create+0xf50/0xf50 [ 26.233583] sock_sendmsg+0xca/0x110 [ 26.237282] ___sys_sendmsg+0x767/0x8b0 [ 26.241235] ? copy_msghdr_from_user+0x590/0x590 [ 26.245983] ? __fget_light+0x297/0x380 [ 26.249932] ? fget_raw+0x20/0x20 [ 26.253368] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 26.257923] ? vmacache_find+0x5f/0x280 [ 26.261877] ? up_read+0x1a/0x40 [ 26.265217] ? __do_page_fault+0x3d6/0xc90 [ 26.269431] ? __fdget+0x18/0x20 [ 26.272776] __sys_sendmsg+0xe5/0x210 [ 26.276552] ? __sys_sendmsg+0xe5/0x210 [ 26.280512] ? SyS_shutdown+0x290/0x290 [ 26.284462] ? __do_page_fault+0xc90/0xc90 [ 26.288675] ? SyS_setsockopt+0x215/0x360 [ 26.292806] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.297802] SyS_sendmsg+0x2d/0x50 [ 26.301323] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.306050] RIP: 0033:0x440019 [ 26.309384] RSP: 002b:00007ffd70e82f88 EFLAGS: 00000217 ORIG_RAX: 000000000000002e [ 26.317064] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000440019 [ 26.324308] RDX: 0000000020004000 RSI: 000000002088b000 RDI: 0000000000000003 [ 26.331556] RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8 [ 26.338803] R10: 0000000000000004 R11: 0000000000000217 R12: 0000000000401940 [ 26.346046] R13: 00000000004019d0 R14: 0000000000000000 R15: 0000000000000000 [ 26.353316] [ 26.354918] Allocated by task 3609: [ 26.358523] save_stack+0x43/0xd0 [ 26.361952] kasan_kmalloc+0xad/0xe0 [ 26.365641] kasan_slab_alloc+0x12/0x20 [ 26.369592] kmem_cache_alloc+0x12e/0x760 [ 26.373713] dst_alloc+0x11f/0x1a0 [ 26.377226] rt_dst_alloc+0xe9/0x520 [ 26.380912] ip_route_output_key_hash_rcu+0xa40/0x2c20 [ 26.386160] ip_route_output_key_hash+0x20b/0x370 [ 26.390977] __ip4_datagram_connect+0xa67/0x1240 [ 26.395706] __ip6_datagram_connect+0x6fa/0xf80 [ 26.400349] ip6_datagram_connect+0x2f/0x50 [ 26.404645] inet_dgram_connect+0x16b/0x1f0 [ 26.408951] SYSC_connect+0x213/0x4a0 [ 26.412728] SyS_connect+0x24/0x30 [ 26.416243] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.420965] [ 26.422564] Freed by task 0: [ 26.425557] save_stack+0x43/0xd0 [ 26.428983] __kasan_slab_free+0x11a/0x170 [ 26.433190] kasan_slab_free+0xe/0x10 [ 26.436964] kmem_cache_free+0x86/0x2b0 [ 26.440911] dst_destroy+0x257/0x370 [ 26.444596] dst_destroy_rcu+0x16/0x20 [ 26.448461] rcu_process_callbacks+0xd6c/0x17f0 [ 26.453106] __do_softirq+0x2d7/0xb85 [ 26.456874] [ 26.458472] The buggy address belongs to the object at ffff8801cc6dfd00 [ 26.458472] which belongs to the cache ip_dst_cache of size 168 [ 26.474016] The buggy address is located 24 bytes inside of [ 26.474016] 168-byte region [ffff8801cc6dfd00, ffff8801cc6dfda8) [ 26.486336] The buggy address belongs to the page: [ 26.491240] page:ffffea000731b7c0 count:1 mapcount:0 mapping:ffff8801cc6df000 index:0xffff8801cc6df600 [ 26.501022] flags: 0x2fffc0000000100(slab) [ 26.505246] raw: 02fffc0000000100 ffff8801cc6df000 ffff8801cc6df600 0000000100000006 [ 26.513099] raw: ffff8801d6fa5a38 ffffea00070d7120 ffff8801d6fa4680 0000000000000000 [ 26.520950] page dumped because: kasan: bad access detected [ 26.526627] [ 26.528224] Memory state around the buggy address: [ 26.533124] ffff8801cc6dfc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.540453] ffff8801cc6dfc80: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc [ 26.547785] >ffff8801cc6dfd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.555115] ^ [ 26.559231] ffff8801cc6dfd80: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc [ 26.566563] ffff8801cc6dfe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.573902] ================================================================== [ 26.581228] Disabling lock debugging due to kernel taint [ 26.587070] Kernel panic - not syncing: panic_on_warn set ... [ 26.587070] [ 26.594422] CPU: 0 PID: 3664 Comm: syzkaller662699 Tainted: G B 4.15.0-rc8-mm1+ #58 [ 26.603401] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.612721] Call Trace: [ 26.615295] dump_stack+0x194/0x257 [ 26.618896] ? arch_local_irq_restore+0x53/0x53 [ 26.623550] ? kasan_end_report+0x32/0x50 [ 26.627671] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.632400] ? vsnprintf+0x1ed/0x1900 [ 26.636174] ? ip6_xmit+0x1c40/0x2090 [ 26.639948] panic+0x1e4/0x41c [ 26.643115] ? refcount_error_report+0x214/0x214 [ 26.647845] ? add_taint+0x1c/0x50 [ 26.651365] ? add_taint+0x1c/0x50 [ 26.654876] ? ip6_xmit+0x1ce9/0x2090 [ 26.658646] kasan_end_report+0x50/0x50 [ 26.662592] kasan_report+0x148/0x360 [ 26.666364] __asan_report_load8_noabort+0x14/0x20 [ 26.671264] ip6_xmit+0x1ce9/0x2090 [ 26.674867] ? ip6_finish_output2+0x23a0/0x23a0 [ 26.679515] ? fl6_update_dst+0x127/0x2b0 [ 26.683633] ? check_noncircular+0x20/0x20 [ 26.687837] ? inet6_csk_route_socket+0x691/0xe80 [ 26.692649] ? lock_acquire+0x1d5/0x580 [ 26.696589] ? lock_acquire+0x1d5/0x580 [ 26.700531] ? inet6_csk_xmit+0x114/0x580 [ 26.704653] ? __lock_is_held+0xb6/0x140 [ 26.708684] ? lock_release+0xa40/0xa40 [ 26.712635] ? __lock_is_held+0xb6/0x140 [ 26.716672] inet6_csk_xmit+0x2fc/0x580 [ 26.720617] ? inet6_csk_update_pmtu+0x160/0x160 [ 26.725343] ? rt_cpu_seq_show+0x2c0/0x2c0 [ 26.729549] ? refcount_add_not_zero+0x133/0x200 [ 26.734283] tcp_transmit_skb+0x1b1b/0x38c0 [ 26.738581] ? __tcp_select_window+0x900/0x900 [ 26.743136] ? tcp_fastopen_cache_get+0x449/0x720 [ 26.747949] ? tcp_peer_is_proven+0xc60/0xc60 [ 26.752417] ? __lock_is_held+0xb6/0x140 [ 26.756457] ? tcp_try_fastopen+0x1b50/0x1b50 [ 26.760926] ? tcp_init_transfer+0x3d0/0x3d0 [ 26.765309] ? tcp_rbtree_insert+0x135/0x190 [ 26.769697] tcp_connect+0x1edb/0x4090 [ 26.773561] ? tcp_push_one+0x100/0x100 [ 26.777508] ? lock_downgrade+0x8c7/0x980 [ 26.781632] ? pvclock_read_flags+0x160/0x160 [ 26.786097] ? mark_held_locks+0xaf/0x100 [ 26.790212] ? ip_route_output_key_hash+0x229/0x370 [ 26.795198] ? ktime_get_with_offset+0x188/0x420 [ 26.799928] ? kvm_clock_get_cycles+0x25/0x30 [ 26.804626] ? ktime_get_with_offset+0x2c1/0x420 [ 26.809356] ? do_gettimeofday+0x190/0x190 [ 26.813578] ? tcp_fastopen_defer_connect+0x163/0x4a0 [ 26.818749] ? tcp_fastopen_cookie_check+0x720/0x720 [ 26.823829] ? siphash_1u64+0x18/0x270 [ 26.827696] tcp_v4_connect+0x15ef/0x1e70 [ 26.831814] ? __sys_sendmsg+0xe5/0x210 [ 26.835765] ? tcp_v4_inbound_md5_hash+0x510/0x510 [ 26.840808] ? __lock_is_held+0xb6/0x140 [ 26.844843] __inet_stream_connect+0x2d4/0xf00 [ 26.849400] ? inet_bind+0x910/0x910 [ 26.853087] ? tcp_sendmsg_locked+0x1f71/0x3c70 [ 26.857725] ? rcu_read_lock_sched_held+0x108/0x120 [ 26.862711] ? kmem_cache_alloc_trace+0x456/0x750 [ 26.867523] ? depot_save_stack+0x2ca/0x460 [ 26.871814] ? lock_downgrade+0x980/0x980 [ 26.875935] tcp_sendmsg_locked+0x264e/0x3c70 [ 26.880407] ? avc_has_perm+0x35e/0x680 [ 26.884351] ? lock_downgrade+0x980/0x980 [ 26.888467] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.893453] ? lock_release+0xa40/0xa40 [ 26.897403] ? tcp_sendpage+0x60/0x60 [ 26.901183] ? save_stack+0x43/0xd0 [ 26.904787] ? print_irqtrace_events+0x270/0x270 [ 26.909512] ? find_held_lock+0x35/0x1d0 [ 26.913557] ? lock_acquire+0x1d5/0x580 [ 26.917503] ? lock_acquire+0x1d5/0x580 [ 26.921447] ? tcp_sendmsg+0x21/0x50 [ 26.925135] ? mark_held_locks+0xaf/0x100 [ 26.929254] ? do_raw_spin_trylock+0x190/0x190 [ 26.933809] ? __local_bh_enable_ip+0x121/0x230 [ 26.938458] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.943444] ? lock_sock_nested+0x91/0x110 [ 26.947653] ? trace_hardirqs_on+0xd/0x10 [ 26.951773] ? __local_bh_enable_ip+0x121/0x230 [ 26.956424] tcp_sendmsg+0x2f/0x50 [ 26.959935] inet_sendmsg+0x11f/0x5e0 [ 26.963708] ? inet_create+0xf50/0xf50 [ 26.967569] ? selinux_socket_sendmsg+0x36/0x40 [ 26.972208] ? security_socket_sendmsg+0x89/0xb0 [ 26.976934] ? inet_create+0xf50/0xf50 [ 26.980793] sock_sendmsg+0xca/0x110 [ 26.984479] ___sys_sendmsg+0x767/0x8b0 [ 26.988428] ? copy_msghdr_from_user+0x590/0x590 [ 26.993167] ? __fget_light+0x297/0x380 [ 26.997111] ? fget_raw+0x20/0x20 [ 27.000538] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 27.005089] ? vmacache_find+0x5f/0x280 [ 27.009042] ? up_read+0x1a/0x40 [ 27.012380] ? __do_page_fault+0x3d6/0xc90 [ 27.016590] ? __fdget+0x18/0x20 [ 27.019944] __sys_sendmsg+0xe5/0x210 [ 27.023713] ? __sys_sendmsg+0xe5/0x210 [ 27.027675] ? SyS_shutdown+0x290/0x290 [ 27.031620] ? __do_page_fault+0xc90/0xc90 [ 27.035827] ? SyS_setsockopt+0x215/0x360 [ 27.039950] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.044940] SyS_sendmsg+0x2d/0x50 [ 27.048453] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.053180] RIP: 0033:0x440019 [ 27.056339] RSP: 002b:00007ffd70e82f88 EFLAGS: 00000217 ORIG_RAX: 000000000000002e [ 27.064017] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000440019 [ 27.071261] RDX: 0000000020004000 RSI: 000000002088b000 RDI: 0000000000000003 [ 27.078499] RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8 [ 27.085740] R10: 0000000000000004 R11: 0000000000000217 R12: 0000000000401940 [ 27.092979] R13: 00000000004019d0 R14: 0000000000000000 R15: 0000000000000000 [ 27.100773] Dumping ftrace buffer: [ 27.104285] (ftrace buffer empty) [ 27.107966] Kernel Offset: disabled [ 27.111565] Rebooting in 86400 seconds..