[....] Starting enhanced syslogd: rsyslogd[ 12.808229] audit: type=1400 audit(1515981658.817:5): avc: denied { syslog } for pid=3494 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.182344] audit: type=1400 audit(1515981665.192:6): avc: denied { map } for pid=3634 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.21' (ECDSA) to the list of known hosts. executing program [ 29.122934] audit: type=1400 audit(1515981675.132:7): avc: denied { map } for pid=3649 comm="syzkaller661004" path="/root/syzkaller661004804" 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.128182] ================================================================== [ 29.128194] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 29.128198] Read of size 8 at addr ffff8801ba89e130 by task syzkaller661004/3649 [ 29.128199] [ 29.128204] CPU: 1 PID: 3649 Comm: syzkaller661004 Not tainted 4.15.0-rc7+ #172 [ 29.128206] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.128208] Call Trace: [ 29.128216] dump_stack+0x194/0x257 [ 29.128221] ? arch_local_irq_restore+0x53/0x53 [ 29.128226] ? show_regs_print_info+0x18/0x18 [ 29.128230] ? print_irqtrace_events+0x270/0x270 [ 29.128234] ? __lock_acquire+0x664/0x3e00 [ 29.128238] ? __lock_acquire+0x3d4d/0x3e00 [ 29.128244] print_address_description+0x73/0x250 [ 29.128247] ? __lock_acquire+0x3d4d/0x3e00 [ 29.128251] kasan_report+0x25b/0x340 [ 29.128256] __asan_report_load8_noabort+0x14/0x20 [ 29.128260] __lock_acquire+0x3d4d/0x3e00 [ 29.128266] ? __lock_acquire+0x664/0x3e00 [ 29.128270] ? lock_downgrade+0x980/0x980 [ 29.128273] ? lock_downgrade+0x980/0x980 [ 29.128279] ? print_irqtrace_events+0x270/0x270 [ 29.128285] ? remove_wait_queue+0x81/0x350 [ 29.128290] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.128294] ? __lock_acquire+0x664/0x3e00 [ 29.128298] ? check_noncircular+0x20/0x20 [ 29.128305] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.128309] ? lock_acquire+0x1d5/0x580 [ 29.128312] ? lock_acquire+0x1d5/0x580 [ 29.128317] ? ep_free+0xf4/0x320 [ 29.128322] ? lock_release+0xa40/0xa40 [ 29.128327] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.128331] ? print_irqtrace_events+0x270/0x270 [ 29.128334] ? print_irqtrace_events+0x270/0x270 [ 29.128340] ? rcu_note_context_switch+0x710/0x710 [ 29.128345] ? __might_sleep+0x95/0x190 [ 29.128348] ? ep_free+0xf4/0x320 [ 29.128355] ? __mutex_lock+0x16f/0x1a80 [ 29.128358] ? ep_free+0xf4/0x320 [ 29.128362] ? print_irqtrace_events+0x270/0x270 [ 29.128365] ? ep_free+0xf4/0x320 [ 29.128370] lock_acquire+0x1d5/0x580 [ 29.128373] ? lock_acquire+0x1d5/0x580 [ 29.128377] ? remove_wait_queue+0x81/0x350 [ 29.128382] ? lock_release+0xa40/0xa40 [ 29.128387] ? lock_acquire+0x1d5/0x580 [ 29.128391] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.128394] ? lock_acquire+0x1d5/0x580 [ 29.128397] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 29.128404] _raw_spin_lock_irqsave+0x96/0xc0 [ 29.128408] ? remove_wait_queue+0x81/0x350 [ 29.128412] remove_wait_queue+0x81/0x350 [ 29.128417] ? depot_save_stack+0x3b5/0x490 [ 29.128421] ? add_wait_queue+0x290/0x290 [ 29.128424] ? rcutorture_record_progress+0x10/0x10 [ 29.128428] ? lock_release+0xa40/0xa40 [ 29.128433] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 29.128438] ? __kernel_text_address+0xd/0x40 [ 29.128443] ? clear_tfile_check_list+0x370/0x370 [ 29.128448] ? check_noncircular+0x20/0x20 [ 29.128453] ? locks_remove_file+0x3fa/0x5a0 [ 29.128459] ep_free+0x13f/0x320 [ 29.128463] ? ep_remove+0x800/0x800 [ 29.128466] ? fsnotify_first_mark+0x2b0/0x2b0 [ 29.128471] ? ep_free+0x320/0x320 [ 29.128475] ep_eventpoll_release+0x44/0x60 [ 29.128481] __fput+0x327/0x7e0 [ 29.128486] ? fput+0x140/0x140 [ 29.128491] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.128496] ____fput+0x15/0x20 [ 29.128510] task_work_run+0x199/0x270 [ 29.128515] ? task_work_cancel+0x210/0x210 [ 29.128519] ? _raw_spin_unlock+0x22/0x30 [ 29.128524] ? switch_task_namespaces+0x87/0xc0 [ 29.128530] do_exit+0x9bb/0x1ad0 [ 29.128535] ? __handle_mm_fault+0x2330/0x3ce0 [ 29.128540] ? mm_update_next_owner+0x930/0x930 [ 29.128546] ? do_raw_spin_trylock+0x190/0x190 [ 29.128551] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.128554] ? check_noncircular+0x20/0x20 [ 29.128559] ? _raw_spin_unlock+0x22/0x30 [ 29.128562] ? __handle_mm_fault+0x80e/0x3ce0 [ 29.128567] ? check_noncircular+0x20/0x20 [ 29.128570] ? __pmd_alloc+0x4e0/0x4e0 [ 29.128573] ? lock_downgrade+0x980/0x980 [ 29.128578] ? find_held_lock+0x35/0x1d0 [ 29.128583] ? handle_mm_fault+0x248/0x8d0 [ 29.128587] ? find_held_lock+0x35/0x1d0 [ 29.128594] ? __do_page_fault+0x5f7/0xc90 [ 29.128598] ? lock_downgrade+0x980/0x980 [ 29.128603] ? handle_mm_fault+0x410/0x8d0 [ 29.128606] ? down_read_trylock+0xdb/0x170 [ 29.128609] ? __do_page_fault+0x32d/0xc90 [ 29.128613] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 29.128618] ? vmacache_find+0x5f/0x280 [ 29.128623] do_group_exit+0x149/0x400 [ 29.128627] ? __do_page_fault+0x3d6/0xc90 [ 29.128631] ? SyS_exit+0x30/0x30 [ 29.128637] ? do_fast_syscall_32+0x156/0xf9d [ 29.128641] ? do_group_exit+0x400/0x400 [ 29.128644] SyS_exit_group+0x1d/0x20 [ 29.128648] do_fast_syscall_32+0x3ee/0xf9d [ 29.128653] ? do_int80_syscall_32+0x9d0/0x9d0 [ 29.128658] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 29.128661] ? syscall_return_slowpath+0x550/0x550 [ 29.128667] ? SyS_rt_sigaction+0x94/0x1b0 [ 29.128671] ? retint_user+0x18/0x18 [ 29.128676] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 29.128682] entry_SYSENTER_compat+0x54/0x63 [ 29.128685] RIP: 0023:0xf7f61c79 [ 29.128687] RSP: 002b:00000000ff9ce1ac EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 29.128691] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 29.128693] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 29.128695] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 29.128697] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 29.128699] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 29.128703] [ 29.128705] Allocated by task 3649: [ 29.128709] save_stack+0x43/0xd0 [ 29.128712] kasan_kmalloc+0xad/0xe0 [ 29.128715] kmem_cache_alloc_trace+0x136/0x750 [ 29.128720] binder_get_thread+0x1cf/0x870 [ 29.128723] binder_poll+0x8c/0x390 [ 29.128727] ep_item_poll.isra.10+0xec/0x320 [ 29.128729] ep_insert+0x6a3/0x1b10 [ 29.128733] SyS_epoll_ctl+0x12e4/0x1ab0 [ 29.128736] do_fast_syscall_32+0x3ee/0xf9d [ 29.128739] entry_SYSENTER_compat+0x54/0x63 [ 29.128740] [ 29.128741] Freed by task 3649: [ 29.128743] save_stack+0x43/0xd0 [ 29.128746] kasan_slab_free+0x71/0xc0 [ 29.128749] kfree+0xd6/0x260 [ 29.128752] binder_thread_dec_tmpref+0x27f/0x310 [ 29.128755] binder_thread_release+0x27d/0x540 [ 29.128759] binder_ioctl+0xc02/0x1417 [ 29.128762] compat_SyS_ioctl+0x151/0x2a30 [ 29.128765] do_fast_syscall_32+0x3ee/0xf9d [ 29.128768] entry_SYSENTER_compat+0x54/0x63 [ 29.128769] [ 29.128771] The buggy address belongs to the object at ffff8801ba89e080 [ 29.128771] which belongs to the cache kmalloc-512 of size 512 [ 29.128774] The buggy address is located 176 bytes inside of [ 29.128774] 512-byte region [ffff8801ba89e080, ffff8801ba89e280) [ 29.128775] The buggy address belongs to the page: [ 29.128778] page:ffffea0006ea2780 count:1 mapcount:0 mapping:ffff8801ba89e080 index:0x0 [ 29.128782] flags: 0x2fffc0000000100(slab) [ 29.128788] raw: 02fffc0000000100 ffff8801ba89e080 0000000000000000 0000000100000006 [ 29.128792] raw: ffffea000766a3e0 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 29.128793] page dumped because: kasan: bad access detected [ 29.128794] [ 29.128795] Memory state around the buggy address: [ 29.128798] ffff8801ba89e000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.128801] ffff8801ba89e080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.128803] >ffff8801ba89e100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.128805] ^ [ 29.128807] ffff8801ba89e180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.128810] ffff8801ba89e200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.128811] ================================================================== [ 29.128812] Disabling lock debugging due to kernel taint [ 29.128814] Kernel panic - not syncing: panic_on_warn set ... [ 29.128814] [ 29.128818] CPU: 1 PID: 3649 Comm: syzkaller661004 Tainted: G B 4.15.0-rc7+ #172 [ 29.128820] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.128821] Call Trace: [ 29.128825] dump_stack+0x194/0x257 [ 29.128830] ? arch_local_irq_restore+0x53/0x53 [ 29.128833] ? kasan_end_report+0x32/0x50 [ 29.128837] ? lock_downgrade+0x980/0x980 [ 29.128842] ? vsnprintf+0x1ed/0x1900 [ 29.128846] ? __lock_acquire+0x3c70/0x3e00 [ 29.128849] panic+0x1e4/0x41c [ 29.128853] ? refcount_error_report+0x214/0x214 [ 29.128857] ? add_taint+0x40/0x50 [ 29.128860] ? add_taint+0x1c/0x50 [ 29.128864] ? __lock_acquire+0x3d4d/0x3e00 [ 29.128868] kasan_end_report+0x50/0x50 [ 29.128871] kasan_report+0x144/0x340 [ 29.128876] __asan_report_load8_noabort+0x14/0x20 [ 29.128880] __lock_acquire+0x3d4d/0x3e00 [ 29.128883] ? __lock_acquire+0x664/0x3e00 [ 29.128887] ? lock_downgrade+0x980/0x980 [ 29.128890] ? lock_downgrade+0x980/0x980 [ 29.128894] ? print_irqtrace_events+0x270/0x270 [ 29.128897] ? remove_wait_queue+0x81/0x350 [ 29.128903] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.128906] ? __lock_acquire+0x664/0x3e00 [ 29.128910] ? check_noncircular+0x20/0x20 [ 29.128916] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.128920] ? lock_acquire+0x1d5/0x580 [ 29.128924] ? lock_acquire+0x1d5/0x580 [ 29.128927] ? ep_free+0xf4/0x320 [ 29.128932] ? lock_release+0xa40/0xa40 [ 29.128935] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.128939] ? print_irqtrace_events+0x270/0x270 [ 29.128942] ? print_irqtrace_events+0x270/0x270 [ 29.128946] ? rcu_note_context_switch+0x710/0x710 [ 29.128950] ? __might_sleep+0x95/0x190 [ 29.128954] ? ep_free+0xf4/0x320 [ 29.128957] ? __mutex_lock+0x16f/0x1a80 [ 29.128960] ? ep_free+0xf4/0x320 [ 29.128965] ? print_irqtrace_events+0x270/0x270 [ 29.128968] ? ep_free+0xf4/0x320 [ 29.128972] lock_acquire+0x1d5/0x580 [ 29.128976] ? lock_acquire+0x1d5/0x580 [ 29.128979] ? remove_wait_queue+0x81/0x350 [ 29.128984] ? lock_release+0xa40/0xa40 [ 29.128989] ? lock_acquire+0x1d5/0x580 [ 29.128993] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.128996] ? lock_acquire+0x1d5/0x580 [ 29.129000] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 29.129007] _raw_spin_lock_irqsave+0x96/0xc0 [ 29.129011] ? remove_wait_queue+0x81/0x350 [ 29.129015] remove_wait_queue+0x81/0x350 [ 29.129018] ? depot_save_stack+0x3b5/0x490 [ 29.129022] ? add_wait_queue+0x290/0x290 [ 29.129026] ? rcutorture_record_progress+0x10/0x10 [ 29.129029] ? lock_release+0xa40/0xa40 [ 29.129035] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 29.129039] ? __kernel_text_address+0xd/0x40 [ 29.129044] ? clear_tfile_check_list+0x370/0x370 [ 29.129048] ? check_noncircular+0x20/0x20 [ 29.129053] ? locks_remove_file+0x3fa/0x5a0 [ 29.129058] ep_free+0x13f/0x320 [ 29.129062] ? ep_remove+0x800/0x800 [ 29.129065] ? fsnotify_first_mark+0x2b0/0x2b0 [ 29.129070] ? ep_free+0x320/0x320 [ 29.129074] ep_eventpoll_release+0x44/0x60 [ 29.129077] __fput+0x327/0x7e0 [ 29.129082] ? fput+0x140/0x140 [ 29.129087] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.129091] ____fput+0x15/0x20 [ 29.129095] task_work_run+0x199/0x270 [ 29.129100] ? task_work_cancel+0x210/0x210 [ 29.129104] ? _raw_spin_unlock+0x22/0x30 [ 29.129108] ? switch_task_namespaces+0x87/0xc0 [ 29.129112] do_exit+0x9bb/0x1ad0 [ 29.129116] ? __handle_mm_fault+0x2330/0x3ce0 [ 29.129121] ? mm_update_next_owner+0x930/0x930 [ 29.129126] ? do_raw_spin_trylock+0x190/0x190 [ 29.129130] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.129134] ? check_noncircular+0x20/0x20 [ 29.129138] ? _raw_spin_unlock+0x22/0x30 [ 29.129142] ? __handle_mm_fault+0x80e/0x3ce0 [ 29.129146] ? check_noncircular+0x20/0x20 [ 29.129149] ? __pmd_alloc+0x4e0/0x4e0 [ 29.129152] ? lock_downgrade+0x980/0x980 [ 29.129157] ? find_held_lock+0x35/0x1d0 [ 29.129162] ? handle_mm_fault+0x248/0x8d0 [ 29.129166] ? find_held_lock+0x35/0x1d0 [ 29.129171] ? __do_page_fault+0x5f7/0xc90 [ 29.129175] ? lock_downgrade+0x980/0x980 [ 29.129180] ? handle_mm_fault+0x410/0x8d0 [ 29.129183] ? down_read_trylock+0xdb/0x170 [ 29.129187] ? __do_page_fault+0x32d/0xc90 [ 29.129190] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 29.129194] ? vmacache_find+0x5f/0x280 [ 29.129199] do_group_exit+0x149/0x400 [ 29.129203] ? __do_page_fault+0x3d6/0xc90 [ 29.129206] ? SyS_exit+0x30/0x30 [ 29.129211] ? do_fast_syscall_32+0x156/0xf9d [ 29.129214] ? do_group_exit+0x400/0x400 [ 29.129218] SyS_exit_group+0x1d/0x20 [ 29.129222] do_fast_syscall_32+0x3ee/0xf9d [ 29.129227] ? do_int80_syscall_32+0x9d0/0x9d0 [ 29.129231] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 29.129235] ? syscall_return_slowpath+0x550/0x550 [ 29.129239] ? SyS_rt_sigaction+0x94/0x1b0 [ 29.129243] ? retint_user+0x18/0x18 [ 29.129248] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 29.129252] entry_SYSENTER_compat+0x54/0x63 [ 29.129255] RIP: 0023:0xf7f61c79 [ 29.129256] RSP: 002b:00000000ff9ce1ac EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 29.129260] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 29.129262] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 29.129264] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 29.129265] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 29.129267] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 29.149259] Dumping ftrace buffer: [ 29.149263] (ftrace buffer empty) [ 29.149265] Kernel Offset: disabled [ 30.417524] Rebooting in 86400 seconds..