[....] Starting enhanced syslogd: rsyslogd[ 11.254800] audit: type=1400 audit(1515135870.528:5): avc: denied { syslog } for pid=3308 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: [ 18.210883] audit: type=1400 audit(1515135877.484:6): avc: denied { map } for pid=3450 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.193' (ECDSA) to the list of known hosts. executing program [ 40.047884] audit: type=1400 audit(1515135899.321:7): avc: denied { map } for pid=3467 comm="syzkaller256272" path="/root/syzkaller256272700" 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 [ 40.052655] ================================================================== [ 40.052673] BUG: KASAN: use-after-free in __lock_acquire+0x3c41/0x3cf0 [ 40.052676] Read of size 8 at addr ffff8801c8c1b8f8 by task syzkaller256272/3467 [ 40.052677] [ 40.052683] CPU: 0 PID: 3467 Comm: syzkaller256272 Not tainted 4.15.0-rc6-next-20180105+ #89 [ 40.052685] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.052687] Call Trace: [ 40.052695] dump_stack+0x137/0x198 [ 40.052699] ? __lock_acquire+0x3c41/0x3cf0 [ 40.052706] print_address_description+0x73/0x250 [ 40.052710] ? __lock_acquire+0x3c41/0x3cf0 [ 40.052714] kasan_report+0x23b/0x360 [ 40.052719] __asan_report_load8_noabort+0x14/0x20 [ 40.052722] __lock_acquire+0x3c41/0x3cf0 [ 40.052728] ? bpf_prog_kallsyms_find+0x39/0x270 [ 40.052733] ? __lock_acquire+0x63e/0x3cf0 [ 40.052737] ? remove_wait_queue+0x24/0x1b0 [ 40.052742] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 40.052748] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 40.052754] ? __mutex_lock+0xec/0x1550 [ 40.052759] ? ep_free+0x72/0x230 [ 40.052763] ? save_stack+0x43/0xd0 [ 40.052766] ? __kasan_slab_free+0x11a/0x170 [ 40.052769] ? kasan_slab_free+0xe/0x10 [ 40.052774] lock_acquire+0x16b/0x420 [ 40.052777] ? lock_acquire+0x16b/0x420 [ 40.052780] ? remove_wait_queue+0x24/0x1b0 [ 40.052786] _raw_spin_lock_irqsave+0x96/0xc0 [ 40.052790] ? remove_wait_queue+0x24/0x1b0 [ 40.052794] remove_wait_queue+0x24/0x1b0 [ 40.052799] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 40.052803] ? ep_free+0x230/0x230 [ 40.052807] ep_free+0xae/0x230 [ 40.052811] ? ep_free+0x230/0x230 [ 40.052814] ep_eventpoll_release+0x44/0x60 [ 40.052818] __fput+0x291/0x6e0 [ 40.052823] ____fput+0x15/0x20 [ 40.052827] task_work_run+0x122/0x1a0 [ 40.052833] do_exit+0x7f4/0x2da0 [ 40.052838] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 40.052843] ? do_vfs_ioctl+0x439/0xfe0 [ 40.052847] ? mm_update_next_owner+0x690/0x690 [ 40.052851] ? ioctl_preallocate+0x1c0/0x1c0 [ 40.052855] ? __do_page_fault+0x3c3/0xca0 [ 40.052861] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 40.052866] do_group_exit+0x108/0x320 [ 40.052870] SyS_exit_group+0x1d/0x20 [ 40.052874] entry_SYSCALL_64_fastpath+0x23/0x9a [ 40.052877] RIP: 0033:0x4429f8 [ 40.052879] RSP: 002b:00007ffe18948ab8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 40.052884] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 40.052886] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 40.052888] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 40.052890] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 40.052892] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 40.052895] [ 40.052898] Allocated by task 3467: [ 40.052902] save_stack+0x43/0xd0 [ 40.052905] kasan_kmalloc+0xad/0xe0 [ 40.052908] kmem_cache_alloc_trace+0x136/0x750 [ 40.052911] binder_get_thread+0x15d/0x700 [ 40.052913] binder_poll+0x4a/0x210 [ 40.052917] ep_item_poll.isra.10+0xf2/0x320 [ 40.052920] SyS_epoll_ctl+0x11c4/0x27b0 [ 40.052924] entry_SYSCALL_64_fastpath+0x23/0x9a [ 40.052924] [ 40.052926] Freed by task 3467: [ 40.052929] save_stack+0x43/0xd0 [ 40.052932] __kasan_slab_free+0x11a/0x170 [ 40.052935] kasan_slab_free+0xe/0x10 [ 40.052937] kfree+0xd9/0x260 [ 40.052940] binder_thread_dec_tmpref+0x17d/0x1e0 [ 40.052943] binder_thread_release+0x27d/0x540 [ 40.052945] binder_ioctl+0xa1b/0x10ee [ 40.052948] do_vfs_ioctl+0x190/0xfe0 [ 40.052951] SyS_ioctl+0x8f/0xc0 [ 40.052954] entry_SYSCALL_64_fastpath+0x23/0x9a [ 40.052955] [ 40.052957] The buggy address belongs to the object at ffff8801c8c1b840 [ 40.052957] which belongs to the cache kmalloc-512 of size 512 [ 40.052960] The buggy address is located 184 bytes inside of [ 40.052960] 512-byte region [ffff8801c8c1b840, ffff8801c8c1ba40) [ 40.052962] The buggy address belongs to the page: [ 40.052965] page:ffffea00072306c0 count:1 mapcount:0 mapping:ffff8801c8c1b0c0 index:0x0 [ 40.052968] flags: 0x2fffc0000000100(slab) [ 40.052974] raw: 02fffc0000000100 ffff8801c8c1b0c0 0000000000000000 0000000100000006 [ 40.052978] raw: ffffea0007269d20 ffff8801db001748 ffff8801db000940 0000000000000000 [ 40.052979] page dumped because: kasan: bad access detected [ 40.052980] [ 40.052981] Memory state around the buggy address: [ 40.052984] ffff8801c8c1b780: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 40.052986] ffff8801c8c1b800: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 40.052989] >ffff8801c8c1b880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.052990] ^ [ 40.052993] ffff8801c8c1b900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.052995] ffff8801c8c1b980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.052996] ================================================================== [ 40.052997] Disabling lock debugging due to kernel taint [ 40.053000] Kernel panic - not syncing: panic_on_warn set ... [ 40.053000] [ 40.053007] CPU: 0 PID: 3467 Comm: syzkaller256272 Tainted: G B 4.15.0-rc6-next-20180105+ #89 [ 40.053009] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.053010] Call Trace: [ 40.053014] dump_stack+0x137/0x198 [ 40.053018] ? __lock_acquire+0x3b60/0x3cf0 [ 40.053021] panic+0x1e4/0x41c [ 40.053025] ? refcount_error_report+0x214/0x214 [ 40.053029] ? add_taint+0x40/0x50 [ 40.053032] ? add_taint+0x1c/0x50 [ 40.053036] ? __lock_acquire+0x3c41/0x3cf0 [ 40.053039] kasan_end_report+0x50/0x50 [ 40.053043] kasan_report+0x148/0x360 [ 40.053048] __asan_report_load8_noabort+0x14/0x20 [ 40.053051] __lock_acquire+0x3c41/0x3cf0 [ 40.053055] ? bpf_prog_kallsyms_find+0x39/0x270 [ 40.053059] ? __lock_acquire+0x63e/0x3cf0 [ 40.053063] ? remove_wait_queue+0x24/0x1b0 [ 40.053068] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 40.053073] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 40.053077] ? __mutex_lock+0xec/0x1550 [ 40.053080] ? ep_free+0x72/0x230 [ 40.053084] ? save_stack+0x43/0xd0 [ 40.053087] ? __kasan_slab_free+0x11a/0x170 [ 40.053090] ? kasan_slab_free+0xe/0x10 [ 40.053094] lock_acquire+0x16b/0x420 [ 40.053097] ? lock_acquire+0x16b/0x420 [ 40.053101] ? remove_wait_queue+0x24/0x1b0 [ 40.053106] _raw_spin_lock_irqsave+0x96/0xc0 [ 40.053109] ? remove_wait_queue+0x24/0x1b0 [ 40.053113] remove_wait_queue+0x24/0x1b0 [ 40.053118] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 40.053122] ? ep_free+0x230/0x230 [ 40.053125] ep_free+0xae/0x230 [ 40.053129] ? ep_free+0x230/0x230 [ 40.053133] ep_eventpoll_release+0x44/0x60 [ 40.053136] __fput+0x291/0x6e0 [ 40.053140] ____fput+0x15/0x20 [ 40.053143] task_work_run+0x122/0x1a0 [ 40.053148] do_exit+0x7f4/0x2da0 [ 40.053151] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 40.053155] ? do_vfs_ioctl+0x439/0xfe0 [ 40.053159] ? mm_update_next_owner+0x690/0x690 [ 40.053163] ? ioctl_preallocate+0x1c0/0x1c0 [ 40.053167] ? __do_page_fault+0x3c3/0xca0 [ 40.053172] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 40.053177] do_group_exit+0x108/0x320 [ 40.053181] SyS_exit_group+0x1d/0x20 [ 40.053185] entry_SYSCALL_64_fastpath+0x23/0x9a [ 40.053187] RIP: 0033:0x4429f8 [ 40.053189] RSP: 002b:00007ffe18948ab8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 40.053192] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 40.053194] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 40.053196] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 40.053198] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 40.053200] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 40.073797] Dumping ftrace buffer: [ 40.073799] (ftrace buffer empty) [ 40.073801] Kernel Offset: disabled [ 40.816127] Rebooting in 86400 seconds..