[....] Starting enhanced syslogd: rsyslogd[ 11.636041] audit: type=1400 audit(1515011884.317:5): avc: denied { syslog } for pid=3315 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: [ 16.462502] audit: type=1400 audit(1515011889.144:6): avc: denied { map } for pid=3455 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.49' (ECDSA) to the list of known hosts. executing program [ 26.020643] audit: type=1400 audit(1515011898.702:7): avc: denied { map } for pid=3470 comm="syzkaller135657" path="/root/syzkaller135657951" 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 [ 26.026603] ================================================================== [ 26.026616] BUG: KASAN: use-after-free in __lock_acquire+0x3c41/0x3cf0 [ 26.026622] Read of size 8 at addr ffff8801ce4cc8f8 by task syzkaller135657/3470 [ 26.026623] [ 26.026631] CPU: 1 PID: 3470 Comm: syzkaller135657 Not tainted 4.15.0-rc6-next-20180103+ #87 [ 26.026634] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.026636] Call Trace: [ 26.026646] dump_stack+0x137/0x198 [ 26.026653] ? __lock_acquire+0x3c41/0x3cf0 [ 26.026662] print_address_description+0x73/0x250 [ 26.026668] ? __lock_acquire+0x3c41/0x3cf0 [ 26.026674] kasan_report+0x23b/0x360 [ 26.026682] __asan_report_load8_noabort+0x14/0x20 [ 26.026687] __lock_acquire+0x3c41/0x3cf0 [ 26.026693] ? lock_downgrade+0x860/0x860 [ 26.026701] ? __bpf_address_lookup+0x2b0/0x2b0 [ 26.026709] ? __lock_acquire+0x63e/0x3cf0 [ 26.026716] ? remove_wait_queue+0x24/0x1b0 [ 26.026725] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.026733] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.026742] ? __mutex_lock+0xec/0x1550 [ 26.026749] ? ep_free+0x72/0x230 [ 26.026754] ? save_stack+0xa3/0xd0 [ 26.026762] lock_acquire+0x16b/0x420 [ 26.026767] ? lock_acquire+0x16b/0x420 [ 26.026773] ? remove_wait_queue+0x24/0x1b0 [ 26.026782] _raw_spin_lock_irqsave+0x96/0xc0 [ 26.026787] ? remove_wait_queue+0x24/0x1b0 [ 26.026793] remove_wait_queue+0x24/0x1b0 [ 26.026802] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 26.026809] ? ep_free+0x230/0x230 [ 26.026814] ep_free+0xae/0x230 [ 26.026820] ? ep_free+0x230/0x230 [ 26.026826] ep_eventpoll_release+0x44/0x60 [ 26.026833] __fput+0x291/0x6e0 [ 26.026840] ____fput+0x15/0x20 [ 26.026846] task_work_run+0x122/0x1a0 [ 26.026855] do_exit+0x7f4/0x2da0 [ 26.026863] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 26.026870] ? do_vfs_ioctl+0x439/0xfe0 [ 26.026877] ? mm_update_next_owner+0x690/0x690 [ 26.026883] ? ioctl_preallocate+0x1c0/0x1c0 [ 26.026890] ? __do_page_fault+0x3c3/0xca0 [ 26.026900] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 26.026907] do_group_exit+0x108/0x320 [ 26.026914] SyS_exit_group+0x1d/0x20 [ 26.026920] entry_SYSCALL_64_fastpath+0x23/0x9a [ 26.026925] RIP: 0033:0x4429f8 [ 26.026928] RSP: 002b:00007ffdfbb2d0f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 26.026934] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 26.026937] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 26.026941] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 26.026944] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 26.026947] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 26.026954] [ 26.026956] Allocated by task 3470: [ 26.026963] save_stack+0x43/0xd0 [ 26.026967] kasan_kmalloc+0xad/0xe0 [ 26.026972] kmem_cache_alloc_trace+0x136/0x750 [ 26.026977] binder_get_thread+0x15d/0x700 [ 26.026981] binder_poll+0x4a/0x210 [ 26.026987] ep_item_poll.isra.10+0xf2/0x320 [ 26.026992] SyS_epoll_ctl+0x11c4/0x27b0 [ 26.026997] entry_SYSCALL_64_fastpath+0x23/0x9a [ 26.026998] [ 26.027004] Freed by task 3470: [ 26.027009] save_stack+0x43/0xd0 [ 26.027014] kasan_slab_free+0x71/0xc0 [ 26.027018] kfree+0xd6/0x260 [ 26.027023] binder_thread_dec_tmpref+0x17d/0x1e0 [ 26.027027] binder_thread_release+0x27d/0x540 [ 26.027031] binder_ioctl+0xa1b/0x10ee [ 26.027036] do_vfs_ioctl+0x190/0xfe0 [ 26.027041] SyS_ioctl+0x8f/0xc0 [ 26.027046] entry_SYSCALL_64_fastpath+0x23/0x9a [ 26.027047] [ 26.027051] The buggy address belongs to the object at ffff8801ce4cc840 [ 26.027051] which belongs to the cache kmalloc-512 of size 512 [ 26.027056] The buggy address is located 184 bytes inside of [ 26.027056] 512-byte region [ffff8801ce4cc840, ffff8801ce4cca40) [ 26.027057] The buggy address belongs to the page: [ 26.027062] page:ffffea0007393300 count:1 mapcount:0 mapping:ffff8801ce4cc0c0 index:0x0 [ 26.027067] flags: 0x2fffc0000000100(slab) [ 26.027075] raw: 02fffc0000000100 ffff8801ce4cc0c0 0000000000000000 0000000100000006 [ 26.027082] raw: ffffea00073932e0 ffffea0007393460 ffff8801db000940 0000000000000000 [ 26.027084] page dumped because: kasan: bad access detected [ 26.027085] [ 26.027086] Memory state around the buggy address: [ 26.027091] ffff8801ce4cc780: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 26.027096] ffff8801ce4cc800: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 26.027100] >ffff8801ce4cc880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.027102] ^ [ 26.027107] ffff8801ce4cc900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.027111] ffff8801ce4cc980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.027112] ================================================================== [ 26.027114] Disabling lock debugging due to kernel taint [ 26.027117] Kernel panic - not syncing: panic_on_warn set ... [ 26.027117] [ 26.027124] CPU: 1 PID: 3470 Comm: syzkaller135657 Tainted: G B 4.15.0-rc6-next-20180103+ #87 [ 26.027126] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.027128] Call Trace: [ 26.027134] dump_stack+0x137/0x198 [ 26.027141] ? __lock_acquire+0x3b80/0x3cf0 [ 26.027146] panic+0x1e4/0x41c [ 26.027152] ? refcount_error_report+0x214/0x214 [ 26.027159] ? add_taint+0x40/0x50 [ 26.027164] ? add_taint+0x1c/0x50 [ 26.027170] ? __lock_acquire+0x3c41/0x3cf0 [ 26.027176] kasan_end_report+0x50/0x50 [ 26.027182] kasan_report+0x148/0x360 [ 26.027190] __asan_report_load8_noabort+0x14/0x20 [ 26.027195] __lock_acquire+0x3c41/0x3cf0 [ 26.027201] ? lock_downgrade+0x860/0x860 [ 26.027207] ? __bpf_address_lookup+0x2b0/0x2b0 [ 26.027214] ? __lock_acquire+0x63e/0x3cf0 [ 26.027220] ? remove_wait_queue+0x24/0x1b0 [ 26.027228] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.027236] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.027244] ? __mutex_lock+0xec/0x1550 [ 26.027249] ? ep_free+0x72/0x230 [ 26.027254] ? save_stack+0xa3/0xd0 [ 26.027262] lock_acquire+0x16b/0x420 [ 26.027267] ? lock_acquire+0x16b/0x420 [ 26.027273] ? remove_wait_queue+0x24/0x1b0 [ 26.027282] _raw_spin_lock_irqsave+0x96/0xc0 [ 26.027287] ? remove_wait_queue+0x24/0x1b0 [ 26.027293] remove_wait_queue+0x24/0x1b0 [ 26.027301] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 26.027308] ? ep_free+0x230/0x230 [ 26.027314] ep_free+0xae/0x230 [ 26.027320] ? ep_free+0x230/0x230 [ 26.027326] ep_eventpoll_release+0x44/0x60 [ 26.027331] __fput+0x291/0x6e0 [ 26.027338] ____fput+0x15/0x20 [ 26.027343] task_work_run+0x122/0x1a0 [ 26.027350] do_exit+0x7f4/0x2da0 [ 26.027357] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 26.027363] ? do_vfs_ioctl+0x439/0xfe0 [ 26.027370] ? mm_update_next_owner+0x690/0x690 [ 26.027376] ? ioctl_preallocate+0x1c0/0x1c0 [ 26.027382] ? __do_page_fault+0x3c3/0xca0 [ 26.027395] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 26.027402] do_group_exit+0x108/0x320 [ 26.027409] SyS_exit_group+0x1d/0x20 [ 26.027415] entry_SYSCALL_64_fastpath+0x23/0x9a [ 26.027419] RIP: 0033:0x4429f8 [ 26.027422] RSP: 002b:00007ffdfbb2d0f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 26.027427] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 26.027430] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 26.027433] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 26.027437] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 26.027440] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 26.046974] Dumping ftrace buffer: [ 26.046977] (ftrace buffer empty) [ 26.046979] Kernel Offset: disabled [ 26.776369] Rebooting in 86400 seconds..