[....] Starting enhanced syslogd: rsyslogd[ 10.637361] audit: type=1400 audit(1515010391.307:5): avc: denied { syslog } for pid=3318 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 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.766207] audit: type=1400 audit(1515010397.436:6): avc: denied { map } for pid=3459 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 [ 38.517910] audit: type=1400 audit(1515010419.187:7): avc: denied { map } for pid=3477 comm="syzkaller337881" path="/root/syzkaller337881226" 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 [ 38.522673] ================================================================== [ 38.522685] BUG: KASAN: use-after-free in __lock_acquire+0x3c41/0x3cf0 [ 38.522689] Read of size 8 at addr ffff8801c77cfaf8 by task syzkaller337881/3477 [ 38.522690] [ 38.522694] CPU: 1 PID: 3477 Comm: syzkaller337881 Not tainted 4.15.0-rc6-mm1+ #50 [ 38.522697] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.522698] Call Trace: [ 38.522705] dump_stack+0x137/0x198 [ 38.522709] ? __lock_acquire+0x3c41/0x3cf0 [ 38.522716] print_address_description+0x73/0x250 [ 38.522720] ? __lock_acquire+0x3c41/0x3cf0 [ 38.522726] kasan_report+0x23b/0x360 [ 38.522732] __asan_report_load8_noabort+0x14/0x20 [ 38.522736] __lock_acquire+0x3c41/0x3cf0 [ 38.522743] ? bpf_prog_kallsyms_find+0x39/0x270 [ 38.522747] ? __lock_acquire+0x63e/0x3cf0 [ 38.522752] ? remove_wait_queue+0x24/0x1b0 [ 38.522758] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.522763] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.522769] ? __mutex_lock+0xec/0x1550 [ 38.522775] ? ep_free+0x72/0x230 [ 38.522778] ? save_stack+0x43/0xd0 [ 38.522781] ? __kasan_slab_free+0x11a/0x170 [ 38.522784] ? kasan_slab_free+0xe/0x10 [ 38.522789] lock_acquire+0x16b/0x420 [ 38.522792] ? lock_acquire+0x16b/0x420 [ 38.522796] ? remove_wait_queue+0x24/0x1b0 [ 38.522801] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.522805] ? remove_wait_queue+0x24/0x1b0 [ 38.522809] remove_wait_queue+0x24/0x1b0 [ 38.522814] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 38.522818] ? ep_free+0x230/0x230 [ 38.522821] ep_free+0xae/0x230 [ 38.522825] ? ep_free+0x230/0x230 [ 38.522829] ep_eventpoll_release+0x44/0x60 [ 38.522833] __fput+0x291/0x6e0 [ 38.522837] ____fput+0x15/0x20 [ 38.522841] task_work_run+0x122/0x1a0 [ 38.522847] do_exit+0x7f4/0x2da0 [ 38.522853] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 38.522858] ? do_vfs_ioctl+0x439/0xfe0 [ 38.522862] ? mm_update_next_owner+0x690/0x690 [ 38.522865] ? ioctl_preallocate+0x1c0/0x1c0 [ 38.522871] ? __do_page_fault+0x3c3/0xca0 [ 38.522876] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 38.522881] do_group_exit+0x108/0x320 [ 38.522885] SyS_exit_group+0x1d/0x20 [ 38.522889] entry_SYSCALL_64_fastpath+0x23/0x9a [ 38.522892] RIP: 0033:0x4429f8 [ 38.522895] RSP: 002b:00007ffd4c4e0c88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 38.522899] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 38.522901] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 38.522903] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 38.522905] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 38.522907] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 38.522911] [ 38.522912] Allocated by task 3477: [ 38.522916] save_stack+0x43/0xd0 [ 38.522919] kasan_kmalloc+0xad/0xe0 [ 38.522922] kmem_cache_alloc_trace+0x136/0x750 [ 38.522925] binder_get_thread+0x15d/0x700 [ 38.522927] binder_poll+0x4a/0x210 [ 38.522931] ep_item_poll.isra.10+0xf2/0x320 [ 38.522934] SyS_epoll_ctl+0x11c4/0x27b0 [ 38.522937] entry_SYSCALL_64_fastpath+0x23/0x9a [ 38.522938] [ 38.522939] Freed by task 3477: [ 38.522942] save_stack+0x43/0xd0 [ 38.522945] __kasan_slab_free+0x11a/0x170 [ 38.522948] kasan_slab_free+0xe/0x10 [ 38.522951] kfree+0xd9/0x260 [ 38.522954] binder_thread_dec_tmpref+0x17d/0x1e0 [ 38.522957] binder_thread_release+0x27d/0x540 [ 38.522959] binder_ioctl+0xa1b/0x10ee [ 38.522962] do_vfs_ioctl+0x190/0xfe0 [ 38.522965] SyS_ioctl+0x8f/0xc0 [ 38.522968] entry_SYSCALL_64_fastpath+0x23/0x9a [ 38.522968] [ 38.522971] The buggy address belongs to the object at ffff8801c77cfa40 [ 38.522971] which belongs to the cache kmalloc-512 of size 512 [ 38.522974] The buggy address is located 184 bytes inside of [ 38.522974] 512-byte region [ffff8801c77cfa40, ffff8801c77cfc40) [ 38.522975] The buggy address belongs to the page: [ 38.522978] page:ffffea00071df3c0 count:1 mapcount:0 mapping:ffff8801c77cf040 index:0x0 [ 38.522982] flags: 0x2fffc0000000100(slab) [ 38.522988] raw: 02fffc0000000100 ffff8801c77cf040 0000000000000000 0000000100000006 [ 38.522992] raw: ffffea00071d6020 ffff8801db001748 ffff8801db000940 0000000000000000 [ 38.522993] page dumped because: kasan: bad access detected [ 38.522994] [ 38.522995] Memory state around the buggy address: [ 38.522998] ffff8801c77cf980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.523004] ffff8801c77cfa00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 38.523006] >ffff8801c77cfa80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.523008] ^ [ 38.523010] ffff8801c77cfb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.523013] ffff8801c77cfb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.523014] ================================================================== [ 38.523015] Disabling lock debugging due to kernel taint [ 38.523017] Kernel panic - not syncing: panic_on_warn set ... [ 38.523017] [ 38.523021] CPU: 1 PID: 3477 Comm: syzkaller337881 Tainted: G B 4.15.0-rc6-mm1+ #50 [ 38.523023] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.523024] Call Trace: [ 38.523028] dump_stack+0x137/0x198 [ 38.523032] ? __lock_acquire+0x3bc0/0x3cf0 [ 38.523035] panic+0x1e4/0x41c [ 38.523039] ? refcount_error_report+0x214/0x214 [ 38.523043] ? add_taint+0x40/0x50 [ 38.523046] ? add_taint+0x1c/0x50 [ 38.523050] ? __lock_acquire+0x3c41/0x3cf0 [ 38.523054] kasan_end_report+0x50/0x50 [ 38.523057] kasan_report+0x148/0x360 [ 38.523062] __asan_report_load8_noabort+0x14/0x20 [ 38.523065] __lock_acquire+0x3c41/0x3cf0 [ 38.523069] ? bpf_prog_kallsyms_find+0x39/0x270 [ 38.523074] ? __lock_acquire+0x63e/0x3cf0 [ 38.523077] ? remove_wait_queue+0x24/0x1b0 [ 38.523082] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.523087] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.523091] ? __mutex_lock+0xec/0x1550 [ 38.523094] ? ep_free+0x72/0x230 [ 38.523098] ? save_stack+0x43/0xd0 [ 38.523101] ? __kasan_slab_free+0x11a/0x170 [ 38.523104] ? kasan_slab_free+0xe/0x10 [ 38.523108] lock_acquire+0x16b/0x420 [ 38.523111] ? lock_acquire+0x16b/0x420 [ 38.523115] ? remove_wait_queue+0x24/0x1b0 [ 38.523120] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.523124] ? remove_wait_queue+0x24/0x1b0 [ 38.523127] remove_wait_queue+0x24/0x1b0 [ 38.523132] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 38.523136] ? ep_free+0x230/0x230 [ 38.523140] ep_free+0xae/0x230 [ 38.523143] ? ep_free+0x230/0x230 [ 38.523147] ep_eventpoll_release+0x44/0x60 [ 38.523150] __fput+0x291/0x6e0 [ 38.523154] ____fput+0x15/0x20 [ 38.523157] task_work_run+0x122/0x1a0 [ 38.523162] do_exit+0x7f4/0x2da0 [ 38.523165] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 38.523169] ? do_vfs_ioctl+0x439/0xfe0 [ 38.523173] ? mm_update_next_owner+0x690/0x690 [ 38.523177] ? ioctl_preallocate+0x1c0/0x1c0 [ 38.523181] ? __do_page_fault+0x3c3/0xca0 [ 38.523190] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 38.523194] do_group_exit+0x108/0x320 [ 38.523199] SyS_exit_group+0x1d/0x20 [ 38.523202] entry_SYSCALL_64_fastpath+0x23/0x9a [ 38.523205] RIP: 0033:0x4429f8 [ 38.523206] RSP: 002b:00007ffd4c4e0c88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 38.523210] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 38.523212] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 38.523213] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 38.523215] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 38.523217] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 38.544067] Dumping ftrace buffer: [ 38.544070] (ftrace buffer empty) [ 38.544072] Kernel Offset: disabled [ 39.286800] Rebooting in 86400 seconds..