[....] Starting enhanced syslogd: rsyslogd[ 10.492779] audit: type=1400 audit(1515337161.025:5): avc: denied { syslog } for pid=3307 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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 15.403475] audit: type=1400 audit(1515337165.936:6): avc: denied { map } for pid=3447 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.247' (ECDSA) to the list of known hosts. executing program [ 21.810986] audit: type=1400 audit(1515337172.343:7): avc: denied { map } for pid=3461 comm="syzkaller645678" path="/root/syzkaller645678288" 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 [ 21.818078] ================================================================== [ 21.818098] BUG: KASAN: use-after-free in __lock_acquire+0x3c41/0x3cf0 [ 21.818103] Read of size 8 at addr ffff8801c8b9cdf8 by task syzkaller645678/3461 [ 21.818105] [ 21.818113] CPU: 0 PID: 3461 Comm: syzkaller645678 Not tainted 4.15.0-rc6-mm1+ #51 [ 21.818116] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 21.818118] Call Trace: [ 21.818130] dump_stack+0x137/0x198 [ 21.818137] ? __lock_acquire+0x3c41/0x3cf0 [ 21.818149] print_address_description+0x73/0x250 [ 21.818155] ? __lock_acquire+0x3c41/0x3cf0 [ 21.818162] kasan_report+0x23b/0x360 [ 21.818170] __asan_report_load8_noabort+0x14/0x20 [ 21.818176] __lock_acquire+0x3c41/0x3cf0 [ 21.818187] ? bpf_prog_kallsyms_find+0x39/0x270 [ 21.818194] ? __lock_acquire+0x63e/0x3cf0 [ 21.818202] ? remove_wait_queue+0x24/0x1b0 [ 21.818211] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.818220] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.818230] ? __mutex_lock+0xec/0x1550 [ 21.818240] ? ep_free+0x72/0x230 [ 21.818245] ? save_stack+0x43/0xd0 [ 21.818250] ? __kasan_slab_free+0x11a/0x170 [ 21.818255] ? kasan_slab_free+0xe/0x10 [ 21.818262] lock_acquire+0x16b/0x420 [ 21.818268] ? lock_acquire+0x16b/0x420 [ 21.818273] ? remove_wait_queue+0x24/0x1b0 [ 21.818283] _raw_spin_lock_irqsave+0x96/0xc0 [ 21.818288] ? remove_wait_queue+0x24/0x1b0 [ 21.818295] remove_wait_queue+0x24/0x1b0 [ 21.818303] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 21.818310] ? ep_free+0x230/0x230 [ 21.818315] ep_free+0xae/0x230 [ 21.818322] ? ep_free+0x230/0x230 [ 21.818328] ep_eventpoll_release+0x44/0x60 [ 21.818335] __fput+0x291/0x6e0 [ 21.818343] ____fput+0x15/0x20 [ 21.818349] task_work_run+0x122/0x1a0 [ 21.818358] do_exit+0x7f4/0x2da0 [ 21.818367] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 21.818375] ? do_vfs_ioctl+0x439/0xfe0 [ 21.818386] ? mm_update_next_owner+0x690/0x690 [ 21.818392] ? ioctl_preallocate+0x1c0/0x1c0 [ 21.818401] ? __do_page_fault+0x3c3/0xca0 [ 21.818411] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 21.818419] do_group_exit+0x108/0x320 [ 21.818426] SyS_exit_group+0x1d/0x20 [ 21.818432] entry_SYSCALL_64_fastpath+0x23/0x9a [ 21.818438] RIP: 0033:0x4429f8 [ 21.818441] RSP: 002b:00007ffe675da278 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 21.818448] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 21.818451] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 21.818455] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 21.818458] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 21.818461] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 21.818468] [ 21.818471] Allocated by task 3461: [ 21.818478] save_stack+0x43/0xd0 [ 21.818483] kasan_kmalloc+0xad/0xe0 [ 21.818488] kmem_cache_alloc_trace+0x136/0x750 [ 21.818493] binder_get_thread+0x15d/0x700 [ 21.818497] binder_poll+0x4a/0x210 [ 21.818502] ep_item_poll.isra.10+0xf2/0x320 [ 21.818508] SyS_epoll_ctl+0x11c4/0x27b0 [ 21.818513] entry_SYSCALL_64_fastpath+0x23/0x9a [ 21.818515] [ 21.818517] Freed by task 3461: [ 21.818521] save_stack+0x43/0xd0 [ 21.818526] __kasan_slab_free+0x11a/0x170 [ 21.818531] kasan_slab_free+0xe/0x10 [ 21.818536] kfree+0xd9/0x260 [ 21.818541] binder_thread_dec_tmpref+0x17d/0x1e0 [ 21.818545] binder_thread_release+0x27d/0x540 [ 21.818549] binder_ioctl+0xa1b/0x10ee [ 21.818554] do_vfs_ioctl+0x190/0xfe0 [ 21.818559] SyS_ioctl+0x8f/0xc0 [ 21.818564] entry_SYSCALL_64_fastpath+0x23/0x9a [ 21.818565] [ 21.818569] The buggy address belongs to the object at ffff8801c8b9cd40 [ 21.818569] which belongs to the cache kmalloc-512 of size 512 [ 21.818574] The buggy address is located 184 bytes inside of [ 21.818574] 512-byte region [ffff8801c8b9cd40, ffff8801c8b9cf40) [ 21.818576] The buggy address belongs to the page: [ 21.818580] page:ffffea000722e700 count:1 mapcount:0 mapping:ffff8801c8b9c0c0 index:0x0 [ 21.818586] flags: 0x2fffc0000000100(slab) [ 21.818595] raw: 02fffc0000000100 ffff8801c8b9c0c0 0000000000000000 0000000100000006 [ 21.818602] raw: ffffea000722e420 ffffea000739c0a0 ffff8801db000940 0000000000000000 [ 21.818604] page dumped because: kasan: bad access detected [ 21.818605] [ 21.818606] Memory state around the buggy address: [ 21.818611] ffff8801c8b9cc80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 21.818615] ffff8801c8b9cd00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 21.818619] >ffff8801c8b9cd80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.818621] ^ [ 21.818625] ffff8801c8b9ce00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.818629] ffff8801c8b9ce80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.818631] ================================================================== [ 21.818633] Disabling lock debugging due to kernel taint [ 21.818636] Kernel panic - not syncing: panic_on_warn set ... [ 21.818636] [ 21.818642] CPU: 0 PID: 3461 Comm: syzkaller645678 Tainted: G B 4.15.0-rc6-mm1+ #51 [ 21.818645] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 21.818647] Call Trace: [ 21.818653] dump_stack+0x137/0x198 [ 21.818660] ? __lock_acquire+0x3bc0/0x3cf0 [ 21.818665] panic+0x1e4/0x41c [ 21.818671] ? refcount_error_report+0x214/0x214 [ 21.818678] ? add_taint+0x40/0x50 [ 21.818683] ? add_taint+0x1c/0x50 [ 21.818690] ? __lock_acquire+0x3c41/0x3cf0 [ 21.818696] kasan_end_report+0x50/0x50 [ 21.818701] kasan_report+0x148/0x360 [ 21.818709] __asan_report_load8_noabort+0x14/0x20 [ 21.818715] __lock_acquire+0x3c41/0x3cf0 [ 21.818721] ? bpf_prog_kallsyms_find+0x39/0x270 [ 21.818728] ? __lock_acquire+0x63e/0x3cf0 [ 21.818734] ? remove_wait_queue+0x24/0x1b0 [ 21.818742] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.818751] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.818759] ? __mutex_lock+0xec/0x1550 [ 21.818764] ? ep_free+0x72/0x230 [ 21.818769] ? save_stack+0x43/0xd0 [ 21.818774] ? __kasan_slab_free+0x11a/0x170 [ 21.818779] ? kasan_slab_free+0xe/0x10 [ 21.818786] lock_acquire+0x16b/0x420 [ 21.818791] ? lock_acquire+0x16b/0x420 [ 21.818797] ? remove_wait_queue+0x24/0x1b0 [ 21.818806] _raw_spin_lock_irqsave+0x96/0xc0 [ 21.818812] ? remove_wait_queue+0x24/0x1b0 [ 21.818818] remove_wait_queue+0x24/0x1b0 [ 21.818826] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 21.818833] ? ep_free+0x230/0x230 [ 21.818838] ep_free+0xae/0x230 [ 21.818844] ? ep_free+0x230/0x230 [ 21.818850] ep_eventpoll_release+0x44/0x60 [ 21.818855] __fput+0x291/0x6e0 [ 21.818863] ____fput+0x15/0x20 [ 21.818868] task_work_run+0x122/0x1a0 [ 21.818875] do_exit+0x7f4/0x2da0 [ 21.818881] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 21.818888] ? do_vfs_ioctl+0x439/0xfe0 [ 21.818894] ? mm_update_next_owner+0x690/0x690 [ 21.818900] ? ioctl_preallocate+0x1c0/0x1c0 [ 21.818906] ? __do_page_fault+0x3c3/0xca0 [ 21.818916] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 21.818923] do_group_exit+0x108/0x320 [ 21.818930] SyS_exit_group+0x1d/0x20 [ 21.818936] entry_SYSCALL_64_fastpath+0x23/0x9a [ 21.818940] RIP: 0033:0x4429f8 [ 21.818943] RSP: 002b:00007ffe675da278 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 21.818948] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 21.818951] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 21.818955] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 21.818958] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 21.818961] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 21.837333] Dumping ftrace buffer: [ 21.837337] (ftrace buffer empty) [ 21.837340] Kernel Offset: disabled [ 22.587729] Rebooting in 86400 seconds..