[....] Starting enhanced syslogd: rsyslogd[ 13.118072] audit: type=1400 audit(1516086834.945:5): avc: denied { syslog } for pid=3500 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.579616] audit: type=1400 audit(1516086840.407:6): avc: denied { map } for pid=3641 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.41' (ECDSA) to the list of known hosts. executing program [ 24.796516] audit: type=1400 audit(1516086846.624:7): avc: denied { map } for pid=3655 comm="syzkaller072073" path="/root/syzkaller072073889" 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 [ 24.801696] ================================================================== [ 24.801710] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 24.801716] Read of size 8 at addr ffff8801bcf880b0 by task syzkaller072073/3655 [ 24.801717] [ 24.801724] CPU: 1 PID: 3655 Comm: syzkaller072073 Not tainted 4.15.0-rc8+ #173 [ 24.801727] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.801730] Call Trace: [ 24.801740] dump_stack+0x194/0x257 [ 24.801747] ? arch_local_irq_restore+0x53/0x53 [ 24.801755] ? show_regs_print_info+0x18/0x18 [ 24.801761] ? print_irqtrace_events+0x270/0x270 [ 24.801767] ? __lock_acquire+0x664/0x3e00 [ 24.801774] ? __lock_acquire+0x3d4d/0x3e00 [ 24.801782] print_address_description+0x73/0x250 [ 24.801788] ? __lock_acquire+0x3d4d/0x3e00 [ 24.801794] kasan_report+0x25b/0x340 [ 24.801809] __asan_report_load8_noabort+0x14/0x20 [ 24.801815] __lock_acquire+0x3d4d/0x3e00 [ 24.801821] ? __lock_acquire+0x664/0x3e00 [ 24.801826] ? lock_downgrade+0x980/0x980 [ 24.801832] ? lock_downgrade+0x980/0x980 [ 24.801838] ? print_irqtrace_events+0x270/0x270 [ 24.801846] ? remove_wait_queue+0x81/0x350 [ 24.801855] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.801862] ? __lock_acquire+0x664/0x3e00 [ 24.801868] ? check_noncircular+0x20/0x20 [ 24.801880] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.801887] ? lock_acquire+0x1d5/0x580 [ 24.801893] ? lock_acquire+0x1d5/0x580 [ 24.801899] ? ep_free+0xf4/0x320 [ 24.801908] ? lock_release+0xa40/0xa40 [ 24.801915] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.801921] ? print_irqtrace_events+0x270/0x270 [ 24.801926] ? print_irqtrace_events+0x270/0x270 [ 24.801935] ? rcu_note_context_switch+0x710/0x710 [ 24.801942] ? __might_sleep+0x95/0x190 [ 24.801948] ? ep_free+0xf4/0x320 [ 24.801956] ? __mutex_lock+0x16f/0x1a80 [ 24.801960] ? ep_free+0xf4/0x320 [ 24.801968] ? print_irqtrace_events+0x270/0x270 [ 24.801972] ? ep_free+0xf4/0x320 [ 24.801981] lock_acquire+0x1d5/0x580 [ 24.801986] ? lock_acquire+0x1d5/0x580 [ 24.801992] ? remove_wait_queue+0x81/0x350 [ 24.802004] ? lock_release+0xa40/0xa40 [ 24.802013] ? lock_acquire+0x1d5/0x580 [ 24.802019] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.802024] ? lock_acquire+0x1d5/0x580 [ 24.802031] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.802039] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.802044] ? remove_wait_queue+0x81/0x350 [ 24.802051] remove_wait_queue+0x81/0x350 [ 24.802058] ? depot_save_stack+0x3b5/0x490 [ 24.802065] ? add_wait_queue+0x290/0x290 [ 24.802072] ? rcutorture_record_progress+0x10/0x10 [ 24.802078] ? lock_release+0xa40/0xa40 [ 24.802087] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.802094] ? __kernel_text_address+0xd/0x40 [ 24.802102] ? clear_tfile_check_list+0x370/0x370 [ 24.802110] ? check_noncircular+0x20/0x20 [ 24.802118] ? locks_remove_file+0x3fa/0x5a0 [ 24.802128] ep_free+0x13f/0x320 [ 24.802134] ? ep_remove+0x800/0x800 [ 24.802140] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.802148] ? ep_free+0x320/0x320 [ 24.802154] ep_eventpoll_release+0x44/0x60 [ 24.802161] __fput+0x327/0x7e0 [ 24.802170] ? fput+0x140/0x140 [ 24.802177] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.802185] ____fput+0x15/0x20 [ 24.802192] task_work_run+0x199/0x270 [ 24.802200] ? task_work_cancel+0x210/0x210 [ 24.802207] ? _raw_spin_unlock+0x22/0x30 [ 24.802212] ? switch_task_namespaces+0x87/0xc0 [ 24.802221] do_exit+0x9bb/0x1ad0 [ 24.802228] ? __handle_mm_fault+0x2330/0x3ce0 [ 24.802236] ? mm_update_next_owner+0x930/0x930 [ 24.802245] ? do_raw_spin_trylock+0x190/0x190 [ 24.802253] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.802259] ? check_noncircular+0x20/0x20 [ 24.802266] ? _raw_spin_unlock+0x22/0x30 [ 24.802272] ? __handle_mm_fault+0x80e/0x3ce0 [ 24.802280] ? check_noncircular+0x20/0x20 [ 24.802285] ? __pmd_alloc+0x4e0/0x4e0 [ 24.802291] ? lock_downgrade+0x980/0x980 [ 24.802299] ? find_held_lock+0x35/0x1d0 [ 24.802308] ? handle_mm_fault+0x248/0x8d0 [ 24.802315] ? find_held_lock+0x35/0x1d0 [ 24.802324] ? __do_page_fault+0x5f7/0xc90 [ 24.802331] ? lock_downgrade+0x980/0x980 [ 24.802340] ? handle_mm_fault+0x410/0x8d0 [ 24.802345] ? down_read_trylock+0xdb/0x170 [ 24.802350] ? __do_page_fault+0x32d/0xc90 [ 24.802357] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 24.802363] ? vmacache_find+0x5f/0x280 [ 24.802372] do_group_exit+0x149/0x400 [ 24.802379] ? __do_page_fault+0x3d6/0xc90 [ 24.802384] ? SyS_exit+0x30/0x30 [ 24.802393] ? do_fast_syscall_32+0x156/0xf9d [ 24.802399] ? do_group_exit+0x400/0x400 [ 24.802406] SyS_exit_group+0x1d/0x20 [ 24.802412] do_fast_syscall_32+0x3ee/0xf9d [ 24.802421] ? do_int80_syscall_32+0x9d0/0x9d0 [ 24.802427] ? kasan_check_read+0x11/0x20 [ 24.802434] ? syscall_return_slowpath+0x550/0x550 [ 24.802441] ? SyS_rt_sigaction+0x94/0x1b0 [ 24.802447] ? SyS_sigprocmask+0x4b0/0x4b0 [ 24.802453] ? SyS_read+0x184/0x220 [ 24.802458] ? retint_user+0x18/0x18 [ 24.802467] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 24.802475] entry_SYSENTER_compat+0x54/0x63 [ 24.802480] RIP: 0023:0xf7f93c79 [ 24.802483] RSP: 002b:00000000ff90255c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 24.802489] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 24.802493] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 24.802496] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 24.802499] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 24.802503] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 24.802511] [ 24.802514] Allocated by task 3655: [ 24.802520] save_stack+0x43/0xd0 [ 24.802525] kasan_kmalloc+0xad/0xe0 [ 24.802530] kmem_cache_alloc_trace+0x136/0x750 [ 24.802537] binder_get_thread+0x1cf/0x870 [ 24.802542] binder_poll+0x8c/0x390 [ 24.802547] ep_item_poll.isra.10+0xec/0x320 [ 24.802552] ep_insert+0x6a3/0x1b10 [ 24.802557] SyS_epoll_ctl+0x12e4/0x1ab0 [ 24.802562] do_fast_syscall_32+0x3ee/0xf9d [ 24.802567] entry_SYSENTER_compat+0x54/0x63 [ 24.802568] [ 24.802570] Freed by task 3655: [ 24.802574] save_stack+0x43/0xd0 [ 24.802579] kasan_slab_free+0x71/0xc0 [ 24.802583] kfree+0xd6/0x260 [ 24.802589] binder_thread_dec_tmpref+0x27f/0x310 [ 24.802594] binder_thread_release+0x27d/0x540 [ 24.802600] binder_ioctl+0xc02/0x1417 [ 24.802605] compat_SyS_ioctl+0x151/0x2a30 [ 24.802610] do_fast_syscall_32+0x3ee/0xf9d [ 24.802614] entry_SYSENTER_compat+0x54/0x63 [ 24.802615] [ 24.802619] The buggy address belongs to the object at ffff8801bcf88000 [ 24.802619] which belongs to the cache kmalloc-512 of size 512 [ 24.802624] The buggy address is located 176 bytes inside of [ 24.802624] 512-byte region [ffff8801bcf88000, ffff8801bcf88200) [ 24.802626] The buggy address belongs to the page: [ 24.802631] page:ffffea0006f3e200 count:1 mapcount:0 mapping:ffff8801bcf88000 index:0x0 [ 24.802636] flags: 0x2fffc0000000100(slab) [ 24.802645] raw: 02fffc0000000100 ffff8801bcf88000 0000000000000000 0000000100000006 [ 24.802652] raw: ffffea00076664a0 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 24.802654] page dumped because: kasan: bad access detected [ 24.802656] [ 24.802657] Memory state around the buggy address: [ 24.802662] ffff8801bcf87f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.802666] ffff8801bcf88000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.802671] >ffff8801bcf88080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.802672] ^ [ 24.802676] ffff8801bcf88100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.802681] ffff8801bcf88180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.802683] ================================================================== [ 24.802684] Disabling lock debugging due to kernel taint [ 24.802688] Kernel panic - not syncing: panic_on_warn set ... [ 24.802688] [ 24.802693] CPU: 1 PID: 3655 Comm: syzkaller072073 Tainted: G B 4.15.0-rc8+ #173 [ 24.802696] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.802698] Call Trace: [ 24.802704] dump_stack+0x194/0x257 [ 24.802712] ? arch_local_irq_restore+0x53/0x53 [ 24.802717] ? kasan_end_report+0x32/0x50 [ 24.802723] ? lock_downgrade+0x980/0x980 [ 24.802730] ? vsnprintf+0x1ed/0x1900 [ 24.802736] ? __lock_acquire+0x3c70/0x3e00 [ 24.802742] panic+0x1e4/0x41c [ 24.802748] ? refcount_error_report+0x214/0x214 [ 24.802755] ? add_taint+0x40/0x50 [ 24.802760] ? add_taint+0x1c/0x50 [ 24.802767] ? __lock_acquire+0x3d4d/0x3e00 [ 24.802773] kasan_end_report+0x50/0x50 [ 24.802779] kasan_report+0x144/0x340 [ 24.802787] __asan_report_load8_noabort+0x14/0x20 [ 24.802793] __lock_acquire+0x3d4d/0x3e00 [ 24.802802] ? __lock_acquire+0x664/0x3e00 [ 24.802809] ? lock_downgrade+0x980/0x980 [ 24.802814] ? lock_downgrade+0x980/0x980 [ 24.802820] ? print_irqtrace_events+0x270/0x270 [ 24.802826] ? remove_wait_queue+0x81/0x350 [ 24.802835] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.802841] ? __lock_acquire+0x664/0x3e00 [ 24.802847] ? check_noncircular+0x20/0x20 [ 24.802858] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.802865] ? lock_acquire+0x1d5/0x580 [ 24.802871] ? lock_acquire+0x1d5/0x580 [ 24.802876] ? ep_free+0xf4/0x320 [ 24.802884] ? lock_release+0xa40/0xa40 [ 24.802890] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.802895] ? print_irqtrace_events+0x270/0x270 [ 24.802901] ? print_irqtrace_events+0x270/0x270 [ 24.802907] ? rcu_note_context_switch+0x710/0x710 [ 24.802915] ? __might_sleep+0x95/0x190 [ 24.802921] ? ep_free+0xf4/0x320 [ 24.802927] ? __mutex_lock+0x16f/0x1a80 [ 24.802931] ? ep_free+0xf4/0x320 [ 24.802938] ? print_irqtrace_events+0x270/0x270 [ 24.802943] ? ep_free+0xf4/0x320 [ 24.802951] lock_acquire+0x1d5/0x580 [ 24.802957] ? lock_acquire+0x1d5/0x580 [ 24.802963] ? remove_wait_queue+0x81/0x350 [ 24.802971] ? lock_release+0xa40/0xa40 [ 24.802980] ? lock_acquire+0x1d5/0x580 [ 24.802985] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.802990] ? lock_acquire+0x1d5/0x580 [ 24.802997] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.803004] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.803010] ? remove_wait_queue+0x81/0x350 [ 24.803017] remove_wait_queue+0x81/0x350 [ 24.803022] ? depot_save_stack+0x3b5/0x490 [ 24.803029] ? add_wait_queue+0x290/0x290 [ 24.803035] ? rcutorture_record_progress+0x10/0x10 [ 24.803041] ? lock_release+0xa40/0xa40 [ 24.803050] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.803056] ? __kernel_text_address+0xd/0x40 [ 24.803064] ? clear_tfile_check_list+0x370/0x370 [ 24.803071] ? check_noncircular+0x20/0x20 [ 24.803079] ? locks_remove_file+0x3fa/0x5a0 [ 24.803089] ep_free+0x13f/0x320 [ 24.803095] ? ep_remove+0x800/0x800 [ 24.803100] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.803108] ? ep_free+0x320/0x320 [ 24.803114] ep_eventpoll_release+0x44/0x60 [ 24.803120] __fput+0x327/0x7e0 [ 24.803128] ? fput+0x140/0x140 [ 24.803135] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.803143] ____fput+0x15/0x20 [ 24.803150] task_work_run+0x199/0x270 [ 24.803157] ? task_work_cancel+0x210/0x210 [ 24.803164] ? _raw_spin_unlock+0x22/0x30 [ 24.803170] ? switch_task_namespaces+0x87/0xc0 [ 24.803177] do_exit+0x9bb/0x1ad0 [ 24.803183] ? __handle_mm_fault+0x2330/0x3ce0 [ 24.803191] ? mm_update_next_owner+0x930/0x930 [ 24.803200] ? do_raw_spin_trylock+0x190/0x190 [ 24.803207] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.803213] ? check_noncircular+0x20/0x20 [ 24.803220] ? _raw_spin_unlock+0x22/0x30 [ 24.803226] ? __handle_mm_fault+0x80e/0x3ce0 [ 24.803234] ? check_noncircular+0x20/0x20 [ 24.803239] ? __pmd_alloc+0x4e0/0x4e0 [ 24.803244] ? lock_downgrade+0x980/0x980 [ 24.803252] ? find_held_lock+0x35/0x1d0 [ 24.803261] ? handle_mm_fault+0x248/0x8d0 [ 24.803267] ? find_held_lock+0x35/0x1d0 [ 24.803276] ? __do_page_fault+0x5f7/0xc90 [ 24.803282] ? lock_downgrade+0x980/0x980 [ 24.803291] ? handle_mm_fault+0x410/0x8d0 [ 24.803296] ? down_read_trylock+0xdb/0x170 [ 24.803302] ? __do_page_fault+0x32d/0xc90 [ 24.803308] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 24.803313] ? vmacache_find+0x5f/0x280 [ 24.803322] do_group_exit+0x149/0x400 [ 24.803328] ? __do_page_fault+0x3d6/0xc90 [ 24.803334] ? SyS_exit+0x30/0x30 [ 24.803342] ? do_fast_syscall_32+0x156/0xf9d [ 24.803347] ? do_group_exit+0x400/0x400 [ 24.803353] SyS_exit_group+0x1d/0x20 [ 24.803360] do_fast_syscall_32+0x3ee/0xf9d [ 24.803368] ? do_int80_syscall_32+0x9d0/0x9d0 [ 24.803374] ? kasan_check_read+0x11/0x20 [ 24.803381] ? syscall_return_slowpath+0x550/0x550 [ 24.803388] ? SyS_rt_sigaction+0x94/0x1b0 [ 24.803394] ? SyS_sigprocmask+0x4b0/0x4b0 [ 24.803399] ? SyS_read+0x184/0x220 [ 24.803404] ? retint_user+0x18/0x18 [ 24.803412] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 24.803421] entry_SYSENTER_compat+0x54/0x63 [ 24.803425] RIP: 0023:0xf7f93c79 [ 24.803427] RSP: 002b:00000000ff90255c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 24.803433] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 24.803436] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 24.803439] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 24.803442] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 24.803446] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 24.824162] Dumping ftrace buffer: [ 24.824166] (ftrace buffer empty) [ 24.824169] Kernel Offset: disabled [ 26.124502] Rebooting in 86400 seconds..