[....] Starting enhanced syslogd: rsyslogd[ 12.595153] audit: type=1400 audit(1514790610.981:5): avc: denied { syslog } for pid=3341 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.499429] audit: type=1400 audit(1514790617.886:6): avc: denied { map } for pid=3481 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.192' (ECDSA) to the list of known hosts. executing program [ 41.724292] audit: type=1400 audit(1514790640.111:7): avc: denied { map } for pid=3498 comm="syzkaller867585" path="/root/syzkaller867585853" 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 [ 41.727956] ================================================================== [ 41.727968] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 41.727972] Read of size 8 at addr ffff8801c88e7830 by task syzkaller867585/3498 [ 41.727972] [ 41.727977] CPU: 0 PID: 3498 Comm: syzkaller867585 Not tainted 4.15.0-rc6+ #155 [ 41.727980] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.727981] Call Trace: [ 41.727990] dump_stack+0x194/0x257 [ 41.727994] ? arch_local_irq_restore+0x53/0x53 [ 41.727999] ? show_regs_print_info+0x18/0x18 [ 41.728007] ? print_irqtrace_events+0x270/0x270 [ 41.728011] ? __lock_acquire+0x664/0x3e00 [ 41.728015] ? __lock_acquire+0x3d4d/0x3e00 [ 41.728022] print_address_description+0x73/0x250 [ 41.728025] ? __lock_acquire+0x3d4d/0x3e00 [ 41.728029] kasan_report+0x25b/0x340 [ 41.728034] __asan_report_load8_noabort+0x14/0x20 [ 41.728038] __lock_acquire+0x3d4d/0x3e00 [ 41.728041] ? __lock_acquire+0x664/0x3e00 [ 41.728045] ? lock_downgrade+0x980/0x980 [ 41.728048] ? lock_downgrade+0x980/0x980 [ 41.728052] ? print_irqtrace_events+0x270/0x270 [ 41.728057] ? remove_wait_queue+0x81/0x350 [ 41.728062] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 41.728066] ? __lock_acquire+0x664/0x3e00 [ 41.728069] ? check_noncircular+0x20/0x20 [ 41.728076] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 41.728080] ? lock_acquire+0x1d5/0x580 [ 41.728084] ? lock_acquire+0x1d5/0x580 [ 41.728089] ? ep_free+0xf4/0x320 [ 41.728094] ? lock_release+0xa40/0xa40 [ 41.728099] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 41.728103] ? print_irqtrace_events+0x270/0x270 [ 41.728106] ? print_irqtrace_events+0x270/0x270 [ 41.728112] ? rcu_note_context_switch+0x710/0x710 [ 41.728116] ? __might_sleep+0x95/0x190 [ 41.728120] ? ep_free+0xf4/0x320 [ 41.728125] ? __mutex_lock+0x16f/0x1a80 [ 41.728128] ? ep_free+0xf4/0x320 [ 41.728132] ? print_irqtrace_events+0x270/0x270 [ 41.728135] ? ep_free+0xf4/0x320 [ 41.728140] lock_acquire+0x1d5/0x580 [ 41.728143] ? lock_acquire+0x1d5/0x580 [ 41.728147] ? remove_wait_queue+0x81/0x350 [ 41.728151] ? lock_release+0xa40/0xa40 [ 41.728156] ? lock_acquire+0x1d5/0x580 [ 41.728160] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 41.728163] ? lock_acquire+0x1d5/0x580 [ 41.728167] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 41.728172] _raw_spin_lock_irqsave+0x96/0xc0 [ 41.728175] ? remove_wait_queue+0x81/0x350 [ 41.728179] remove_wait_queue+0x81/0x350 [ 41.728184] ? depot_save_stack+0x3b5/0x490 [ 41.728188] ? add_wait_queue+0x290/0x290 [ 41.728192] ? rcutorture_record_progress+0x10/0x10 [ 41.728195] ? lock_release+0xa40/0xa40 [ 41.728201] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 41.728206] ? __kernel_text_address+0xd/0x40 [ 41.728211] ? clear_tfile_check_list+0x370/0x370 [ 41.728215] ? check_noncircular+0x20/0x20 [ 41.728221] ? locks_remove_file+0x3fa/0x5a0 [ 41.728227] ep_free+0x13f/0x320 [ 41.728230] ? ep_remove+0x800/0x800 [ 41.728234] ? fsnotify_first_mark+0x2b0/0x2b0 [ 41.728238] ? ep_free+0x320/0x320 [ 41.728242] ep_eventpoll_release+0x44/0x60 [ 41.728247] __fput+0x327/0x7e0 [ 41.728252] ? fput+0x140/0x140 [ 41.728256] ? _raw_spin_unlock_irq+0x27/0x70 [ 41.728261] ____fput+0x15/0x20 [ 41.728265] task_work_run+0x199/0x270 [ 41.728269] ? task_work_cancel+0x210/0x210 [ 41.728273] ? _raw_spin_unlock+0x22/0x30 [ 41.728277] ? switch_task_namespaces+0x87/0xc0 [ 41.728282] do_exit+0x9bb/0x1ad0 [ 41.728287] ? __handle_mm_fault+0x2330/0x3ce0 [ 41.728291] ? mm_update_next_owner+0x930/0x930 [ 41.728297] ? do_raw_spin_trylock+0x190/0x190 [ 41.728301] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 41.728305] ? check_noncircular+0x20/0x20 [ 41.728309] ? _raw_spin_unlock+0x22/0x30 [ 41.728312] ? __handle_mm_fault+0x80e/0x3ce0 [ 41.728317] ? check_noncircular+0x20/0x20 [ 41.728319] ? __pmd_alloc+0x4e0/0x4e0 [ 41.728322] ? lock_downgrade+0x980/0x980 [ 41.728327] ? find_held_lock+0x35/0x1d0 [ 41.728332] ? handle_mm_fault+0x248/0x8d0 [ 41.728336] ? find_held_lock+0x35/0x1d0 [ 41.728342] ? __do_page_fault+0x5f7/0xc90 [ 41.728346] ? lock_downgrade+0x980/0x980 [ 41.728351] ? handle_mm_fault+0x410/0x8d0 [ 41.728354] ? down_read_trylock+0xdb/0x170 [ 41.728357] ? __do_page_fault+0x32d/0xc90 [ 41.728361] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 41.728365] ? vmacache_find+0x5f/0x280 [ 41.728370] do_group_exit+0x149/0x400 [ 41.728374] ? __do_page_fault+0x3d6/0xc90 [ 41.728377] ? SyS_exit+0x30/0x30 [ 41.728383] ? do_fast_syscall_32+0x156/0xf9d [ 41.728386] ? do_group_exit+0x400/0x400 [ 41.728390] SyS_exit_group+0x1d/0x20 [ 41.728393] do_fast_syscall_32+0x3ee/0xf9d [ 41.728398] ? do_int80_syscall_32+0x9d0/0x9d0 [ 41.728402] ? kasan_check_read+0x11/0x20 [ 41.728406] ? syscall_return_slowpath+0x550/0x550 [ 41.728411] ? SyS_rt_sigaction+0x94/0x1b0 [ 41.728415] ? SyS_sigprocmask+0x4b0/0x4b0 [ 41.728418] ? SyS_read+0x184/0x220 [ 41.728422] ? retint_user+0x18/0x18 [ 41.728426] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.728432] entry_SYSENTER_compat+0x54/0x63 [ 41.728436] RIP: 0023:0xf7fe7c79 [ 41.728443] RSP: 002b:00000000ff8fe01c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 41.728447] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 41.728449] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 41.728451] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 41.728453] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 41.728456] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 41.728460] [ 41.728462] Allocated by task 3498: [ 41.728466] save_stack+0x43/0xd0 [ 41.728469] kasan_kmalloc+0xad/0xe0 [ 41.728472] kmem_cache_alloc_trace+0x136/0x750 [ 41.728478] binder_get_thread+0x1cf/0x870 [ 41.728480] binder_poll+0x8c/0x390 [ 41.728483] ep_item_poll.isra.10+0xec/0x320 [ 41.728486] ep_insert+0x6a3/0x1b10 [ 41.728489] SyS_epoll_ctl+0x12e4/0x1ab0 [ 41.728492] do_fast_syscall_32+0x3ee/0xf9d [ 41.728496] entry_SYSENTER_compat+0x54/0x63 [ 41.728497] [ 41.728498] Freed by task 3498: [ 41.728500] save_stack+0x43/0xd0 [ 41.728503] kasan_slab_free+0x71/0xc0 [ 41.728506] kfree+0xd6/0x260 [ 41.728508] binder_thread_dec_tmpref+0x27f/0x310 [ 41.728511] binder_thread_release+0x27d/0x540 [ 41.728514] binder_ioctl+0xc02/0x1417 [ 41.728517] compat_SyS_ioctl+0x151/0x2a30 [ 41.728520] do_fast_syscall_32+0x3ee/0xf9d [ 41.728523] entry_SYSENTER_compat+0x54/0x63 [ 41.728524] [ 41.728527] The buggy address belongs to the object at ffff8801c88e7780 [ 41.728527] which belongs to the cache kmalloc-512 of size 512 [ 41.728530] The buggy address is located 176 bytes inside of [ 41.728530] 512-byte region [ffff8801c88e7780, ffff8801c88e7980) [ 41.728530] The buggy address belongs to the page: [ 41.728534] page:00000000ee3171fe count:1 mapcount:0 mapping:0000000050e638ff index:0x0 [ 41.728537] flags: 0x2fffc0000000100(slab) [ 41.728543] raw: 02fffc0000000100 ffff8801c88e7000 0000000000000000 0000000100000006 [ 41.728547] raw: ffffea000738b0e0 ffffea00072b5b60 ffff8801dac00940 0000000000000000 [ 41.728548] page dumped because: kasan: bad access detected [ 41.728549] [ 41.728550] Memory state around the buggy address: [ 41.728553] ffff8801c88e7700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 41.728556] ffff8801c88e7780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.728558] >ffff8801c88e7800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.728559] ^ [ 41.728562] ffff8801c88e7880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.728564] ffff8801c88e7900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.728565] ================================================================== [ 41.728566] Disabling lock debugging due to kernel taint [ 41.728569] Kernel panic - not syncing: panic_on_warn set ... [ 41.728569] [ 41.728572] CPU: 0 PID: 3498 Comm: syzkaller867585 Tainted: G B 4.15.0-rc6+ #155 [ 41.728574] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.728575] Call Trace: [ 41.728579] dump_stack+0x194/0x257 [ 41.728584] ? arch_local_irq_restore+0x53/0x53 [ 41.728587] ? kasan_end_report+0x32/0x50 [ 41.728590] ? lock_downgrade+0x980/0x980 [ 41.728595] ? vsnprintf+0x1ed/0x1900 [ 41.728599] ? __lock_acquire+0x3c70/0x3e00 [ 41.728602] panic+0x1e4/0x41c [ 41.728605] ? refcount_error_report+0x214/0x214 [ 41.728609] ? add_taint+0x40/0x50 [ 41.728612] ? add_taint+0x1c/0x50 [ 41.728616] ? __lock_acquire+0x3d4d/0x3e00 [ 41.728620] kasan_end_report+0x50/0x50 [ 41.728623] kasan_report+0x144/0x340 [ 41.728628] __asan_report_load8_noabort+0x14/0x20 [ 41.728631] __lock_acquire+0x3d4d/0x3e00 [ 41.728634] ? __lock_acquire+0x664/0x3e00 [ 41.728638] ? lock_downgrade+0x980/0x980 [ 41.728641] ? lock_downgrade+0x980/0x980 [ 41.728645] ? print_irqtrace_events+0x270/0x270 [ 41.728648] ? remove_wait_queue+0x81/0x350 [ 41.728653] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 41.728657] ? __lock_acquire+0x664/0x3e00 [ 41.728660] ? check_noncircular+0x20/0x20 [ 41.728667] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 41.728671] ? lock_acquire+0x1d5/0x580 [ 41.728674] ? lock_acquire+0x1d5/0x580 [ 41.728677] ? ep_free+0xf4/0x320 [ 41.728682] ? lock_release+0xa40/0xa40 [ 41.728685] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 41.728689] ? print_irqtrace_events+0x270/0x270 [ 41.728692] ? print_irqtrace_events+0x270/0x270 [ 41.728696] ? rcu_note_context_switch+0x710/0x710 [ 41.728700] ? __might_sleep+0x95/0x190 [ 41.728704] ? ep_free+0xf4/0x320 [ 41.728707] ? __mutex_lock+0x16f/0x1a80 [ 41.728710] ? ep_free+0xf4/0x320 [ 41.728719] ? print_irqtrace_events+0x270/0x270 [ 41.728722] ? ep_free+0xf4/0x320 [ 41.728726] lock_acquire+0x1d5/0x580 [ 41.728730] ? lock_acquire+0x1d5/0x580 [ 41.728733] ? remove_wait_queue+0x81/0x350 [ 41.728738] ? lock_release+0xa40/0xa40 [ 41.728743] ? lock_acquire+0x1d5/0x580 [ 41.728746] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 41.728749] ? lock_acquire+0x1d5/0x580 [ 41.728753] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 41.728757] _raw_spin_lock_irqsave+0x96/0xc0 [ 41.728761] ? remove_wait_queue+0x81/0x350 [ 41.728764] remove_wait_queue+0x81/0x350 [ 41.728768] ? depot_save_stack+0x3b5/0x490 [ 41.728772] ? add_wait_queue+0x290/0x290 [ 41.728775] ? rcutorture_record_progress+0x10/0x10 [ 41.728779] ? lock_release+0xa40/0xa40 [ 41.728784] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 41.728788] ? __kernel_text_address+0xd/0x40 [ 41.728793] ? clear_tfile_check_list+0x370/0x370 [ 41.728797] ? check_noncircular+0x20/0x20 [ 41.728801] ? locks_remove_file+0x3fa/0x5a0 [ 41.728806] ep_free+0x13f/0x320 [ 41.728810] ? ep_remove+0x800/0x800 [ 41.728813] ? fsnotify_first_mark+0x2b0/0x2b0 [ 41.728818] ? ep_free+0x320/0x320 [ 41.728821] ep_eventpoll_release+0x44/0x60 [ 41.728825] __fput+0x327/0x7e0 [ 41.728829] ? fput+0x140/0x140 [ 41.728833] ? _raw_spin_unlock_irq+0x27/0x70 [ 41.728838] ____fput+0x15/0x20 [ 41.728842] task_work_run+0x199/0x270 [ 41.728846] ? task_work_cancel+0x210/0x210 [ 41.728850] ? _raw_spin_unlock+0x22/0x30 [ 41.728853] ? switch_task_namespaces+0x87/0xc0 [ 41.728858] do_exit+0x9bb/0x1ad0 [ 41.728861] ? __handle_mm_fault+0x2330/0x3ce0 [ 41.728866] ? mm_update_next_owner+0x930/0x930 [ 41.728871] ? do_raw_spin_trylock+0x190/0x190 [ 41.728875] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 41.728878] ? check_noncircular+0x20/0x20 [ 41.728883] ? _raw_spin_unlock+0x22/0x30 [ 41.728886] ? __handle_mm_fault+0x80e/0x3ce0 [ 41.728890] ? check_noncircular+0x20/0x20 [ 41.728893] ? __pmd_alloc+0x4e0/0x4e0 [ 41.728896] ? lock_downgrade+0x980/0x980 [ 41.728901] ? find_held_lock+0x35/0x1d0 [ 41.728906] ? handle_mm_fault+0x248/0x8d0 [ 41.728910] ? find_held_lock+0x35/0x1d0 [ 41.728915] ? __do_page_fault+0x5f7/0xc90 [ 41.728918] ? lock_downgrade+0x980/0x980 [ 41.728923] ? handle_mm_fault+0x410/0x8d0 [ 41.728926] ? down_read_trylock+0xdb/0x170 [ 41.728929] ? __do_page_fault+0x32d/0xc90 [ 41.728933] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 41.728936] ? vmacache_find+0x5f/0x280 [ 41.728941] do_group_exit+0x149/0x400 [ 41.728945] ? __do_page_fault+0x3d6/0xc90 [ 41.728948] ? SyS_exit+0x30/0x30 [ 41.728953] ? do_fast_syscall_32+0x156/0xf9d [ 41.728956] ? do_group_exit+0x400/0x400 [ 41.728960] SyS_exit_group+0x1d/0x20 [ 41.728963] do_fast_syscall_32+0x3ee/0xf9d [ 41.728968] ? do_int80_syscall_32+0x9d0/0x9d0 [ 41.728971] ? kasan_check_read+0x11/0x20 [ 41.728976] ? syscall_return_slowpath+0x550/0x550 [ 41.728980] ? SyS_rt_sigaction+0x94/0x1b0 [ 41.728984] ? SyS_sigprocmask+0x4b0/0x4b0 [ 41.728987] ? SyS_read+0x184/0x220 [ 41.728990] ? retint_user+0x18/0x18 [ 41.728995] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.729000] entry_SYSENTER_compat+0x54/0x63 [ 41.729002] RIP: 0023:0xf7fe7c79 [ 41.729004] RSP: 002b:00000000ff8fe01c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 41.729008] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 41.729010] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 41.729012] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 41.729013] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 41.729015] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 41.750194] Dumping ftrace buffer: [ 41.750198] (ftrace buffer empty) [ 41.750200] Kernel Offset: disabled [ 43.050288] Rebooting in 86400 seconds..