[....] Starting enhanced syslogd: rsyslogd[ 12.246189] audit: type=1400 audit(1515310033.698:5): avc: denied { syslog } for pid=3340 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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] 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.289352] audit: type=1400 audit(1515310040.742:6): avc: denied { map } for pid=3480 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.63' (ECDSA) to the list of known hosts. executing program [ 29.027504] audit: type=1400 audit(1515310050.480:7): avc: denied { map } for pid=3496 comm="syzkaller017807" path="/root/syzkaller017807831" 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 [ 29.031716] ================================================================== [ 29.031729] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 29.031732] Read of size 8 at addr ffff8801c85f6b70 by task syzkaller017807/3496 [ 29.031733] [ 29.031738] CPU: 0 PID: 3496 Comm: syzkaller017807 Not tainted 4.15.0-rc6+ #160 [ 29.031740] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.031742] Call Trace: [ 29.031750] dump_stack+0x194/0x257 [ 29.031755] ? arch_local_irq_restore+0x53/0x53 [ 29.031760] ? show_regs_print_info+0x18/0x18 [ 29.031763] ? print_irqtrace_events+0x270/0x270 [ 29.031767] ? __lock_acquire+0x664/0x3e00 [ 29.031771] ? __lock_acquire+0x3d4d/0x3e00 [ 29.031777] print_address_description+0x73/0x250 [ 29.031780] ? __lock_acquire+0x3d4d/0x3e00 [ 29.031784] kasan_report+0x25b/0x340 [ 29.031791] __asan_report_load8_noabort+0x14/0x20 [ 29.031795] __lock_acquire+0x3d4d/0x3e00 [ 29.031803] ? __lock_acquire+0x664/0x3e00 [ 29.031807] ? lock_downgrade+0x980/0x980 [ 29.031810] ? lock_downgrade+0x980/0x980 [ 29.031814] ? print_irqtrace_events+0x270/0x270 [ 29.031819] ? remove_wait_queue+0x81/0x350 [ 29.031824] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.031828] ? __lock_acquire+0x664/0x3e00 [ 29.031832] ? check_noncircular+0x20/0x20 [ 29.031838] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.031842] ? lock_acquire+0x1d5/0x580 [ 29.031846] ? lock_acquire+0x1d5/0x580 [ 29.031851] ? ep_free+0xf4/0x320 [ 29.031856] ? lock_release+0xa40/0xa40 [ 29.031861] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.031864] ? print_irqtrace_events+0x270/0x270 [ 29.031868] ? print_irqtrace_events+0x270/0x270 [ 29.031873] ? rcu_note_context_switch+0x710/0x710 [ 29.031877] ? __might_sleep+0x95/0x190 [ 29.031881] ? ep_free+0xf4/0x320 [ 29.031886] ? __mutex_lock+0x16f/0x1a80 [ 29.031888] ? ep_free+0xf4/0x320 [ 29.031893] ? print_irqtrace_events+0x270/0x270 [ 29.031896] ? ep_free+0xf4/0x320 [ 29.031900] lock_acquire+0x1d5/0x580 [ 29.031904] ? lock_acquire+0x1d5/0x580 [ 29.031907] ? remove_wait_queue+0x81/0x350 [ 29.031912] ? lock_release+0xa40/0xa40 [ 29.031917] ? lock_acquire+0x1d5/0x580 [ 29.031920] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.031923] ? lock_acquire+0x1d5/0x580 [ 29.031927] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 29.031932] _raw_spin_lock_irqsave+0x96/0xc0 [ 29.031936] ? remove_wait_queue+0x81/0x350 [ 29.031940] remove_wait_queue+0x81/0x350 [ 29.031945] ? depot_save_stack+0x3b5/0x490 [ 29.031949] ? add_wait_queue+0x290/0x290 [ 29.031953] ? rcutorture_record_progress+0x10/0x10 [ 29.031956] ? lock_release+0xa40/0xa40 [ 29.031962] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 29.031967] ? __kernel_text_address+0xd/0x40 [ 29.031972] ? clear_tfile_check_list+0x370/0x370 [ 29.031976] ? check_noncircular+0x20/0x20 [ 29.031982] ? locks_remove_file+0x3fa/0x5a0 [ 29.031987] ep_free+0x13f/0x320 [ 29.031991] ? ep_remove+0x800/0x800 [ 29.031995] ? fsnotify_first_mark+0x2b0/0x2b0 [ 29.031999] ? ep_free+0x320/0x320 [ 29.032006] ep_eventpoll_release+0x44/0x60 [ 29.032010] __fput+0x327/0x7e0 [ 29.032015] ? fput+0x140/0x140 [ 29.032019] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.032024] ____fput+0x15/0x20 [ 29.032028] task_work_run+0x199/0x270 [ 29.032033] ? task_work_cancel+0x210/0x210 [ 29.032037] ? _raw_spin_unlock+0x22/0x30 [ 29.032041] ? switch_task_namespaces+0x87/0xc0 [ 29.032046] do_exit+0x9bb/0x1ad0 [ 29.032051] ? __handle_mm_fault+0x2330/0x3ce0 [ 29.032055] ? mm_update_next_owner+0x930/0x930 [ 29.032061] ? do_raw_spin_trylock+0x190/0x190 [ 29.032065] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.032069] ? check_noncircular+0x20/0x20 [ 29.032073] ? _raw_spin_unlock+0x22/0x30 [ 29.032076] ? __handle_mm_fault+0x80e/0x3ce0 [ 29.032081] ? check_noncircular+0x20/0x20 [ 29.032084] ? __pmd_alloc+0x4e0/0x4e0 [ 29.032087] ? lock_downgrade+0x980/0x980 [ 29.032092] ? find_held_lock+0x35/0x1d0 [ 29.032096] ? handle_mm_fault+0x248/0x8d0 [ 29.032100] ? find_held_lock+0x35/0x1d0 [ 29.032107] ? __do_page_fault+0x5f7/0xc90 [ 29.032110] ? lock_downgrade+0x980/0x980 [ 29.032115] ? handle_mm_fault+0x410/0x8d0 [ 29.032118] ? down_read_trylock+0xdb/0x170 [ 29.032122] ? __do_page_fault+0x32d/0xc90 [ 29.032125] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 29.032129] ? vmacache_find+0x5f/0x280 [ 29.032134] do_group_exit+0x149/0x400 [ 29.032138] ? __do_page_fault+0x3d6/0xc90 [ 29.032142] ? SyS_exit+0x30/0x30 [ 29.032149] ? do_fast_syscall_32+0x156/0xf9d [ 29.032152] ? do_group_exit+0x400/0x400 [ 29.032156] SyS_exit_group+0x1d/0x20 [ 29.032160] do_fast_syscall_32+0x3ee/0xf9d [ 29.032165] ? do_int80_syscall_32+0x9d0/0x9d0 [ 29.032168] ? kasan_check_read+0x11/0x20 [ 29.032173] ? syscall_return_slowpath+0x550/0x550 [ 29.032178] ? SyS_rt_sigaction+0x94/0x1b0 [ 29.032182] ? SyS_sigprocmask+0x4b0/0x4b0 [ 29.032185] ? SyS_read+0x184/0x220 [ 29.032188] ? retint_user+0x18/0x18 [ 29.032193] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 29.032199] entry_SYSENTER_compat+0x54/0x63 [ 29.032203] RIP: 0023:0xf7f90c79 [ 29.032205] RSP: 002b:00000000ff96254c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 29.032209] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 29.032211] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 29.032213] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 29.032215] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 29.032217] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 29.032221] [ 29.032223] Allocated by task 3496: [ 29.032227] save_stack+0x43/0xd0 [ 29.032230] kasan_kmalloc+0xad/0xe0 [ 29.032233] kmem_cache_alloc_trace+0x136/0x750 [ 29.032237] binder_get_thread+0x1cf/0x870 [ 29.032239] binder_poll+0x8c/0x390 [ 29.032243] ep_item_poll.isra.10+0xec/0x320 [ 29.032245] ep_insert+0x6a3/0x1b10 [ 29.032248] SyS_epoll_ctl+0x12e4/0x1ab0 [ 29.032252] do_fast_syscall_32+0x3ee/0xf9d [ 29.032255] entry_SYSENTER_compat+0x54/0x63 [ 29.032256] [ 29.032257] Freed by task 3496: [ 29.032260] save_stack+0x43/0xd0 [ 29.032263] kasan_slab_free+0x71/0xc0 [ 29.032265] kfree+0xd6/0x260 [ 29.032268] binder_thread_dec_tmpref+0x27f/0x310 [ 29.032270] binder_thread_release+0x27d/0x540 [ 29.032273] binder_ioctl+0xc02/0x1417 [ 29.032276] compat_SyS_ioctl+0x151/0x2a30 [ 29.032279] do_fast_syscall_32+0x3ee/0xf9d [ 29.032282] entry_SYSENTER_compat+0x54/0x63 [ 29.032283] [ 29.032286] The buggy address belongs to the object at ffff8801c85f6ac0 [ 29.032286] which belongs to the cache kmalloc-512 of size 512 [ 29.032289] The buggy address is located 176 bytes inside of [ 29.032289] 512-byte region [ffff8801c85f6ac0, ffff8801c85f6cc0) [ 29.032290] The buggy address belongs to the page: [ 29.032293] page:ffffea0007217d80 count:1 mapcount:0 mapping:ffff8801c85f60c0 index:0x0 [ 29.032296] flags: 0x2fffc0000000100(slab) [ 29.032302] raw: 02fffc0000000100 ffff8801c85f60c0 0000000000000000 0000000100000006 [ 29.032306] raw: ffffea000721e320 ffffea0007140ca0 ffff8801dac00940 0000000000000000 [ 29.032308] page dumped because: kasan: bad access detected [ 29.032309] [ 29.032310] Memory state around the buggy address: [ 29.032312] ffff8801c85f6a00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 29.032315] ffff8801c85f6a80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 29.032318] >ffff8801c85f6b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.032319] ^ [ 29.032321] ffff8801c85f6b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.032324] ffff8801c85f6c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.032325] ================================================================== [ 29.032326] Disabling lock debugging due to kernel taint [ 29.032329] Kernel panic - not syncing: panic_on_warn set ... [ 29.032329] [ 29.032333] CPU: 0 PID: 3496 Comm: syzkaller017807 Tainted: G B 4.15.0-rc6+ #160 [ 29.032334] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.032335] Call Trace: [ 29.032339] dump_stack+0x194/0x257 [ 29.032343] ? arch_local_irq_restore+0x53/0x53 [ 29.032347] ? kasan_end_report+0x32/0x50 [ 29.032350] ? lock_downgrade+0x980/0x980 [ 29.032355] ? vsnprintf+0x1ed/0x1900 [ 29.032359] ? __lock_acquire+0x3cb0/0x3e00 [ 29.032362] panic+0x1e4/0x41c [ 29.032366] ? refcount_error_report+0x214/0x214 [ 29.032370] ? add_taint+0x40/0x50 [ 29.032373] ? add_taint+0x1c/0x50 [ 29.032377] ? __lock_acquire+0x3d4d/0x3e00 [ 29.032380] kasan_end_report+0x50/0x50 [ 29.032384] kasan_report+0x144/0x340 [ 29.032388] __asan_report_load8_noabort+0x14/0x20 [ 29.032392] __lock_acquire+0x3d4d/0x3e00 [ 29.032395] ? __lock_acquire+0x664/0x3e00 [ 29.032398] ? lock_downgrade+0x980/0x980 [ 29.032401] ? lock_downgrade+0x980/0x980 [ 29.032405] ? print_irqtrace_events+0x270/0x270 [ 29.032409] ? remove_wait_queue+0x81/0x350 [ 29.032414] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.032417] ? __lock_acquire+0x664/0x3e00 [ 29.032421] ? check_noncircular+0x20/0x20 [ 29.032428] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.032432] ? lock_acquire+0x1d5/0x580 [ 29.032435] ? lock_acquire+0x1d5/0x580 [ 29.032438] ? ep_free+0xf4/0x320 [ 29.032443] ? lock_release+0xa40/0xa40 [ 29.032446] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.032449] ? print_irqtrace_events+0x270/0x270 [ 29.032453] ? print_irqtrace_events+0x270/0x270 [ 29.032457] ? rcu_note_context_switch+0x710/0x710 [ 29.032461] ? __might_sleep+0x95/0x190 [ 29.032464] ? ep_free+0xf4/0x320 [ 29.032467] ? __mutex_lock+0x16f/0x1a80 [ 29.032470] ? ep_free+0xf4/0x320 [ 29.032474] ? print_irqtrace_events+0x270/0x270 [ 29.032477] ? ep_free+0xf4/0x320 [ 29.032482] lock_acquire+0x1d5/0x580 [ 29.032485] ? lock_acquire+0x1d5/0x580 [ 29.032488] ? remove_wait_queue+0x81/0x350 [ 29.032493] ? lock_release+0xa40/0xa40 [ 29.032498] ? lock_acquire+0x1d5/0x580 [ 29.032501] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.032504] ? lock_acquire+0x1d5/0x580 [ 29.032508] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 29.032512] _raw_spin_lock_irqsave+0x96/0xc0 [ 29.032516] ? remove_wait_queue+0x81/0x350 [ 29.032519] remove_wait_queue+0x81/0x350 [ 29.032523] ? depot_save_stack+0x3b5/0x490 [ 29.032527] ? add_wait_queue+0x290/0x290 [ 29.032530] ? rcutorture_record_progress+0x10/0x10 [ 29.032534] ? lock_release+0xa40/0xa40 [ 29.032539] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 29.032543] ? __kernel_text_address+0xd/0x40 [ 29.032548] ? clear_tfile_check_list+0x370/0x370 [ 29.032552] ? check_noncircular+0x20/0x20 [ 29.032556] ? locks_remove_file+0x3fa/0x5a0 [ 29.032562] ep_free+0x13f/0x320 [ 29.032565] ? ep_remove+0x800/0x800 [ 29.032568] ? fsnotify_first_mark+0x2b0/0x2b0 [ 29.032573] ? ep_free+0x320/0x320 [ 29.032576] ep_eventpoll_release+0x44/0x60 [ 29.032580] __fput+0x327/0x7e0 [ 29.032585] ? fput+0x140/0x140 [ 29.032589] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.032593] ____fput+0x15/0x20 [ 29.032597] task_work_run+0x199/0x270 [ 29.032602] ? task_work_cancel+0x210/0x210 [ 29.032605] ? _raw_spin_unlock+0x22/0x30 [ 29.032609] ? switch_task_namespaces+0x87/0xc0 [ 29.032613] do_exit+0x9bb/0x1ad0 [ 29.032617] ? __handle_mm_fault+0x2330/0x3ce0 [ 29.032621] ? mm_update_next_owner+0x930/0x930 [ 29.032626] ? do_raw_spin_trylock+0x190/0x190 [ 29.032631] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.032634] ? check_noncircular+0x20/0x20 [ 29.032638] ? _raw_spin_unlock+0x22/0x30 [ 29.032642] ? __handle_mm_fault+0x80e/0x3ce0 [ 29.032646] ? check_noncircular+0x20/0x20 [ 29.032649] ? __pmd_alloc+0x4e0/0x4e0 [ 29.032652] ? lock_downgrade+0x980/0x980 [ 29.032657] ? find_held_lock+0x35/0x1d0 [ 29.032662] ? handle_mm_fault+0x248/0x8d0 [ 29.032665] ? find_held_lock+0x35/0x1d0 [ 29.032671] ? __do_page_fault+0x5f7/0xc90 [ 29.032674] ? lock_downgrade+0x980/0x980 [ 29.032679] ? handle_mm_fault+0x410/0x8d0 [ 29.032682] ? down_read_trylock+0xdb/0x170 [ 29.032685] ? __do_page_fault+0x32d/0xc90 [ 29.032689] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 29.032692] ? vmacache_find+0x5f/0x280 [ 29.032697] do_group_exit+0x149/0x400 [ 29.032701] ? __do_page_fault+0x3d6/0xc90 [ 29.032704] ? SyS_exit+0x30/0x30 [ 29.032708] ? do_fast_syscall_32+0x156/0xf9d [ 29.032712] ? do_group_exit+0x400/0x400 [ 29.032716] SyS_exit_group+0x1d/0x20 [ 29.032719] do_fast_syscall_32+0x3ee/0xf9d [ 29.032724] ? do_int80_syscall_32+0x9d0/0x9d0 [ 29.032728] ? kasan_check_read+0x11/0x20 [ 29.032732] ? syscall_return_slowpath+0x550/0x550 [ 29.032736] ? SyS_rt_sigaction+0x94/0x1b0 [ 29.032740] ? SyS_sigprocmask+0x4b0/0x4b0 [ 29.032743] ? SyS_read+0x184/0x220 [ 29.032746] ? retint_user+0x18/0x18 [ 29.032751] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 29.032756] entry_SYSENTER_compat+0x54/0x63 [ 29.032758] RIP: 0023:0xf7f90c79 [ 29.032760] RSP: 002b:00000000ff96254c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 29.032764] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 29.032766] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 29.032767] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 29.032769] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 29.032771] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 29.053382] Dumping ftrace buffer: [ 29.053386] (ftrace buffer empty) [ 29.053388] Kernel Offset: disabled [ 30.335080] Rebooting in 86400 seconds..