[....] Starting enhanced syslogd: rsyslogd[ 10.591156] audit: type=1400 audit(1514889500.217:5): avc: denied { syslog } for pid=3309 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.093748] audit: type=1400 audit(1514889505.720:6): avc: denied { map } for pid=3448 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.228' (ECDSA) to the list of known hosts. executing program [ 22.214525] audit: type=1400 audit(1514889511.841:7): avc: denied { map } for pid=3462 comm="syzkaller183662" path="/root/syzkaller183662892" 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 [ 22.219271] ================================================================== [ 22.219287] BUG: KASAN: use-after-free in __lock_acquire+0x3c41/0x3cf0 [ 22.219292] Read of size 8 at addr ffff8801cc59a638 by task syzkaller183662/3462 [ 22.219293] [ 22.219301] CPU: 0 PID: 3462 Comm: syzkaller183662 Not tainted 4.15.0-rc6-next-20180102+ #86 [ 22.219304] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.219305] Call Trace: [ 22.219314] dump_stack+0x137/0x198 [ 22.219321] ? __lock_acquire+0x3c41/0x3cf0 [ 22.219331] print_address_description+0x73/0x250 [ 22.219337] ? __lock_acquire+0x3c41/0x3cf0 [ 22.219343] kasan_report+0x23b/0x360 [ 22.219351] __asan_report_load8_noabort+0x14/0x20 [ 22.219358] __lock_acquire+0x3c41/0x3cf0 [ 22.219364] ? lock_downgrade+0x860/0x860 [ 22.219371] ? __bpf_address_lookup+0x2b0/0x2b0 [ 22.219379] ? __lock_acquire+0x63e/0x3cf0 [ 22.219386] ? remove_wait_queue+0x24/0x1b0 [ 22.219394] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.219403] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.219413] ? __mutex_lock+0xec/0x1550 [ 22.219419] ? ep_free+0x72/0x230 [ 22.219424] ? save_stack+0xa3/0xd0 [ 22.219431] lock_acquire+0x16b/0x420 [ 22.219437] ? lock_acquire+0x16b/0x420 [ 22.219442] ? remove_wait_queue+0x24/0x1b0 [ 22.219451] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.219457] ? remove_wait_queue+0x24/0x1b0 [ 22.219464] remove_wait_queue+0x24/0x1b0 [ 22.219472] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 22.219479] ? ep_free+0x230/0x230 [ 22.219484] ep_free+0xae/0x230 [ 22.219490] ? ep_free+0x230/0x230 [ 22.219496] ep_eventpoll_release+0x44/0x60 [ 22.219502] __fput+0x291/0x6e0 [ 22.219509] ____fput+0x15/0x20 [ 22.219515] task_work_run+0x122/0x1a0 [ 22.219524] do_exit+0x7f4/0x2da0 [ 22.219532] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 22.219539] ? do_vfs_ioctl+0x439/0xfe0 [ 22.219546] ? mm_update_next_owner+0x690/0x690 [ 22.219551] ? ioctl_preallocate+0x1c0/0x1c0 [ 22.219559] ? __do_page_fault+0x3c3/0xca0 [ 22.219569] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 22.219576] do_group_exit+0x108/0x320 [ 22.219583] SyS_exit_group+0x1d/0x20 [ 22.219589] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.219594] RIP: 0033:0x4429f8 [ 22.219597] RSP: 002b:00007fffeb39c848 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.219604] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.219608] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.219613] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.219617] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.219620] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.219627] [ 22.219630] Allocated by task 3462: [ 22.219636] save_stack+0x43/0xd0 [ 22.219641] kasan_kmalloc+0xad/0xe0 [ 22.219646] kmem_cache_alloc_trace+0x136/0x750 [ 22.219650] binder_get_thread+0x15d/0x700 [ 22.219654] binder_poll+0x4a/0x210 [ 22.219660] ep_item_poll.isra.10+0xf2/0x320 [ 22.219666] SyS_epoll_ctl+0x11c4/0x27b0 [ 22.219675] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.219676] [ 22.219678] Freed by task 3462: [ 22.219683] save_stack+0x43/0xd0 [ 22.219688] kasan_slab_free+0x71/0xc0 [ 22.219692] kfree+0xd6/0x260 [ 22.219697] binder_thread_dec_tmpref+0x17d/0x1e0 [ 22.219701] binder_thread_release+0x27d/0x540 [ 22.219705] binder_ioctl+0xa1b/0x10ee [ 22.219710] do_vfs_ioctl+0x190/0xfe0 [ 22.219714] SyS_ioctl+0x8f/0xc0 [ 22.219720] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.219721] [ 22.219724] The buggy address belongs to the object at ffff8801cc59a580 [ 22.219724] which belongs to the cache kmalloc-512 of size 512 [ 22.219729] The buggy address is located 184 bytes inside of [ 22.219729] 512-byte region [ffff8801cc59a580, ffff8801cc59a780) [ 22.219732] The buggy address belongs to the page: [ 22.219736] page:ffffea0007316680 count:1 mapcount:0 mapping:ffff8801cc59a080 index:0x0 [ 22.219742] flags: 0x2fffc0000000100(slab) [ 22.219751] raw: 02fffc0000000100 ffff8801cc59a080 0000000000000000 0000000100000006 [ 22.219761] raw: ffffea00073062a0 ffffea0007303e60 ffff8801db000940 0000000000000000 [ 22.219763] page dumped because: kasan: bad access detected [ 22.219764] [ 22.219766] Memory state around the buggy address: [ 22.219770] ffff8801cc59a500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.219777] ffff8801cc59a580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.219781] >ffff8801cc59a600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.219783] ^ [ 22.219787] ffff8801cc59a680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.219791] ffff8801cc59a700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.219793] ================================================================== [ 22.219794] Disabling lock debugging due to kernel taint [ 22.219797] Kernel panic - not syncing: panic_on_warn set ... [ 22.219797] [ 22.219803] CPU: 0 PID: 3462 Comm: syzkaller183662 Tainted: G B 4.15.0-rc6-next-20180102+ #86 [ 22.219806] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.219808] Call Trace: [ 22.219813] dump_stack+0x137/0x198 [ 22.219820] ? __lock_acquire+0x3b80/0x3cf0 [ 22.219826] panic+0x1e4/0x41c [ 22.219833] ? refcount_error_report+0x214/0x214 [ 22.219840] ? add_taint+0x40/0x50 [ 22.219845] ? add_taint+0x1c/0x50 [ 22.219851] ? __lock_acquire+0x3c41/0x3cf0 [ 22.219857] kasan_end_report+0x50/0x50 [ 22.219864] kasan_report+0x148/0x360 [ 22.219871] __asan_report_load8_noabort+0x14/0x20 [ 22.219877] __lock_acquire+0x3c41/0x3cf0 [ 22.219882] ? lock_downgrade+0x860/0x860 [ 22.219888] ? __bpf_address_lookup+0x2b0/0x2b0 [ 22.219895] ? __lock_acquire+0x63e/0x3cf0 [ 22.219901] ? remove_wait_queue+0x24/0x1b0 [ 22.219909] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.219917] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.219925] ? __mutex_lock+0xec/0x1550 [ 22.219930] ? ep_free+0x72/0x230 [ 22.219935] ? save_stack+0xa3/0xd0 [ 22.219942] lock_acquire+0x16b/0x420 [ 22.219947] ? lock_acquire+0x16b/0x420 [ 22.219953] ? remove_wait_queue+0x24/0x1b0 [ 22.219964] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.219970] ? remove_wait_queue+0x24/0x1b0 [ 22.219976] remove_wait_queue+0x24/0x1b0 [ 22.219986] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 22.219993] ? ep_free+0x230/0x230 [ 22.219998] ep_free+0xae/0x230 [ 22.220008] ? ep_free+0x230/0x230 [ 22.220014] ep_eventpoll_release+0x44/0x60 [ 22.220018] __fput+0x291/0x6e0 [ 22.220026] ____fput+0x15/0x20 [ 22.220031] task_work_run+0x122/0x1a0 [ 22.220038] do_exit+0x7f4/0x2da0 [ 22.220045] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 22.220051] ? do_vfs_ioctl+0x439/0xfe0 [ 22.220057] ? mm_update_next_owner+0x690/0x690 [ 22.220063] ? ioctl_preallocate+0x1c0/0x1c0 [ 22.220069] ? __do_page_fault+0x3c3/0xca0 [ 22.220079] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 22.220086] do_group_exit+0x108/0x320 [ 22.220093] SyS_exit_group+0x1d/0x20 [ 22.220100] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.220103] RIP: 0033:0x4429f8 [ 22.220106] RSP: 002b:00007fffeb39c848 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.220112] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.220115] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.220118] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.220121] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.220124] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.240800] Dumping ftrace buffer: [ 22.240803] (ftrace buffer empty) [ 22.240805] Kernel Offset: disabled [ 22.969595] Rebooting in 86400 seconds..