[....] Starting enhanced syslogd: rsyslogd[ 10.552009] audit: type=1400 audit(1515018150.263:5): avc: denied { syslog } for pid=3314 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: [ 15.907583] audit: type=1400 audit(1515018155.619:6): avc: denied { map } for pid=3455 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.36' (ECDSA) to the list of known hosts. executing program [ 22.075523] audit: type=1400 audit(1515018161.787:7): avc: denied { map } for pid=3469 comm="syzkaller918860" path="/root/syzkaller918860093" 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.082705] ================================================================== [ 22.082721] BUG: KASAN: use-after-free in __lock_acquire+0x3c41/0x3cf0 [ 22.082726] Read of size 8 at addr ffff8801c7805db8 by task syzkaller918860/3469 [ 22.082727] [ 22.082735] CPU: 0 PID: 3469 Comm: syzkaller918860 Not tainted 4.15.0-rc6-mm1+ #50 [ 22.082738] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.082740] Call Trace: [ 22.082749] dump_stack+0x137/0x198 [ 22.082756] ? __lock_acquire+0x3c41/0x3cf0 [ 22.082767] print_address_description+0x73/0x250 [ 22.082773] ? __lock_acquire+0x3c41/0x3cf0 [ 22.082779] kasan_report+0x23b/0x360 [ 22.082787] __asan_report_load8_noabort+0x14/0x20 [ 22.082793] __lock_acquire+0x3c41/0x3cf0 [ 22.082801] ? bpf_prog_kallsyms_find+0x39/0x270 [ 22.082808] ? __lock_acquire+0x63e/0x3cf0 [ 22.082815] ? remove_wait_queue+0x24/0x1b0 [ 22.082824] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.082832] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.082841] ? __mutex_lock+0xec/0x1550 [ 22.082847] ? ep_free+0x72/0x230 [ 22.082853] ? save_stack+0x43/0xd0 [ 22.082858] ? __kasan_slab_free+0x11a/0x170 [ 22.082863] ? kasan_slab_free+0xe/0x10 [ 22.082870] lock_acquire+0x16b/0x420 [ 22.082876] ? lock_acquire+0x16b/0x420 [ 22.082881] ? remove_wait_queue+0x24/0x1b0 [ 22.082891] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.082896] ? remove_wait_queue+0x24/0x1b0 [ 22.082902] remove_wait_queue+0x24/0x1b0 [ 22.082911] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 22.082918] ? ep_free+0x230/0x230 [ 22.082924] ep_free+0xae/0x230 [ 22.082931] ? ep_free+0x230/0x230 [ 22.082937] ep_eventpoll_release+0x44/0x60 [ 22.082942] __fput+0x291/0x6e0 [ 22.082950] ____fput+0x15/0x20 [ 22.082956] task_work_run+0x122/0x1a0 [ 22.082964] do_exit+0x7f4/0x2da0 [ 22.082972] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 22.082979] ? do_vfs_ioctl+0x439/0xfe0 [ 22.082986] ? mm_update_next_owner+0x690/0x690 [ 22.082992] ? ioctl_preallocate+0x1c0/0x1c0 [ 22.083000] ? __do_page_fault+0x3c3/0xca0 [ 22.083014] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 22.083021] do_group_exit+0x108/0x320 [ 22.083029] SyS_exit_group+0x1d/0x20 [ 22.083035] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.083040] RIP: 0033:0x4429f8 [ 22.083043] RSP: 002b:00007ffd453d7838 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.083049] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.083053] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.083056] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.083059] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.083063] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.083069] [ 22.083072] Allocated by task 3469: [ 22.083078] save_stack+0x43/0xd0 [ 22.083083] kasan_kmalloc+0xad/0xe0 [ 22.083088] kmem_cache_alloc_trace+0x136/0x750 [ 22.083092] binder_get_thread+0x15d/0x700 [ 22.083097] binder_poll+0x4a/0x210 [ 22.083102] ep_item_poll.isra.10+0xf2/0x320 [ 22.083108] SyS_epoll_ctl+0x11c4/0x27b0 [ 22.083113] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.083114] [ 22.083116] Freed by task 3469: [ 22.083121] save_stack+0x43/0xd0 [ 22.083126] __kasan_slab_free+0x11a/0x170 [ 22.083131] kasan_slab_free+0xe/0x10 [ 22.083135] kfree+0xd9/0x260 [ 22.083140] binder_thread_dec_tmpref+0x17d/0x1e0 [ 22.083145] binder_thread_release+0x27d/0x540 [ 22.083149] binder_ioctl+0xa1b/0x10ee [ 22.083154] do_vfs_ioctl+0x190/0xfe0 [ 22.083158] SyS_ioctl+0x8f/0xc0 [ 22.083164] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.083165] [ 22.083169] The buggy address belongs to the object at ffff8801c7805d00 [ 22.083169] which belongs to the cache kmalloc-512 of size 512 [ 22.083173] The buggy address is located 184 bytes inside of [ 22.083173] 512-byte region [ffff8801c7805d00, ffff8801c7805f00) [ 22.083175] The buggy address belongs to the page: [ 22.083179] page:ffffea00071e0140 count:1 mapcount:0 mapping:ffff8801c7805080 index:0x0 [ 22.083185] flags: 0x2fffc0000000100(slab) [ 22.083193] raw: 02fffc0000000100 ffff8801c7805080 0000000000000000 0000000100000006 [ 22.083200] raw: ffffea0007342960 ffff8801db001748 ffff8801db000940 0000000000000000 [ 22.083202] page dumped because: kasan: bad access detected [ 22.083203] [ 22.083204] Memory state around the buggy address: [ 22.083209] ffff8801c7805c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.083213] ffff8801c7805d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.083218] >ffff8801c7805d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.083220] ^ [ 22.083224] ffff8801c7805e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.083228] ffff8801c7805e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.083229] ================================================================== [ 22.083231] Disabling lock debugging due to kernel taint [ 22.083234] Kernel panic - not syncing: panic_on_warn set ... [ 22.083234] [ 22.083240] CPU: 0 PID: 3469 Comm: syzkaller918860 Tainted: G B 4.15.0-rc6-mm1+ #50 [ 22.083243] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.083245] Call Trace: [ 22.083250] dump_stack+0x137/0x198 [ 22.083257] ? __lock_acquire+0x3bc0/0x3cf0 [ 22.083263] panic+0x1e4/0x41c [ 22.083269] ? refcount_error_report+0x214/0x214 [ 22.083276] ? add_taint+0x40/0x50 [ 22.083281] ? add_taint+0x1c/0x50 [ 22.083287] ? __lock_acquire+0x3c41/0x3cf0 [ 22.083293] kasan_end_report+0x50/0x50 [ 22.083299] kasan_report+0x148/0x360 [ 22.083307] __asan_report_load8_noabort+0x14/0x20 [ 22.083313] __lock_acquire+0x3c41/0x3cf0 [ 22.083319] ? bpf_prog_kallsyms_find+0x39/0x270 [ 22.083326] ? __lock_acquire+0x63e/0x3cf0 [ 22.083336] ? remove_wait_queue+0x24/0x1b0 [ 22.083344] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.083353] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.083361] ? __mutex_lock+0xec/0x1550 [ 22.083366] ? ep_free+0x72/0x230 [ 22.083371] ? save_stack+0x43/0xd0 [ 22.083377] ? __kasan_slab_free+0x11a/0x170 [ 22.083382] ? kasan_slab_free+0xe/0x10 [ 22.083389] lock_acquire+0x16b/0x420 [ 22.083394] ? lock_acquire+0x16b/0x420 [ 22.083400] ? remove_wait_queue+0x24/0x1b0 [ 22.083408] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.083414] ? remove_wait_queue+0x24/0x1b0 [ 22.083420] remove_wait_queue+0x24/0x1b0 [ 22.083429] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 22.083436] ? ep_free+0x230/0x230 [ 22.083441] ep_free+0xae/0x230 [ 22.083447] ? ep_free+0x230/0x230 [ 22.083453] ep_eventpoll_release+0x44/0x60 [ 22.083458] __fput+0x291/0x6e0 [ 22.083466] ____fput+0x15/0x20 [ 22.083471] task_work_run+0x122/0x1a0 [ 22.083479] do_exit+0x7f4/0x2da0 [ 22.083485] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 22.083491] ? do_vfs_ioctl+0x439/0xfe0 [ 22.083498] ? mm_update_next_owner+0x690/0x690 [ 22.083504] ? ioctl_preallocate+0x1c0/0x1c0 [ 22.083511] ? __do_page_fault+0x3c3/0xca0 [ 22.083520] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 22.083527] do_group_exit+0x108/0x320 [ 22.083534] SyS_exit_group+0x1d/0x20 [ 22.083540] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.083544] RIP: 0033:0x4429f8 [ 22.083547] RSP: 002b:00007ffd453d7838 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.083552] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.083555] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.083559] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.083562] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.083565] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.101966] Dumping ftrace buffer: [ 22.101969] (ftrace buffer empty) [ 22.101971] Kernel Offset: disabled [ 22.844547] Rebooting in 86400 seconds..