[....] Starting enhanced syslogd: rsyslogd[ 11.923237] audit: type=1400 audit(1515321480.551:5): avc: denied { syslog } for pid=3339 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.713600] audit: type=1400 audit(1515321487.341:6): avc: denied { map } for pid=3477 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.246' (ECDSA) to the list of known hosts. executing program [ 24.887906] audit: type=1400 audit(1515321493.515:7): avc: denied { map } for pid=3491 comm="syzkaller535618" path="/root/syzkaller535618858" 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.892321] ================================================================== [ 24.892332] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 24.892336] Read of size 8 at addr ffff8801c752f8b0 by task syzkaller535618/3491 [ 24.892337] [ 24.892341] CPU: 1 PID: 3491 Comm: syzkaller535618 Not tainted 4.15.0-rc6+ #250 [ 24.892343] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.892345] Call Trace: [ 24.892352] dump_stack+0x194/0x257 [ 24.892357] ? arch_local_irq_restore+0x53/0x53 [ 24.892362] ? show_regs_print_info+0x18/0x18 [ 24.892366] ? print_irqtrace_events+0x270/0x270 [ 24.892370] ? __lock_acquire+0x664/0x3e00 [ 24.892374] ? __lock_acquire+0x3d4d/0x3e00 [ 24.892379] print_address_description+0x73/0x250 [ 24.892383] ? __lock_acquire+0x3d4d/0x3e00 [ 24.892387] kasan_report+0x25b/0x340 [ 24.892392] __asan_report_load8_noabort+0x14/0x20 [ 24.892396] __lock_acquire+0x3d4d/0x3e00 [ 24.892399] ? __lock_acquire+0x664/0x3e00 [ 24.892403] ? lock_downgrade+0x980/0x980 [ 24.892406] ? lock_downgrade+0x980/0x980 [ 24.892412] ? remove_wait_queue+0x81/0x350 [ 24.892418] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.892422] ? __lock_acquire+0x664/0x3e00 [ 24.892425] ? check_noncircular+0x20/0x20 [ 24.892433] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.892437] ? lock_acquire+0x1d5/0x580 [ 24.892440] ? lock_acquire+0x1d5/0x580 [ 24.892446] ? ep_free+0xf4/0x320 [ 24.892451] ? lock_release+0xa40/0xa40 [ 24.892456] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.892459] ? print_irqtrace_events+0x270/0x270 [ 24.892465] ? rcu_note_context_switch+0x710/0x710 [ 24.892470] ? __might_sleep+0x95/0x190 [ 24.892475] ? ep_free+0xf4/0x320 [ 24.892480] ? __mutex_lock+0x16f/0x1a80 [ 24.892484] ? ep_free+0xf4/0x320 [ 24.892488] ? print_irqtrace_events+0x270/0x270 [ 24.892491] ? ep_free+0xf4/0x320 [ 24.892496] lock_acquire+0x1d5/0x580 [ 24.892499] ? lock_acquire+0x1d5/0x580 [ 24.892503] ? remove_wait_queue+0x81/0x350 [ 24.892507] ? __lock_acquire+0x664/0x3e00 [ 24.892511] ? lock_release+0xa40/0xa40 [ 24.892517] ? lock_acquire+0x1d5/0x580 [ 24.892520] ? lock_acquire+0x1d5/0x580 [ 24.892524] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.892529] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.892532] ? remove_wait_queue+0x81/0x350 [ 24.892536] remove_wait_queue+0x81/0x350 [ 24.892541] ? add_wait_queue+0x290/0x290 [ 24.892544] ? rcutorture_record_progress+0x10/0x10 [ 24.892551] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.892555] ? __kernel_text_address+0xd/0x40 [ 24.892560] ? clear_tfile_check_list+0x370/0x370 [ 24.892565] ? check_noncircular+0x20/0x20 [ 24.892570] ? locks_remove_file+0x3fa/0x5a0 [ 24.892576] ep_free+0x13f/0x320 [ 24.892580] ? ep_remove+0x800/0x800 [ 24.892583] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.892588] ? ep_free+0x320/0x320 [ 24.892592] ep_eventpoll_release+0x44/0x60 [ 24.892596] __fput+0x327/0x7e0 [ 24.892601] ? fput+0x140/0x140 [ 24.892605] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.892611] ____fput+0x15/0x20 [ 24.892614] task_work_run+0x199/0x270 [ 24.892619] ? task_work_cancel+0x210/0x210 [ 24.892623] ? _raw_spin_unlock+0x22/0x30 [ 24.892627] ? switch_task_namespaces+0x87/0xc0 [ 24.892632] do_exit+0x9bb/0x1ad0 [ 24.892638] ? binder_ioctl+0x481/0x1417 [ 24.892642] ? mm_update_next_owner+0x930/0x930 [ 24.892647] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.892654] ? avc_ss_reset+0x110/0x110 [ 24.892657] ? mutex_unlock+0xd/0x10 [ 24.892660] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 24.892672] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.892676] ? up_read+0x1a/0x40 [ 24.892680] ? rcu_note_context_switch+0x710/0x710 [ 24.892683] ? __fd_install+0x288/0x740 [ 24.892691] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.892695] ? do_vfs_ioctl+0x486/0x1520 [ 24.892697] ? _cond_resched+0x14/0x30 [ 24.892702] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.892707] ? selinux_capable+0x40/0x40 [ 24.892712] ? __alloc_fd+0x750/0x750 [ 24.892717] do_group_exit+0x149/0x400 [ 24.892721] ? SyS_exit+0x30/0x30 [ 24.892726] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.892732] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.892736] SyS_exit_group+0x1d/0x20 [ 24.892740] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.892744] RIP: 0033:0x4429f8 [ 24.892746] RSP: 002b:00007ffce925fb48 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.892750] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.892752] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.892754] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.892757] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.892759] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.892764] [ 24.892766] Allocated by task 3491: [ 24.892770] save_stack+0x43/0xd0 [ 24.892772] kasan_kmalloc+0xad/0xe0 [ 24.892775] kmem_cache_alloc_trace+0x136/0x750 [ 24.892778] binder_get_thread+0x1cf/0x870 [ 24.892781] binder_poll+0x8c/0x390 [ 24.892784] ep_item_poll.isra.10+0xec/0x320 [ 24.892787] ep_insert+0x6a3/0x1b10 [ 24.892790] SyS_epoll_ctl+0x12e4/0x1ab0 [ 24.892793] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.892794] [ 24.892795] Freed by task 3491: [ 24.892798] save_stack+0x43/0xd0 [ 24.892801] kasan_slab_free+0x71/0xc0 [ 24.892803] kfree+0xd6/0x260 [ 24.892806] binder_thread_dec_tmpref+0x27f/0x310 [ 24.892809] binder_thread_release+0x27d/0x540 [ 24.892811] binder_ioctl+0xc02/0x1417 [ 24.892814] do_vfs_ioctl+0x1b1/0x1520 [ 24.892817] SyS_ioctl+0x8f/0xc0 [ 24.892820] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.892820] [ 24.892823] The buggy address belongs to the object at ffff8801c752f800 [ 24.892823] which belongs to the cache kmalloc-512 of size 512 [ 24.892827] The buggy address is located 176 bytes inside of [ 24.892827] 512-byte region [ffff8801c752f800, ffff8801c752fa00) [ 24.892828] The buggy address belongs to the page: [ 24.892831] page:ffffea00071d4bc0 count:1 mapcount:0 mapping:ffff8801c752f080 index:0x0 [ 24.892834] flags: 0x2fffc0000000100(slab) [ 24.892840] raw: 02fffc0000000100 ffff8801c752f080 0000000000000000 0000000100000006 [ 24.892844] raw: ffffea00071d53e0 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 24.892846] page dumped because: kasan: bad access detected [ 24.892846] [ 24.892847] Memory state around the buggy address: [ 24.892850] ffff8801c752f780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.892852] ffff8801c752f800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.892855] >ffff8801c752f880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.892856] ^ [ 24.892859] ffff8801c752f900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.892861] ffff8801c752f980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.892862] ================================================================== [ 24.892863] Disabling lock debugging due to kernel taint [ 24.892865] Kernel panic - not syncing: panic_on_warn set ... [ 24.892865] [ 24.892869] CPU: 1 PID: 3491 Comm: syzkaller535618 Tainted: G B 4.15.0-rc6+ #250 [ 24.892871] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.892872] Call Trace: [ 24.892876] dump_stack+0x194/0x257 [ 24.892881] ? arch_local_irq_restore+0x53/0x53 [ 24.892884] ? kasan_end_report+0x32/0x50 [ 24.892887] ? lock_downgrade+0x980/0x980 [ 24.892892] ? vsnprintf+0x1ed/0x1900 [ 24.892895] ? __lock_acquire+0x3cb0/0x3e00 [ 24.892899] panic+0x1e4/0x41c [ 24.892902] ? refcount_error_report+0x214/0x214 [ 24.892906] ? add_taint+0x40/0x50 [ 24.892909] ? add_taint+0x1c/0x50 [ 24.892913] ? __lock_acquire+0x3d4d/0x3e00 [ 24.892917] kasan_end_report+0x50/0x50 [ 24.892920] kasan_report+0x144/0x340 [ 24.892925] __asan_report_load8_noabort+0x14/0x20 [ 24.892928] __lock_acquire+0x3d4d/0x3e00 [ 24.892932] ? __lock_acquire+0x664/0x3e00 [ 24.892935] ? lock_downgrade+0x980/0x980 [ 24.892938] ? lock_downgrade+0x980/0x980 [ 24.892942] ? remove_wait_queue+0x81/0x350 [ 24.892948] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.892951] ? __lock_acquire+0x664/0x3e00 [ 24.892954] ? check_noncircular+0x20/0x20 [ 24.892961] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.892965] ? lock_acquire+0x1d5/0x580 [ 24.892968] ? lock_acquire+0x1d5/0x580 [ 24.892972] ? ep_free+0xf4/0x320 [ 24.892976] ? lock_release+0xa40/0xa40 [ 24.892980] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.892988] ? print_irqtrace_events+0x270/0x270 [ 24.892991] ? rcu_note_context_switch+0x710/0x710 [ 24.892996] ? __might_sleep+0x95/0x190 [ 24.892999] ? ep_free+0xf4/0x320 [ 24.893009] ? __mutex_lock+0x16f/0x1a80 [ 24.893012] ? ep_free+0xf4/0x320 [ 24.893016] ? print_irqtrace_events+0x270/0x270 [ 24.893019] ? ep_free+0xf4/0x320 [ 24.893024] lock_acquire+0x1d5/0x580 [ 24.893027] ? lock_acquire+0x1d5/0x580 [ 24.893030] ? remove_wait_queue+0x81/0x350 [ 24.893034] ? __lock_acquire+0x664/0x3e00 [ 24.893038] ? lock_release+0xa40/0xa40 [ 24.893043] ? lock_acquire+0x1d5/0x580 [ 24.893046] ? lock_acquire+0x1d5/0x580 [ 24.893050] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.893054] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.893058] ? remove_wait_queue+0x81/0x350 [ 24.893061] remove_wait_queue+0x81/0x350 [ 24.893066] ? add_wait_queue+0x290/0x290 [ 24.893069] ? rcutorture_record_progress+0x10/0x10 [ 24.893075] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.893079] ? __kernel_text_address+0xd/0x40 [ 24.893084] ? clear_tfile_check_list+0x370/0x370 [ 24.893088] ? check_noncircular+0x20/0x20 [ 24.893093] ? locks_remove_file+0x3fa/0x5a0 [ 24.893098] ep_free+0x13f/0x320 [ 24.893101] ? ep_remove+0x800/0x800 [ 24.893105] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.893109] ? ep_free+0x320/0x320 [ 24.893113] ep_eventpoll_release+0x44/0x60 [ 24.893116] __fput+0x327/0x7e0 [ 24.893121] ? fput+0x140/0x140 [ 24.893125] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.893130] ____fput+0x15/0x20 [ 24.893134] task_work_run+0x199/0x270 [ 24.893138] ? task_work_cancel+0x210/0x210 [ 24.893142] ? _raw_spin_unlock+0x22/0x30 [ 24.893146] ? switch_task_namespaces+0x87/0xc0 [ 24.893150] do_exit+0x9bb/0x1ad0 [ 24.893154] ? binder_ioctl+0x481/0x1417 [ 24.893158] ? mm_update_next_owner+0x930/0x930 [ 24.893162] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.893167] ? avc_ss_reset+0x110/0x110 [ 24.893170] ? mutex_unlock+0xd/0x10 [ 24.893173] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 24.893183] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.893186] ? up_read+0x1a/0x40 [ 24.893190] ? rcu_note_context_switch+0x710/0x710 [ 24.893193] ? __fd_install+0x288/0x740 [ 24.893198] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.893201] ? do_vfs_ioctl+0x486/0x1520 [ 24.893204] ? _cond_resched+0x14/0x30 [ 24.893208] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.893212] ? selinux_capable+0x40/0x40 [ 24.893216] ? __alloc_fd+0x750/0x750 [ 24.893221] do_group_exit+0x149/0x400 [ 24.893225] ? SyS_exit+0x30/0x30 [ 24.893228] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.893232] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.893237] SyS_exit_group+0x1d/0x20 [ 24.893241] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.893243] RIP: 0033:0x4429f8 [ 24.893245] RSP: 002b:00007ffce925fb48 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.893248] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.893250] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.893252] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.893254] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.893256] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.913799] Dumping ftrace buffer: [ 24.913802] (ftrace buffer empty) [ 24.913804] Kernel Offset: disabled [ 26.047211] Rebooting in 86400 seconds..