[....] Starting enhanced syslogd: rsyslogd[ 12.344482] audit: type=1400 audit(1515135236.746:5): avc: denied { syslog } for pid=3344 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.000619] audit: type=1400 audit(1515135243.402:6): avc: denied { map } for pid=3483 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.15' (ECDSA) to the list of known hosts. executing program [ 25.923895] audit: type=1400 audit(1515135250.325:7): avc: denied { map } for pid=3497 comm="syzkaller053454" path="/root/syzkaller053454754" 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 [ 25.930194] ================================================================== [ 25.930212] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 25.930218] Read of size 8 at addr ffff8801c8559db0 by task syzkaller053454/3497 [ 25.930219] [ 25.930227] CPU: 0 PID: 3497 Comm: syzkaller053454 Not tainted 4.15.0-rc6+ #158 [ 25.930230] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.930233] Call Trace: [ 25.930245] dump_stack+0x194/0x257 [ 25.930252] ? arch_local_irq_restore+0x53/0x53 [ 25.930261] ? show_regs_print_info+0x18/0x18 [ 25.930266] ? print_irqtrace_events+0x270/0x270 [ 25.930273] ? __lock_acquire+0x664/0x3e00 [ 25.930279] ? __lock_acquire+0x3d4d/0x3e00 [ 25.930289] print_address_description+0x73/0x250 [ 25.930295] ? __lock_acquire+0x3d4d/0x3e00 [ 25.930301] kasan_report+0x25b/0x340 [ 25.930310] __asan_report_load8_noabort+0x14/0x20 [ 25.930316] __lock_acquire+0x3d4d/0x3e00 [ 25.930321] ? __lock_acquire+0x664/0x3e00 [ 25.930327] ? lock_downgrade+0x980/0x980 [ 25.930332] ? lock_downgrade+0x980/0x980 [ 25.930339] ? print_irqtrace_events+0x270/0x270 [ 25.930347] ? remove_wait_queue+0x81/0x350 [ 25.930356] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.930362] ? __lock_acquire+0x664/0x3e00 [ 25.930368] ? check_noncircular+0x20/0x20 [ 25.930380] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.930386] ? lock_acquire+0x1d5/0x580 [ 25.930392] ? lock_acquire+0x1d5/0x580 [ 25.930401] ? ep_free+0xf4/0x320 [ 25.930409] ? lock_release+0xa40/0xa40 [ 25.930416] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.930422] ? print_irqtrace_events+0x270/0x270 [ 25.930427] ? print_irqtrace_events+0x270/0x270 [ 25.930435] ? rcu_note_context_switch+0x710/0x710 [ 25.930442] ? __might_sleep+0x95/0x190 [ 25.930448] ? ep_free+0xf4/0x320 [ 25.930454] ? __mutex_lock+0x16f/0x1a80 [ 25.930459] ? ep_free+0xf4/0x320 [ 25.930466] ? print_irqtrace_events+0x270/0x270 [ 25.930471] ? ep_free+0xf4/0x320 [ 25.930479] lock_acquire+0x1d5/0x580 [ 25.930484] ? lock_acquire+0x1d5/0x580 [ 25.930490] ? remove_wait_queue+0x81/0x350 [ 25.930498] ? lock_release+0xa40/0xa40 [ 25.930507] ? lock_acquire+0x1d5/0x580 [ 25.930512] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.930517] ? lock_acquire+0x1d5/0x580 [ 25.930524] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.930532] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.930537] ? remove_wait_queue+0x81/0x350 [ 25.930543] remove_wait_queue+0x81/0x350 [ 25.930551] ? depot_save_stack+0x3b5/0x490 [ 25.930558] ? add_wait_queue+0x290/0x290 [ 25.930564] ? rcutorture_record_progress+0x10/0x10 [ 25.930569] ? lock_release+0xa40/0xa40 [ 25.930578] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.930586] ? __kernel_text_address+0xd/0x40 [ 25.930594] ? clear_tfile_check_list+0x370/0x370 [ 25.930602] ? check_noncircular+0x20/0x20 [ 25.930610] ? locks_remove_file+0x3fa/0x5a0 [ 25.930620] ep_free+0x13f/0x320 [ 25.930626] ? ep_remove+0x800/0x800 [ 25.930632] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.930639] ? ep_free+0x320/0x320 [ 25.930645] ep_eventpoll_release+0x44/0x60 [ 25.930652] __fput+0x327/0x7e0 [ 25.930660] ? fput+0x140/0x140 [ 25.930667] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.930675] ____fput+0x15/0x20 [ 25.930682] task_work_run+0x199/0x270 [ 25.930689] ? task_work_cancel+0x210/0x210 [ 25.930696] ? _raw_spin_unlock+0x22/0x30 [ 25.930702] ? switch_task_namespaces+0x87/0xc0 [ 25.930710] do_exit+0x9bb/0x1ad0 [ 25.930717] ? __handle_mm_fault+0x2330/0x3ce0 [ 25.930725] ? mm_update_next_owner+0x930/0x930 [ 25.930734] ? do_raw_spin_trylock+0x190/0x190 [ 25.930742] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.930747] ? check_noncircular+0x20/0x20 [ 25.930754] ? _raw_spin_unlock+0x22/0x30 [ 25.930760] ? __handle_mm_fault+0x80e/0x3ce0 [ 25.930768] ? check_noncircular+0x20/0x20 [ 25.930772] ? __pmd_alloc+0x4e0/0x4e0 [ 25.930778] ? lock_downgrade+0x980/0x980 [ 25.930786] ? find_held_lock+0x35/0x1d0 [ 25.930794] ? handle_mm_fault+0x248/0x8d0 [ 25.930801] ? find_held_lock+0x35/0x1d0 [ 25.930811] ? __do_page_fault+0x5f7/0xc90 [ 25.930817] ? lock_downgrade+0x980/0x980 [ 25.930826] ? handle_mm_fault+0x410/0x8d0 [ 25.930831] ? down_read_trylock+0xdb/0x170 [ 25.930837] ? __do_page_fault+0x32d/0xc90 [ 25.930843] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 25.930849] ? vmacache_find+0x5f/0x280 [ 25.930858] do_group_exit+0x149/0x400 [ 25.930864] ? __do_page_fault+0x3d6/0xc90 [ 25.930869] ? SyS_exit+0x30/0x30 [ 25.930878] ? do_fast_syscall_32+0x156/0xf9d [ 25.930884] ? do_group_exit+0x400/0x400 [ 25.930890] SyS_exit_group+0x1d/0x20 [ 25.930896] do_fast_syscall_32+0x3ee/0xf9d [ 25.930905] ? do_int80_syscall_32+0x9d0/0x9d0 [ 25.930911] ? kasan_check_read+0x11/0x20 [ 25.930918] ? syscall_return_slowpath+0x550/0x550 [ 25.930925] ? SyS_rt_sigaction+0x94/0x1b0 [ 25.930937] ? SyS_sigprocmask+0x4b0/0x4b0 [ 25.930942] ? SyS_read+0x184/0x220 [ 25.930948] ? retint_user+0x18/0x18 [ 25.930956] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.930966] entry_SYSENTER_compat+0x54/0x63 [ 25.930971] RIP: 0023:0xf7f70c79 [ 25.930975] RSP: 002b:00000000ffbdfd7c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 25.930981] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 25.930984] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 25.930988] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 25.930990] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.930994] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.931005] [ 25.931008] Allocated by task 3497: [ 25.931014] save_stack+0x43/0xd0 [ 25.931018] kasan_kmalloc+0xad/0xe0 [ 25.931023] kmem_cache_alloc_trace+0x136/0x750 [ 25.931030] binder_get_thread+0x1cf/0x870 [ 25.931034] binder_poll+0x8c/0x390 [ 25.931039] ep_item_poll.isra.10+0xec/0x320 [ 25.931044] ep_insert+0x6a3/0x1b10 [ 25.931049] SyS_epoll_ctl+0x12e4/0x1ab0 [ 25.931054] do_fast_syscall_32+0x3ee/0xf9d [ 25.931060] entry_SYSENTER_compat+0x54/0x63 [ 25.931061] [ 25.931063] Freed by task 3497: [ 25.931068] save_stack+0x43/0xd0 [ 25.931072] kasan_slab_free+0x71/0xc0 [ 25.931076] kfree+0xd6/0x260 [ 25.931081] binder_thread_dec_tmpref+0x27f/0x310 [ 25.931086] binder_thread_release+0x27d/0x540 [ 25.931090] binder_ioctl+0xc02/0x1417 [ 25.931095] compat_SyS_ioctl+0x151/0x2a30 [ 25.931100] do_fast_syscall_32+0x3ee/0xf9d [ 25.931105] entry_SYSENTER_compat+0x54/0x63 [ 25.931106] [ 25.931111] The buggy address belongs to the object at ffff8801c8559d00 [ 25.931111] which belongs to the cache kmalloc-512 of size 512 [ 25.931116] The buggy address is located 176 bytes inside of [ 25.931116] 512-byte region [ffff8801c8559d00, ffff8801c8559f00) [ 25.931117] The buggy address belongs to the page: [ 25.931123] page:00000000181ad5b6 count:1 mapcount:0 mapping:0000000035289d74 index:0x0 [ 25.931129] flags: 0x2fffc0000000100(slab) [ 25.931137] raw: 02fffc0000000100 ffff8801c8559080 0000000000000000 0000000100000006 [ 25.931144] raw: ffffea0007217d20 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 25.931147] page dumped because: kasan: bad access detected [ 25.931148] [ 25.931149] Memory state around the buggy address: [ 25.931154] ffff8801c8559c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.931158] ffff8801c8559d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.931163] >ffff8801c8559d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.931165] ^ [ 25.931169] ffff8801c8559e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.931173] ffff8801c8559e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.931175] ================================================================== [ 25.931177] Disabling lock debugging due to kernel taint [ 25.931180] Kernel panic - not syncing: panic_on_warn set ... [ 25.931180] [ 25.931186] CPU: 0 PID: 3497 Comm: syzkaller053454 Tainted: G B 4.15.0-rc6+ #158 [ 25.931189] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.931191] Call Trace: [ 25.931197] dump_stack+0x194/0x257 [ 25.931204] ? arch_local_irq_restore+0x53/0x53 [ 25.931209] ? kasan_end_report+0x32/0x50 [ 25.931215] ? lock_downgrade+0x980/0x980 [ 25.931222] ? vsnprintf+0x1ed/0x1900 [ 25.931228] ? __lock_acquire+0x3cb0/0x3e00 [ 25.931233] panic+0x1e4/0x41c [ 25.931240] ? refcount_error_report+0x214/0x214 [ 25.931247] ? add_taint+0x40/0x50 [ 25.931252] ? add_taint+0x1c/0x50 [ 25.931258] ? __lock_acquire+0x3d4d/0x3e00 [ 25.931264] kasan_end_report+0x50/0x50 [ 25.931270] kasan_report+0x144/0x340 [ 25.931277] __asan_report_load8_noabort+0x14/0x20 [ 25.931283] __lock_acquire+0x3d4d/0x3e00 [ 25.931288] ? __lock_acquire+0x664/0x3e00 [ 25.931294] ? lock_downgrade+0x980/0x980 [ 25.931299] ? lock_downgrade+0x980/0x980 [ 25.931305] ? print_irqtrace_events+0x270/0x270 [ 25.931311] ? remove_wait_queue+0x81/0x350 [ 25.931319] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.931326] ? __lock_acquire+0x664/0x3e00 [ 25.931331] ? check_noncircular+0x20/0x20 [ 25.931342] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.931349] ? lock_acquire+0x1d5/0x580 [ 25.931355] ? lock_acquire+0x1d5/0x580 [ 25.931360] ? ep_free+0xf4/0x320 [ 25.931367] ? lock_release+0xa40/0xa40 [ 25.931373] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.931379] ? print_irqtrace_events+0x270/0x270 [ 25.931385] ? print_irqtrace_events+0x270/0x270 [ 25.931391] ? rcu_note_context_switch+0x710/0x710 [ 25.931398] ? __might_sleep+0x95/0x190 [ 25.931404] ? ep_free+0xf4/0x320 [ 25.931409] ? __mutex_lock+0x16f/0x1a80 [ 25.931414] ? ep_free+0xf4/0x320 [ 25.931420] ? print_irqtrace_events+0x270/0x270 [ 25.931425] ? ep_free+0xf4/0x320 [ 25.931433] lock_acquire+0x1d5/0x580 [ 25.931438] ? lock_acquire+0x1d5/0x580 [ 25.931444] ? remove_wait_queue+0x81/0x350 [ 25.931453] ? lock_release+0xa40/0xa40 [ 25.931461] ? lock_acquire+0x1d5/0x580 [ 25.931467] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.931472] ? lock_acquire+0x1d5/0x580 [ 25.931478] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.931485] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.931491] ? remove_wait_queue+0x81/0x350 [ 25.931497] remove_wait_queue+0x81/0x350 [ 25.931503] ? depot_save_stack+0x3b5/0x490 [ 25.931509] ? add_wait_queue+0x290/0x290 [ 25.931515] ? rcutorture_record_progress+0x10/0x10 [ 25.931520] ? lock_release+0xa40/0xa40 [ 25.931529] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.931535] ? __kernel_text_address+0xd/0x40 [ 25.931543] ? clear_tfile_check_list+0x370/0x370 [ 25.931550] ? check_noncircular+0x20/0x20 [ 25.931558] ? locks_remove_file+0x3fa/0x5a0 [ 25.931567] ep_free+0x13f/0x320 [ 25.931573] ? ep_remove+0x800/0x800 [ 25.931579] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.931586] ? ep_free+0x320/0x320 [ 25.931592] ep_eventpoll_release+0x44/0x60 [ 25.931598] __fput+0x327/0x7e0 [ 25.931606] ? fput+0x140/0x140 [ 25.931612] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.931620] ____fput+0x15/0x20 [ 25.931626] task_work_run+0x199/0x270 [ 25.931634] ? task_work_cancel+0x210/0x210 [ 25.931640] ? _raw_spin_unlock+0x22/0x30 [ 25.931646] ? switch_task_namespaces+0x87/0xc0 [ 25.931653] do_exit+0x9bb/0x1ad0 [ 25.931659] ? __handle_mm_fault+0x2330/0x3ce0 [ 25.931666] ? mm_update_next_owner+0x930/0x930 [ 25.931675] ? do_raw_spin_trylock+0x190/0x190 [ 25.931682] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.931687] ? check_noncircular+0x20/0x20 [ 25.931694] ? _raw_spin_unlock+0x22/0x30 [ 25.931700] ? __handle_mm_fault+0x80e/0x3ce0 [ 25.931707] ? check_noncircular+0x20/0x20 [ 25.931712] ? __pmd_alloc+0x4e0/0x4e0 [ 25.931717] ? lock_downgrade+0x980/0x980 [ 25.931725] ? find_held_lock+0x35/0x1d0 [ 25.931733] ? handle_mm_fault+0x248/0x8d0 [ 25.931740] ? find_held_lock+0x35/0x1d0 [ 25.931749] ? __do_page_fault+0x5f7/0xc90 [ 25.931755] ? lock_downgrade+0x980/0x980 [ 25.931763] ? handle_mm_fault+0x410/0x8d0 [ 25.931768] ? down_read_trylock+0xdb/0x170 [ 25.931773] ? __do_page_fault+0x32d/0xc90 [ 25.931779] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 25.931785] ? vmacache_find+0x5f/0x280 [ 25.931793] do_group_exit+0x149/0x400 [ 25.931799] ? __do_page_fault+0x3d6/0xc90 [ 25.931805] ? SyS_exit+0x30/0x30 [ 25.931812] ? do_fast_syscall_32+0x156/0xf9d [ 25.931818] ? do_group_exit+0x400/0x400 [ 25.931824] SyS_exit_group+0x1d/0x20 [ 25.931830] do_fast_syscall_32+0x3ee/0xf9d [ 25.931838] ? do_int80_syscall_32+0x9d0/0x9d0 [ 25.931844] ? kasan_check_read+0x11/0x20 [ 25.931851] ? syscall_return_slowpath+0x550/0x550 [ 25.931857] ? SyS_rt_sigaction+0x94/0x1b0 [ 25.931864] ? SyS_sigprocmask+0x4b0/0x4b0 [ 25.931869] ? SyS_read+0x184/0x220 [ 25.931875] ? retint_user+0x18/0x18 [ 25.931882] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.931891] entry_SYSENTER_compat+0x54/0x63 [ 25.931895] RIP: 0023:0xf7f70c79 [ 25.931897] RSP: 002b:00000000ffbdfd7c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 25.931903] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 25.931906] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 25.931909] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 25.931912] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.931915] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.950620] Dumping ftrace buffer: [ 25.950624] (ftrace buffer empty) [ 25.950627] Kernel Offset: disabled [ 27.236685] Rebooting in 86400 seconds..