[....] Starting enhanced syslogd: rsyslogd[ 12.514482] audit: type=1400 audit(1515099883.901:5): avc: denied { syslog } for pid=3340 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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] 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.957920] audit: type=1400 audit(1515099890.344:6): avc: denied { map } for pid=3482 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.48' (ECDSA) to the list of known hosts. executing program [ 25.154634] audit: type=1400 audit(1515099896.541:7): avc: denied { map } for pid=3497 comm="syzkaller521986" path="/root/syzkaller521986162" 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.160115] ================================================================== [ 25.160130] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 25.160134] Read of size 8 at addr ffff8801c788dd70 by task syzkaller521986/3497 [ 25.160135] [ 25.160141] CPU: 1 PID: 3497 Comm: syzkaller521986 Not tainted 4.15.0-rc6+ #157 [ 25.160144] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.160146] Call Trace: [ 25.160156] dump_stack+0x194/0x257 [ 25.160161] ? arch_local_irq_restore+0x53/0x53 [ 25.160168] ? show_regs_print_info+0x18/0x18 [ 25.160171] ? print_irqtrace_events+0x270/0x270 [ 25.160175] ? __lock_acquire+0x664/0x3e00 [ 25.160179] ? __lock_acquire+0x3d4d/0x3e00 [ 25.160187] print_address_description+0x73/0x250 [ 25.160191] ? __lock_acquire+0x3d4d/0x3e00 [ 25.160195] kasan_report+0x25b/0x340 [ 25.160200] __asan_report_load8_noabort+0x14/0x20 [ 25.160204] __lock_acquire+0x3d4d/0x3e00 [ 25.160207] ? __lock_acquire+0x664/0x3e00 [ 25.160211] ? lock_downgrade+0x980/0x980 [ 25.160214] ? lock_downgrade+0x980/0x980 [ 25.160218] ? print_irqtrace_events+0x270/0x270 [ 25.160224] ? remove_wait_queue+0x81/0x350 [ 25.160229] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.160233] ? __lock_acquire+0x664/0x3e00 [ 25.160236] ? check_noncircular+0x20/0x20 [ 25.160243] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.160247] ? lock_acquire+0x1d5/0x580 [ 25.160250] ? lock_acquire+0x1d5/0x580 [ 25.160257] ? ep_free+0xf4/0x320 [ 25.160262] ? lock_release+0xa40/0xa40 [ 25.160268] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.160271] ? print_irqtrace_events+0x270/0x270 [ 25.160275] ? print_irqtrace_events+0x270/0x270 [ 25.160282] ? rcu_note_context_switch+0x710/0x710 [ 25.160286] ? __might_sleep+0x95/0x190 [ 25.160290] ? ep_free+0xf4/0x320 [ 25.160295] ? __mutex_lock+0x16f/0x1a80 [ 25.160298] ? ep_free+0xf4/0x320 [ 25.160302] ? print_irqtrace_events+0x270/0x270 [ 25.160305] ? ep_free+0xf4/0x320 [ 25.160310] lock_acquire+0x1d5/0x580 [ 25.160313] ? lock_acquire+0x1d5/0x580 [ 25.160317] ? remove_wait_queue+0x81/0x350 [ 25.160321] ? lock_release+0xa40/0xa40 [ 25.160326] ? lock_acquire+0x1d5/0x580 [ 25.160330] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.160333] ? lock_acquire+0x1d5/0x580 [ 25.160337] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.160342] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.160345] ? remove_wait_queue+0x81/0x350 [ 25.160349] remove_wait_queue+0x81/0x350 [ 25.160355] ? depot_save_stack+0x3b5/0x490 [ 25.160359] ? add_wait_queue+0x290/0x290 [ 25.160363] ? rcutorture_record_progress+0x10/0x10 [ 25.160367] ? lock_release+0xa40/0xa40 [ 25.160372] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.160377] ? __kernel_text_address+0xd/0x40 [ 25.160382] ? clear_tfile_check_list+0x370/0x370 [ 25.160386] ? check_noncircular+0x20/0x20 [ 25.160392] ? locks_remove_file+0x3fa/0x5a0 [ 25.160397] ep_free+0x13f/0x320 [ 25.160401] ? ep_remove+0x800/0x800 [ 25.160404] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.160408] ? ep_free+0x320/0x320 [ 25.160412] ep_eventpoll_release+0x44/0x60 [ 25.160417] __fput+0x327/0x7e0 [ 25.160422] ? fput+0x140/0x140 [ 25.160426] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.160431] ____fput+0x15/0x20 [ 25.160435] task_work_run+0x199/0x270 [ 25.160439] ? task_work_cancel+0x210/0x210 [ 25.160443] ? _raw_spin_unlock+0x22/0x30 [ 25.160447] ? switch_task_namespaces+0x87/0xc0 [ 25.160453] do_exit+0x9bb/0x1ad0 [ 25.160457] ? __handle_mm_fault+0x2330/0x3ce0 [ 25.160462] ? mm_update_next_owner+0x930/0x930 [ 25.160468] ? do_raw_spin_trylock+0x190/0x190 [ 25.160472] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.160476] ? check_noncircular+0x20/0x20 [ 25.160480] ? _raw_spin_unlock+0x22/0x30 [ 25.160483] ? __handle_mm_fault+0x80e/0x3ce0 [ 25.160488] ? check_noncircular+0x20/0x20 [ 25.160491] ? __pmd_alloc+0x4e0/0x4e0 [ 25.160494] ? lock_downgrade+0x980/0x980 [ 25.160499] ? find_held_lock+0x35/0x1d0 [ 25.160504] ? handle_mm_fault+0x248/0x8d0 [ 25.160508] ? find_held_lock+0x35/0x1d0 [ 25.160514] ? __do_page_fault+0x5f7/0xc90 [ 25.160518] ? lock_downgrade+0x980/0x980 [ 25.160523] ? handle_mm_fault+0x410/0x8d0 [ 25.160526] ? down_read_trylock+0xdb/0x170 [ 25.160530] ? __do_page_fault+0x32d/0xc90 [ 25.160533] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 25.160538] ? vmacache_find+0x5f/0x280 [ 25.160543] do_group_exit+0x149/0x400 [ 25.160547] ? __do_page_fault+0x3d6/0xc90 [ 25.160550] ? SyS_exit+0x30/0x30 [ 25.160557] ? do_fast_syscall_32+0x156/0xf9d [ 25.160560] ? do_group_exit+0x400/0x400 [ 25.160564] SyS_exit_group+0x1d/0x20 [ 25.160568] do_fast_syscall_32+0x3ee/0xf9d [ 25.160573] ? do_int80_syscall_32+0x9d0/0x9d0 [ 25.160576] ? kasan_check_read+0x11/0x20 [ 25.160580] ? syscall_return_slowpath+0x550/0x550 [ 25.160585] ? SyS_rt_sigaction+0x94/0x1b0 [ 25.160589] ? SyS_sigprocmask+0x4b0/0x4b0 [ 25.160593] ? SyS_read+0x184/0x220 [ 25.160596] ? retint_user+0x18/0x18 [ 25.160601] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.160607] entry_SYSENTER_compat+0x54/0x63 [ 25.160611] RIP: 0023:0xf7f9ac79 [ 25.160613] RSP: 002b:00000000ffbd907c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 25.160617] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 25.160619] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 25.160621] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 25.160623] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.160625] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.160630] [ 25.160632] Allocated by task 3497: [ 25.160636] save_stack+0x43/0xd0 [ 25.160639] kasan_kmalloc+0xad/0xe0 [ 25.160642] kmem_cache_alloc_trace+0x136/0x750 [ 25.160647] binder_get_thread+0x1cf/0x870 [ 25.160649] binder_poll+0x8c/0x390 [ 25.160652] ep_item_poll.isra.10+0xec/0x320 [ 25.160655] ep_insert+0x6a3/0x1b10 [ 25.160658] SyS_epoll_ctl+0x12e4/0x1ab0 [ 25.160661] do_fast_syscall_32+0x3ee/0xf9d [ 25.160665] entry_SYSENTER_compat+0x54/0x63 [ 25.160665] [ 25.160667] Freed by task 3497: [ 25.160670] save_stack+0x43/0xd0 [ 25.160672] kasan_slab_free+0x71/0xc0 [ 25.160675] kfree+0xd6/0x260 [ 25.160677] binder_thread_dec_tmpref+0x27f/0x310 [ 25.160680] binder_thread_release+0x27d/0x540 [ 25.160683] binder_ioctl+0xc02/0x1417 [ 25.160686] compat_SyS_ioctl+0x151/0x2a30 [ 25.160689] do_fast_syscall_32+0x3ee/0xf9d [ 25.160692] entry_SYSENTER_compat+0x54/0x63 [ 25.160693] [ 25.160696] The buggy address belongs to the object at ffff8801c788dcc0 [ 25.160696] which belongs to the cache kmalloc-512 of size 512 [ 25.160699] The buggy address is located 176 bytes inside of [ 25.160699] 512-byte region [ffff8801c788dcc0, ffff8801c788dec0) [ 25.160700] The buggy address belongs to the page: [ 25.160703] page:00000000edc351a1 count:1 mapcount:0 mapping:000000005191a2b8 index:0xffff8801c788da40 [ 25.160708] flags: 0x2fffc0000000100(slab) [ 25.160714] raw: 02fffc0000000100 ffff8801c788d040 ffff8801c788da40 0000000100000005 [ 25.160718] raw: ffffea00071ca860 ffff8801dac01738 ffff8801dac00940 0000000000000000 [ 25.160720] page dumped because: kasan: bad access detected [ 25.160720] [ 25.160721] Memory state around the buggy address: [ 25.160725] ffff8801c788dc00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.160727] ffff8801c788dc80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 25.160730] >ffff8801c788dd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.160732] ^ [ 25.160734] ffff8801c788dd80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.160737] ffff8801c788de00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.160738] ================================================================== [ 25.160739] Disabling lock debugging due to kernel taint [ 25.160743] Kernel panic - not syncing: panic_on_warn set ... [ 25.160743] [ 25.160746] CPU: 1 PID: 3497 Comm: syzkaller521986 Tainted: G B 4.15.0-rc6+ #157 [ 25.160748] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.160749] Call Trace: [ 25.160753] dump_stack+0x194/0x257 [ 25.160757] ? arch_local_irq_restore+0x53/0x53 [ 25.160761] ? kasan_end_report+0x32/0x50 [ 25.160764] ? lock_downgrade+0x980/0x980 [ 25.160769] ? vsnprintf+0x1ed/0x1900 [ 25.160773] ? __lock_acquire+0x3cb0/0x3e00 [ 25.160776] panic+0x1e4/0x41c [ 25.160780] ? refcount_error_report+0x214/0x214 [ 25.160784] ? add_taint+0x40/0x50 [ 25.160787] ? add_taint+0x1c/0x50 [ 25.160791] ? __lock_acquire+0x3d4d/0x3e00 [ 25.160794] kasan_end_report+0x50/0x50 [ 25.160798] kasan_report+0x144/0x340 [ 25.160802] __asan_report_load8_noabort+0x14/0x20 [ 25.160806] __lock_acquire+0x3d4d/0x3e00 [ 25.160809] ? __lock_acquire+0x664/0x3e00 [ 25.160813] ? lock_downgrade+0x980/0x980 [ 25.160816] ? lock_downgrade+0x980/0x980 [ 25.160819] ? print_irqtrace_events+0x270/0x270 [ 25.160823] ? remove_wait_queue+0x81/0x350 [ 25.160828] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.160832] ? __lock_acquire+0x664/0x3e00 [ 25.160835] ? check_noncircular+0x20/0x20 [ 25.160846] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.160850] ? lock_acquire+0x1d5/0x580 [ 25.160853] ? lock_acquire+0x1d5/0x580 [ 25.160856] ? ep_free+0xf4/0x320 [ 25.160861] ? lock_release+0xa40/0xa40 [ 25.160865] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.160868] ? print_irqtrace_events+0x270/0x270 [ 25.160871] ? print_irqtrace_events+0x270/0x270 [ 25.160875] ? rcu_note_context_switch+0x710/0x710 [ 25.160879] ? __might_sleep+0x95/0x190 [ 25.160883] ? ep_free+0xf4/0x320 [ 25.160886] ? __mutex_lock+0x16f/0x1a80 [ 25.160889] ? ep_free+0xf4/0x320 [ 25.160893] ? print_irqtrace_events+0x270/0x270 [ 25.160896] ? ep_free+0xf4/0x320 [ 25.160900] lock_acquire+0x1d5/0x580 [ 25.160903] ? lock_acquire+0x1d5/0x580 [ 25.160907] ? remove_wait_queue+0x81/0x350 [ 25.160912] ? lock_release+0xa40/0xa40 [ 25.160917] ? lock_acquire+0x1d5/0x580 [ 25.160920] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.160923] ? lock_acquire+0x1d5/0x580 [ 25.160927] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.160931] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.160934] ? remove_wait_queue+0x81/0x350 [ 25.160938] remove_wait_queue+0x81/0x350 [ 25.160942] ? depot_save_stack+0x3b5/0x490 [ 25.160946] ? add_wait_queue+0x290/0x290 [ 25.160949] ? rcutorture_record_progress+0x10/0x10 [ 25.160952] ? lock_release+0xa40/0xa40 [ 25.160958] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.160962] ? __kernel_text_address+0xd/0x40 [ 25.160966] ? clear_tfile_check_list+0x370/0x370 [ 25.160970] ? check_noncircular+0x20/0x20 [ 25.160975] ? locks_remove_file+0x3fa/0x5a0 [ 25.160980] ep_free+0x13f/0x320 [ 25.160984] ? ep_remove+0x800/0x800 [ 25.160987] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.160992] ? ep_free+0x320/0x320 [ 25.160995] ep_eventpoll_release+0x44/0x60 [ 25.160999] __fput+0x327/0x7e0 [ 25.161007] ? fput+0x140/0x140 [ 25.161011] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.161016] ____fput+0x15/0x20 [ 25.161019] task_work_run+0x199/0x270 [ 25.161024] ? task_work_cancel+0x210/0x210 [ 25.161028] ? _raw_spin_unlock+0x22/0x30 [ 25.161031] ? switch_task_namespaces+0x87/0xc0 [ 25.161035] do_exit+0x9bb/0x1ad0 [ 25.161039] ? __handle_mm_fault+0x2330/0x3ce0 [ 25.161043] ? mm_update_next_owner+0x930/0x930 [ 25.161049] ? do_raw_spin_trylock+0x190/0x190 [ 25.161053] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.161056] ? check_noncircular+0x20/0x20 [ 25.161060] ? _raw_spin_unlock+0x22/0x30 [ 25.161064] ? __handle_mm_fault+0x80e/0x3ce0 [ 25.161068] ? check_noncircular+0x20/0x20 [ 25.161071] ? __pmd_alloc+0x4e0/0x4e0 [ 25.161074] ? lock_downgrade+0x980/0x980 [ 25.161078] ? find_held_lock+0x35/0x1d0 [ 25.161083] ? handle_mm_fault+0x248/0x8d0 [ 25.161087] ? find_held_lock+0x35/0x1d0 [ 25.161092] ? __do_page_fault+0x5f7/0xc90 [ 25.161096] ? lock_downgrade+0x980/0x980 [ 25.161101] ? handle_mm_fault+0x410/0x8d0 [ 25.161104] ? down_read_trylock+0xdb/0x170 [ 25.161107] ? __do_page_fault+0x32d/0xc90 [ 25.161111] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 25.161114] ? vmacache_find+0x5f/0x280 [ 25.161119] do_group_exit+0x149/0x400 [ 25.161123] ? __do_page_fault+0x3d6/0xc90 [ 25.161126] ? SyS_exit+0x30/0x30 [ 25.161130] ? do_fast_syscall_32+0x156/0xf9d [ 25.161134] ? do_group_exit+0x400/0x400 [ 25.161137] SyS_exit_group+0x1d/0x20 [ 25.161141] do_fast_syscall_32+0x3ee/0xf9d [ 25.161146] ? do_int80_syscall_32+0x9d0/0x9d0 [ 25.161149] ? kasan_check_read+0x11/0x20 [ 25.161153] ? syscall_return_slowpath+0x550/0x550 [ 25.161157] ? SyS_rt_sigaction+0x94/0x1b0 [ 25.161161] ? SyS_sigprocmask+0x4b0/0x4b0 [ 25.161164] ? SyS_read+0x184/0x220 [ 25.161168] ? retint_user+0x18/0x18 [ 25.161173] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.161178] entry_SYSENTER_compat+0x54/0x63 [ 25.161181] RIP: 0023:0xf7f9ac79 [ 25.161183] RSP: 002b:00000000ffbd907c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 25.161186] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 25.161188] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 25.161190] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 25.161192] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.161193] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.180585] Dumping ftrace buffer: [ 25.180589] (ftrace buffer empty) [ 25.180595] Kernel Offset: disabled [ 26.465566] Rebooting in 86400 seconds..