[....] Starting enhanced syslogd: rsyslogd[ 9.895052] audit: type=1400 audit(1515097087.938:5): avc: denied { syslog } for pid=3310 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: [ 12.544042] audit: type=1400 audit(1515097090.587:6): avc: denied { map } for pid=3445 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.63' (ECDSA) to the list of known hosts. executing program [ 36.038659] audit: type=1400 audit(1515097114.082:7): avc: denied { map } for pid=3464 comm="syzkaller183462" path="/root/syzkaller183462991" 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 [ 36.044621] ================================================================== [ 36.044633] BUG: KASAN: use-after-free in __lock_acquire+0x3c41/0x3cf0 [ 36.044636] Read of size 8 at addr ffff8801c7fe28b8 by task syzkaller183462/3464 [ 36.044637] [ 36.044641] CPU: 1 PID: 3464 Comm: syzkaller183462 Not tainted 4.15.0-rc6-mm1+ #50 [ 36.044643] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.044645] Call Trace: [ 36.044652] dump_stack+0x137/0x198 [ 36.044656] ? __lock_acquire+0x3c41/0x3cf0 [ 36.044663] print_address_description+0x73/0x250 [ 36.044667] ? __lock_acquire+0x3c41/0x3cf0 [ 36.044671] kasan_report+0x23b/0x360 [ 36.044676] __asan_report_load8_noabort+0x14/0x20 [ 36.044679] __lock_acquire+0x3c41/0x3cf0 [ 36.044685] ? bpf_prog_kallsyms_find+0x39/0x270 [ 36.044689] ? __lock_acquire+0x63e/0x3cf0 [ 36.044694] ? remove_wait_queue+0x24/0x1b0 [ 36.044699] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.044704] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.044711] ? __mutex_lock+0xec/0x1550 [ 36.044716] ? ep_free+0x72/0x230 [ 36.044720] ? save_stack+0x43/0xd0 [ 36.044723] ? __kasan_slab_free+0x11a/0x170 [ 36.044726] ? kasan_slab_free+0xe/0x10 [ 36.044731] lock_acquire+0x16b/0x420 [ 36.044734] ? lock_acquire+0x16b/0x420 [ 36.044738] ? remove_wait_queue+0x24/0x1b0 [ 36.044743] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.044747] ? remove_wait_queue+0x24/0x1b0 [ 36.044750] remove_wait_queue+0x24/0x1b0 [ 36.044755] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 36.044760] ? ep_free+0x230/0x230 [ 36.044763] ep_free+0xae/0x230 [ 36.044767] ? ep_free+0x230/0x230 [ 36.044771] ep_eventpoll_release+0x44/0x60 [ 36.044775] __fput+0x291/0x6e0 [ 36.044780] ____fput+0x15/0x20 [ 36.044784] task_work_run+0x122/0x1a0 [ 36.044790] do_exit+0x7f4/0x2da0 [ 36.044796] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 36.044801] ? do_vfs_ioctl+0x439/0xfe0 [ 36.044806] ? mm_update_next_owner+0x690/0x690 [ 36.044809] ? ioctl_preallocate+0x1c0/0x1c0 [ 36.044814] ? __do_page_fault+0x3c3/0xca0 [ 36.044820] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 36.044824] do_group_exit+0x108/0x320 [ 36.044829] SyS_exit_group+0x1d/0x20 [ 36.044833] entry_SYSCALL_64_fastpath+0x23/0x9a [ 36.044836] RIP: 0033:0x442a48 [ 36.044838] RSP: 002b:00007ffe41a7e4e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.044842] RAX: ffffffffffffffda RBX: 6e69622f7665642f RCX: 0000000000442a48 [ 36.044844] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.044846] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.044849] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a90 [ 36.044851] R13: 0000000000401b20 R14: 0000000000000000 R15: 0000000000000000 [ 36.044854] [ 36.044856] Allocated by task 3464: [ 36.044860] save_stack+0x43/0xd0 [ 36.044863] kasan_kmalloc+0xad/0xe0 [ 36.044866] kmem_cache_alloc_trace+0x136/0x750 [ 36.044869] binder_get_thread+0x15d/0x700 [ 36.044871] binder_poll+0x4a/0x210 [ 36.044875] ep_item_poll.isra.10+0xf2/0x320 [ 36.044878] SyS_epoll_ctl+0x11c4/0x27b0 [ 36.044882] entry_SYSCALL_64_fastpath+0x23/0x9a [ 36.044882] [ 36.044884] Freed by task 3464: [ 36.044886] save_stack+0x43/0xd0 [ 36.044889] __kasan_slab_free+0x11a/0x170 [ 36.044892] kasan_slab_free+0xe/0x10 [ 36.044895] kfree+0xd9/0x260 [ 36.044898] binder_thread_dec_tmpref+0x17d/0x1e0 [ 36.044901] binder_thread_release+0x27d/0x540 [ 36.044903] binder_ioctl+0xa1b/0x10ee [ 36.044906] do_vfs_ioctl+0x190/0xfe0 [ 36.044909] SyS_ioctl+0x8f/0xc0 [ 36.044912] entry_SYSCALL_64_fastpath+0x23/0x9a [ 36.044913] [ 36.044915] The buggy address belongs to the object at ffff8801c7fe2800 [ 36.044915] which belongs to the cache kmalloc-512 of size 512 [ 36.044918] The buggy address is located 184 bytes inside of [ 36.044918] 512-byte region [ffff8801c7fe2800, ffff8801c7fe2a00) [ 36.044919] The buggy address belongs to the page: [ 36.044922] page:ffffea00071ff880 count:1 mapcount:0 mapping:ffff8801c7fe2080 index:0xffff8801c7fe2d00 [ 36.044926] flags: 0x2fffc0000000100(slab) [ 36.044932] raw: 02fffc0000000100 ffff8801c7fe2080 ffff8801c7fe2d00 0000000100000005 [ 36.044936] raw: ffffea00071f30a0 ffff8801db001738 ffff8801db000940 0000000000000000 [ 36.044937] page dumped because: kasan: bad access detected [ 36.044938] [ 36.044939] Memory state around the buggy address: [ 36.044942] ffff8801c7fe2780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.044944] ffff8801c7fe2800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.044947] >ffff8801c7fe2880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.044948] ^ [ 36.044950] ffff8801c7fe2900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.044953] ffff8801c7fe2980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.044954] ================================================================== [ 36.044955] Disabling lock debugging due to kernel taint [ 36.044957] Kernel panic - not syncing: panic_on_warn set ... [ 36.044957] [ 36.044960] CPU: 1 PID: 3464 Comm: syzkaller183462 Tainted: G B 4.15.0-rc6-mm1+ #50 [ 36.044962] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.044963] Call Trace: [ 36.044967] dump_stack+0x137/0x198 [ 36.044971] ? __lock_acquire+0x3bc0/0x3cf0 [ 36.044974] panic+0x1e4/0x41c [ 36.044978] ? refcount_error_report+0x214/0x214 [ 36.044982] ? add_taint+0x40/0x50 [ 36.044985] ? add_taint+0x1c/0x50 [ 36.044989] ? __lock_acquire+0x3c41/0x3cf0 [ 36.044993] kasan_end_report+0x50/0x50 [ 36.044997] kasan_report+0x148/0x360 [ 36.045004] __asan_report_load8_noabort+0x14/0x20 [ 36.045008] __lock_acquire+0x3c41/0x3cf0 [ 36.045012] ? bpf_prog_kallsyms_find+0x39/0x270 [ 36.045017] ? __lock_acquire+0x63e/0x3cf0 [ 36.045020] ? remove_wait_queue+0x24/0x1b0 [ 36.045025] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.045030] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.045034] ? __mutex_lock+0xec/0x1550 [ 36.045038] ? ep_free+0x72/0x230 [ 36.045041] ? save_stack+0x43/0xd0 [ 36.045044] ? __kasan_slab_free+0x11a/0x170 [ 36.045047] ? kasan_slab_free+0xe/0x10 [ 36.045051] lock_acquire+0x16b/0x420 [ 36.045055] ? lock_acquire+0x16b/0x420 [ 36.045058] ? remove_wait_queue+0x24/0x1b0 [ 36.045063] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.045067] ? remove_wait_queue+0x24/0x1b0 [ 36.045070] remove_wait_queue+0x24/0x1b0 [ 36.045079] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 36.045083] ? ep_free+0x230/0x230 [ 36.045086] ep_free+0xae/0x230 [ 36.045090] ? ep_free+0x230/0x230 [ 36.045094] ep_eventpoll_release+0x44/0x60 [ 36.045097] __fput+0x291/0x6e0 [ 36.045101] ____fput+0x15/0x20 [ 36.045104] task_work_run+0x122/0x1a0 [ 36.045109] do_exit+0x7f4/0x2da0 [ 36.045112] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 36.045116] ? do_vfs_ioctl+0x439/0xfe0 [ 36.045120] ? mm_update_next_owner+0x690/0x690 [ 36.045124] ? ioctl_preallocate+0x1c0/0x1c0 [ 36.045128] ? __do_page_fault+0x3c3/0xca0 [ 36.045133] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 36.045137] do_group_exit+0x108/0x320 [ 36.045142] SyS_exit_group+0x1d/0x20 [ 36.045146] entry_SYSCALL_64_fastpath+0x23/0x9a [ 36.045148] RIP: 0033:0x442a48 [ 36.045149] RSP: 002b:00007ffe41a7e4e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.045153] RAX: ffffffffffffffda RBX: 6e69622f7665642f RCX: 0000000000442a48 [ 36.045155] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.045157] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.045159] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a90 [ 36.045160] R13: 0000000000401b20 R14: 0000000000000000 R15: 0000000000000000 [ 36.068229] Dumping ftrace buffer: [ 36.068232] (ftrace buffer empty) [ 36.068234] Kernel Offset: disabled [ 36.807435] Rebooting in 86400 seconds..