[....] Starting enhanced syslogd: rsyslogd[ 12.777805] audit: type=1400 audit(1514871436.159:5): avc: denied { syslog } for pid=3339 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.051459] audit: type=1400 audit(1514871440.433:6): avc: denied { map } for pid=3478 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.15.203' (ECDSA) to the list of known hosts. executing program [ 23.292061] audit: type=1400 audit(1514871446.673:7): avc: denied { map } for pid=3492 comm="syzkaller238832" path="/root/syzkaller238832997" 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 [ 23.297758] ================================================================== [ 23.297772] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 23.297777] Read of size 8 at addr ffff8801c8fbab70 by task syzkaller238832/3492 [ 23.297778] [ 23.297786] CPU: 0 PID: 3492 Comm: syzkaller238832 Not tainted 4.15.0-rc6+ #155 [ 23.297789] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.297791] Call Trace: [ 23.297801] dump_stack+0x194/0x257 [ 23.297808] ? arch_local_irq_restore+0x53/0x53 [ 23.297816] ? show_regs_print_info+0x18/0x18 [ 23.297822] ? print_irqtrace_events+0x270/0x270 [ 23.297828] ? __lock_acquire+0x664/0x3e00 [ 23.297834] ? __lock_acquire+0x3d4d/0x3e00 [ 23.297844] print_address_description+0x73/0x250 [ 23.297849] ? __lock_acquire+0x3d4d/0x3e00 [ 23.297856] kasan_report+0x25b/0x340 [ 23.297864] __asan_report_load8_noabort+0x14/0x20 [ 23.297870] __lock_acquire+0x3d4d/0x3e00 [ 23.297875] ? __lock_acquire+0x664/0x3e00 [ 23.297882] ? lock_downgrade+0x980/0x980 [ 23.297887] ? lock_downgrade+0x980/0x980 [ 23.297893] ? print_irqtrace_events+0x270/0x270 [ 23.297900] ? remove_wait_queue+0x81/0x350 [ 23.297909] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.297915] ? __lock_acquire+0x664/0x3e00 [ 23.297921] ? check_noncircular+0x20/0x20 [ 23.297933] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.297940] ? lock_acquire+0x1d5/0x580 [ 23.297945] ? lock_acquire+0x1d5/0x580 [ 23.297951] ? ep_free+0xf4/0x320 [ 23.297959] ? lock_release+0xa40/0xa40 [ 23.297966] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.297972] ? print_irqtrace_events+0x270/0x270 [ 23.297977] ? print_irqtrace_events+0x270/0x270 [ 23.297984] ? rcu_note_context_switch+0x710/0x710 [ 23.297992] ? __might_sleep+0x95/0x190 [ 23.297997] ? ep_free+0xf4/0x320 [ 23.298007] ? __mutex_lock+0x16f/0x1a80 [ 23.298012] ? ep_free+0xf4/0x320 [ 23.298019] ? print_irqtrace_events+0x270/0x270 [ 23.298024] ? ep_free+0xf4/0x320 [ 23.298032] lock_acquire+0x1d5/0x580 [ 23.298037] ? lock_acquire+0x1d5/0x580 [ 23.298043] ? remove_wait_queue+0x81/0x350 [ 23.298052] ? lock_release+0xa40/0xa40 [ 23.298061] ? lock_acquire+0x1d5/0x580 [ 23.298066] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.298071] ? lock_acquire+0x1d5/0x580 [ 23.298077] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.298085] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.298091] ? remove_wait_queue+0x81/0x350 [ 23.298097] remove_wait_queue+0x81/0x350 [ 23.298104] ? depot_save_stack+0x3b5/0x490 [ 23.298111] ? add_wait_queue+0x290/0x290 [ 23.298117] ? rcutorture_record_progress+0x10/0x10 [ 23.298122] ? lock_release+0xa40/0xa40 [ 23.298131] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.298139] ? __kernel_text_address+0xd/0x40 [ 23.298147] ? clear_tfile_check_list+0x370/0x370 [ 23.298155] ? check_noncircular+0x20/0x20 [ 23.298163] ? locks_remove_file+0x3fa/0x5a0 [ 23.298172] ep_free+0x13f/0x320 [ 23.298178] ? ep_remove+0x800/0x800 [ 23.298184] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.298191] ? ep_free+0x320/0x320 [ 23.298198] ep_eventpoll_release+0x44/0x60 [ 23.298204] __fput+0x327/0x7e0 [ 23.298212] ? fput+0x140/0x140 [ 23.298219] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.298228] ____fput+0x15/0x20 [ 23.298234] task_work_run+0x199/0x270 [ 23.298242] ? task_work_cancel+0x210/0x210 [ 23.298248] ? _raw_spin_unlock+0x22/0x30 [ 23.298254] ? switch_task_namespaces+0x87/0xc0 [ 23.298262] do_exit+0x9bb/0x1ad0 [ 23.298269] ? __handle_mm_fault+0x2330/0x3ce0 [ 23.298277] ? mm_update_next_owner+0x930/0x930 [ 23.298286] ? do_raw_spin_trylock+0x190/0x190 [ 23.298294] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.298300] ? check_noncircular+0x20/0x20 [ 23.298307] ? _raw_spin_unlock+0x22/0x30 [ 23.298313] ? __handle_mm_fault+0x80e/0x3ce0 [ 23.298320] ? check_noncircular+0x20/0x20 [ 23.298325] ? __pmd_alloc+0x4e0/0x4e0 [ 23.298330] ? lock_downgrade+0x980/0x980 [ 23.298344] ? find_held_lock+0x35/0x1d0 [ 23.298353] ? handle_mm_fault+0x248/0x8d0 [ 23.298360] ? find_held_lock+0x35/0x1d0 [ 23.298370] ? __do_page_fault+0x5f7/0xc90 [ 23.298376] ? lock_downgrade+0x980/0x980 [ 23.298384] ? handle_mm_fault+0x410/0x8d0 [ 23.298389] ? down_read_trylock+0xdb/0x170 [ 23.298395] ? __do_page_fault+0x32d/0xc90 [ 23.298401] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 23.298408] ? vmacache_find+0x5f/0x280 [ 23.298417] do_group_exit+0x149/0x400 [ 23.298423] ? __do_page_fault+0x3d6/0xc90 [ 23.298429] ? SyS_exit+0x30/0x30 [ 23.298439] ? do_fast_syscall_32+0x156/0xf9d [ 23.298445] ? do_group_exit+0x400/0x400 [ 23.298451] SyS_exit_group+0x1d/0x20 [ 23.298457] do_fast_syscall_32+0x3ee/0xf9d [ 23.298466] ? do_int80_syscall_32+0x9d0/0x9d0 [ 23.298471] ? kasan_check_read+0x11/0x20 [ 23.298478] ? syscall_return_slowpath+0x550/0x550 [ 23.298486] ? SyS_rt_sigaction+0x94/0x1b0 [ 23.298493] ? SyS_sigprocmask+0x4b0/0x4b0 [ 23.298498] ? SyS_read+0x184/0x220 [ 23.298504] ? retint_user+0x18/0x18 [ 23.298512] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 23.298522] entry_SYSENTER_compat+0x54/0x63 [ 23.298526] RIP: 0023:0xf7f76c79 [ 23.298530] RSP: 002b:00000000ff8b01ec EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 23.298536] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 23.298540] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 23.298543] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 23.298546] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 23.298549] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 23.298557] [ 23.298559] Allocated by task 3492: [ 23.298565] save_stack+0x43/0xd0 [ 23.298569] kasan_kmalloc+0xad/0xe0 [ 23.298574] kmem_cache_alloc_trace+0x136/0x750 [ 23.298580] binder_get_thread+0x1cf/0x870 [ 23.298584] binder_poll+0x8c/0x390 [ 23.298589] ep_item_poll.isra.10+0xec/0x320 [ 23.298594] ep_insert+0x6a3/0x1b10 [ 23.298599] SyS_epoll_ctl+0x12e4/0x1ab0 [ 23.298604] do_fast_syscall_32+0x3ee/0xf9d [ 23.298609] entry_SYSENTER_compat+0x54/0x63 [ 23.298610] [ 23.298612] Freed by task 3492: [ 23.298617] save_stack+0x43/0xd0 [ 23.298621] kasan_slab_free+0x71/0xc0 [ 23.298625] kfree+0xd6/0x260 [ 23.298630] binder_thread_dec_tmpref+0x27f/0x310 [ 23.298634] binder_thread_release+0x27d/0x540 [ 23.298638] binder_ioctl+0xc02/0x1417 [ 23.298643] compat_SyS_ioctl+0x151/0x2a30 [ 23.298648] do_fast_syscall_32+0x3ee/0xf9d [ 23.298654] entry_SYSENTER_compat+0x54/0x63 [ 23.298655] [ 23.298659] The buggy address belongs to the object at ffff8801c8fbaac0 [ 23.298659] which belongs to the cache kmalloc-512 of size 512 [ 23.298664] The buggy address is located 176 bytes inside of [ 23.298664] 512-byte region [ffff8801c8fbaac0, ffff8801c8fbacc0) [ 23.298665] The buggy address belongs to the page: [ 23.298671] page:000000004cabbbcf count:1 mapcount:0 mapping:00000000cd3c17b7 index:0x0 [ 23.298676] flags: 0x2fffc0000000100(slab) [ 23.298684] raw: 02fffc0000000100 ffff8801c8fba0c0 0000000000000000 0000000100000006 [ 23.298691] raw: ffffea00072105e0 ffffea00073a47e0 ffff8801dac00940 0000000000000000 [ 23.298693] page dumped because: kasan: bad access detected [ 23.298694] [ 23.298696] Memory state around the buggy address: [ 23.298700] ffff8801c8fbaa00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 23.298705] ffff8801c8fbaa80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 23.298709] >ffff8801c8fbab00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.298711] ^ [ 23.298716] ffff8801c8fbab80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.298720] ffff8801c8fbac00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.298722] ================================================================== [ 23.298724] Disabling lock debugging due to kernel taint [ 23.298727] Kernel panic - not syncing: panic_on_warn set ... [ 23.298727] [ 23.298733] CPU: 0 PID: 3492 Comm: syzkaller238832 Tainted: G B 4.15.0-rc6+ #155 [ 23.298736] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.298737] Call Trace: [ 23.298743] dump_stack+0x194/0x257 [ 23.298750] ? arch_local_irq_restore+0x53/0x53 [ 23.298755] ? kasan_end_report+0x32/0x50 [ 23.298761] ? lock_downgrade+0x980/0x980 [ 23.298767] ? vsnprintf+0x1ed/0x1900 [ 23.298773] ? __lock_acquire+0x3c70/0x3e00 [ 23.298778] panic+0x1e4/0x41c [ 23.298784] ? refcount_error_report+0x214/0x214 [ 23.298791] ? add_taint+0x40/0x50 [ 23.298796] ? add_taint+0x1c/0x50 [ 23.298803] ? __lock_acquire+0x3d4d/0x3e00 [ 23.298808] kasan_end_report+0x50/0x50 [ 23.298814] kasan_report+0x144/0x340 [ 23.298822] __asan_report_load8_noabort+0x14/0x20 [ 23.298827] __lock_acquire+0x3d4d/0x3e00 [ 23.298833] ? __lock_acquire+0x664/0x3e00 [ 23.298839] ? lock_downgrade+0x980/0x980 [ 23.298844] ? lock_downgrade+0x980/0x980 [ 23.298850] ? print_irqtrace_events+0x270/0x270 [ 23.298855] ? remove_wait_queue+0x81/0x350 [ 23.298864] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.298870] ? __lock_acquire+0x664/0x3e00 [ 23.298876] ? check_noncircular+0x20/0x20 [ 23.298887] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.298894] ? lock_acquire+0x1d5/0x580 [ 23.298900] ? lock_acquire+0x1d5/0x580 [ 23.298905] ? ep_free+0xf4/0x320 [ 23.298913] ? lock_release+0xa40/0xa40 [ 23.298919] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.298924] ? print_irqtrace_events+0x270/0x270 [ 23.298930] ? print_irqtrace_events+0x270/0x270 [ 23.298936] ? rcu_note_context_switch+0x710/0x710 [ 23.298943] ? __might_sleep+0x95/0x190 [ 23.298949] ? ep_free+0xf4/0x320 [ 23.298954] ? __mutex_lock+0x16f/0x1a80 [ 23.298959] ? ep_free+0xf4/0x320 [ 23.298966] ? print_irqtrace_events+0x270/0x270 [ 23.298971] ? ep_free+0xf4/0x320 [ 23.298979] lock_acquire+0x1d5/0x580 [ 23.298984] ? lock_acquire+0x1d5/0x580 [ 23.298990] ? remove_wait_queue+0x81/0x350 [ 23.298998] ? lock_release+0xa40/0xa40 [ 23.299006] ? lock_acquire+0x1d5/0x580 [ 23.299012] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.299017] ? lock_acquire+0x1d5/0x580 [ 23.299023] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.299030] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.299036] ? remove_wait_queue+0x81/0x350 [ 23.299042] remove_wait_queue+0x81/0x350 [ 23.299048] ? depot_save_stack+0x3b5/0x490 [ 23.299055] ? add_wait_queue+0x290/0x290 [ 23.299060] ? rcutorture_record_progress+0x10/0x10 [ 23.299066] ? lock_release+0xa40/0xa40 [ 23.299074] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.299081] ? __kernel_text_address+0xd/0x40 [ 23.299089] ? clear_tfile_check_list+0x370/0x370 [ 23.299096] ? check_noncircular+0x20/0x20 [ 23.299104] ? locks_remove_file+0x3fa/0x5a0 [ 23.299112] ep_free+0x13f/0x320 [ 23.299118] ? ep_remove+0x800/0x800 [ 23.299124] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.299131] ? ep_free+0x320/0x320 [ 23.299137] ep_eventpoll_release+0x44/0x60 [ 23.299143] __fput+0x327/0x7e0 [ 23.299151] ? fput+0x140/0x140 [ 23.299158] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.299166] ____fput+0x15/0x20 [ 23.299172] task_work_run+0x199/0x270 [ 23.299179] ? task_work_cancel+0x210/0x210 [ 23.299185] ? _raw_spin_unlock+0x22/0x30 [ 23.299191] ? switch_task_namespaces+0x87/0xc0 [ 23.299198] do_exit+0x9bb/0x1ad0 [ 23.299204] ? __handle_mm_fault+0x2330/0x3ce0 [ 23.299211] ? mm_update_next_owner+0x930/0x930 [ 23.299220] ? do_raw_spin_trylock+0x190/0x190 [ 23.299227] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.299233] ? check_noncircular+0x20/0x20 [ 23.299240] ? _raw_spin_unlock+0x22/0x30 [ 23.299246] ? __handle_mm_fault+0x80e/0x3ce0 [ 23.299253] ? check_noncircular+0x20/0x20 [ 23.299258] ? __pmd_alloc+0x4e0/0x4e0 [ 23.299263] ? lock_downgrade+0x980/0x980 [ 23.299271] ? find_held_lock+0x35/0x1d0 [ 23.299279] ? handle_mm_fault+0x248/0x8d0 [ 23.299286] ? find_held_lock+0x35/0x1d0 [ 23.299295] ? __do_page_fault+0x5f7/0xc90 [ 23.299301] ? lock_downgrade+0x980/0x980 [ 23.299309] ? handle_mm_fault+0x410/0x8d0 [ 23.299314] ? down_read_trylock+0xdb/0x170 [ 23.299320] ? __do_page_fault+0x32d/0xc90 [ 23.299326] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 23.299331] ? vmacache_find+0x5f/0x280 [ 23.299343] do_group_exit+0x149/0x400 [ 23.299350] ? __do_page_fault+0x3d6/0xc90 [ 23.299355] ? SyS_exit+0x30/0x30 [ 23.299362] ? do_fast_syscall_32+0x156/0xf9d [ 23.299368] ? do_group_exit+0x400/0x400 [ 23.299374] SyS_exit_group+0x1d/0x20 [ 23.299380] do_fast_syscall_32+0x3ee/0xf9d [ 23.299389] ? do_int80_syscall_32+0x9d0/0x9d0 [ 23.299395] ? kasan_check_read+0x11/0x20 [ 23.299401] ? syscall_return_slowpath+0x550/0x550 [ 23.299408] ? SyS_rt_sigaction+0x94/0x1b0 [ 23.299414] ? SyS_sigprocmask+0x4b0/0x4b0 [ 23.299419] ? SyS_read+0x184/0x220 [ 23.299425] ? retint_user+0x18/0x18 [ 23.299433] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 23.299442] entry_SYSENTER_compat+0x54/0x63 [ 23.299446] RIP: 0023:0xf7f76c79 [ 23.299448] RSP: 002b:00000000ff8b01ec EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 23.299454] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 23.299457] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 23.299460] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 23.299463] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 23.299466] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 23.318481] Dumping ftrace buffer: [ 23.318484] (ftrace buffer empty) [ 23.318488] Kernel Offset: disabled [ 24.599885] Rebooting in 86400 seconds..