[....] Starting enhanced syslogd: rsyslogd[ 12.393895] audit: type=1400 audit(1514740606.263:5): avc: denied { syslog } for pid=3348 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.887271] audit: type=1400 audit(1514740612.757:6): avc: denied { map } for pid=3486 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 [ 27.840508] audit: type=1400 audit(1514740621.710:7): avc: denied { map } for pid=3500 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.56' (ECDSA) to the list of known hosts. [ 28.132246] audit: type=1400 audit(1514740622.002:8): avc: denied { map } for pid=3504 comm="syzkaller062824" path="/root/syzkaller062824691" 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 [ 28.138504] ================================================================== [ 28.138523] BUG: KASAN: use-after-free in ip6_xmit+0x2048/0x2090 [ 28.138527] Read of size 8 at addr ffff8801ccfa7b98 by task syzkaller062824/3510 [ 28.138529] [ 28.138535] CPU: 0 PID: 3510 Comm: syzkaller062824 Not tainted 4.15.0-rc5+ #244 [ 28.138538] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.138541] Call Trace: [ 28.138550] dump_stack+0x194/0x257 [ 28.138558] ? arch_local_irq_restore+0x53/0x53 [ 28.138568] ? show_regs_print_info+0x18/0x18 [ 28.138578] ? ip6_xmit+0x2048/0x2090 [ 28.138587] print_address_description+0x73/0x250 [ 28.138592] ? ip6_xmit+0x2048/0x2090 [ 28.138597] kasan_report+0x25b/0x340 [ 28.138608] __asan_report_load8_noabort+0x14/0x20 [ 28.138612] ip6_xmit+0x2048/0x2090 [ 28.138619] ? __sk_dst_check+0x1a5/0x380 [ 28.138635] ? ip6_finish_output2+0x23a0/0x23a0 [ 28.138644] ? fl6_update_dst+0x127/0x2b0 [ 28.138653] ? check_noncircular+0x20/0x20 [ 28.138659] ? inet6_csk_route_socket+0x691/0xe80 [ 28.138668] ? lock_acquire+0x1d5/0x580 [ 28.138671] ? memcpy+0x45/0x50 [ 28.138675] ? lock_acquire+0x1d5/0x580 [ 28.138679] ? inet6_csk_xmit+0x114/0x580 [ 28.138689] ? tcpm_suck_dst+0x510/0x510 [ 28.138697] ? lock_release+0xa40/0xa40 [ 28.138705] ? __lock_is_held+0xb6/0x140 [ 28.138721] inet6_csk_xmit+0x2fc/0x580 [ 28.138728] ? inet6_csk_update_pmtu+0x160/0x160 [ 28.138739] ? rt_cpu_seq_show+0x2c0/0x2c0 [ 28.138749] ? refcount_add_not_zero+0x133/0x200 [ 28.138783] tcp_transmit_skb+0x1b1b/0x38c0 [ 28.138803] ? __tcp_select_window+0x900/0x900 [ 28.138814] ? tcp_fastopen_cookie_check+0x50f/0x8c0 [ 28.138821] ? tcp_try_fastopen+0x1b50/0x1b50 [ 28.138830] ? check_noncircular+0x20/0x20 [ 28.138849] ? pvclock_read_flags+0x160/0x160 [ 28.138856] ? tcp_init_transfer+0x390/0x390 [ 28.138870] ? tcp_rbtree_insert+0x135/0x190 [ 28.138881] tcp_connect+0x1e79/0x3fb0 [ 28.138898] ? tcp_push_one+0x100/0x100 [ 28.138902] ? lock_downgrade+0x8c7/0x980 [ 28.138916] ? pvclock_read_flags+0x160/0x160 [ 28.138921] ? mark_held_locks+0xaf/0x100 [ 28.138925] ? ip_route_output_key_hash+0x229/0x370 [ 28.138933] ? ktime_get_with_offset+0x188/0x420 [ 28.138946] ? kvm_clock_get_cycles+0x25/0x30 [ 28.138951] ? ktime_get_with_offset+0x2c1/0x420 [ 28.138960] ? do_gettimeofday+0x190/0x190 [ 28.138967] ? rcu_read_lock_sched_held+0x108/0x120 [ 28.138977] ? tcp_fastopen_defer_connect+0x163/0x4a0 [ 28.138981] ? ip_route_output_key_hash+0x252/0x370 [ 28.138989] ? siphash_1u64+0x18/0x270 [ 28.139014] tcp_v4_connect+0x15f5/0x1e80 [ 28.139018] ? SyS_sendto+0x40/0x50 [ 28.139034] ? tcp_v4_inbound_md5_hash+0x510/0x510 [ 28.139041] ? __lock_is_held+0xb6/0x140 [ 28.139052] __inet_stream_connect+0x2d4/0xf00 [ 28.139064] ? inet_bind+0x910/0x910 [ 28.139077] ? tcp_sendmsg_locked+0x247d/0x3b60 [ 28.139081] ? rcu_read_lock_sched_held+0x108/0x120 [ 28.139087] ? kmem_cache_alloc_trace+0x456/0x750 [ 28.139092] ? __thp_get_unmapped_area+0x130/0x130 [ 28.139096] ? __lock_acquire+0x664/0x3e00 [ 28.139100] ? __lock_acquire+0x664/0x3e00 [ 28.139112] tcp_sendmsg_locked+0x280e/0x3b60 [ 28.139124] ? avc_has_perm+0x35e/0x680 [ 28.139130] ? lock_downgrade+0x980/0x980 [ 28.139138] ? lock_release+0xa40/0xa40 [ 28.139147] ? sock_common_setsockopt+0x95/0xd0 [ 28.139156] ? tcp_sendpage+0x60/0x60 [ 28.139175] ? print_irqtrace_events+0x270/0x270 [ 28.139178] ? find_held_lock+0x35/0x1d0 [ 28.139189] ? lock_acquire+0x1d5/0x580 [ 28.139193] ? lock_sock_nested+0xa3/0x110 [ 28.139197] ? lock_acquire+0x1d5/0x580 [ 28.139201] ? tcp_sendmsg+0x21/0x50 [ 28.139215] ? mark_held_locks+0xaf/0x100 [ 28.139220] ? do_raw_spin_trylock+0x190/0x190 [ 28.139226] ? __local_bh_enable_ip+0x121/0x230 [ 28.139233] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 28.139238] ? lock_sock_nested+0x91/0x110 [ 28.139242] ? trace_hardirqs_on+0xd/0x10 [ 28.139246] ? __local_bh_enable_ip+0x121/0x230 [ 28.139258] tcp_sendmsg+0x2f/0x50 [ 28.139264] inet_sendmsg+0x11f/0x5e0 [ 28.139269] ? __might_sleep+0x95/0x190 [ 28.139275] ? inet_recvmsg+0x5f0/0x5f0 [ 28.139282] ? selinux_socket_sendmsg+0x36/0x40 [ 28.139287] ? security_socket_sendmsg+0x89/0xb0 [ 28.139292] ? inet_recvmsg+0x5f0/0x5f0 [ 28.139299] sock_sendmsg+0xca/0x110 [ 28.139306] SYSC_sendto+0x361/0x5c0 [ 28.139314] ? SYSC_connect+0x4a0/0x4a0 [ 28.139319] ? up_read+0x1a/0x40 [ 28.139326] ? __do_page_fault+0x3d6/0xc90 [ 28.139354] ? __do_page_fault+0xc90/0xc90 [ 28.139362] ? SyS_setsockopt+0x215/0x360 [ 28.139371] ? SyS_recv+0x40/0x40 [ 28.139380] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 28.139391] SyS_sendto+0x40/0x50 [ 28.139400] entry_SYSCALL_64_fastpath+0x23/0x9a [ 28.139405] RIP: 0033:0x4401f9 [ 28.139407] RSP: 002b:00007ffdee6630b8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 28.139413] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 00000000004401f9 [ 28.139415] RDX: 0000000000000000 RSI: 0000000020aa1000 RDI: 0000000000000003 [ 28.139418] RBP: 00000000006ca018 R08: 0000000020aa1000 R09: 0000000000000010 [ 28.139421] R10: 0000000023ffffff R11: 0000000000000216 R12: 0000000000401760 [ 28.139423] R13: 00000000004017f0 R14: 0000000000000000 R15: 0000000000000000 [ 28.139441] [ 28.139444] Allocated by task 3448: [ 28.139448] save_stack+0x43/0xd0 [ 28.139452] kasan_kmalloc+0xad/0xe0 [ 28.139455] kasan_slab_alloc+0x12/0x20 [ 28.139458] kmem_cache_alloc+0x12e/0x760 [ 28.139463] dst_alloc+0x11f/0x1a0 [ 28.139466] rt_dst_alloc+0xe9/0x540 [ 28.139470] ip_route_output_key_hash_rcu+0xa40/0x2c40 [ 28.139473] ip_route_output_key_hash+0x20b/0x370 [ 28.139477] __ip4_datagram_connect+0xa6d/0x1240 [ 28.139481] __ip6_datagram_connect+0x709/0xf90 [ 28.139484] ip6_datagram_connect+0x2f/0x50 [ 28.139487] inet_dgram_connect+0x16b/0x1f0 [ 28.139490] SYSC_connect+0x213/0x4a0 [ 28.139493] SyS_connect+0x24/0x30 [ 28.139497] entry_SYSCALL_64_fastpath+0x23/0x9a [ 28.139498] [ 28.139500] Freed by task 0: [ 28.139503] save_stack+0x43/0xd0 [ 28.139507] kasan_slab_free+0x71/0xc0 [ 28.139509] kmem_cache_free+0x83/0x2a0 [ 28.139513] dst_destroy+0x216/0x330 [ 28.139515] dst_destroy_rcu+0x16/0x20 [ 28.139519] rcu_process_callbacks+0xd6c/0x17f0 [ 28.139523] __do_softirq+0x2d7/0xb85 [ 28.139524] [ 28.139527] The buggy address belongs to the object at ffff8801ccfa7b80 [ 28.139527] which belongs to the cache ip_dst_cache of size 216 [ 28.139531] The buggy address is located 24 bytes inside of [ 28.139531] 216-byte region [ffff8801ccfa7b80, ffff8801ccfa7c58) [ 28.139532] The buggy address belongs to the page: [ 28.139537] page:000000008ec8cdc0 count:1 mapcount:0 mapping:000000009c877daa index:0x0 [ 28.139542] flags: 0x2fffc0000000100(slab) [ 28.139548] raw: 02fffc0000000100 ffff8801ccfa7040 0000000000000000 000000010000000c [ 28.139553] raw: ffff8801d7f18348 ffffea00072b8ea0 ffff8801d6f3a4c0 0000000000000000 [ 28.139555] page dumped because: kasan: bad access detected [ 28.139556] [ 28.139557] Memory state around the buggy address: [ 28.139561] ffff8801ccfa7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.139564] ffff8801ccfa7b00: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.139567] >ffff8801ccfa7b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.139568] ^ [ 28.139571] ffff8801ccfa7c00: fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc fc [ 28.139575] ffff8801ccfa7c80: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 [ 28.139576] ================================================================== [ 28.139578] Disabling lock debugging due to kernel taint [ 28.139601] Kernel panic - not syncing: panic_on_warn set ... [ 28.139601] [ 28.139605] CPU: 0 PID: 3510 Comm: syzkaller062824 Tainted: G B 4.15.0-rc5+ #244 [ 28.139607] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.139608] Call Trace: [ 28.139613] dump_stack+0x194/0x257 [ 28.139618] ? arch_local_irq_restore+0x53/0x53 [ 28.139626] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 28.139631] ? vsnprintf+0x1ed/0x1900 [ 28.139635] ? ip6_xmit+0x1fe0/0x2090 [ 28.139639] panic+0x1e4/0x41c [ 28.139644] ? refcount_error_report+0x214/0x214 [ 28.139649] ? add_taint+0x1c/0x50 [ 28.139654] ? add_taint+0x1c/0x50 [ 28.139658] ? ip6_xmit+0x2048/0x2090 [ 28.139662] kasan_end_report+0x50/0x50 [ 28.139666] kasan_report+0x144/0x340 [ 28.139673] __asan_report_load8_noabort+0x14/0x20 [ 28.139676] ip6_xmit+0x2048/0x2090 [ 28.139680] ? __sk_dst_check+0x1a5/0x380 [ 28.139689] ? ip6_finish_output2+0x23a0/0x23a0 [ 28.139694] ? fl6_update_dst+0x127/0x2b0 [ 28.139699] ? check_noncircular+0x20/0x20 [ 28.139702] ? inet6_csk_route_socket+0x691/0xe80 [ 28.139708] ? lock_acquire+0x1d5/0x580 [ 28.139711] ? memcpy+0x45/0x50 [ 28.139715] ? lock_acquire+0x1d5/0x580 [ 28.139718] ? inet6_csk_xmit+0x114/0x580 [ 28.139722] ? tcpm_suck_dst+0x510/0x510 [ 28.139728] ? lock_release+0xa40/0xa40 [ 28.139733] ? __lock_is_held+0xb6/0x140 [ 28.139743] inet6_csk_xmit+0x2fc/0x580 [ 28.139748] ? inet6_csk_update_pmtu+0x160/0x160 [ 28.139753] ? rt_cpu_seq_show+0x2c0/0x2c0 [ 28.139758] ? refcount_add_not_zero+0x133/0x200 [ 28.139770] tcp_transmit_skb+0x1b1b/0x38c0 [ 28.139785] ? __tcp_select_window+0x900/0x900 [ 28.139792] ? tcp_fastopen_cookie_check+0x50f/0x8c0 [ 28.139797] ? tcp_try_fastopen+0x1b50/0x1b50 [ 28.139803] ? check_noncircular+0x20/0x20 [ 28.139813] ? pvclock_read_flags+0x160/0x160 [ 28.139818] ? tcp_init_transfer+0x390/0x390 [ 28.139827] ? tcp_rbtree_insert+0x135/0x190 [ 28.139834] tcp_connect+0x1e79/0x3fb0 [ 28.139844] ? tcp_push_one+0x100/0x100 [ 28.139848] ? lock_downgrade+0x8c7/0x980 [ 28.139856] ? pvclock_read_flags+0x160/0x160 [ 28.139861] ? mark_held_locks+0xaf/0x100 [ 28.139864] ? ip_route_output_key_hash+0x229/0x370 [ 28.139869] ? ktime_get_with_offset+0x188/0x420 [ 28.139876] ? kvm_clock_get_cycles+0x25/0x30 [ 28.139880] ? ktime_get_with_offset+0x2c1/0x420 [ 28.139886] ? do_gettimeofday+0x190/0x190 [ 28.139890] ? rcu_read_lock_sched_held+0x108/0x120 [ 28.139896] ? tcp_fastopen_defer_connect+0x163/0x4a0 [ 28.139900] ? ip_route_output_key_hash+0x252/0x370 [ 28.139905] ? siphash_1u64+0x18/0x270 [ 28.139917] tcp_v4_connect+0x15f5/0x1e80 [ 28.139920] ? SyS_sendto+0x40/0x50 [ 28.139930] ? tcp_v4_inbound_md5_hash+0x510/0x510 [ 28.139934] ? __lock_is_held+0xb6/0x140 [ 28.139942] __inet_stream_connect+0x2d4/0xf00 [ 28.139949] ? inet_bind+0x910/0x910 [ 28.139957] ? tcp_sendmsg_locked+0x247d/0x3b60 [ 28.139961] ? rcu_read_lock_sched_held+0x108/0x120 [ 28.139965] ? kmem_cache_alloc_trace+0x456/0x750 [ 28.139969] ? __thp_get_unmapped_area+0x130/0x130 [ 28.139972] ? __lock_acquire+0x664/0x3e00 [ 28.139976] ? __lock_acquire+0x664/0x3e00 [ 28.139983] tcp_sendmsg_locked+0x280e/0x3b60 [ 28.139990] ? avc_has_perm+0x35e/0x680 [ 28.139994] ? lock_downgrade+0x980/0x980 [ 28.140000] ? lock_release+0xa40/0xa40 [ 28.140008] ? sock_common_setsockopt+0x95/0xd0 [ 28.140014] ? tcp_sendpage+0x60/0x60 [ 28.140026] ? print_irqtrace_events+0x270/0x270 [ 28.140029] ? find_held_lock+0x35/0x1d0 [ 28.140036] ? lock_acquire+0x1d5/0x580 [ 28.140040] ? lock_sock_nested+0xa3/0x110 [ 28.140043] ? lock_acquire+0x1d5/0x580 [ 28.140046] ? tcp_sendmsg+0x21/0x50 [ 28.140055] ? mark_held_locks+0xaf/0x100 [ 28.140059] ? do_raw_spin_trylock+0x190/0x190 [ 28.140063] ? __local_bh_enable_ip+0x121/0x230 [ 28.140068] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 28.140072] ? lock_sock_nested+0x91/0x110 [ 28.140076] ? trace_hardirqs_on+0xd/0x10 [ 28.140079] ? __local_bh_enable_ip+0x121/0x230 [ 28.140086] tcp_sendmsg+0x2f/0x50 [ 28.140091] inet_sendmsg+0x11f/0x5e0 [ 28.140094] ? __might_sleep+0x95/0x190 [ 28.140099] ? inet_recvmsg+0x5f0/0x5f0 [ 28.140103] ? selinux_socket_sendmsg+0x36/0x40 [ 28.140107] ? security_socket_sendmsg+0x89/0xb0 [ 28.140111] ? inet_recvmsg+0x5f0/0x5f0 [ 28.140116] sock_sendmsg+0xca/0x110 [ 28.140121] SYSC_sendto+0x361/0x5c0 [ 28.140126] ? SYSC_connect+0x4a0/0x4a0 [ 28.140130] ? up_read+0x1a/0x40 [ 28.140135] ? __do_page_fault+0x3d6/0xc90 [ 28.140150] ? __do_page_fault+0xc90/0xc90 [ 28.140156] ? SyS_setsockopt+0x215/0x360 [ 28.140162] ? SyS_recv+0x40/0x40 [ 28.140167] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 28.140174] SyS_sendto+0x40/0x50 [ 28.140180] entry_SYSCALL_64_fastpath+0x23/0x9a [ 28.140183] RIP: 0033:0x4401f9 [ 28.140185] RSP: 002b:00007ffdee6630b8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 28.140189] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 00000000004401f9 [ 28.140191] RDX: 0000000000000000 RSI: 0000000020aa1000 RDI: 0000000000000003 [ 28.140193] RBP: 00000000006ca018 R08: 0000000020aa1000 R09: 0000000000000010 [ 28.140195] R10: 0000000023ffffff R11: 0000000000000216 R12: 0000000000401760 [ 28.140197] R13: 00000000004017f0 R14: 0000000000000000 R15: 0000000000000000 [ 28.158151] Dumping ftrace buffer: [ 28.158156] (ftrace buffer empty) [ 28.158158] Kernel Offset: disabled [ 29.388236] Rebooting in 86400 seconds..