[....] Starting enhanced syslogd: rsyslogd[ 11.496741] audit: type=1400 audit(1514402584.753:5): avc: denied { syslog } for pid=2989 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: [ 18.525103] audit: type=1400 audit(1514402591.781:6): avc: denied { map } for pid=3128 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.219' (ECDSA) to the list of known hosts. executing program [ 24.721397] audit: type=1400 audit(1514402597.978:7): avc: denied { map } for pid=3142 comm="syzkaller817130" path="/root/syzkaller817130773" 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 [ 24.726762] ================================================================== [ 24.726776] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 24.726782] Read of size 8 at addr ffff8801c9813ab0 by task syzkaller817130/3142 [ 24.726783] [ 24.726790] CPU: 1 PID: 3142 Comm: syzkaller817130 Not tainted 4.15.0-rc5+ #148 [ 24.726793] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.726795] Call Trace: [ 24.726804] dump_stack+0x194/0x257 [ 24.726811] ? arch_local_irq_restore+0x53/0x53 [ 24.726819] ? show_regs_print_info+0x18/0x18 [ 24.726825] ? print_irqtrace_events+0x270/0x270 [ 24.726831] ? __lock_acquire+0x664/0x3e00 [ 24.726837] ? __lock_acquire+0x3d4d/0x3e00 [ 24.726846] print_address_description+0x73/0x250 [ 24.726852] ? __lock_acquire+0x3d4d/0x3e00 [ 24.726858] kasan_report+0x25b/0x340 [ 24.726865] __asan_report_load8_noabort+0x14/0x20 [ 24.726871] __lock_acquire+0x3d4d/0x3e00 [ 24.726877] ? __lock_acquire+0x664/0x3e00 [ 24.726883] ? lock_downgrade+0x980/0x980 [ 24.726888] ? lock_downgrade+0x980/0x980 [ 24.726894] ? print_irqtrace_events+0x270/0x270 [ 24.726900] ? remove_wait_queue+0x81/0x350 [ 24.726909] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.726915] ? __lock_acquire+0x664/0x3e00 [ 24.726921] ? check_noncircular+0x20/0x20 [ 24.726933] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.726940] ? lock_acquire+0x1d5/0x580 [ 24.726945] ? lock_acquire+0x1d5/0x580 [ 24.726951] ? ep_free+0xf4/0x320 [ 24.726960] ? lock_release+0xa40/0xa40 [ 24.726966] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.726972] ? print_irqtrace_events+0x270/0x270 [ 24.726977] ? print_irqtrace_events+0x270/0x270 [ 24.726985] ? rcu_note_context_switch+0x710/0x710 [ 24.726993] ? __might_sleep+0x95/0x190 [ 24.726998] ? ep_free+0xf4/0x320 [ 24.727007] ? __mutex_lock+0x16f/0x1a80 [ 24.727012] ? ep_free+0xf4/0x320 [ 24.727019] ? print_irqtrace_events+0x270/0x270 [ 24.727023] ? ep_free+0xf4/0x320 [ 24.727031] lock_acquire+0x1d5/0x580 [ 24.727037] ? lock_acquire+0x1d5/0x580 [ 24.727043] ? remove_wait_queue+0x81/0x350 [ 24.727051] ? lock_release+0xa40/0xa40 [ 24.727060] ? lock_acquire+0x1d5/0x580 [ 24.727065] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.727070] ? lock_acquire+0x1d5/0x580 [ 24.727076] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.727083] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.727089] ? remove_wait_queue+0x81/0x350 [ 24.727095] remove_wait_queue+0x81/0x350 [ 24.727102] ? depot_save_stack+0x3b5/0x490 [ 24.727109] ? add_wait_queue+0x290/0x290 [ 24.727115] ? rcutorture_record_progress+0x10/0x10 [ 24.727121] ? lock_release+0xa40/0xa40 [ 24.727129] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.727137] ? __kernel_text_address+0xd/0x40 [ 24.727144] ? clear_tfile_check_list+0x370/0x370 [ 24.727152] ? check_noncircular+0x20/0x20 [ 24.727160] ? locks_remove_file+0x3fa/0x5a0 [ 24.727169] ep_free+0x13f/0x320 [ 24.727174] ? ep_remove+0x800/0x800 [ 24.727181] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.727188] ? ep_free+0x320/0x320 [ 24.727194] ep_eventpoll_release+0x44/0x60 [ 24.727199] __fput+0x327/0x7e0 [ 24.727207] ? fput+0x140/0x140 [ 24.727214] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.727222] ____fput+0x15/0x20 [ 24.727228] task_work_run+0x199/0x270 [ 24.727235] ? task_work_cancel+0x210/0x210 [ 24.727241] ? _raw_spin_unlock+0x22/0x30 [ 24.727247] ? switch_task_namespaces+0x87/0xc0 [ 24.727255] do_exit+0x9bb/0x1ad0 [ 24.727262] ? __handle_mm_fault+0x2330/0x3ce0 [ 24.727270] ? mm_update_next_owner+0x930/0x930 [ 24.727279] ? do_raw_spin_trylock+0x190/0x190 [ 24.727286] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.727292] ? check_noncircular+0x20/0x20 [ 24.727299] ? _raw_spin_unlock+0x22/0x30 [ 24.727305] ? __handle_mm_fault+0x80e/0x3ce0 [ 24.727312] ? check_noncircular+0x20/0x20 [ 24.727317] ? __pmd_alloc+0x4e0/0x4e0 [ 24.727322] ? lock_downgrade+0x980/0x980 [ 24.727330] ? find_held_lock+0x35/0x1d0 [ 24.727339] ? handle_mm_fault+0x248/0x8d0 [ 24.727346] ? find_held_lock+0x35/0x1d0 [ 24.727356] ? __do_page_fault+0x5f7/0xc90 [ 24.727362] ? lock_downgrade+0x980/0x980 [ 24.727370] ? handle_mm_fault+0x410/0x8d0 [ 24.727375] ? down_read_trylock+0xdb/0x170 [ 24.727381] ? __do_page_fault+0x32d/0xc90 [ 24.727387] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 24.727393] ? vmacache_find+0x5f/0x280 [ 24.727401] do_group_exit+0x149/0x400 [ 24.727408] ? __do_page_fault+0x3d6/0xc90 [ 24.727413] ? SyS_exit+0x30/0x30 [ 24.727422] ? do_fast_syscall_32+0x156/0xf9d [ 24.727428] ? do_group_exit+0x400/0x400 [ 24.727434] SyS_exit_group+0x1d/0x20 [ 24.727440] do_fast_syscall_32+0x3ee/0xf9d [ 24.727449] ? do_int80_syscall_32+0x9d0/0x9d0 [ 24.727454] ? kasan_check_read+0x11/0x20 [ 24.727461] ? syscall_return_slowpath+0x550/0x550 [ 24.727468] ? SyS_rt_sigaction+0x94/0x1b0 [ 24.727475] ? SyS_sigprocmask+0x4b0/0x4b0 [ 24.727479] ? SyS_read+0x184/0x220 [ 24.727486] ? retint_user+0x18/0x18 [ 24.727494] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 24.727503] entry_SYSENTER_compat+0x54/0x63 [ 24.727508] RIP: 0023:0xf7f48c79 [ 24.727511] RSP: 002b:00000000fffa111c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 24.727517] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 24.727521] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 24.727524] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 24.727527] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 24.727530] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 24.727538] [ 24.727540] Allocated by task 3142: [ 24.727546] save_stack+0x43/0xd0 [ 24.727551] kasan_kmalloc+0xad/0xe0 [ 24.727557] kmem_cache_alloc_trace+0x136/0x750 [ 24.727563] binder_get_thread+0x1cf/0x870 [ 24.727567] binder_poll+0x8c/0x390 [ 24.727572] ep_item_poll.isra.10+0xec/0x320 [ 24.727576] ep_insert+0x6a3/0x1b10 [ 24.727581] SyS_epoll_ctl+0x12e4/0x1ab0 [ 24.727585] do_fast_syscall_32+0x3ee/0xf9d [ 24.727591] entry_SYSENTER_compat+0x54/0x63 [ 24.727592] [ 24.727594] Freed by task 3142: [ 24.727598] save_stack+0x43/0xd0 [ 24.727603] kasan_slab_free+0x71/0xc0 [ 24.727606] kfree+0xd6/0x260 [ 24.727611] binder_thread_dec_tmpref+0x27f/0x310 [ 24.727616] binder_thread_release+0x27d/0x540 [ 24.727621] binder_ioctl+0xc02/0x1417 [ 24.727626] compat_SyS_ioctl+0x151/0x2a30 [ 24.727631] do_fast_syscall_32+0x3ee/0xf9d [ 24.727636] entry_SYSENTER_compat+0x54/0x63 [ 24.727637] [ 24.727641] The buggy address belongs to the object at ffff8801c9813a00 [ 24.727641] which belongs to the cache kmalloc-512 of size 512 [ 24.727646] The buggy address is located 176 bytes inside of [ 24.727646] 512-byte region [ffff8801c9813a00, ffff8801c9813c00) [ 24.727648] The buggy address belongs to the page: [ 24.727654] page:00000000ade54dea count:1 mapcount:0 mapping:00000000e4e72bb5 index:0x0 [ 24.727659] flags: 0x2fffc0000000100(slab) [ 24.727667] raw: 02fffc0000000100 ffff8801c9813000 0000000000000000 0000000100000006 [ 24.727674] raw: ffffea0007263820 ffffea000729b1e0 ffff8801db000940 0000000000000000 [ 24.727677] page dumped because: kasan: bad access detected [ 24.727678] [ 24.727679] Memory state around the buggy address: [ 24.727684] ffff8801c9813980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.727688] ffff8801c9813a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.727692] >ffff8801c9813a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.727694] ^ [ 24.727699] ffff8801c9813b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.727703] ffff8801c9813b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.727704] ================================================================== [ 24.727706] Disabling lock debugging due to kernel taint [ 24.727709] Kernel panic - not syncing: panic_on_warn set ... [ 24.727709] [ 24.727715] CPU: 1 PID: 3142 Comm: syzkaller817130 Tainted: G B 4.15.0-rc5+ #148 [ 24.727718] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.727720] Call Trace: [ 24.727730] dump_stack+0x194/0x257 [ 24.727736] ? arch_local_irq_restore+0x53/0x53 [ 24.727742] ? kasan_end_report+0x32/0x50 [ 24.727748] ? lock_downgrade+0x980/0x980 [ 24.727754] ? vsnprintf+0x1ed/0x1900 [ 24.727760] ? __lock_acquire+0x3cd0/0x3e00 [ 24.727765] panic+0x1e4/0x41c [ 24.727771] ? refcount_error_report+0x214/0x214 [ 24.727778] ? add_taint+0x40/0x50 [ 24.727783] ? add_taint+0x1c/0x50 [ 24.727789] ? __lock_acquire+0x3d4d/0x3e00 [ 24.727795] kasan_end_report+0x50/0x50 [ 24.727800] kasan_report+0x144/0x340 [ 24.727808] __asan_report_load8_noabort+0x14/0x20 [ 24.727813] __lock_acquire+0x3d4d/0x3e00 [ 24.727819] ? __lock_acquire+0x664/0x3e00 [ 24.727825] ? lock_downgrade+0x980/0x980 [ 24.727830] ? lock_downgrade+0x980/0x980 [ 24.727836] ? print_irqtrace_events+0x270/0x270 [ 24.727842] ? remove_wait_queue+0x81/0x350 [ 24.727851] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.727857] ? __lock_acquire+0x664/0x3e00 [ 24.727862] ? check_noncircular+0x20/0x20 [ 24.727874] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.727881] ? lock_acquire+0x1d5/0x580 [ 24.727886] ? lock_acquire+0x1d5/0x580 [ 24.727891] ? ep_free+0xf4/0x320 [ 24.727898] ? lock_release+0xa40/0xa40 [ 24.727904] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.727910] ? print_irqtrace_events+0x270/0x270 [ 24.727916] ? print_irqtrace_events+0x270/0x270 [ 24.727922] ? rcu_note_context_switch+0x710/0x710 [ 24.727929] ? __might_sleep+0x95/0x190 [ 24.727934] ? ep_free+0xf4/0x320 [ 24.727939] ? __mutex_lock+0x16f/0x1a80 [ 24.727943] ? ep_free+0xf4/0x320 [ 24.727950] ? print_irqtrace_events+0x270/0x270 [ 24.727955] ? ep_free+0xf4/0x320 [ 24.727962] lock_acquire+0x1d5/0x580 [ 24.727968] ? lock_acquire+0x1d5/0x580 [ 24.727973] ? remove_wait_queue+0x81/0x350 [ 24.727982] ? lock_release+0xa40/0xa40 [ 24.727990] ? lock_acquire+0x1d5/0x580 [ 24.727996] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.728001] ? lock_acquire+0x1d5/0x580 [ 24.728006] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.728013] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.728019] ? remove_wait_queue+0x81/0x350 [ 24.728025] remove_wait_queue+0x81/0x350 [ 24.728031] ? depot_save_stack+0x3b5/0x490 [ 24.728038] ? add_wait_queue+0x290/0x290 [ 24.728043] ? rcutorture_record_progress+0x10/0x10 [ 24.728049] ? lock_release+0xa40/0xa40 [ 24.728057] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.728064] ? __kernel_text_address+0xd/0x40 [ 24.728071] ? clear_tfile_check_list+0x370/0x370 [ 24.728078] ? check_noncircular+0x20/0x20 [ 24.728086] ? locks_remove_file+0x3fa/0x5a0 [ 24.728094] ep_free+0x13f/0x320 [ 24.728100] ? ep_remove+0x800/0x800 [ 24.728106] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.728113] ? ep_free+0x320/0x320 [ 24.728118] ep_eventpoll_release+0x44/0x60 [ 24.728124] __fput+0x327/0x7e0 [ 24.728131] ? fput+0x140/0x140 [ 24.728137] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.728145] ____fput+0x15/0x20 [ 24.728151] task_work_run+0x199/0x270 [ 24.728159] ? task_work_cancel+0x210/0x210 [ 24.728164] ? _raw_spin_unlock+0x22/0x30 [ 24.728170] ? switch_task_namespaces+0x87/0xc0 [ 24.728177] do_exit+0x9bb/0x1ad0 [ 24.728183] ? __handle_mm_fault+0x2330/0x3ce0 [ 24.728190] ? mm_update_next_owner+0x930/0x930 [ 24.728199] ? do_raw_spin_trylock+0x190/0x190 [ 24.728206] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.728212] ? check_noncircular+0x20/0x20 [ 24.728219] ? _raw_spin_unlock+0x22/0x30 [ 24.728224] ? __handle_mm_fault+0x80e/0x3ce0 [ 24.728232] ? check_noncircular+0x20/0x20 [ 24.728236] ? __pmd_alloc+0x4e0/0x4e0 [ 24.728241] ? lock_downgrade+0x980/0x980 [ 24.728249] ? find_held_lock+0x35/0x1d0 [ 24.728257] ? handle_mm_fault+0x248/0x8d0 [ 24.728264] ? find_held_lock+0x35/0x1d0 [ 24.728272] ? __do_page_fault+0x5f7/0xc90 [ 24.728279] ? lock_downgrade+0x980/0x980 [ 24.728287] ? handle_mm_fault+0x410/0x8d0 [ 24.728292] ? down_read_trylock+0xdb/0x170 [ 24.728298] ? __do_page_fault+0x32d/0xc90 [ 24.728304] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 24.728310] ? vmacache_find+0x5f/0x280 [ 24.728318] do_group_exit+0x149/0x400 [ 24.728324] ? __do_page_fault+0x3d6/0xc90 [ 24.728329] ? SyS_exit+0x30/0x30 [ 24.728337] ? do_fast_syscall_32+0x156/0xf9d [ 24.728343] ? do_group_exit+0x400/0x400 [ 24.728349] SyS_exit_group+0x1d/0x20 [ 24.728355] do_fast_syscall_32+0x3ee/0xf9d [ 24.728363] ? do_int80_syscall_32+0x9d0/0x9d0 [ 24.728368] ? kasan_check_read+0x11/0x20 [ 24.728375] ? syscall_return_slowpath+0x550/0x550 [ 24.728382] ? SyS_rt_sigaction+0x94/0x1b0 [ 24.728388] ? SyS_sigprocmask+0x4b0/0x4b0 [ 24.728393] ? SyS_read+0x184/0x220 [ 24.728398] ? retint_user+0x18/0x18 [ 24.728406] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 24.728414] entry_SYSENTER_compat+0x54/0x63 [ 24.728418] RIP: 0023:0xf7f48c79 [ 24.728421] RSP: 002b:00000000fffa111c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 24.728427] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 24.728430] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 24.728433] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 24.728437] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 24.728440] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 24.747712] Dumping ftrace buffer: [ 24.747716] (ftrace buffer empty) [ 24.747718] Kernel Offset: disabled [ 26.030045] Rebooting in 86400 seconds..