[....] Starting enhanced syslogd: rsyslogd[ 10.696990] audit: type=1400 audit(1514386542.417:5): avc: denied { syslog } for pid=2984 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: [ 13.138860] audit: type=1400 audit(1514386544.859:6): avc: denied { map } for pid=3122 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.36' (ECDSA) to the list of known hosts. executing program [ 19.302111] audit: type=1400 audit(1514386551.022:7): avc: denied { map } for pid=3136 comm="syzkaller474415" path="/root/syzkaller474415545" 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 [ 19.306401] ================================================================== [ 19.306415] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 19.306420] Read of size 8 at addr ffff8801ca9175f0 by task syzkaller474415/3136 [ 19.306421] [ 19.306427] CPU: 1 PID: 3136 Comm: syzkaller474415 Not tainted 4.15.0-rc5+ #148 [ 19.306430] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 19.306433] Call Trace: [ 19.306441] dump_stack+0x194/0x257 [ 19.306449] ? arch_local_irq_restore+0x53/0x53 [ 19.306457] ? show_regs_print_info+0x18/0x18 [ 19.306463] ? print_irqtrace_events+0x270/0x270 [ 19.306469] ? __lock_acquire+0x664/0x3e00 [ 19.306475] ? __lock_acquire+0x3d4d/0x3e00 [ 19.306483] print_address_description+0x73/0x250 [ 19.306489] ? __lock_acquire+0x3d4d/0x3e00 [ 19.306495] kasan_report+0x25b/0x340 [ 19.306503] __asan_report_load8_noabort+0x14/0x20 [ 19.306509] __lock_acquire+0x3d4d/0x3e00 [ 19.306514] ? __lock_acquire+0x664/0x3e00 [ 19.306520] ? lock_downgrade+0x980/0x980 [ 19.306525] ? lock_downgrade+0x980/0x980 [ 19.306531] ? print_irqtrace_events+0x270/0x270 [ 19.306538] ? remove_wait_queue+0x81/0x350 [ 19.306547] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 19.306553] ? __lock_acquire+0x664/0x3e00 [ 19.306558] ? check_noncircular+0x20/0x20 [ 19.306570] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 19.306577] ? lock_acquire+0x1d5/0x580 [ 19.306582] ? lock_acquire+0x1d5/0x580 [ 19.306589] ? ep_free+0xf4/0x320 [ 19.306597] ? lock_release+0xa40/0xa40 [ 19.306604] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 19.306609] ? print_irqtrace_events+0x270/0x270 [ 19.306615] ? print_irqtrace_events+0x270/0x270 [ 19.306622] ? rcu_note_context_switch+0x710/0x710 [ 19.306630] ? __might_sleep+0x95/0x190 [ 19.306635] ? ep_free+0xf4/0x320 [ 19.306641] ? __mutex_lock+0x16f/0x1a80 [ 19.306645] ? ep_free+0xf4/0x320 [ 19.306652] ? print_irqtrace_events+0x270/0x270 [ 19.306656] ? ep_free+0xf4/0x320 [ 19.306665] lock_acquire+0x1d5/0x580 [ 19.306670] ? lock_acquire+0x1d5/0x580 [ 19.306676] ? remove_wait_queue+0x81/0x350 [ 19.306684] ? lock_release+0xa40/0xa40 [ 19.306692] ? lock_acquire+0x1d5/0x580 [ 19.306698] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 19.306703] ? lock_acquire+0x1d5/0x580 [ 19.306708] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 19.306716] _raw_spin_lock_irqsave+0x96/0xc0 [ 19.306722] ? remove_wait_queue+0x81/0x350 [ 19.306728] remove_wait_queue+0x81/0x350 [ 19.306735] ? depot_save_stack+0x3b5/0x490 [ 19.306742] ? add_wait_queue+0x290/0x290 [ 19.306747] ? rcutorture_record_progress+0x10/0x10 [ 19.306753] ? lock_release+0xa40/0xa40 [ 19.306761] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 19.306768] ? __kernel_text_address+0xd/0x40 [ 19.306776] ? clear_tfile_check_list+0x370/0x370 [ 19.306783] ? check_noncircular+0x20/0x20 [ 19.306791] ? locks_remove_file+0x3fa/0x5a0 [ 19.306800] ep_free+0x13f/0x320 [ 19.306805] ? ep_remove+0x800/0x800 [ 19.306812] ? fsnotify_first_mark+0x2b0/0x2b0 [ 19.306820] ? ep_free+0x320/0x320 [ 19.306825] ep_eventpoll_release+0x44/0x60 [ 19.306831] __fput+0x327/0x7e0 [ 19.306839] ? fput+0x140/0x140 [ 19.306845] ? _raw_spin_unlock_irq+0x27/0x70 [ 19.306853] ____fput+0x15/0x20 [ 19.306859] task_work_run+0x199/0x270 [ 19.306867] ? task_work_cancel+0x210/0x210 [ 19.306873] ? _raw_spin_unlock+0x22/0x30 [ 19.306879] ? switch_task_namespaces+0x87/0xc0 [ 19.306887] do_exit+0x9bb/0x1ad0 [ 19.306894] ? __handle_mm_fault+0x2330/0x3ce0 [ 19.306901] ? mm_update_next_owner+0x930/0x930 [ 19.306911] ? do_raw_spin_trylock+0x190/0x190 [ 19.306918] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 19.306924] ? check_noncircular+0x20/0x20 [ 19.306931] ? _raw_spin_unlock+0x22/0x30 [ 19.306936] ? __handle_mm_fault+0x80e/0x3ce0 [ 19.306944] ? check_noncircular+0x20/0x20 [ 19.306949] ? __pmd_alloc+0x4e0/0x4e0 [ 19.306954] ? lock_downgrade+0x980/0x980 [ 19.306962] ? find_held_lock+0x35/0x1d0 [ 19.306970] ? handle_mm_fault+0x248/0x8d0 [ 19.306977] ? find_held_lock+0x35/0x1d0 [ 19.306987] ? __do_page_fault+0x5f7/0xc90 [ 19.306993] ? lock_downgrade+0x980/0x980 [ 19.307005] ? handle_mm_fault+0x410/0x8d0 [ 19.307010] ? down_read_trylock+0xdb/0x170 [ 19.307015] ? __do_page_fault+0x32d/0xc90 [ 19.307021] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 19.307028] ? vmacache_find+0x5f/0x280 [ 19.307034] ? vmacache_update+0xfe/0x130 [ 19.307042] do_group_exit+0x149/0x400 [ 19.307048] ? __do_page_fault+0x3d6/0xc90 [ 19.307053] ? SyS_exit+0x30/0x30 [ 19.307063] ? do_fast_syscall_32+0x156/0xf9d [ 19.307069] ? do_group_exit+0x400/0x400 [ 19.307075] SyS_exit_group+0x1d/0x20 [ 19.307081] do_fast_syscall_32+0x3ee/0xf9d [ 19.307090] ? do_int80_syscall_32+0x9d0/0x9d0 [ 19.307095] ? kasan_check_read+0x11/0x20 [ 19.307102] ? syscall_return_slowpath+0x550/0x550 [ 19.307109] ? SyS_rt_sigaction+0x94/0x1b0 [ 19.307116] ? SyS_sigprocmask+0x4b0/0x4b0 [ 19.307121] ? SyS_read+0x184/0x220 [ 19.307126] ? retint_user+0x18/0x18 [ 19.307134] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 19.307143] entry_SYSENTER_compat+0x54/0x63 [ 19.307148] RIP: 0023:0xf7f41c79 [ 19.307151] RSP: 002b:00000000ffa4948c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 19.307158] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 19.307161] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 19.307164] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 19.307167] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 19.307171] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 19.307178] [ 19.307181] Allocated by task 3136: [ 19.307186] save_stack+0x43/0xd0 [ 19.307190] kasan_kmalloc+0xad/0xe0 [ 19.307197] kmem_cache_alloc_trace+0x136/0x750 [ 19.307207] binder_get_thread+0x1cf/0x870 [ 19.307212] binder_poll+0x8c/0x390 [ 19.307216] ep_item_poll.isra.10+0xec/0x320 [ 19.307220] ep_insert+0x6a3/0x1b10 [ 19.307225] SyS_epoll_ctl+0x12e4/0x1ab0 [ 19.307230] do_fast_syscall_32+0x3ee/0xf9d [ 19.307235] entry_SYSENTER_compat+0x54/0x63 [ 19.307236] [ 19.307238] Freed by task 3136: [ 19.307243] save_stack+0x43/0xd0 [ 19.307247] kasan_slab_free+0x71/0xc0 [ 19.307251] kfree+0xd6/0x260 [ 19.307256] binder_thread_dec_tmpref+0x27f/0x310 [ 19.307260] binder_thread_release+0x27d/0x540 [ 19.307265] binder_ioctl+0xc02/0x1417 [ 19.307270] compat_SyS_ioctl+0x151/0x2a30 [ 19.307275] do_fast_syscall_32+0x3ee/0xf9d [ 19.307281] entry_SYSENTER_compat+0x54/0x63 [ 19.307282] [ 19.307286] The buggy address belongs to the object at ffff8801ca917540 [ 19.307286] which belongs to the cache kmalloc-512 of size 512 [ 19.307291] The buggy address is located 176 bytes inside of [ 19.307291] 512-byte region [ffff8801ca917540, ffff8801ca917740) [ 19.307293] The buggy address belongs to the page: [ 19.307298] page:0000000093078b1e count:1 mapcount:0 mapping:00000000be42f262 index:0x0 [ 19.307302] flags: 0x2fffc0000000100(slab) [ 19.307311] raw: 02fffc0000000100 ffff8801ca917040 0000000000000000 0000000100000006 [ 19.307317] raw: ffffea00072eeba0 ffffea00072d4aa0 ffff8801db000940 0000000000000000 [ 19.307320] page dumped because: kasan: bad access detected [ 19.307321] [ 19.307322] Memory state around the buggy address: [ 19.307327] ffff8801ca917480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.307331] ffff8801ca917500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 19.307336] >ffff8801ca917580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.307338] ^ [ 19.307342] ffff8801ca917600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.307346] ffff8801ca917680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.307348] ================================================================== [ 19.307350] Disabling lock debugging due to kernel taint [ 19.307353] Kernel panic - not syncing: panic_on_warn set ... [ 19.307353] [ 19.307358] CPU: 1 PID: 3136 Comm: syzkaller474415 Tainted: G B 4.15.0-rc5+ #148 [ 19.307362] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 19.307363] Call Trace: [ 19.307369] dump_stack+0x194/0x257 [ 19.307376] ? arch_local_irq_restore+0x53/0x53 [ 19.307381] ? kasan_end_report+0x32/0x50 [ 19.307387] ? lock_downgrade+0x980/0x980 [ 19.307393] ? vsnprintf+0x1ed/0x1900 [ 19.307400] ? __lock_acquire+0x3cd0/0x3e00 [ 19.307405] panic+0x1e4/0x41c [ 19.307411] ? refcount_error_report+0x214/0x214 [ 19.307418] ? add_taint+0x40/0x50 [ 19.307423] ? add_taint+0x1c/0x50 [ 19.307429] ? __lock_acquire+0x3d4d/0x3e00 [ 19.307435] kasan_end_report+0x50/0x50 [ 19.307440] kasan_report+0x144/0x340 [ 19.307448] __asan_report_load8_noabort+0x14/0x20 [ 19.307454] __lock_acquire+0x3d4d/0x3e00 [ 19.307459] ? __lock_acquire+0x664/0x3e00 [ 19.307465] ? lock_downgrade+0x980/0x980 [ 19.307470] ? lock_downgrade+0x980/0x980 [ 19.307476] ? print_irqtrace_events+0x270/0x270 [ 19.307482] ? remove_wait_queue+0x81/0x350 [ 19.307490] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 19.307497] ? __lock_acquire+0x664/0x3e00 [ 19.307502] ? check_noncircular+0x20/0x20 [ 19.307514] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 19.307521] ? lock_acquire+0x1d5/0x580 [ 19.307526] ? lock_acquire+0x1d5/0x580 [ 19.307531] ? ep_free+0xf4/0x320 [ 19.307539] ? lock_release+0xa40/0xa40 [ 19.307545] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 19.307550] ? print_irqtrace_events+0x270/0x270 [ 19.307556] ? print_irqtrace_events+0x270/0x270 [ 19.307562] ? rcu_note_context_switch+0x710/0x710 [ 19.307569] ? __might_sleep+0x95/0x190 [ 19.307574] ? ep_free+0xf4/0x320 [ 19.307579] ? __mutex_lock+0x16f/0x1a80 [ 19.307584] ? ep_free+0xf4/0x320 [ 19.307591] ? print_irqtrace_events+0x270/0x270 [ 19.307595] ? ep_free+0xf4/0x320 [ 19.307603] lock_acquire+0x1d5/0x580 [ 19.307608] ? lock_acquire+0x1d5/0x580 [ 19.307614] ? remove_wait_queue+0x81/0x350 [ 19.307622] ? lock_release+0xa40/0xa40 [ 19.307631] ? lock_acquire+0x1d5/0x580 [ 19.307636] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 19.307641] ? lock_acquire+0x1d5/0x580 [ 19.307646] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 19.307654] _raw_spin_lock_irqsave+0x96/0xc0 [ 19.307659] ? remove_wait_queue+0x81/0x350 [ 19.307665] remove_wait_queue+0x81/0x350 [ 19.307671] ? depot_save_stack+0x3b5/0x490 [ 19.307678] ? add_wait_queue+0x290/0x290 [ 19.307684] ? rcutorture_record_progress+0x10/0x10 [ 19.307689] ? lock_release+0xa40/0xa40 [ 19.307697] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 19.307704] ? __kernel_text_address+0xd/0x40 [ 19.307711] ? clear_tfile_check_list+0x370/0x370 [ 19.307718] ? check_noncircular+0x20/0x20 [ 19.307726] ? locks_remove_file+0x3fa/0x5a0 [ 19.307734] ep_free+0x13f/0x320 [ 19.307740] ? ep_remove+0x800/0x800 [ 19.307746] ? fsnotify_first_mark+0x2b0/0x2b0 [ 19.307753] ? ep_free+0x320/0x320 [ 19.307758] ep_eventpoll_release+0x44/0x60 [ 19.307764] __fput+0x327/0x7e0 [ 19.307771] ? fput+0x140/0x140 [ 19.307778] ? _raw_spin_unlock_irq+0x27/0x70 [ 19.307785] ____fput+0x15/0x20 [ 19.307791] task_work_run+0x199/0x270 [ 19.307799] ? task_work_cancel+0x210/0x210 [ 19.307805] ? _raw_spin_unlock+0x22/0x30 [ 19.307810] ? switch_task_namespaces+0x87/0xc0 [ 19.307817] do_exit+0x9bb/0x1ad0 [ 19.307823] ? __handle_mm_fault+0x2330/0x3ce0 [ 19.307831] ? mm_update_next_owner+0x930/0x930 [ 19.307840] ? do_raw_spin_trylock+0x190/0x190 [ 19.307847] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 19.307852] ? check_noncircular+0x20/0x20 [ 19.307859] ? _raw_spin_unlock+0x22/0x30 [ 19.307865] ? __handle_mm_fault+0x80e/0x3ce0 [ 19.307872] ? check_noncircular+0x20/0x20 [ 19.307877] ? __pmd_alloc+0x4e0/0x4e0 [ 19.307882] ? lock_downgrade+0x980/0x980 [ 19.307890] ? find_held_lock+0x35/0x1d0 [ 19.307898] ? handle_mm_fault+0x248/0x8d0 [ 19.307905] ? find_held_lock+0x35/0x1d0 [ 19.307913] ? __do_page_fault+0x5f7/0xc90 [ 19.307919] ? lock_downgrade+0x980/0x980 [ 19.307928] ? handle_mm_fault+0x410/0x8d0 [ 19.307933] ? down_read_trylock+0xdb/0x170 [ 19.307938] ? __do_page_fault+0x32d/0xc90 [ 19.307944] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 19.307950] ? vmacache_find+0x5f/0x280 [ 19.307955] ? vmacache_update+0xfe/0x130 [ 19.307963] do_group_exit+0x149/0x400 [ 19.307969] ? __do_page_fault+0x3d6/0xc90 [ 19.307975] ? SyS_exit+0x30/0x30 [ 19.307982] ? do_fast_syscall_32+0x156/0xf9d [ 19.307988] ? do_group_exit+0x400/0x400 [ 19.307994] SyS_exit_group+0x1d/0x20 [ 19.308000] do_fast_syscall_32+0x3ee/0xf9d [ 19.308009] ? do_int80_syscall_32+0x9d0/0x9d0 [ 19.308014] ? kasan_check_read+0x11/0x20 [ 19.308021] ? syscall_return_slowpath+0x550/0x550 [ 19.308027] ? SyS_rt_sigaction+0x94/0x1b0 [ 19.308034] ? SyS_sigprocmask+0x4b0/0x4b0 [ 19.308038] ? SyS_read+0x184/0x220 [ 19.308044] ? retint_user+0x18/0x18 [ 19.308051] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 19.308060] entry_SYSENTER_compat+0x54/0x63 [ 19.308064] RIP: 0023:0xf7f41c79 [ 19.308067] RSP: 002b:00000000ffa4948c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 19.308072] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 19.308075] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 19.308079] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 19.308082] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 19.308085] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 19.328390] Dumping ftrace buffer: [ 19.328393] (ftrace buffer empty) [ 19.328396] Kernel Offset: disabled [ 20.619391] Rebooting in 86400 seconds..