[....] Starting enhanced syslogd: rsyslogd[ 12.162266] audit: type=1400 audit(1515669951.894:5): avc: denied { syslog } for pid=3342 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.510060] audit: type=1400 audit(1515669958.242: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.10' (ECDSA) to the list of known hosts. executing program [ 26.877472] audit: type=1400 audit(1515669966.610:7): avc: denied { map } for pid=3497 comm="syzkaller763749" path="/root/syzkaller763749707" 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 [ 26.882230] ================================================================== [ 26.882243] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 26.882247] Read of size 8 at addr ffff8801ce5db330 by task syzkaller763749/3497 [ 26.882248] [ 26.882254] CPU: 1 PID: 3497 Comm: syzkaller763749 Not tainted 4.15.0-rc7+ #167 [ 26.882256] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.882258] Call Trace: [ 26.882266] dump_stack+0x194/0x257 [ 26.882272] ? arch_local_irq_restore+0x53/0x53 [ 26.882281] ? show_regs_print_info+0x18/0x18 [ 26.882286] ? print_irqtrace_events+0x270/0x270 [ 26.882292] ? __lock_acquire+0x664/0x3e00 [ 26.882298] ? __lock_acquire+0x3d4d/0x3e00 [ 26.882307] print_address_description+0x73/0x250 [ 26.882313] ? __lock_acquire+0x3d4d/0x3e00 [ 26.882318] kasan_report+0x25b/0x340 [ 26.882324] __asan_report_load8_noabort+0x14/0x20 [ 26.882327] __lock_acquire+0x3d4d/0x3e00 [ 26.882331] ? __lock_acquire+0x664/0x3e00 [ 26.882336] ? lock_downgrade+0x980/0x980 [ 26.882339] ? lock_downgrade+0x980/0x980 [ 26.882343] ? print_irqtrace_events+0x270/0x270 [ 26.882350] ? remove_wait_queue+0x81/0x350 [ 26.882355] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.882359] ? __lock_acquire+0x664/0x3e00 [ 26.882362] ? check_noncircular+0x20/0x20 [ 26.882369] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.882374] ? lock_acquire+0x1d5/0x580 [ 26.882377] ? lock_acquire+0x1d5/0x580 [ 26.882382] ? ep_free+0xf4/0x320 [ 26.882387] ? lock_release+0xa40/0xa40 [ 26.882392] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.882395] ? print_irqtrace_events+0x270/0x270 [ 26.882399] ? print_irqtrace_events+0x270/0x270 [ 26.882406] ? rcu_note_context_switch+0x710/0x710 [ 26.882410] ? __might_sleep+0x95/0x190 [ 26.882413] ? ep_free+0xf4/0x320 [ 26.882419] ? __mutex_lock+0x16f/0x1a80 [ 26.882422] ? ep_free+0xf4/0x320 [ 26.882426] ? print_irqtrace_events+0x270/0x270 [ 26.882429] ? ep_free+0xf4/0x320 [ 26.882434] lock_acquire+0x1d5/0x580 [ 26.882437] ? lock_acquire+0x1d5/0x580 [ 26.882440] ? remove_wait_queue+0x81/0x350 [ 26.882445] ? lock_release+0xa40/0xa40 [ 26.882450] ? lock_acquire+0x1d5/0x580 [ 26.882454] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.882457] ? lock_acquire+0x1d5/0x580 [ 26.882460] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 26.882466] _raw_spin_lock_irqsave+0x96/0xc0 [ 26.882470] ? remove_wait_queue+0x81/0x350 [ 26.882474] remove_wait_queue+0x81/0x350 [ 26.882480] ? depot_save_stack+0x3b5/0x490 [ 26.882484] ? add_wait_queue+0x290/0x290 [ 26.882488] ? rcutorture_record_progress+0x10/0x10 [ 26.882491] ? lock_release+0xa40/0xa40 [ 26.882497] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 26.882503] ? __kernel_text_address+0xd/0x40 [ 26.882508] ? clear_tfile_check_list+0x370/0x370 [ 26.882513] ? check_noncircular+0x20/0x20 [ 26.882519] ? locks_remove_file+0x3fa/0x5a0 [ 26.882524] ep_free+0x13f/0x320 [ 26.882528] ? ep_remove+0x800/0x800 [ 26.882532] ? fsnotify_first_mark+0x2b0/0x2b0 [ 26.882537] ? ep_free+0x320/0x320 [ 26.882540] ep_eventpoll_release+0x44/0x60 [ 26.882547] __fput+0x327/0x7e0 [ 26.882552] ? fput+0x140/0x140 [ 26.882556] ? _raw_spin_unlock_irq+0x27/0x70 [ 26.882561] ____fput+0x15/0x20 [ 26.882565] task_work_run+0x199/0x270 [ 26.882569] ? task_work_cancel+0x210/0x210 [ 26.882573] ? _raw_spin_unlock+0x22/0x30 [ 26.882577] ? switch_task_namespaces+0x87/0xc0 [ 26.882583] do_exit+0x9bb/0x1ad0 [ 26.882588] ? __handle_mm_fault+0x2330/0x3ce0 [ 26.882592] ? mm_update_next_owner+0x930/0x930 [ 26.882599] ? do_raw_spin_trylock+0x190/0x190 [ 26.882603] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.882607] ? check_noncircular+0x20/0x20 [ 26.882611] ? _raw_spin_unlock+0x22/0x30 [ 26.882615] ? __handle_mm_fault+0x80e/0x3ce0 [ 26.882619] ? check_noncircular+0x20/0x20 [ 26.882622] ? __pmd_alloc+0x4e0/0x4e0 [ 26.882625] ? lock_downgrade+0x980/0x980 [ 26.882630] ? find_held_lock+0x35/0x1d0 [ 26.882635] ? handle_mm_fault+0x248/0x8d0 [ 26.882639] ? find_held_lock+0x35/0x1d0 [ 26.882645] ? __do_page_fault+0x5f7/0xc90 [ 26.882649] ? lock_downgrade+0x980/0x980 [ 26.882654] ? handle_mm_fault+0x410/0x8d0 [ 26.882657] ? down_read_trylock+0xdb/0x170 [ 26.882660] ? __do_page_fault+0x32d/0xc90 [ 26.882664] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 26.882668] ? vmacache_find+0x5f/0x280 [ 26.882673] do_group_exit+0x149/0x400 [ 26.882677] ? __do_page_fault+0x3d6/0xc90 [ 26.882680] ? SyS_exit+0x30/0x30 [ 26.882687] ? do_fast_syscall_32+0x156/0xf9d [ 26.882690] ? do_group_exit+0x400/0x400 [ 26.882694] SyS_exit_group+0x1d/0x20 [ 26.882698] do_fast_syscall_32+0x3ee/0xf9d [ 26.882703] ? do_int80_syscall_32+0x9d0/0x9d0 [ 26.882706] ? kasan_check_read+0x11/0x20 [ 26.882710] ? syscall_return_slowpath+0x550/0x550 [ 26.882715] ? SyS_rt_sigaction+0x94/0x1b0 [ 26.882719] ? SyS_sigprocmask+0x4b0/0x4b0 [ 26.882723] ? SyS_read+0x184/0x220 [ 26.882726] ? retint_user+0x18/0x18 [ 26.882731] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 26.882736] entry_SYSENTER_compat+0x54/0x63 [ 26.882739] RIP: 0023:0xf7f70c79 [ 26.882742] RSP: 002b:00000000ffa40f1c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 26.882746] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 26.882748] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 26.882750] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 26.882751] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 26.882753] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 26.882758] [ 26.882760] Allocated by task 3497: [ 26.882764] save_stack+0x43/0xd0 [ 26.882766] kasan_kmalloc+0xad/0xe0 [ 26.882770] kmem_cache_alloc_trace+0x136/0x750 [ 26.882774] binder_get_thread+0x1cf/0x870 [ 26.882777] binder_poll+0x8c/0x390 [ 26.882780] ep_item_poll.isra.10+0xec/0x320 [ 26.882783] ep_insert+0x6a3/0x1b10 [ 26.882786] SyS_epoll_ctl+0x12e4/0x1ab0 [ 26.882789] do_fast_syscall_32+0x3ee/0xf9d [ 26.882791] entry_SYSENTER_compat+0x54/0x63 [ 26.882792] [ 26.882794] Freed by task 3497: [ 26.882796] save_stack+0x43/0xd0 [ 26.882799] kasan_slab_free+0x71/0xc0 [ 26.882801] kfree+0xd6/0x260 [ 26.882804] binder_thread_dec_tmpref+0x27f/0x310 [ 26.882807] binder_thread_release+0x27d/0x540 [ 26.882810] binder_ioctl+0xc02/0x1417 [ 26.882813] compat_SyS_ioctl+0x151/0x2a30 [ 26.882816] do_fast_syscall_32+0x3ee/0xf9d [ 26.882818] entry_SYSENTER_compat+0x54/0x63 [ 26.882819] [ 26.882822] The buggy address belongs to the object at ffff8801ce5db280 [ 26.882822] which belongs to the cache kmalloc-512 of size 512 [ 26.882825] The buggy address is located 176 bytes inside of [ 26.882825] 512-byte region [ffff8801ce5db280, ffff8801ce5db480) [ 26.882826] The buggy address belongs to the page: [ 26.882829] page:ffffea00073976c0 count:1 mapcount:0 mapping:ffff8801ce5db000 index:0x0 [ 26.882838] flags: 0x2fffc0000000100(slab) [ 26.882844] raw: 02fffc0000000100 ffff8801ce5db000 0000000000000000 0000000100000006 [ 26.882848] raw: ffffea000725e0a0 ffffea0007397820 ffff8801dac00940 0000000000000000 [ 26.882850] page dumped because: kasan: bad access detected [ 26.882850] [ 26.882852] Memory state around the buggy address: [ 26.882854] ffff8801ce5db200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.882857] ffff8801ce5db280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.882859] >ffff8801ce5db300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.882861] ^ [ 26.882863] ffff8801ce5db380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.882866] ffff8801ce5db400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.882867] ================================================================== [ 26.882868] Disabling lock debugging due to kernel taint [ 26.882871] Kernel panic - not syncing: panic_on_warn set ... [ 26.882871] [ 26.882875] CPU: 1 PID: 3497 Comm: syzkaller763749 Tainted: G B 4.15.0-rc7+ #167 [ 26.882877] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.882878] Call Trace: [ 26.882882] dump_stack+0x194/0x257 [ 26.882886] ? arch_local_irq_restore+0x53/0x53 [ 26.882890] ? kasan_end_report+0x32/0x50 [ 26.882893] ? lock_downgrade+0x980/0x980 [ 26.882899] ? vsnprintf+0x1ed/0x1900 [ 26.882902] ? __lock_acquire+0x3cb0/0x3e00 [ 26.882906] panic+0x1e4/0x41c [ 26.882909] ? refcount_error_report+0x214/0x214 [ 26.882913] ? add_taint+0x40/0x50 [ 26.882916] ? add_taint+0x1c/0x50 [ 26.882920] ? __lock_acquire+0x3d4d/0x3e00 [ 26.882924] kasan_end_report+0x50/0x50 [ 26.882927] kasan_report+0x144/0x340 [ 26.882932] __asan_report_load8_noabort+0x14/0x20 [ 26.882935] __lock_acquire+0x3d4d/0x3e00 [ 26.882939] ? __lock_acquire+0x664/0x3e00 [ 26.882942] ? lock_downgrade+0x980/0x980 [ 26.882945] ? lock_downgrade+0x980/0x980 [ 26.882949] ? print_irqtrace_events+0x270/0x270 [ 26.882953] ? remove_wait_queue+0x81/0x350 [ 26.882958] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.882961] ? __lock_acquire+0x664/0x3e00 [ 26.882965] ? check_noncircular+0x20/0x20 [ 26.882971] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.882975] ? lock_acquire+0x1d5/0x580 [ 26.882979] ? lock_acquire+0x1d5/0x580 [ 26.882982] ? ep_free+0xf4/0x320 [ 26.882986] ? lock_release+0xa40/0xa40 [ 26.882990] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.882993] ? print_irqtrace_events+0x270/0x270 [ 26.882997] ? print_irqtrace_events+0x270/0x270 [ 26.883003] ? rcu_note_context_switch+0x710/0x710 [ 26.883008] ? __might_sleep+0x95/0x190 [ 26.883011] ? ep_free+0xf4/0x320 [ 26.883015] ? __mutex_lock+0x16f/0x1a80 [ 26.883017] ? ep_free+0xf4/0x320 [ 26.883022] ? print_irqtrace_events+0x270/0x270 [ 26.883024] ? ep_free+0xf4/0x320 [ 26.883029] lock_acquire+0x1d5/0x580 [ 26.883032] ? lock_acquire+0x1d5/0x580 [ 26.883036] ? remove_wait_queue+0x81/0x350 [ 26.883040] ? lock_release+0xa40/0xa40 [ 26.883045] ? lock_acquire+0x1d5/0x580 [ 26.883049] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.883052] ? lock_acquire+0x1d5/0x580 [ 26.883055] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 26.883060] _raw_spin_lock_irqsave+0x96/0xc0 [ 26.883063] ? remove_wait_queue+0x81/0x350 [ 26.883067] remove_wait_queue+0x81/0x350 [ 26.883070] ? depot_save_stack+0x3b5/0x490 [ 26.883074] ? add_wait_queue+0x290/0x290 [ 26.883078] ? rcutorture_record_progress+0x10/0x10 [ 26.883081] ? lock_release+0xa40/0xa40 [ 26.883086] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 26.883090] ? __kernel_text_address+0xd/0x40 [ 26.883095] ? clear_tfile_check_list+0x370/0x370 [ 26.883099] ? check_noncircular+0x20/0x20 [ 26.883104] ? locks_remove_file+0x3fa/0x5a0 [ 26.883109] ep_free+0x13f/0x320 [ 26.883113] ? ep_remove+0x800/0x800 [ 26.883117] ? fsnotify_first_mark+0x2b0/0x2b0 [ 26.883123] ? ep_free+0x320/0x320 [ 26.883128] ep_eventpoll_release+0x44/0x60 [ 26.883132] __fput+0x327/0x7e0 [ 26.883137] ? fput+0x140/0x140 [ 26.883141] ? _raw_spin_unlock_irq+0x27/0x70 [ 26.883146] ____fput+0x15/0x20 [ 26.883149] task_work_run+0x199/0x270 [ 26.883154] ? task_work_cancel+0x210/0x210 [ 26.883158] ? _raw_spin_unlock+0x22/0x30 [ 26.883161] ? switch_task_namespaces+0x87/0xc0 [ 26.883165] do_exit+0x9bb/0x1ad0 [ 26.883169] ? __handle_mm_fault+0x2330/0x3ce0 [ 26.883173] ? mm_update_next_owner+0x930/0x930 [ 26.883179] ? do_raw_spin_trylock+0x190/0x190 [ 26.883183] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.883186] ? check_noncircular+0x20/0x20 [ 26.883191] ? _raw_spin_unlock+0x22/0x30 [ 26.883194] ? __handle_mm_fault+0x80e/0x3ce0 [ 26.883198] ? check_noncircular+0x20/0x20 [ 26.883201] ? __pmd_alloc+0x4e0/0x4e0 [ 26.883204] ? lock_downgrade+0x980/0x980 [ 26.883209] ? find_held_lock+0x35/0x1d0 [ 26.883214] ? handle_mm_fault+0x248/0x8d0 [ 26.883218] ? find_held_lock+0x35/0x1d0 [ 26.883223] ? __do_page_fault+0x5f7/0xc90 [ 26.883226] ? lock_downgrade+0x980/0x980 [ 26.883231] ? handle_mm_fault+0x410/0x8d0 [ 26.883234] ? down_read_trylock+0xdb/0x170 [ 26.883238] ? __do_page_fault+0x32d/0xc90 [ 26.883241] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 26.883245] ? vmacache_find+0x5f/0x280 [ 26.883250] do_group_exit+0x149/0x400 [ 26.883254] ? __do_page_fault+0x3d6/0xc90 [ 26.883257] ? SyS_exit+0x30/0x30 [ 26.883262] ? do_fast_syscall_32+0x156/0xf9d [ 26.883265] ? do_group_exit+0x400/0x400 [ 26.883269] SyS_exit_group+0x1d/0x20 [ 26.883272] do_fast_syscall_32+0x3ee/0xf9d [ 26.883277] ? do_int80_syscall_32+0x9d0/0x9d0 [ 26.883281] ? kasan_check_read+0x11/0x20 [ 26.883285] ? syscall_return_slowpath+0x550/0x550 [ 26.883289] ? SyS_rt_sigaction+0x94/0x1b0 [ 26.883293] ? SyS_sigprocmask+0x4b0/0x4b0 [ 26.883296] ? SyS_read+0x184/0x220 [ 26.883300] ? retint_user+0x18/0x18 [ 26.883304] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 26.883309] entry_SYSENTER_compat+0x54/0x63 [ 26.883311] RIP: 0023:0xf7f70c79 [ 26.883313] RSP: 002b:00000000ffa40f1c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 26.883317] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 26.883319] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 26.883320] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 26.883322] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 26.883324] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 26.903409] Dumping ftrace buffer: [ 26.903417] (ftrace buffer empty) [ 26.903420] Kernel Offset: disabled [ 28.183699] Rebooting in 86400 seconds..