[....] Starting enhanced syslogd: rsyslogd[ 11.652337] audit: type=1400 audit(1514553210.370:5): avc: denied { syslog } for pid=2999 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.063933] audit: type=1400 audit(1514553216.781:6): avc: denied { map } for pid=3140 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.247' (ECDSA) to the list of known hosts. executing program [ 24.354108] audit: type=1400 audit(1514553223.071:7): avc: denied { map } for pid=3154 comm="syzkaller213151" path="/root/syzkaller213151767" 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.357763] ================================================================== [ 24.357775] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 24.357779] Read of size 8 at addr ffff8801c8f62678 by task syzkaller213151/3154 [ 24.357780] [ 24.357785] CPU: 1 PID: 3154 Comm: syzkaller213151 Not tainted 4.15.0-rc4-mm1+ #49 [ 24.357788] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.357789] Call Trace: [ 24.357796] dump_stack+0x194/0x257 [ 24.357800] ? arch_local_irq_restore+0x53/0x53 [ 24.357806] ? show_regs_print_info+0x18/0x18 [ 24.357809] ? print_irqtrace_events+0x270/0x270 [ 24.357813] ? __lock_acquire+0x664/0x3e00 [ 24.357817] ? __lock_acquire+0x3d4d/0x3e00 [ 24.357825] print_address_description+0x73/0x250 [ 24.357828] ? __lock_acquire+0x3d4d/0x3e00 [ 24.357832] kasan_report+0x23b/0x360 [ 24.357838] __asan_report_load8_noabort+0x14/0x20 [ 24.357843] __lock_acquire+0x3d4d/0x3e00 [ 24.357849] ? __lock_acquire+0x664/0x3e00 [ 24.357853] ? lock_downgrade+0x980/0x980 [ 24.357856] ? lock_downgrade+0x980/0x980 [ 24.357862] ? remove_wait_queue+0x81/0x350 [ 24.357867] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.357871] ? __lock_acquire+0x664/0x3e00 [ 24.357875] ? check_noncircular+0x20/0x20 [ 24.357882] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.357887] ? lock_acquire+0x1d5/0x580 [ 24.357890] ? lock_acquire+0x1d5/0x580 [ 24.357895] ? ep_free+0xf4/0x320 [ 24.357900] ? lock_release+0xa40/0xa40 [ 24.357905] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.357909] ? print_irqtrace_events+0x270/0x270 [ 24.357914] ? rcu_note_context_switch+0x710/0x710 [ 24.357919] ? __might_sleep+0x95/0x190 [ 24.357923] ? ep_free+0xf4/0x320 [ 24.357929] ? __mutex_lock+0x16f/0x1a80 [ 24.357932] ? ep_free+0xf4/0x320 [ 24.357937] ? print_irqtrace_events+0x270/0x270 [ 24.357940] ? ep_free+0xf4/0x320 [ 24.357945] lock_acquire+0x1d5/0x580 [ 24.357948] ? lock_acquire+0x1d5/0x580 [ 24.357952] ? remove_wait_queue+0x81/0x350 [ 24.357955] ? __lock_acquire+0x664/0x3e00 [ 24.357960] ? lock_release+0xa40/0xa40 [ 24.357965] ? lock_acquire+0x1d5/0x580 [ 24.357968] ? lock_acquire+0x1d5/0x580 [ 24.357972] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.357977] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.357980] ? remove_wait_queue+0x81/0x350 [ 24.357984] remove_wait_queue+0x81/0x350 [ 24.357989] ? add_wait_queue+0x290/0x290 [ 24.357992] ? rcutorture_record_progress+0x10/0x10 [ 24.357999] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.358008] ? __kernel_text_address+0xd/0x40 [ 24.358016] ? clear_tfile_check_list+0x370/0x370 [ 24.358022] ? check_noncircular+0x20/0x20 [ 24.358028] ? locks_remove_file+0x3fa/0x5a0 [ 24.358034] ep_free+0x13f/0x320 [ 24.358038] ? ep_remove+0x800/0x800 [ 24.358041] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.358046] ? ep_free+0x320/0x320 [ 24.358049] ep_eventpoll_release+0x44/0x60 [ 24.358055] __fput+0x327/0x7e0 [ 24.358060] ? fput+0x140/0x140 [ 24.358064] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.358069] ____fput+0x15/0x20 [ 24.358073] task_work_run+0x199/0x270 [ 24.358078] ? task_work_cancel+0x210/0x210 [ 24.358081] ? _raw_spin_unlock+0x22/0x30 [ 24.358085] ? switch_task_namespaces+0x87/0xc0 [ 24.358095] do_exit+0x9bb/0x1ad0 [ 24.358103] ? binder_ioctl+0x551/0x1417 [ 24.358107] ? mm_update_next_owner+0x930/0x930 [ 24.358112] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.358119] ? avc_ss_reset+0x110/0x110 [ 24.358124] ? mutex_unlock+0xd/0x10 [ 24.358128] ? SyS_epoll_ctl+0x30a/0x1a80 [ 24.358140] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.358143] ? up_read+0x1a/0x40 [ 24.358147] ? rcu_note_context_switch+0x710/0x710 [ 24.358151] ? __fd_install+0x288/0x740 [ 24.358157] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.358161] ? do_vfs_ioctl+0x486/0x1520 [ 24.358164] ? _cond_resched+0x14/0x30 [ 24.358169] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.358174] ? selinux_capable+0x40/0x40 [ 24.358178] ? __alloc_fd+0x750/0x750 [ 24.358183] do_group_exit+0x149/0x400 [ 24.358190] ? SyS_exit+0x30/0x30 [ 24.358194] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.358200] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.358205] SyS_exit_group+0x1d/0x20 [ 24.358209] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 24.358212] RIP: 0033:0x4429f8 [ 24.358214] RSP: 002b:00007ffd01b6c668 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.358218] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.358220] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.358222] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.358224] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.358226] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.358232] [ 24.358233] Allocated by task 3154: [ 24.358237] save_stack+0x43/0xd0 [ 24.358240] kasan_kmalloc+0xad/0xe0 [ 24.358243] kmem_cache_alloc_trace+0x136/0x750 [ 24.358246] binder_get_thread+0x1cf/0x870 [ 24.358249] binder_poll+0x8c/0x390 [ 24.358252] ep_item_poll.isra.10+0xf2/0x320 [ 24.358254] ep_insert+0x6a2/0x1ac0 [ 24.358257] SyS_epoll_ctl+0x12bf/0x1a80 [ 24.358260] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 24.358261] [ 24.358263] Freed by task 3154: [ 24.358265] save_stack+0x43/0xd0 [ 24.358268] kasan_slab_free+0x71/0xc0 [ 24.358271] kfree+0xd6/0x260 [ 24.358276] binder_thread_dec_tmpref+0x27f/0x310 [ 24.358279] binder_thread_release+0x27d/0x540 [ 24.358282] binder_ioctl+0xc02/0x1417 [ 24.358284] do_vfs_ioctl+0x1b1/0x1520 [ 24.358287] SyS_ioctl+0x8f/0xc0 [ 24.358290] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 24.358290] [ 24.358293] The buggy address belongs to the object at ffff8801c8f625c0 [ 24.358293] which belongs to the cache kmalloc-512 of size 512 [ 24.358296] The buggy address is located 184 bytes inside of [ 24.358296] 512-byte region [ffff8801c8f625c0, ffff8801c8f627c0) [ 24.358297] The buggy address belongs to the page: [ 24.358300] page:ffffea000723d880 count:1 mapcount:0 mapping:ffff8801c8f620c0 index:0x0 [ 24.358303] flags: 0x2fffc0000000100(slab) [ 24.358309] raw: 02fffc0000000100 ffff8801c8f620c0 0000000000000000 0000000100000006 [ 24.358313] raw: ffffea0007260920 ffffea00072635e0 ffff8801dac00940 0000000000000000 [ 24.358314] page dumped because: kasan: bad access detected [ 24.358315] [ 24.358316] Memory state around the buggy address: [ 24.358319] ffff8801c8f62500: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.358322] ffff8801c8f62580: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 24.358324] >ffff8801c8f62600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.358326] ^ [ 24.358329] ffff8801c8f62680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.358331] ffff8801c8f62700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.358333] ================================================================== [ 24.358334] Disabling lock debugging due to kernel taint [ 24.358337] Kernel panic - not syncing: panic_on_warn set ... [ 24.358337] [ 24.358340] CPU: 1 PID: 3154 Comm: syzkaller213151 Tainted: G B 4.15.0-rc4-mm1+ #49 [ 24.358342] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.358343] Call Trace: [ 24.358347] dump_stack+0x194/0x257 [ 24.358351] ? arch_local_irq_restore+0x53/0x53 [ 24.358354] ? kasan_end_report+0x32/0x50 [ 24.358359] ? lock_downgrade+0x980/0x980 [ 24.358364] ? vsnprintf+0x1ed/0x1900 [ 24.358368] ? __lock_acquire+0x3c90/0x3e00 [ 24.358372] panic+0x1e4/0x41c [ 24.358375] ? refcount_error_report+0x214/0x214 [ 24.358379] ? add_taint+0x40/0x50 [ 24.358382] ? add_taint+0x1c/0x50 [ 24.358386] ? __lock_acquire+0x3d4d/0x3e00 [ 24.358390] kasan_end_report+0x50/0x50 [ 24.358393] kasan_report+0x148/0x360 [ 24.358398] __asan_report_load8_noabort+0x14/0x20 [ 24.358401] __lock_acquire+0x3d4d/0x3e00 [ 24.358404] ? __lock_acquire+0x664/0x3e00 [ 24.358408] ? lock_downgrade+0x980/0x980 [ 24.358411] ? lock_downgrade+0x980/0x980 [ 24.358415] ? remove_wait_queue+0x81/0x350 [ 24.358420] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.358424] ? __lock_acquire+0x664/0x3e00 [ 24.358427] ? check_noncircular+0x20/0x20 [ 24.358436] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.358441] ? lock_acquire+0x1d5/0x580 [ 24.358446] ? lock_acquire+0x1d5/0x580 [ 24.358451] ? ep_free+0xf4/0x320 [ 24.358458] ? lock_release+0xa40/0xa40 [ 24.358461] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.358465] ? print_irqtrace_events+0x270/0x270 [ 24.358469] ? rcu_note_context_switch+0x710/0x710 [ 24.358473] ? __might_sleep+0x95/0x190 [ 24.358476] ? ep_free+0xf4/0x320 [ 24.358479] ? __mutex_lock+0x16f/0x1a80 [ 24.358482] ? ep_free+0xf4/0x320 [ 24.358486] ? print_irqtrace_events+0x270/0x270 [ 24.358488] ? ep_free+0xf4/0x320 [ 24.358494] lock_acquire+0x1d5/0x580 [ 24.358498] ? lock_acquire+0x1d5/0x580 [ 24.358503] ? remove_wait_queue+0x81/0x350 [ 24.358507] ? __lock_acquire+0x664/0x3e00 [ 24.358513] ? lock_release+0xa40/0xa40 [ 24.358520] ? lock_acquire+0x1d5/0x580 [ 24.358524] ? lock_acquire+0x1d5/0x580 [ 24.358529] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.358535] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.358540] ? remove_wait_queue+0x81/0x350 [ 24.358545] remove_wait_queue+0x81/0x350 [ 24.358550] ? add_wait_queue+0x290/0x290 [ 24.358554] ? rcutorture_record_progress+0x10/0x10 [ 24.358559] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.358563] ? __kernel_text_address+0xd/0x40 [ 24.358568] ? clear_tfile_check_list+0x370/0x370 [ 24.358572] ? check_noncircular+0x20/0x20 [ 24.358577] ? locks_remove_file+0x3fa/0x5a0 [ 24.358582] ep_free+0x13f/0x320 [ 24.358585] ? ep_remove+0x800/0x800 [ 24.358589] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.358593] ? ep_free+0x320/0x320 [ 24.358596] ep_eventpoll_release+0x44/0x60 [ 24.358600] __fput+0x327/0x7e0 [ 24.358604] ? fput+0x140/0x140 [ 24.358608] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.358613] ____fput+0x15/0x20 [ 24.358617] task_work_run+0x199/0x270 [ 24.358621] ? task_work_cancel+0x210/0x210 [ 24.358624] ? _raw_spin_unlock+0x22/0x30 [ 24.358628] ? switch_task_namespaces+0x87/0xc0 [ 24.358632] do_exit+0x9bb/0x1ad0 [ 24.358636] ? binder_ioctl+0x551/0x1417 [ 24.358640] ? mm_update_next_owner+0x930/0x930 [ 24.358646] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.358652] ? avc_ss_reset+0x110/0x110 [ 24.358656] ? mutex_unlock+0xd/0x10 [ 24.358661] ? SyS_epoll_ctl+0x30a/0x1a80 [ 24.358674] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.358678] ? up_read+0x1a/0x40 [ 24.358683] ? rcu_note_context_switch+0x710/0x710 [ 24.358686] ? __fd_install+0x288/0x740 [ 24.358691] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.358694] ? do_vfs_ioctl+0x486/0x1520 [ 24.358698] ? _cond_resched+0x14/0x30 [ 24.358702] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.358706] ? selinux_capable+0x40/0x40 [ 24.358709] ? __alloc_fd+0x750/0x750 [ 24.358714] do_group_exit+0x149/0x400 [ 24.358718] ? SyS_exit+0x30/0x30 [ 24.358722] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.358726] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.358730] SyS_exit_group+0x1d/0x20 [ 24.358734] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 24.358736] RIP: 0033:0x4429f8 [ 24.358738] RSP: 002b:00007ffd01b6c668 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.358741] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.358743] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.358745] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.358747] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.358749] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.379995] Dumping ftrace buffer: [ 24.379999] (ftrace buffer empty) [ 24.380001] Kernel Offset: disabled [ 25.507011] Rebooting in 86400 seconds..