[....] Starting enhanced syslogd: rsyslogd[ 9.954941] audit: type=1400 audit(1515135871.505:5): avc: denied { syslog } for pid=3312 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: [ 12.135602] audit: type=1400 audit(1515135873.686: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.246' (ECDSA) to the list of known hosts. executing program [ 18.274469] audit: type=1400 audit(1515135879.825:7): avc: denied { map } for pid=3461 comm="syzkaller002188" path="/root/syzkaller002188816" 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 [ 18.280263] ================================================================== [ 18.280279] BUG: KASAN: use-after-free in __lock_acquire+0x3c41/0x3cf0 [ 18.280284] Read of size 8 at addr ffff8801cd3743f8 by task syzkaller002188/3461 [ 18.280285] [ 18.280292] CPU: 1 PID: 3461 Comm: syzkaller002188 Not tainted 4.15.0-rc6-mm1+ #50 [ 18.280296] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 18.280297] Call Trace: [ 18.280306] dump_stack+0x137/0x198 [ 18.280313] ? __lock_acquire+0x3c41/0x3cf0 [ 18.280322] print_address_description+0x73/0x250 [ 18.280328] ? __lock_acquire+0x3c41/0x3cf0 [ 18.280335] kasan_report+0x23b/0x360 [ 18.280342] __asan_report_load8_noabort+0x14/0x20 [ 18.280348] __lock_acquire+0x3c41/0x3cf0 [ 18.280357] ? bpf_prog_kallsyms_find+0x39/0x270 [ 18.280364] ? __lock_acquire+0x63e/0x3cf0 [ 18.280370] ? remove_wait_queue+0x24/0x1b0 [ 18.280379] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 18.280388] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 18.280397] ? __mutex_lock+0xec/0x1550 [ 18.280405] ? ep_free+0x72/0x230 [ 18.280410] ? save_stack+0x43/0xd0 [ 18.280415] ? __kasan_slab_free+0x11a/0x170 [ 18.280421] ? kasan_slab_free+0xe/0x10 [ 18.280428] lock_acquire+0x16b/0x420 [ 18.280433] ? lock_acquire+0x16b/0x420 [ 18.280439] ? remove_wait_queue+0x24/0x1b0 [ 18.280448] _raw_spin_lock_irqsave+0x96/0xc0 [ 18.280454] ? remove_wait_queue+0x24/0x1b0 [ 18.280460] remove_wait_queue+0x24/0x1b0 [ 18.280469] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 18.280476] ? ep_free+0x230/0x230 [ 18.280482] ep_free+0xae/0x230 [ 18.280488] ? ep_free+0x230/0x230 [ 18.280494] ep_eventpoll_release+0x44/0x60 [ 18.280500] __fput+0x291/0x6e0 [ 18.280508] ____fput+0x15/0x20 [ 18.280513] task_work_run+0x122/0x1a0 [ 18.280522] do_exit+0x7f4/0x2da0 [ 18.280529] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 18.280536] ? do_vfs_ioctl+0x439/0xfe0 [ 18.280544] ? mm_update_next_owner+0x690/0x690 [ 18.280550] ? ioctl_preallocate+0x1c0/0x1c0 [ 18.280557] ? __do_page_fault+0x3c3/0xca0 [ 18.280567] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 18.280574] do_group_exit+0x108/0x320 [ 18.280582] SyS_exit_group+0x1d/0x20 [ 18.280588] entry_SYSCALL_64_fastpath+0x23/0x9a [ 18.280593] RIP: 0033:0x4429f8 [ 18.280596] RSP: 002b:00007ffd2a0b5828 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 18.280603] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 18.280606] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 18.280609] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 18.280613] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 18.280616] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 18.280623] [ 18.280625] Allocated by task 3461: [ 18.280632] save_stack+0x43/0xd0 [ 18.280637] kasan_kmalloc+0xad/0xe0 [ 18.280642] kmem_cache_alloc_trace+0x136/0x750 [ 18.280646] binder_get_thread+0x15d/0x700 [ 18.280650] binder_poll+0x4a/0x210 [ 18.280655] ep_item_poll.isra.10+0xf2/0x320 [ 18.280661] SyS_epoll_ctl+0x11c4/0x27b0 [ 18.280666] entry_SYSCALL_64_fastpath+0x23/0x9a [ 18.280667] [ 18.280669] Freed by task 3461: [ 18.280674] save_stack+0x43/0xd0 [ 18.280679] __kasan_slab_free+0x11a/0x170 [ 18.280684] kasan_slab_free+0xe/0x10 [ 18.280688] kfree+0xd9/0x260 [ 18.280693] binder_thread_dec_tmpref+0x17d/0x1e0 [ 18.280697] binder_thread_release+0x27d/0x540 [ 18.280701] binder_ioctl+0xa1b/0x10ee [ 18.280706] do_vfs_ioctl+0x190/0xfe0 [ 18.280710] SyS_ioctl+0x8f/0xc0 [ 18.280716] entry_SYSCALL_64_fastpath+0x23/0x9a [ 18.280717] [ 18.280721] The buggy address belongs to the object at ffff8801cd374340 [ 18.280721] which belongs to the cache kmalloc-512 of size 512 [ 18.280726] The buggy address is located 184 bytes inside of [ 18.280726] 512-byte region [ffff8801cd374340, ffff8801cd374540) [ 18.280727] The buggy address belongs to the page: [ 18.280732] page:ffffea000734dd00 count:1 mapcount:0 mapping:ffff8801cd3740c0 index:0x0 [ 18.280737] flags: 0x2fffc0000000100(slab) [ 18.280745] raw: 02fffc0000000100 ffff8801cd3740c0 0000000000000000 0000000100000006 [ 18.280752] raw: ffffea00073319e0 ffffea0007378ee0 ffff8801db000940 0000000000000000 [ 18.280754] page dumped because: kasan: bad access detected [ 18.280755] [ 18.280757] Memory state around the buggy address: [ 18.280761] ffff8801cd374280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 18.280766] ffff8801cd374300: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 18.280770] >ffff8801cd374380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.280772] ^ [ 18.280777] ffff8801cd374400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.280781] ffff8801cd374480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.280783] ================================================================== [ 18.280784] Disabling lock debugging due to kernel taint [ 18.280787] Kernel panic - not syncing: panic_on_warn set ... [ 18.280787] [ 18.280793] CPU: 1 PID: 3461 Comm: syzkaller002188 Tainted: G B 4.15.0-rc6-mm1+ #50 [ 18.280796] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 18.280798] Call Trace: [ 18.280804] dump_stack+0x137/0x198 [ 18.280811] ? __lock_acquire+0x3bc0/0x3cf0 [ 18.280816] panic+0x1e4/0x41c [ 18.280822] ? refcount_error_report+0x214/0x214 [ 18.280829] ? add_taint+0x40/0x50 [ 18.280834] ? add_taint+0x1c/0x50 [ 18.280841] ? __lock_acquire+0x3c41/0x3cf0 [ 18.280847] kasan_end_report+0x50/0x50 [ 18.280853] kasan_report+0x148/0x360 [ 18.280860] __asan_report_load8_noabort+0x14/0x20 [ 18.280866] __lock_acquire+0x3c41/0x3cf0 [ 18.280872] ? bpf_prog_kallsyms_find+0x39/0x270 [ 18.280880] ? __lock_acquire+0x63e/0x3cf0 [ 18.280885] ? remove_wait_queue+0x24/0x1b0 [ 18.280894] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 18.280902] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 18.280910] ? __mutex_lock+0xec/0x1550 [ 18.280915] ? ep_free+0x72/0x230 [ 18.280920] ? save_stack+0x43/0xd0 [ 18.280925] ? __kasan_slab_free+0x11a/0x170 [ 18.280931] ? kasan_slab_free+0xe/0x10 [ 18.280937] lock_acquire+0x16b/0x420 [ 18.280942] ? lock_acquire+0x16b/0x420 [ 18.280948] ? remove_wait_queue+0x24/0x1b0 [ 18.280957] _raw_spin_lock_irqsave+0x96/0xc0 [ 18.280963] ? remove_wait_queue+0x24/0x1b0 [ 18.280969] remove_wait_queue+0x24/0x1b0 [ 18.280977] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 18.280984] ? ep_free+0x230/0x230 [ 18.280989] ep_free+0xae/0x230 [ 18.280996] ? ep_free+0x230/0x230 [ 18.281009] ep_eventpoll_release+0x44/0x60 [ 18.281014] __fput+0x291/0x6e0 [ 18.281022] ____fput+0x15/0x20 [ 18.281027] task_work_run+0x122/0x1a0 [ 18.281034] do_exit+0x7f4/0x2da0 [ 18.281041] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 18.281047] ? do_vfs_ioctl+0x439/0xfe0 [ 18.281054] ? mm_update_next_owner+0x690/0x690 [ 18.281059] ? ioctl_preallocate+0x1c0/0x1c0 [ 18.281066] ? __do_page_fault+0x3c3/0xca0 [ 18.281076] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 18.281083] do_group_exit+0x108/0x320 [ 18.281090] SyS_exit_group+0x1d/0x20 [ 18.281096] entry_SYSCALL_64_fastpath+0x23/0x9a [ 18.281100] RIP: 0033:0x4429f8 [ 18.281102] RSP: 002b:00007ffd2a0b5828 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 18.281108] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 18.281111] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 18.281114] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 18.281118] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 18.281121] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 18.301113] Dumping ftrace buffer: [ 18.301115] (ftrace buffer empty) [ 18.301118] Kernel Offset: disabled [ 19.043819] Rebooting in 86400 seconds..