[....] Starting enhanced syslogd: rsyslogd[ 11.029356] audit: type=1400 audit(1514888128.089:5): avc: denied { syslog } for pid=2987 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: [ 15.992232] audit: type=1400 audit(1514888133.052: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.0.2' (ECDSA) to the list of known hosts. executing program [ 25.593408] audit: type=1400 audit(1514888142.653:7): avc: denied { map } for pid=3143 comm="syzkaller311000" path="/root/syzkaller311000788" 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 [ 25.596945] ================================================================== [ 25.596956] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 25.596960] Read of size 8 at addr ffff8801cf2d4138 by task syzkaller311000/3143 [ 25.596961] [ 25.596966] CPU: 0 PID: 3143 Comm: syzkaller311000 Not tainted 4.15.0-rc4-mm1+ #49 [ 25.596968] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.596970] Call Trace: [ 25.596977] dump_stack+0x194/0x257 [ 25.596982] ? arch_local_irq_restore+0x53/0x53 [ 25.596987] ? show_regs_print_info+0x18/0x18 [ 25.596991] ? print_irqtrace_events+0x270/0x270 [ 25.596995] ? __lock_acquire+0x664/0x3e00 [ 25.596999] ? __lock_acquire+0x3d4d/0x3e00 [ 25.597010] print_address_description+0x73/0x250 [ 25.597014] ? __lock_acquire+0x3d4d/0x3e00 [ 25.597017] kasan_report+0x23b/0x360 [ 25.597022] __asan_report_load8_noabort+0x14/0x20 [ 25.597026] __lock_acquire+0x3d4d/0x3e00 [ 25.597029] ? __lock_acquire+0x664/0x3e00 [ 25.597033] ? lock_downgrade+0x980/0x980 [ 25.597036] ? lock_downgrade+0x980/0x980 [ 25.597042] ? remove_wait_queue+0x81/0x350 [ 25.597048] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.597052] ? __lock_acquire+0x664/0x3e00 [ 25.597055] ? check_noncircular+0x20/0x20 [ 25.597063] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.597067] ? lock_acquire+0x1d5/0x580 [ 25.597071] ? lock_acquire+0x1d5/0x580 [ 25.597076] ? ep_free+0xf4/0x320 [ 25.597081] ? lock_release+0xa40/0xa40 [ 25.597086] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.597090] ? print_irqtrace_events+0x270/0x270 [ 25.597095] ? rcu_note_context_switch+0x710/0x710 [ 25.597099] ? __might_sleep+0x95/0x190 [ 25.597103] ? ep_free+0xf4/0x320 [ 25.597107] ? __mutex_lock+0x16f/0x1a80 [ 25.597110] ? ep_free+0xf4/0x320 [ 25.597114] ? print_irqtrace_events+0x270/0x270 [ 25.597117] ? ep_free+0xf4/0x320 [ 25.597122] lock_acquire+0x1d5/0x580 [ 25.597125] ? lock_acquire+0x1d5/0x580 [ 25.597128] ? remove_wait_queue+0x81/0x350 [ 25.597132] ? __lock_acquire+0x664/0x3e00 [ 25.597136] ? lock_release+0xa40/0xa40 [ 25.597142] ? lock_acquire+0x1d5/0x580 [ 25.597145] ? lock_acquire+0x1d5/0x580 [ 25.597149] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.597154] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.597157] ? remove_wait_queue+0x81/0x350 [ 25.597161] remove_wait_queue+0x81/0x350 [ 25.597166] ? add_wait_queue+0x290/0x290 [ 25.597170] ? rcutorture_record_progress+0x10/0x10 [ 25.597176] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.597182] ? __kernel_text_address+0xd/0x40 [ 25.597187] ? clear_tfile_check_list+0x370/0x370 [ 25.597191] ? check_noncircular+0x20/0x20 [ 25.597197] ? locks_remove_file+0x3fa/0x5a0 [ 25.597203] ep_free+0x13f/0x320 [ 25.597206] ? ep_remove+0x800/0x800 [ 25.597210] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.597214] ? ep_free+0x320/0x320 [ 25.597218] ep_eventpoll_release+0x44/0x60 [ 25.597223] __fput+0x327/0x7e0 [ 25.597228] ? fput+0x140/0x140 [ 25.597232] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.597237] ____fput+0x15/0x20 [ 25.597241] task_work_run+0x199/0x270 [ 25.597246] ? task_work_cancel+0x210/0x210 [ 25.597250] ? _raw_spin_unlock+0x22/0x30 [ 25.597253] ? switch_task_namespaces+0x87/0xc0 [ 25.597260] do_exit+0x9bb/0x1ad0 [ 25.597266] ? binder_ioctl+0x551/0x1417 [ 25.597269] ? mm_update_next_owner+0x930/0x930 [ 25.597274] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.597281] ? avc_ss_reset+0x110/0x110 [ 25.597285] ? mutex_unlock+0xd/0x10 [ 25.597288] ? SyS_epoll_ctl+0x30a/0x1a80 [ 25.597304] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.597308] ? up_read+0x1a/0x40 [ 25.597312] ? rcu_note_context_switch+0x710/0x710 [ 25.597316] ? __fd_install+0x288/0x740 [ 25.597321] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.597325] ? do_vfs_ioctl+0x486/0x1520 [ 25.597329] ? _cond_resched+0x14/0x30 [ 25.597333] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.597339] ? selinux_capable+0x40/0x40 [ 25.597343] ? __alloc_fd+0x750/0x750 [ 25.597348] do_group_exit+0x149/0x400 [ 25.597352] ? SyS_exit+0x30/0x30 [ 25.597356] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.597362] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.597366] SyS_exit_group+0x1d/0x20 [ 25.597370] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 25.597373] RIP: 0033:0x4429f8 [ 25.597375] RSP: 002b:00007ffea0fc81d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.597379] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 25.597382] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.597384] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.597386] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 25.597388] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 25.597394] [ 25.597396] Allocated by task 3143: [ 25.597400] save_stack+0x43/0xd0 [ 25.597403] kasan_kmalloc+0xad/0xe0 [ 25.597406] kmem_cache_alloc_trace+0x136/0x750 [ 25.597409] binder_get_thread+0x1cf/0x870 [ 25.597412] binder_poll+0x8c/0x390 [ 25.597414] ep_item_poll.isra.10+0xf2/0x320 [ 25.597417] ep_insert+0x6a2/0x1ac0 [ 25.597420] SyS_epoll_ctl+0x12bf/0x1a80 [ 25.597423] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 25.597424] [ 25.597425] Freed by task 3143: [ 25.597428] save_stack+0x43/0xd0 [ 25.597431] kasan_slab_free+0x71/0xc0 [ 25.597433] kfree+0xd6/0x260 [ 25.597436] binder_thread_dec_tmpref+0x27f/0x310 [ 25.597439] binder_thread_release+0x27d/0x540 [ 25.597441] binder_ioctl+0xc02/0x1417 [ 25.597444] do_vfs_ioctl+0x1b1/0x1520 [ 25.597446] SyS_ioctl+0x8f/0xc0 [ 25.597449] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 25.597450] [ 25.597453] The buggy address belongs to the object at ffff8801cf2d4080 [ 25.597453] which belongs to the cache kmalloc-512 of size 512 [ 25.597456] The buggy address is located 184 bytes inside of [ 25.597456] 512-byte region [ffff8801cf2d4080, ffff8801cf2d4280) [ 25.597457] The buggy address belongs to the page: [ 25.597460] page:ffffea00073cb500 count:1 mapcount:0 mapping:ffff8801cf2d4080 index:0x0 [ 25.597463] flags: 0x2fffc0000000100(slab) [ 25.597469] raw: 02fffc0000000100 ffff8801cf2d4080 0000000000000000 0000000100000006 [ 25.597473] raw: ffffea00073caa20 ffffea00073cb5a0 ffff8801dac00940 0000000000000000 [ 25.597475] page dumped because: kasan: bad access detected [ 25.597475] [ 25.597476] Memory state around the buggy address: [ 25.597479] ffff8801cf2d4000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.597482] ffff8801cf2d4080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.597484] >ffff8801cf2d4100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.597486] ^ [ 25.597488] ffff8801cf2d4180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.597491] ffff8801cf2d4200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.597492] ================================================================== [ 25.597493] Disabling lock debugging due to kernel taint [ 25.597496] Kernel panic - not syncing: panic_on_warn set ... [ 25.597496] [ 25.597500] CPU: 0 PID: 3143 Comm: syzkaller311000 Tainted: G B 4.15.0-rc4-mm1+ #49 [ 25.597502] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.597503] Call Trace: [ 25.597506] dump_stack+0x194/0x257 [ 25.597510] ? arch_local_irq_restore+0x53/0x53 [ 25.597514] ? kasan_end_report+0x32/0x50 [ 25.597517] ? lock_downgrade+0x980/0x980 [ 25.597520] ? vsnprintf+0x1ed/0x1900 [ 25.597524] ? __lock_acquire+0x3c90/0x3e00 [ 25.597528] panic+0x1e4/0x41c [ 25.597531] ? refcount_error_report+0x214/0x214 [ 25.597535] ? add_taint+0x40/0x50 [ 25.597538] ? add_taint+0x1c/0x50 [ 25.597542] ? __lock_acquire+0x3d4d/0x3e00 [ 25.597546] kasan_end_report+0x50/0x50 [ 25.597549] kasan_report+0x148/0x360 [ 25.597554] __asan_report_load8_noabort+0x14/0x20 [ 25.597557] __lock_acquire+0x3d4d/0x3e00 [ 25.597560] ? __lock_acquire+0x664/0x3e00 [ 25.597564] ? lock_downgrade+0x980/0x980 [ 25.597567] ? lock_downgrade+0x980/0x980 [ 25.597571] ? remove_wait_queue+0x81/0x350 [ 25.597576] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.597580] ? __lock_acquire+0x664/0x3e00 [ 25.597583] ? check_noncircular+0x20/0x20 [ 25.597589] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.597593] ? lock_acquire+0x1d5/0x580 [ 25.597596] ? lock_acquire+0x1d5/0x580 [ 25.597600] ? ep_free+0xf4/0x320 [ 25.597604] ? lock_release+0xa40/0xa40 [ 25.597608] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.597611] ? print_irqtrace_events+0x270/0x270 [ 25.597615] ? rcu_note_context_switch+0x710/0x710 [ 25.597619] ? __might_sleep+0x95/0x190 [ 25.597622] ? ep_free+0xf4/0x320 [ 25.597625] ? __mutex_lock+0x16f/0x1a80 [ 25.597628] ? ep_free+0xf4/0x320 [ 25.597632] ? print_irqtrace_events+0x270/0x270 [ 25.597635] ? ep_free+0xf4/0x320 [ 25.597640] lock_acquire+0x1d5/0x580 [ 25.597643] ? lock_acquire+0x1d5/0x580 [ 25.597646] ? remove_wait_queue+0x81/0x350 [ 25.597649] ? __lock_acquire+0x664/0x3e00 [ 25.597654] ? lock_release+0xa40/0xa40 [ 25.597659] ? lock_acquire+0x1d5/0x580 [ 25.597662] ? lock_acquire+0x1d5/0x580 [ 25.597665] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.597669] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.597673] ? remove_wait_queue+0x81/0x350 [ 25.597676] remove_wait_queue+0x81/0x350 [ 25.597681] ? add_wait_queue+0x290/0x290 [ 25.597684] ? rcutorture_record_progress+0x10/0x10 [ 25.597690] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.597694] ? __kernel_text_address+0xd/0x40 [ 25.597698] ? clear_tfile_check_list+0x370/0x370 [ 25.597702] ? check_noncircular+0x20/0x20 [ 25.597707] ? locks_remove_file+0x3fa/0x5a0 [ 25.597712] ep_free+0x13f/0x320 [ 25.597715] ? ep_remove+0x800/0x800 [ 25.597718] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.597723] ? ep_free+0x320/0x320 [ 25.597726] ep_eventpoll_release+0x44/0x60 [ 25.597730] __fput+0x327/0x7e0 [ 25.597734] ? fput+0x140/0x140 [ 25.597738] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.597742] ____fput+0x15/0x20 [ 25.597746] task_work_run+0x199/0x270 [ 25.597751] ? task_work_cancel+0x210/0x210 [ 25.597754] ? _raw_spin_unlock+0x22/0x30 [ 25.597757] ? switch_task_namespaces+0x87/0xc0 [ 25.597762] do_exit+0x9bb/0x1ad0 [ 25.597766] ? binder_ioctl+0x551/0x1417 [ 25.597769] ? mm_update_next_owner+0x930/0x930 [ 25.597773] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.597778] ? avc_ss_reset+0x110/0x110 [ 25.597782] ? mutex_unlock+0xd/0x10 [ 25.597785] ? SyS_epoll_ctl+0x30a/0x1a80 [ 25.597795] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.597798] ? up_read+0x1a/0x40 [ 25.597802] ? rcu_note_context_switch+0x710/0x710 [ 25.597805] ? __fd_install+0x288/0x740 [ 25.597810] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.597812] ? do_vfs_ioctl+0x486/0x1520 [ 25.597816] ? _cond_resched+0x14/0x30 [ 25.597821] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.597825] ? selinux_capable+0x40/0x40 [ 25.597828] ? __alloc_fd+0x750/0x750 [ 25.597833] do_group_exit+0x149/0x400 [ 25.597837] ? SyS_exit+0x30/0x30 [ 25.597841] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.597844] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.597849] SyS_exit_group+0x1d/0x20 [ 25.597852] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 25.597855] RIP: 0033:0x4429f8 [ 25.597856] RSP: 002b:00007ffea0fc81d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.597860] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 25.597862] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.597864] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.597866] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 25.597867] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 25.619705] Dumping ftrace buffer: [ 25.619708] (ftrace buffer empty) [ 25.619710] Kernel Offset: disabled [ 26.742238] Rebooting in 86400 seconds..