[....] Starting enhanced syslogd: rsyslogd[ 12.016775] audit: type=1400 audit(1514313721.357:5): avc: denied { syslog } for pid=2996 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.114185] audit: type=1400 audit(1514313727.454:6): avc: denied { map } for pid=3137 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 'ci-upstream-kasan-gce-386-1,10.128.0.90' (ECDSA) to the list of known hosts. executing program [ 24.279557] audit: type=1400 audit(1514313733.620:7): avc: denied { map } for pid=3151 comm="syzkaller814073" path="/root/syzkaller814073089" 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.283497] ================================================================== [ 24.283514] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 24.283518] Read of size 8 at addr ffff8801cf1e83f0 by task syzkaller814073/3151 [ 24.283519] [ 24.283525] CPU: 0 PID: 3151 Comm: syzkaller814073 Not tainted 4.15.0-rc5+ #147 [ 24.283528] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.283530] Call Trace: [ 24.283539] dump_stack+0x194/0x257 [ 24.283544] ? arch_local_irq_restore+0x53/0x53 [ 24.283551] ? show_regs_print_info+0x18/0x18 [ 24.283555] ? print_irqtrace_events+0x270/0x270 [ 24.283559] ? __lock_acquire+0x664/0x3e00 [ 24.283563] ? __lock_acquire+0x3d4d/0x3e00 [ 24.283569] print_address_description+0x73/0x250 [ 24.283573] ? __lock_acquire+0x3d4d/0x3e00 [ 24.283577] kasan_report+0x25b/0x340 [ 24.283581] __asan_report_load8_noabort+0x14/0x20 [ 24.283585] __lock_acquire+0x3d4d/0x3e00 [ 24.283588] ? __lock_acquire+0x664/0x3e00 [ 24.283591] ? lock_downgrade+0x980/0x980 [ 24.283594] ? lock_downgrade+0x980/0x980 [ 24.283598] ? print_irqtrace_events+0x270/0x270 [ 24.283604] ? remove_wait_queue+0x81/0x350 [ 24.283609] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.283613] ? __lock_acquire+0x664/0x3e00 [ 24.283616] ? check_noncircular+0x20/0x20 [ 24.283623] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.283627] ? lock_acquire+0x1d5/0x580 [ 24.283630] ? lock_acquire+0x1d5/0x580 [ 24.283636] ? ep_free+0xf4/0x320 [ 24.283640] ? lock_release+0xa40/0xa40 [ 24.283651] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.283654] ? print_irqtrace_events+0x270/0x270 [ 24.283658] ? print_irqtrace_events+0x270/0x270 [ 24.283663] ? rcu_note_context_switch+0x710/0x710 [ 24.283668] ? __might_sleep+0x95/0x190 [ 24.283671] ? ep_free+0xf4/0x320 [ 24.283675] ? __mutex_lock+0x16f/0x1a80 [ 24.283678] ? ep_free+0xf4/0x320 [ 24.283682] ? print_irqtrace_events+0x270/0x270 [ 24.283684] ? ep_free+0xf4/0x320 [ 24.283689] lock_acquire+0x1d5/0x580 [ 24.283692] ? lock_acquire+0x1d5/0x580 [ 24.283696] ? remove_wait_queue+0x81/0x350 [ 24.283700] ? lock_release+0xa40/0xa40 [ 24.283705] ? lock_acquire+0x1d5/0x580 [ 24.283709] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.283712] ? lock_acquire+0x1d5/0x580 [ 24.283715] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.283721] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.283724] ? remove_wait_queue+0x81/0x350 [ 24.283728] remove_wait_queue+0x81/0x350 [ 24.283734] ? depot_save_stack+0x3b5/0x490 [ 24.283738] ? add_wait_queue+0x290/0x290 [ 24.283742] ? rcutorture_record_progress+0x10/0x10 [ 24.283746] ? lock_release+0xa40/0xa40 [ 24.283751] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.283759] ? __kernel_text_address+0xd/0x40 [ 24.283763] ? clear_tfile_check_list+0x370/0x370 [ 24.283767] ? check_noncircular+0x20/0x20 [ 24.283773] ? locks_remove_file+0x3fa/0x5a0 [ 24.283778] ep_free+0x13f/0x320 [ 24.283781] ? ep_remove+0x800/0x800 [ 24.283788] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.283792] ? ep_free+0x320/0x320 [ 24.283796] ep_eventpoll_release+0x44/0x60 [ 24.283802] __fput+0x327/0x7e0 [ 24.283806] ? fput+0x140/0x140 [ 24.283810] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.283815] ____fput+0x15/0x20 [ 24.283818] task_work_run+0x199/0x270 [ 24.283823] ? task_work_cancel+0x210/0x210 [ 24.283827] ? _raw_spin_unlock+0x22/0x30 [ 24.283830] ? switch_task_namespaces+0x87/0xc0 [ 24.283837] do_exit+0x9bb/0x1ad0 [ 24.283843] ? __handle_mm_fault+0x2330/0x3ce0 [ 24.283847] ? mm_update_next_owner+0x930/0x930 [ 24.283854] ? do_raw_spin_trylock+0x190/0x190 [ 24.283858] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.283862] ? check_noncircular+0x20/0x20 [ 24.283866] ? _raw_spin_unlock+0x22/0x30 [ 24.283869] ? __handle_mm_fault+0x80e/0x3ce0 [ 24.283874] ? check_noncircular+0x20/0x20 [ 24.283876] ? __pmd_alloc+0x4e0/0x4e0 [ 24.283879] ? lock_downgrade+0x980/0x980 [ 24.283884] ? find_held_lock+0x35/0x1d0 [ 24.283889] ? handle_mm_fault+0x248/0x8d0 [ 24.283893] ? find_held_lock+0x35/0x1d0 [ 24.283902] ? __do_page_fault+0x5f7/0xc90 [ 24.283905] ? lock_downgrade+0x980/0x980 [ 24.283910] ? handle_mm_fault+0x410/0x8d0 [ 24.283914] ? down_read_trylock+0xdb/0x170 [ 24.283917] ? __do_page_fault+0x32d/0xc90 [ 24.283920] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 24.283926] ? vmacache_find+0x5f/0x280 [ 24.283929] ? vmacache_update+0xfe/0x130 [ 24.283933] do_group_exit+0x149/0x400 [ 24.283937] ? __do_page_fault+0x3d6/0xc90 [ 24.283940] ? SyS_exit+0x30/0x30 [ 24.283947] ? do_fast_syscall_32+0x156/0xf9d [ 24.283951] ? do_group_exit+0x400/0x400 [ 24.283954] SyS_exit_group+0x1d/0x20 [ 24.283958] do_fast_syscall_32+0x3ee/0xf9d [ 24.283963] ? do_int80_syscall_32+0x9d0/0x9d0 [ 24.283966] ? kasan_check_read+0x11/0x20 [ 24.283970] ? syscall_return_slowpath+0x550/0x550 [ 24.283975] ? SyS_rt_sigaction+0x94/0x1b0 [ 24.283979] ? SyS_sigprocmask+0x4b0/0x4b0 [ 24.283982] ? SyS_read+0x184/0x220 [ 24.283985] ? retint_user+0x18/0x18 [ 24.283990] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 24.283996] entry_SYSENTER_compat+0x54/0x63 [ 24.284000] RIP: 0023:0xf7ff0c79 [ 24.284005] RSP: 002b:00000000ffc4293c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 24.284009] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 24.284011] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 24.284013] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 24.284015] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 24.284017] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 24.284021] [ 24.284023] Allocated by task 3151: [ 24.284027] save_stack+0x43/0xd0 [ 24.284030] kasan_kmalloc+0xad/0xe0 [ 24.284036] kmem_cache_alloc_trace+0x136/0x750 [ 24.284043] binder_get_thread+0x1cf/0x870 [ 24.284046] binder_poll+0x8c/0x390 [ 24.284049] ep_item_poll.isra.10+0xec/0x320 [ 24.284051] ep_insert+0x6a3/0x1b10 [ 24.284054] SyS_epoll_ctl+0x12e4/0x1ab0 [ 24.284057] do_fast_syscall_32+0x3ee/0xf9d [ 24.284060] entry_SYSENTER_compat+0x54/0x63 [ 24.284061] [ 24.284062] Freed by task 3151: [ 24.284065] save_stack+0x43/0xd0 [ 24.284067] kasan_slab_free+0x71/0xc0 [ 24.284070] kfree+0xd6/0x260 [ 24.284073] binder_thread_dec_tmpref+0x27f/0x310 [ 24.284075] binder_thread_release+0x27d/0x540 [ 24.284079] binder_ioctl+0xc02/0x1417 [ 24.284082] compat_SyS_ioctl+0x151/0x2a30 [ 24.284085] do_fast_syscall_32+0x3ee/0xf9d [ 24.284088] entry_SYSENTER_compat+0x54/0x63 [ 24.284089] [ 24.284091] The buggy address belongs to the object at ffff8801cf1e8340 [ 24.284091] which belongs to the cache kmalloc-512 of size 512 [ 24.284094] The buggy address is located 176 bytes inside of [ 24.284094] 512-byte region [ffff8801cf1e8340, ffff8801cf1e8540) [ 24.284095] The buggy address belongs to the page: [ 24.284099] page:000000006823a9da count:1 mapcount:0 mapping:00000000ec666614 index:0x0 [ 24.284103] flags: 0x2fffc0000000100(slab) [ 24.284109] raw: 02fffc0000000100 ffff8801cf1e80c0 0000000000000000 0000000100000006 [ 24.284113] raw: ffffea00073c79a0 ffffea00073c7aa0 ffff8801db000940 0000000000000000 [ 24.284115] page dumped because: kasan: bad access detected [ 24.284115] [ 24.284116] Memory state around the buggy address: [ 24.284119] ffff8801cf1e8280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.284122] ffff8801cf1e8300: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 24.284124] >ffff8801cf1e8380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.284126] ^ [ 24.284128] ffff8801cf1e8400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.284131] ffff8801cf1e8480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.284132] ================================================================== [ 24.284133] Disabling lock debugging due to kernel taint [ 24.284136] Kernel panic - not syncing: panic_on_warn set ... [ 24.284136] [ 24.284140] CPU: 0 PID: 3151 Comm: syzkaller814073 Tainted: G B 4.15.0-rc5+ #147 [ 24.284142] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.284143] Call Trace: [ 24.284147] dump_stack+0x194/0x257 [ 24.284151] ? arch_local_irq_restore+0x53/0x53 [ 24.284154] ? kasan_end_report+0x32/0x50 [ 24.284157] ? lock_downgrade+0x980/0x980 [ 24.284163] ? vsnprintf+0x1ed/0x1900 [ 24.284166] ? __lock_acquire+0x3cd0/0x3e00 [ 24.284169] panic+0x1e4/0x41c [ 24.284173] ? refcount_error_report+0x214/0x214 [ 24.284177] ? add_taint+0x40/0x50 [ 24.284180] ? add_taint+0x1c/0x50 [ 24.284184] ? __lock_acquire+0x3d4d/0x3e00 [ 24.284187] kasan_end_report+0x50/0x50 [ 24.284190] kasan_report+0x144/0x340 [ 24.284194] __asan_report_load8_noabort+0x14/0x20 [ 24.284198] __lock_acquire+0x3d4d/0x3e00 [ 24.284201] ? __lock_acquire+0x664/0x3e00 [ 24.284204] ? lock_downgrade+0x980/0x980 [ 24.284207] ? lock_downgrade+0x980/0x980 [ 24.284211] ? print_irqtrace_events+0x270/0x270 [ 24.284214] ? remove_wait_queue+0x81/0x350 [ 24.284219] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.284223] ? __lock_acquire+0x664/0x3e00 [ 24.284226] ? check_noncircular+0x20/0x20 [ 24.284232] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.284236] ? lock_acquire+0x1d5/0x580 [ 24.284239] ? lock_acquire+0x1d5/0x580 [ 24.284242] ? ep_free+0xf4/0x320 [ 24.284246] ? lock_release+0xa40/0xa40 [ 24.284250] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.284253] ? print_irqtrace_events+0x270/0x270 [ 24.284256] ? print_irqtrace_events+0x270/0x270 [ 24.284260] ? rcu_note_context_switch+0x710/0x710 [ 24.284264] ? __might_sleep+0x95/0x190 [ 24.284267] ? ep_free+0xf4/0x320 [ 24.284270] ? __mutex_lock+0x16f/0x1a80 [ 24.284272] ? ep_free+0xf4/0x320 [ 24.284276] ? print_irqtrace_events+0x270/0x270 [ 24.284279] ? ep_free+0xf4/0x320 [ 24.284283] lock_acquire+0x1d5/0x580 [ 24.284286] ? lock_acquire+0x1d5/0x580 [ 24.284290] ? remove_wait_queue+0x81/0x350 [ 24.284294] ? lock_release+0xa40/0xa40 [ 24.284299] ? lock_acquire+0x1d5/0x580 [ 24.284302] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.284305] ? lock_acquire+0x1d5/0x580 [ 24.284308] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.284313] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.284316] ? remove_wait_queue+0x81/0x350 [ 24.284319] remove_wait_queue+0x81/0x350 [ 24.284323] ? depot_save_stack+0x3b5/0x490 [ 24.284327] ? add_wait_queue+0x290/0x290 [ 24.284330] ? rcutorture_record_progress+0x10/0x10 [ 24.284334] ? lock_release+0xa40/0xa40 [ 24.284338] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.284342] ? __kernel_text_address+0xd/0x40 [ 24.284346] ? clear_tfile_check_list+0x370/0x370 [ 24.284350] ? check_noncircular+0x20/0x20 [ 24.284354] ? locks_remove_file+0x3fa/0x5a0 [ 24.284359] ep_free+0x13f/0x320 [ 24.284362] ? ep_remove+0x800/0x800 [ 24.284366] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.284370] ? ep_free+0x320/0x320 [ 24.284373] ep_eventpoll_release+0x44/0x60 [ 24.284376] __fput+0x327/0x7e0 [ 24.284381] ? fput+0x140/0x140 [ 24.284384] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.284389] ____fput+0x15/0x20 [ 24.284392] task_work_run+0x199/0x270 [ 24.284397] ? task_work_cancel+0x210/0x210 [ 24.284400] ? _raw_spin_unlock+0x22/0x30 [ 24.284404] ? switch_task_namespaces+0x87/0xc0 [ 24.284408] do_exit+0x9bb/0x1ad0 [ 24.284412] ? __handle_mm_fault+0x2330/0x3ce0 [ 24.284416] ? mm_update_next_owner+0x930/0x930 [ 24.284421] ? do_raw_spin_trylock+0x190/0x190 [ 24.284425] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.284428] ? check_noncircular+0x20/0x20 [ 24.284432] ? _raw_spin_unlock+0x22/0x30 [ 24.284436] ? __handle_mm_fault+0x80e/0x3ce0 [ 24.284440] ? check_noncircular+0x20/0x20 [ 24.284443] ? __pmd_alloc+0x4e0/0x4e0 [ 24.284446] ? lock_downgrade+0x980/0x980 [ 24.284450] ? find_held_lock+0x35/0x1d0 [ 24.284455] ? handle_mm_fault+0x248/0x8d0 [ 24.284459] ? find_held_lock+0x35/0x1d0 [ 24.284464] ? __do_page_fault+0x5f7/0xc90 [ 24.284467] ? lock_downgrade+0x980/0x980 [ 24.284472] ? handle_mm_fault+0x410/0x8d0 [ 24.284475] ? down_read_trylock+0xdb/0x170 [ 24.284478] ? __do_page_fault+0x32d/0xc90 [ 24.284481] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 24.284485] ? vmacache_find+0x5f/0x280 [ 24.284488] ? vmacache_update+0xfe/0x130 [ 24.284493] do_group_exit+0x149/0x400 [ 24.284496] ? __do_page_fault+0x3d6/0xc90 [ 24.284499] ? SyS_exit+0x30/0x30 [ 24.284504] ? do_fast_syscall_32+0x156/0xf9d [ 24.284507] ? do_group_exit+0x400/0x400 [ 24.284511] SyS_exit_group+0x1d/0x20 [ 24.284514] do_fast_syscall_32+0x3ee/0xf9d [ 24.284519] ? do_int80_syscall_32+0x9d0/0x9d0 [ 24.284522] ? kasan_check_read+0x11/0x20 [ 24.284526] ? syscall_return_slowpath+0x550/0x550 [ 24.284530] ? SyS_rt_sigaction+0x94/0x1b0 [ 24.284534] ? SyS_sigprocmask+0x4b0/0x4b0 [ 24.284536] ? SyS_read+0x184/0x220 [ 24.284540] ? retint_user+0x18/0x18 [ 24.284544] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 24.284549] entry_SYSENTER_compat+0x54/0x63 [ 24.284551] RIP: 0023:0xf7ff0c79 [ 24.284553] RSP: 002b:00000000ffc4293c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 24.284557] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 24.284559] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 24.284560] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 24.284562] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 24.284564] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 24.305508] Dumping ftrace buffer: [ 24.305512] (ftrace buffer empty) [ 24.305515] Kernel Offset: disabled [ 25.596313] Rebooting in 86400 seconds..