[....] Starting enhanced syslogd: rsyslogd[ 11.568259] audit: type=1400 audit(1515086272.073:5): avc: denied { syslog } for pid=3316 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.485907] audit: type=1400 audit(1515086278.990:6): avc: denied { map } for pid=3456 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.46' (ECDSA) to the list of known hosts. executing program [ 24.614922] audit: type=1400 audit(1515086285.119:7): avc: denied { map } for pid=3470 comm="syzkaller087241" path="/root/syzkaller087241333" 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.621752] ================================================================== [ 24.621767] BUG: KASAN: use-after-free in __lock_acquire+0x3c41/0x3cf0 [ 24.621772] Read of size 8 at addr ffff8801c7b99b38 by task syzkaller087241/3470 [ 24.621773] [ 24.621781] CPU: 1 PID: 3470 Comm: syzkaller087241 Not tainted 4.15.0-rc6-next-20180103+ #87 [ 24.621784] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.621786] Call Trace: [ 24.621795] dump_stack+0x137/0x198 [ 24.621802] ? __lock_acquire+0x3c41/0x3cf0 [ 24.621812] print_address_description+0x73/0x250 [ 24.621818] ? __lock_acquire+0x3c41/0x3cf0 [ 24.621824] kasan_report+0x23b/0x360 [ 24.621832] __asan_report_load8_noabort+0x14/0x20 [ 24.621837] __lock_acquire+0x3c41/0x3cf0 [ 24.621843] ? lock_downgrade+0x860/0x860 [ 24.621851] ? __bpf_address_lookup+0x2b0/0x2b0 [ 24.621859] ? __lock_acquire+0x63e/0x3cf0 [ 24.621866] ? remove_wait_queue+0x24/0x1b0 [ 24.621875] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.621883] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.621892] ? __mutex_lock+0xec/0x1550 [ 24.621900] ? ep_free+0x72/0x230 [ 24.621905] ? save_stack+0xa3/0xd0 [ 24.621913] lock_acquire+0x16b/0x420 [ 24.621918] ? lock_acquire+0x16b/0x420 [ 24.621923] ? remove_wait_queue+0x24/0x1b0 [ 24.621932] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.621938] ? remove_wait_queue+0x24/0x1b0 [ 24.621944] remove_wait_queue+0x24/0x1b0 [ 24.621952] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 24.621960] ? ep_free+0x230/0x230 [ 24.621965] ep_free+0xae/0x230 [ 24.621971] ? ep_free+0x230/0x230 [ 24.621977] ep_eventpoll_release+0x44/0x60 [ 24.621982] __fput+0x291/0x6e0 [ 24.621990] ____fput+0x15/0x20 [ 24.621996] task_work_run+0x122/0x1a0 [ 24.622008] do_exit+0x7f4/0x2da0 [ 24.622016] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 24.622023] ? do_vfs_ioctl+0x439/0xfe0 [ 24.622030] ? mm_update_next_owner+0x690/0x690 [ 24.622036] ? ioctl_preallocate+0x1c0/0x1c0 [ 24.622043] ? __do_page_fault+0x3c3/0xca0 [ 24.622053] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 24.622060] do_group_exit+0x108/0x320 [ 24.622068] SyS_exit_group+0x1d/0x20 [ 24.622074] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.622079] RIP: 0033:0x442a48 [ 24.622082] RSP: 002b:00007ffeb1be53d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.622088] RAX: ffffffffffffffda RBX: 6e69622f7665642f RCX: 0000000000442a48 [ 24.622091] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.622095] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.622098] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a90 [ 24.622101] R13: 0000000000401b20 R14: 0000000000000000 R15: 0000000000000000 [ 24.622108] [ 24.622111] Allocated by task 3470: [ 24.622117] save_stack+0x43/0xd0 [ 24.622121] kasan_kmalloc+0xad/0xe0 [ 24.622127] kmem_cache_alloc_trace+0x136/0x750 [ 24.622131] binder_get_thread+0x15d/0x700 [ 24.622135] binder_poll+0x4a/0x210 [ 24.622140] ep_item_poll.isra.10+0xf2/0x320 [ 24.622146] SyS_epoll_ctl+0x11c4/0x27b0 [ 24.622151] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.622152] [ 24.622154] Freed by task 3470: [ 24.622159] save_stack+0x43/0xd0 [ 24.622164] kasan_slab_free+0x71/0xc0 [ 24.622168] kfree+0xd6/0x260 [ 24.622173] binder_thread_dec_tmpref+0x17d/0x1e0 [ 24.622177] binder_thread_release+0x27d/0x540 [ 24.622181] binder_ioctl+0xa1b/0x10ee [ 24.622186] do_vfs_ioctl+0x190/0xfe0 [ 24.622191] SyS_ioctl+0x8f/0xc0 [ 24.622196] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.622197] [ 24.622206] The buggy address belongs to the object at ffff8801c7b99a80 [ 24.622206] which belongs to the cache kmalloc-512 of size 512 [ 24.622210] The buggy address is located 184 bytes inside of [ 24.622210] 512-byte region [ffff8801c7b99a80, ffff8801c7b99c80) [ 24.622212] The buggy address belongs to the page: [ 24.622218] page:ffffea00071ee640 count:1 mapcount:0 mapping:ffff8801c7b99080 index:0x0 [ 24.622222] flags: 0x2fffc0000000100(slab) [ 24.622231] raw: 02fffc0000000100 ffff8801c7b99080 0000000000000000 0000000100000006 [ 24.622237] raw: ffffea0007373e60 ffff8801db001748 ffff8801db000940 0000000000000000 [ 24.622240] page dumped because: kasan: bad access detected [ 24.622241] [ 24.622242] Memory state around the buggy address: [ 24.622247] ffff8801c7b99a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.622251] ffff8801c7b99a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.622255] >ffff8801c7b99b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.622257] ^ [ 24.622261] ffff8801c7b99b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.622266] ffff8801c7b99c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.622267] ================================================================== [ 24.622269] Disabling lock debugging due to kernel taint [ 24.622272] Kernel panic - not syncing: panic_on_warn set ... [ 24.622272] [ 24.622278] CPU: 1 PID: 3470 Comm: syzkaller087241 Tainted: G B 4.15.0-rc6-next-20180103+ #87 [ 24.622281] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.622283] Call Trace: [ 24.622288] dump_stack+0x137/0x198 [ 24.622295] ? __lock_acquire+0x3b80/0x3cf0 [ 24.622300] panic+0x1e4/0x41c [ 24.622306] ? refcount_error_report+0x214/0x214 [ 24.622313] ? add_taint+0x40/0x50 [ 24.622318] ? add_taint+0x1c/0x50 [ 24.622324] ? __lock_acquire+0x3c41/0x3cf0 [ 24.622330] kasan_end_report+0x50/0x50 [ 24.622336] kasan_report+0x148/0x360 [ 24.622344] __asan_report_load8_noabort+0x14/0x20 [ 24.622349] __lock_acquire+0x3c41/0x3cf0 [ 24.622354] ? lock_downgrade+0x860/0x860 [ 24.622360] ? __bpf_address_lookup+0x2b0/0x2b0 [ 24.622367] ? __lock_acquire+0x63e/0x3cf0 [ 24.622373] ? remove_wait_queue+0x24/0x1b0 [ 24.622381] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.622390] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.622397] ? __mutex_lock+0xec/0x1550 [ 24.622402] ? ep_free+0x72/0x230 [ 24.622407] ? save_stack+0xa3/0xd0 [ 24.622415] lock_acquire+0x16b/0x420 [ 24.622420] ? lock_acquire+0x16b/0x420 [ 24.622425] ? remove_wait_queue+0x24/0x1b0 [ 24.622434] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.622440] ? remove_wait_queue+0x24/0x1b0 [ 24.622446] remove_wait_queue+0x24/0x1b0 [ 24.622453] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 24.622460] ? ep_free+0x230/0x230 [ 24.622466] ep_free+0xae/0x230 [ 24.622472] ? ep_free+0x230/0x230 [ 24.622478] ep_eventpoll_release+0x44/0x60 [ 24.622483] __fput+0x291/0x6e0 [ 24.622490] ____fput+0x15/0x20 [ 24.622495] task_work_run+0x122/0x1a0 [ 24.622503] do_exit+0x7f4/0x2da0 [ 24.622509] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 24.622515] ? do_vfs_ioctl+0x439/0xfe0 [ 24.622522] ? mm_update_next_owner+0x690/0x690 [ 24.622528] ? ioctl_preallocate+0x1c0/0x1c0 [ 24.622534] ? __do_page_fault+0x3c3/0xca0 [ 24.622543] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 24.622551] do_group_exit+0x108/0x320 [ 24.622558] SyS_exit_group+0x1d/0x20 [ 24.622564] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.622568] RIP: 0033:0x442a48 [ 24.622570] RSP: 002b:00007ffeb1be53d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.622576] RAX: ffffffffffffffda RBX: 6e69622f7665642f RCX: 0000000000442a48 [ 24.622579] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.622583] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.622586] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a90 [ 24.622589] R13: 0000000000401b20 R14: 0000000000000000 R15: 0000000000000000 [ 24.641292] Dumping ftrace buffer: [ 24.641296] (ftrace buffer empty) [ 24.641298] Kernel Offset: disabled [ 25.368256] Rebooting in 86400 seconds..