[....] Starting enhanced syslogd: rsyslogd[ 11.779822] audit: type=1400 audit(1514660127.506:5): avc: denied { syslog } for pid=3041 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: [ 17.850562] audit: type=1400 audit(1514660133.577:6): avc: denied { map } for pid=3182 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.52' (ECDSA) to the list of known hosts. executing program [ 31.660723] audit: type=1400 audit(1514660147.387:7): avc: denied { map } for pid=3198 comm="syzkaller182576" path="/root/syzkaller182576666" 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 [ 31.664599] ================================================================== [ 31.664614] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 31.664617] Read of size 8 at addr ffff8801cedf38b0 by task syzkaller182576/3198 [ 31.664618] [ 31.664624] CPU: 1 PID: 3198 Comm: syzkaller182576 Not tainted 4.15.0-rc5+ #152 [ 31.664626] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.664628] Call Trace: [ 31.664638] dump_stack+0x194/0x257 [ 31.664643] ? arch_local_irq_restore+0x53/0x53 [ 31.664649] ? show_regs_print_info+0x18/0x18 [ 31.664653] ? print_irqtrace_events+0x270/0x270 [ 31.664657] ? __lock_acquire+0x664/0x3e00 [ 31.664661] ? __lock_acquire+0x3d4d/0x3e00 [ 31.664667] print_address_description+0x73/0x250 [ 31.664671] ? __lock_acquire+0x3d4d/0x3e00 [ 31.664675] kasan_report+0x25b/0x340 [ 31.664680] __asan_report_load8_noabort+0x14/0x20 [ 31.664683] __lock_acquire+0x3d4d/0x3e00 [ 31.664686] ? __lock_acquire+0x664/0x3e00 [ 31.664690] ? lock_downgrade+0x980/0x980 [ 31.664693] ? lock_downgrade+0x980/0x980 [ 31.664697] ? print_irqtrace_events+0x270/0x270 [ 31.664704] ? remove_wait_queue+0x81/0x350 [ 31.664709] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.664713] ? __lock_acquire+0x664/0x3e00 [ 31.664717] ? check_noncircular+0x20/0x20 [ 31.664724] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.664728] ? lock_acquire+0x1d5/0x580 [ 31.664731] ? lock_acquire+0x1d5/0x580 [ 31.664737] ? ep_free+0xf4/0x320 [ 31.664742] ? lock_release+0xa40/0xa40 [ 31.664747] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 31.664750] ? print_irqtrace_events+0x270/0x270 [ 31.664754] ? print_irqtrace_events+0x270/0x270 [ 31.664761] ? rcu_note_context_switch+0x710/0x710 [ 31.664765] ? __might_sleep+0x95/0x190 [ 31.664769] ? ep_free+0xf4/0x320 [ 31.664775] ? __mutex_lock+0x16f/0x1a80 [ 31.664777] ? ep_free+0xf4/0x320 [ 31.664782] ? print_irqtrace_events+0x270/0x270 [ 31.664784] ? ep_free+0xf4/0x320 [ 31.664789] lock_acquire+0x1d5/0x580 [ 31.664792] ? lock_acquire+0x1d5/0x580 [ 31.664796] ? remove_wait_queue+0x81/0x350 [ 31.664801] ? lock_release+0xa40/0xa40 [ 31.664806] ? lock_acquire+0x1d5/0x580 [ 31.664809] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.664812] ? lock_acquire+0x1d5/0x580 [ 31.664816] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 31.664821] _raw_spin_lock_irqsave+0x96/0xc0 [ 31.664824] ? remove_wait_queue+0x81/0x350 [ 31.664828] remove_wait_queue+0x81/0x350 [ 31.664837] ? depot_save_stack+0x3b5/0x490 [ 31.664841] ? add_wait_queue+0x290/0x290 [ 31.664845] ? rcutorture_record_progress+0x10/0x10 [ 31.664849] ? lock_release+0xa40/0xa40 [ 31.664854] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 31.664861] ? __kernel_text_address+0xd/0x40 [ 31.664865] ? clear_tfile_check_list+0x370/0x370 [ 31.664870] ? check_noncircular+0x20/0x20 [ 31.664875] ? locks_remove_file+0x3fa/0x5a0 [ 31.664880] ep_free+0x13f/0x320 [ 31.664884] ? ep_remove+0x800/0x800 [ 31.664889] ? fsnotify_first_mark+0x2b0/0x2b0 [ 31.664893] ? ep_free+0x320/0x320 [ 31.664896] ep_eventpoll_release+0x44/0x60 [ 31.664901] __fput+0x327/0x7e0 [ 31.664905] ? fput+0x140/0x140 [ 31.664909] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.664914] ____fput+0x15/0x20 [ 31.664918] task_work_run+0x199/0x270 [ 31.664922] ? task_work_cancel+0x210/0x210 [ 31.664928] ? _raw_spin_unlock+0x22/0x30 [ 31.664932] ? switch_task_namespaces+0x87/0xc0 [ 31.664938] do_exit+0x9bb/0x1ad0 [ 31.664943] ? __handle_mm_fault+0x2330/0x3ce0 [ 31.664948] ? mm_update_next_owner+0x930/0x930 [ 31.664955] ? do_raw_spin_trylock+0x190/0x190 [ 31.664959] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 31.664963] ? check_noncircular+0x20/0x20 [ 31.664967] ? _raw_spin_unlock+0x22/0x30 [ 31.664971] ? __handle_mm_fault+0x80e/0x3ce0 [ 31.664976] ? check_noncircular+0x20/0x20 [ 31.664979] ? __pmd_alloc+0x4e0/0x4e0 [ 31.664982] ? lock_downgrade+0x980/0x980 [ 31.664987] ? find_held_lock+0x35/0x1d0 [ 31.664992] ? handle_mm_fault+0x248/0x8d0 [ 31.664996] ? find_held_lock+0x35/0x1d0 [ 31.665006] ? __do_page_fault+0x5f7/0xc90 [ 31.665010] ? lock_downgrade+0x980/0x980 [ 31.665015] ? handle_mm_fault+0x410/0x8d0 [ 31.665018] ? down_read_trylock+0xdb/0x170 [ 31.665022] ? __do_page_fault+0x32d/0xc90 [ 31.665025] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 31.665030] ? vmacache_find+0x5f/0x280 [ 31.665035] do_group_exit+0x149/0x400 [ 31.665039] ? __do_page_fault+0x3d6/0xc90 [ 31.665043] ? SyS_exit+0x30/0x30 [ 31.665054] ? do_fast_syscall_32+0x156/0xf9d [ 31.665058] ? do_group_exit+0x400/0x400 [ 31.665062] SyS_exit_group+0x1d/0x20 [ 31.665066] do_fast_syscall_32+0x3ee/0xf9d [ 31.665071] ? do_int80_syscall_32+0x9d0/0x9d0 [ 31.665074] ? kasan_check_read+0x11/0x20 [ 31.665079] ? syscall_return_slowpath+0x550/0x550 [ 31.665086] ? SyS_rt_sigaction+0x94/0x1b0 [ 31.665090] ? SyS_sigprocmask+0x4b0/0x4b0 [ 31.665094] ? SyS_read+0x184/0x220 [ 31.665098] ? retint_user+0x18/0x18 [ 31.665103] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.665108] entry_SYSENTER_compat+0x54/0x63 [ 31.665112] RIP: 0023:0xf7f24c79 [ 31.665114] RSP: 002b:00000000ffbba6dc EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 31.665119] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 31.665121] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 31.665123] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 31.665125] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 31.665128] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 31.665132] [ 31.665135] Allocated by task 3198: [ 31.665138] save_stack+0x43/0xd0 [ 31.665141] kasan_kmalloc+0xad/0xe0 [ 31.665147] kmem_cache_alloc_trace+0x136/0x750 [ 31.665155] binder_get_thread+0x1cf/0x870 [ 31.665158] binder_poll+0x8c/0x390 [ 31.665161] ep_item_poll.isra.10+0xec/0x320 [ 31.665164] ep_insert+0x6a3/0x1b10 [ 31.665166] SyS_epoll_ctl+0x12e4/0x1ab0 [ 31.665169] do_fast_syscall_32+0x3ee/0xf9d [ 31.665172] entry_SYSENTER_compat+0x54/0x63 [ 31.665173] [ 31.665174] Freed by task 3198: [ 31.665177] save_stack+0x43/0xd0 [ 31.665180] kasan_slab_free+0x71/0xc0 [ 31.665182] kfree+0xd6/0x260 [ 31.665186] binder_thread_dec_tmpref+0x27f/0x310 [ 31.665189] binder_thread_release+0x27d/0x540 [ 31.665193] binder_ioctl+0xc02/0x1417 [ 31.665196] compat_SyS_ioctl+0x151/0x2a30 [ 31.665199] do_fast_syscall_32+0x3ee/0xf9d [ 31.665202] entry_SYSENTER_compat+0x54/0x63 [ 31.665202] [ 31.665205] The buggy address belongs to the object at ffff8801cedf3800 [ 31.665205] which belongs to the cache kmalloc-512 of size 512 [ 31.665208] The buggy address is located 176 bytes inside of [ 31.665208] 512-byte region [ffff8801cedf3800, ffff8801cedf3a00) [ 31.665209] The buggy address belongs to the page: [ 31.665214] page:00000000c7b92a59 count:1 mapcount:0 mapping:0000000040ea0002 index:0x0 [ 31.665218] flags: 0x2fffc0000000100(slab) [ 31.665224] raw: 02fffc0000000100 ffff8801cedf3080 0000000000000000 0000000100000006 [ 31.665228] raw: ffffea00073cb760 ffffea00073b37a0 ffff8801dac00940 0000000000000000 [ 31.665230] page dumped because: kasan: bad access detected [ 31.665231] [ 31.665232] Memory state around the buggy address: [ 31.665235] ffff8801cedf3780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.665238] ffff8801cedf3800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.665240] >ffff8801cedf3880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.665242] ^ [ 31.665244] ffff8801cedf3900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.665247] ffff8801cedf3980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.665248] ================================================================== [ 31.665249] Disabling lock debugging due to kernel taint [ 31.665252] Kernel panic - not syncing: panic_on_warn set ... [ 31.665252] [ 31.665255] CPU: 1 PID: 3198 Comm: syzkaller182576 Tainted: G B 4.15.0-rc5+ #152 [ 31.665257] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.665258] Call Trace: [ 31.665263] dump_stack+0x194/0x257 [ 31.665268] ? arch_local_irq_restore+0x53/0x53 [ 31.665271] ? kasan_end_report+0x32/0x50 [ 31.665274] ? lock_downgrade+0x980/0x980 [ 31.665278] ? vsnprintf+0x1ed/0x1900 [ 31.665282] ? __lock_acquire+0x3cf0/0x3e00 [ 31.665285] panic+0x1e4/0x41c [ 31.665289] ? refcount_error_report+0x214/0x214 [ 31.665293] ? add_taint+0x40/0x50 [ 31.665296] ? add_taint+0x1c/0x50 [ 31.665300] ? __lock_acquire+0x3d4d/0x3e00 [ 31.665303] kasan_end_report+0x50/0x50 [ 31.665307] kasan_report+0x144/0x340 [ 31.665311] __asan_report_load8_noabort+0x14/0x20 [ 31.665315] __lock_acquire+0x3d4d/0x3e00 [ 31.665318] ? __lock_acquire+0x664/0x3e00 [ 31.665322] ? lock_downgrade+0x980/0x980 [ 31.665325] ? lock_downgrade+0x980/0x980 [ 31.665329] ? print_irqtrace_events+0x270/0x270 [ 31.665332] ? remove_wait_queue+0x81/0x350 [ 31.665337] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.665341] ? __lock_acquire+0x664/0x3e00 [ 31.665345] ? check_noncircular+0x20/0x20 [ 31.665351] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.665355] ? lock_acquire+0x1d5/0x580 [ 31.665359] ? lock_acquire+0x1d5/0x580 [ 31.665361] ? ep_free+0xf4/0x320 [ 31.665366] ? lock_release+0xa40/0xa40 [ 31.665370] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 31.665373] ? print_irqtrace_events+0x270/0x270 [ 31.665377] ? print_irqtrace_events+0x270/0x270 [ 31.665380] ? rcu_note_context_switch+0x710/0x710 [ 31.665385] ? __might_sleep+0x95/0x190 [ 31.665388] ? ep_free+0xf4/0x320 [ 31.665392] ? __mutex_lock+0x16f/0x1a80 [ 31.665394] ? ep_free+0xf4/0x320 [ 31.665399] ? print_irqtrace_events+0x270/0x270 [ 31.665401] ? ep_free+0xf4/0x320 [ 31.665406] lock_acquire+0x1d5/0x580 [ 31.665409] ? lock_acquire+0x1d5/0x580 [ 31.665413] ? remove_wait_queue+0x81/0x350 [ 31.665417] ? lock_release+0xa40/0xa40 [ 31.665422] ? lock_acquire+0x1d5/0x580 [ 31.665426] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.665429] ? lock_acquire+0x1d5/0x580 [ 31.665432] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 31.665436] _raw_spin_lock_irqsave+0x96/0xc0 [ 31.665440] ? remove_wait_queue+0x81/0x350 [ 31.665443] remove_wait_queue+0x81/0x350 [ 31.665447] ? depot_save_stack+0x3b5/0x490 [ 31.665451] ? add_wait_queue+0x290/0x290 [ 31.665455] ? rcutorture_record_progress+0x10/0x10 [ 31.665458] ? lock_release+0xa40/0xa40 [ 31.665463] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 31.665467] ? __kernel_text_address+0xd/0x40 [ 31.665472] ? clear_tfile_check_list+0x370/0x370 [ 31.665476] ? check_noncircular+0x20/0x20 [ 31.665481] ? locks_remove_file+0x3fa/0x5a0 [ 31.665485] ep_free+0x13f/0x320 [ 31.665489] ? ep_remove+0x800/0x800 [ 31.665493] ? fsnotify_first_mark+0x2b0/0x2b0 [ 31.665497] ? ep_free+0x320/0x320 [ 31.665500] ep_eventpoll_release+0x44/0x60 [ 31.665504] __fput+0x327/0x7e0 [ 31.665508] ? fput+0x140/0x140 [ 31.665512] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.665516] ____fput+0x15/0x20 [ 31.665520] task_work_run+0x199/0x270 [ 31.665525] ? task_work_cancel+0x210/0x210 [ 31.665529] ? _raw_spin_unlock+0x22/0x30 [ 31.665533] ? switch_task_namespaces+0x87/0xc0 [ 31.665537] do_exit+0x9bb/0x1ad0 [ 31.665541] ? __handle_mm_fault+0x2330/0x3ce0 [ 31.665545] ? mm_update_next_owner+0x930/0x930 [ 31.665551] ? do_raw_spin_trylock+0x190/0x190 [ 31.665555] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 31.665558] ? check_noncircular+0x20/0x20 [ 31.665563] ? _raw_spin_unlock+0x22/0x30 [ 31.665566] ? __handle_mm_fault+0x80e/0x3ce0 [ 31.665571] ? check_noncircular+0x20/0x20 [ 31.665574] ? __pmd_alloc+0x4e0/0x4e0 [ 31.665577] ? lock_downgrade+0x980/0x980 [ 31.665581] ? find_held_lock+0x35/0x1d0 [ 31.665586] ? handle_mm_fault+0x248/0x8d0 [ 31.665590] ? find_held_lock+0x35/0x1d0 [ 31.665596] ? __do_page_fault+0x5f7/0xc90 [ 31.665600] ? lock_downgrade+0x980/0x980 [ 31.665604] ? handle_mm_fault+0x410/0x8d0 [ 31.665607] ? down_read_trylock+0xdb/0x170 [ 31.665611] ? __do_page_fault+0x32d/0xc90 [ 31.665614] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 31.665618] ? vmacache_find+0x5f/0x280 [ 31.665623] do_group_exit+0x149/0x400 [ 31.665627] ? __do_page_fault+0x3d6/0xc90 [ 31.665630] ? SyS_exit+0x30/0x30 [ 31.665634] ? do_fast_syscall_32+0x156/0xf9d [ 31.665638] ? do_group_exit+0x400/0x400 [ 31.665642] SyS_exit_group+0x1d/0x20 [ 31.665645] do_fast_syscall_32+0x3ee/0xf9d [ 31.665650] ? do_int80_syscall_32+0x9d0/0x9d0 [ 31.665654] ? kasan_check_read+0x11/0x20 [ 31.665658] ? syscall_return_slowpath+0x550/0x550 [ 31.665662] ? SyS_rt_sigaction+0x94/0x1b0 [ 31.665666] ? SyS_sigprocmask+0x4b0/0x4b0 [ 31.665669] ? SyS_read+0x184/0x220 [ 31.665672] ? retint_user+0x18/0x18 [ 31.665676] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.665681] entry_SYSENTER_compat+0x54/0x63 [ 31.665684] RIP: 0023:0xf7f24c79 [ 31.665686] RSP: 002b:00000000ffbba6dc EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 31.665689] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 31.665691] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 31.665693] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 31.665695] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 31.665697] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 31.686614] Dumping ftrace buffer: [ 31.686618] (ftrace buffer empty) [ 31.686622] Kernel Offset: disabled [ 32.966385] Rebooting in 86400 seconds..