[?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. [ 11.568411] audit: type=1400 audit(1515011188.785:6): avc: denied { map } for pid=3452 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 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.15.227' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 29.186431] audit: type=1400 audit(1515011206.402:7): avc: denied { map } for pid=3469 comm="syzkaller626053" path="/root/syzkaller626053459" 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 [ 29.191441] ================================================================== [ 29.191454] BUG: KASAN: use-after-free in __lock_acquire+0x3c41/0x3cf0 [ 29.191457] Read of size 8 at addr ffff8801ca294378 by task syzkaller626053/3469 [ 29.191458] [ 29.191463] CPU: 0 PID: 3469 Comm: syzkaller626053 Not tainted 4.15.0-rc6-mm1+ #50 [ 29.191465] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.191467] Call Trace: [ 29.191474] dump_stack+0x137/0x198 [ 29.191478] ? __lock_acquire+0x3c41/0x3cf0 [ 29.191486] print_address_description+0x73/0x250 [ 29.191490] ? __lock_acquire+0x3c41/0x3cf0 [ 29.191494] kasan_report+0x23b/0x360 [ 29.191498] __asan_report_load8_noabort+0x14/0x20 [ 29.191502] __lock_acquire+0x3c41/0x3cf0 [ 29.191508] ? bpf_prog_kallsyms_find+0x39/0x270 [ 29.191512] ? __lock_acquire+0x63e/0x3cf0 [ 29.191517] ? remove_wait_queue+0x24/0x1b0 [ 29.191522] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.191527] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.191534] ? __mutex_lock+0xec/0x1550 [ 29.191539] ? ep_free+0x72/0x230 [ 29.191543] ? save_stack+0x43/0xd0 [ 29.191546] ? __kasan_slab_free+0x11a/0x170 [ 29.191550] ? kasan_slab_free+0xe/0x10 [ 29.191554] lock_acquire+0x16b/0x420 [ 29.191557] ? lock_acquire+0x16b/0x420 [ 29.191561] ? remove_wait_queue+0x24/0x1b0 [ 29.191566] _raw_spin_lock_irqsave+0x96/0xc0 [ 29.191570] ? remove_wait_queue+0x24/0x1b0 [ 29.191574] remove_wait_queue+0x24/0x1b0 [ 29.191579] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 29.191583] ? ep_free+0x230/0x230 [ 29.191586] ep_free+0xae/0x230 [ 29.191590] ? ep_free+0x230/0x230 [ 29.191594] ep_eventpoll_release+0x44/0x60 [ 29.191599] __fput+0x291/0x6e0 [ 29.191603] ____fput+0x15/0x20 [ 29.191607] task_work_run+0x122/0x1a0 [ 29.191613] do_exit+0x7f4/0x2da0 [ 29.191620] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 29.191624] ? do_vfs_ioctl+0x439/0xfe0 [ 29.191629] ? mm_update_next_owner+0x690/0x690 [ 29.191632] ? ioctl_preallocate+0x1c0/0x1c0 [ 29.191637] ? __do_page_fault+0x3c3/0xca0 [ 29.191643] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 29.191647] do_group_exit+0x108/0x320 [ 29.191652] SyS_exit_group+0x1d/0x20 [ 29.191656] entry_SYSCALL_64_fastpath+0x23/0x9a [ 29.191659] RIP: 0033:0x4429f8 [ 29.191661] RSP: 002b:00007fff473756c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 29.191665] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 29.191667] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 29.191669] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 29.191679] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 29.191681] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 29.191685] [ 29.191687] Allocated by task 3469: [ 29.191691] save_stack+0x43/0xd0 [ 29.191694] kasan_kmalloc+0xad/0xe0 [ 29.191698] kmem_cache_alloc_trace+0x136/0x750 [ 29.191700] binder_get_thread+0x15d/0x700 [ 29.191703] binder_poll+0x4a/0x210 [ 29.191706] ep_item_poll.isra.10+0xf2/0x320 [ 29.191710] SyS_epoll_ctl+0x11c4/0x27b0 [ 29.191713] entry_SYSCALL_64_fastpath+0x23/0x9a [ 29.191714] [ 29.191715] Freed by task 3469: [ 29.191718] save_stack+0x43/0xd0 [ 29.191721] __kasan_slab_free+0x11a/0x170 [ 29.191724] kasan_slab_free+0xe/0x10 [ 29.191727] kfree+0xd9/0x260 [ 29.191729] binder_thread_dec_tmpref+0x17d/0x1e0 [ 29.191732] binder_thread_release+0x27d/0x540 [ 29.191735] binder_ioctl+0xa1b/0x10ee [ 29.191737] do_vfs_ioctl+0x190/0xfe0 [ 29.191740] SyS_ioctl+0x8f/0xc0 [ 29.191743] entry_SYSCALL_64_fastpath+0x23/0x9a [ 29.191744] [ 29.191747] The buggy address belongs to the object at ffff8801ca2942c0 [ 29.191747] which belongs to the cache kmalloc-512 of size 512 [ 29.191750] The buggy address is located 184 bytes inside of [ 29.191750] 512-byte region [ffff8801ca2942c0, ffff8801ca2944c0) [ 29.191751] The buggy address belongs to the page: [ 29.191754] page:ffffea000728a500 count:1 mapcount:0 mapping:ffff8801ca294040 index:0x0 [ 29.191757] flags: 0x2fffc0000000100(slab) [ 29.191763] raw: 02fffc0000000100 ffff8801ca294040 0000000000000000 0000000100000006 [ 29.191767] raw: ffffea0007218160 ffffea000728a5a0 ffff8801db000940 0000000000000000 [ 29.191768] page dumped because: kasan: bad access detected [ 29.191769] [ 29.191770] Memory state around the buggy address: [ 29.191772] ffff8801ca294200: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 29.191775] ffff8801ca294280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 29.191777] >ffff8801ca294300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.191779] ^ [ 29.191781] ffff8801ca294380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.191784] ffff8801ca294400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.191785] ================================================================== [ 29.191786] Disabling lock debugging due to kernel taint [ 29.191789] Kernel panic - not syncing: panic_on_warn set ... [ 29.191789] [ 29.191792] CPU: 0 PID: 3469 Comm: syzkaller626053 Tainted: G B 4.15.0-rc6-mm1+ #50 [ 29.191794] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.191795] Call Trace: [ 29.191799] dump_stack+0x137/0x198 [ 29.191803] ? __lock_acquire+0x3bc0/0x3cf0 [ 29.191807] panic+0x1e4/0x41c [ 29.191810] ? refcount_error_report+0x214/0x214 [ 29.191814] ? add_taint+0x40/0x50 [ 29.191817] ? add_taint+0x1c/0x50 [ 29.191821] ? __lock_acquire+0x3c41/0x3cf0 [ 29.191825] kasan_end_report+0x50/0x50 [ 29.191828] kasan_report+0x148/0x360 [ 29.191833] __asan_report_load8_noabort+0x14/0x20 [ 29.191836] __lock_acquire+0x3c41/0x3cf0 [ 29.191841] ? bpf_prog_kallsyms_find+0x39/0x270 [ 29.191845] ? __lock_acquire+0x63e/0x3cf0 [ 29.191848] ? remove_wait_queue+0x24/0x1b0 [ 29.191853] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.191858] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.191862] ? __mutex_lock+0xec/0x1550 [ 29.191866] ? ep_free+0x72/0x230 [ 29.191869] ? save_stack+0x43/0xd0 [ 29.191872] ? __kasan_slab_free+0x11a/0x170 [ 29.191875] ? kasan_slab_free+0xe/0x10 [ 29.191879] lock_acquire+0x16b/0x420 [ 29.191883] ? lock_acquire+0x16b/0x420 [ 29.191886] ? remove_wait_queue+0x24/0x1b0 [ 29.191891] _raw_spin_lock_irqsave+0x96/0xc0 [ 29.191895] ? remove_wait_queue+0x24/0x1b0 [ 29.191898] remove_wait_queue+0x24/0x1b0 [ 29.191903] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 29.191907] ? ep_free+0x230/0x230 [ 29.191911] ep_free+0xae/0x230 [ 29.191914] ? ep_free+0x230/0x230 [ 29.191918] ep_eventpoll_release+0x44/0x60 [ 29.191921] __fput+0x291/0x6e0 [ 29.191925] ____fput+0x15/0x20 [ 29.191928] task_work_run+0x122/0x1a0 [ 29.191933] do_exit+0x7f4/0x2da0 [ 29.191937] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 29.191940] ? do_vfs_ioctl+0x439/0xfe0 [ 29.191945] ? mm_update_next_owner+0x690/0x690 [ 29.191948] ? ioctl_preallocate+0x1c0/0x1c0 [ 29.191952] ? __do_page_fault+0x3c3/0xca0 [ 29.191958] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 29.191962] do_group_exit+0x108/0x320 [ 29.191966] SyS_exit_group+0x1d/0x20 [ 29.191970] entry_SYSCALL_64_fastpath+0x23/0x9a [ 29.191972] RIP: 0033:0x4429f8 [ 29.191974] RSP: 002b:00007fff473756c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 29.191978] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 29.191980] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 29.191982] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 29.191983] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 29.191985] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 29.212550] Dumping ftrace buffer: [ 29.212553] (ftrace buffer empty) [ 29.212555] Kernel Offset: disabled [ 29.953334] Rebooting in 86400 seconds..