[....] Starting enhanced syslogd: rsyslogd[ 11.451232] audit: type=1400 audit(1515312803.380: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 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.579622] audit: type=1400 audit(1515312810.509:6): avc: denied { map } for pid=3453 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.57' (ECDSA) to the list of known hosts. executing program [ 24.703660] audit: type=1400 audit(1515312816.633:7): avc: denied { map } for pid=3467 comm="syzkaller140265" path="/root/syzkaller140265504" 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 [ 24.709657] ================================================================== [ 24.709673] BUG: KASAN: use-after-free in __lock_acquire+0x3c41/0x3cf0 [ 24.709679] Read of size 8 at addr ffff8801c69ab3f8 by task syzkaller140265/3467 [ 24.709680] [ 24.709687] CPU: 0 PID: 3467 Comm: syzkaller140265 Not tainted 4.15.0-rc6-mm1+ #51 [ 24.709690] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.709692] Call Trace: [ 24.709702] dump_stack+0x137/0x198 [ 24.709708] ? __lock_acquire+0x3c41/0x3cf0 [ 24.709723] print_address_description+0x73/0x250 [ 24.709729] ? __lock_acquire+0x3c41/0x3cf0 [ 24.709735] kasan_report+0x23b/0x360 [ 24.709743] __asan_report_load8_noabort+0x14/0x20 [ 24.709749] __lock_acquire+0x3c41/0x3cf0 [ 24.709758] ? bpf_prog_kallsyms_find+0x39/0x270 [ 24.709765] ? __lock_acquire+0x63e/0x3cf0 [ 24.709772] ? remove_wait_queue+0x24/0x1b0 [ 24.709781] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.709790] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.709799] ? __mutex_lock+0xec/0x1550 [ 24.709807] ? ep_free+0x72/0x230 [ 24.709812] ? save_stack+0x43/0xd0 [ 24.709818] ? __kasan_slab_free+0x11a/0x170 [ 24.709823] ? kasan_slab_free+0xe/0x10 [ 24.709831] lock_acquire+0x16b/0x420 [ 24.709836] ? lock_acquire+0x16b/0x420 [ 24.709842] ? remove_wait_queue+0x24/0x1b0 [ 24.709851] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.709857] ? remove_wait_queue+0x24/0x1b0 [ 24.709863] remove_wait_queue+0x24/0x1b0 [ 24.709872] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 24.709879] ? ep_free+0x230/0x230 [ 24.709884] ep_free+0xae/0x230 [ 24.709891] ? ep_free+0x230/0x230 [ 24.709897] ep_eventpoll_release+0x44/0x60 [ 24.709903] __fput+0x291/0x6e0 [ 24.709911] ____fput+0x15/0x20 [ 24.709917] task_work_run+0x122/0x1a0 [ 24.709927] do_exit+0x7f4/0x2da0 [ 24.709936] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 24.709943] ? do_vfs_ioctl+0x439/0xfe0 [ 24.709949] ? mm_update_next_owner+0x690/0x690 [ 24.709955] ? ioctl_preallocate+0x1c0/0x1c0 [ 24.709963] ? __do_page_fault+0x3c3/0xca0 [ 24.709973] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 24.709980] do_group_exit+0x108/0x320 [ 24.709987] SyS_exit_group+0x1d/0x20 [ 24.709994] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.709998] RIP: 0033:0x4429f8 [ 24.710005] RSP: 002b:00007ffc3e023b98 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.710011] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.710015] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.710018] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.710021] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.710024] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.710031] [ 24.710034] Allocated by task 3467: [ 24.710041] save_stack+0x43/0xd0 [ 24.710046] kasan_kmalloc+0xad/0xe0 [ 24.710051] kmem_cache_alloc_trace+0x136/0x750 [ 24.710056] binder_get_thread+0x15d/0x700 [ 24.710060] binder_poll+0x4a/0x210 [ 24.710065] ep_item_poll.isra.10+0xf2/0x320 [ 24.710071] SyS_epoll_ctl+0x11c4/0x27b0 [ 24.710077] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.710078] [ 24.710080] Freed by task 3467: [ 24.710085] save_stack+0x43/0xd0 [ 24.710090] __kasan_slab_free+0x11a/0x170 [ 24.710095] kasan_slab_free+0xe/0x10 [ 24.710099] kfree+0xd9/0x260 [ 24.710104] binder_thread_dec_tmpref+0x17d/0x1e0 [ 24.710108] binder_thread_release+0x27d/0x540 [ 24.710112] binder_ioctl+0xa1b/0x10ee [ 24.710117] do_vfs_ioctl+0x190/0xfe0 [ 24.710122] SyS_ioctl+0x8f/0xc0 [ 24.710127] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.710128] [ 24.710132] The buggy address belongs to the object at ffff8801c69ab340 [ 24.710132] which belongs to the cache kmalloc-512 of size 512 [ 24.710137] The buggy address is located 184 bytes inside of [ 24.710137] 512-byte region [ffff8801c69ab340, ffff8801c69ab540) [ 24.710138] The buggy address belongs to the page: [ 24.710143] page:ffffea00071a6ac0 count:1 mapcount:0 mapping:ffff8801c69ab0c0 index:0x0 [ 24.710148] flags: 0x2fffc0000000100(slab) [ 24.710157] raw: 02fffc0000000100 ffff8801c69ab0c0 0000000000000000 0000000100000006 [ 24.710163] raw: ffffea00071dd4e0 ffffea00071c1de0 ffff8801db000940 0000000000000000 [ 24.710165] page dumped because: kasan: bad access detected [ 24.710166] [ 24.710168] Memory state around the buggy address: [ 24.710173] ffff8801c69ab280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.710177] ffff8801c69ab300: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 24.710181] >ffff8801c69ab380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.710184] ^ [ 24.710188] ffff8801c69ab400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.710192] ffff8801c69ab480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.710193] ================================================================== [ 24.710195] Disabling lock debugging due to kernel taint [ 24.710198] Kernel panic - not syncing: panic_on_warn set ... [ 24.710198] [ 24.710204] CPU: 0 PID: 3467 Comm: syzkaller140265 Tainted: G B 4.15.0-rc6-mm1+ #51 [ 24.710207] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.710209] Call Trace: [ 24.710215] dump_stack+0x137/0x198 [ 24.710221] ? __lock_acquire+0x3bc0/0x3cf0 [ 24.710227] panic+0x1e4/0x41c [ 24.710232] ? refcount_error_report+0x214/0x214 [ 24.710239] ? add_taint+0x40/0x50 [ 24.710244] ? add_taint+0x1c/0x50 [ 24.710251] ? __lock_acquire+0x3c41/0x3cf0 [ 24.710257] kasan_end_report+0x50/0x50 [ 24.710263] kasan_report+0x148/0x360 [ 24.710271] __asan_report_load8_noabort+0x14/0x20 [ 24.710277] __lock_acquire+0x3c41/0x3cf0 [ 24.710283] ? bpf_prog_kallsyms_find+0x39/0x270 [ 24.710290] ? __lock_acquire+0x63e/0x3cf0 [ 24.710296] ? remove_wait_queue+0x24/0x1b0 [ 24.710304] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.710313] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.710320] ? __mutex_lock+0xec/0x1550 [ 24.710326] ? ep_free+0x72/0x230 [ 24.710331] ? save_stack+0x43/0xd0 [ 24.710337] ? __kasan_slab_free+0x11a/0x170 [ 24.710342] ? kasan_slab_free+0xe/0x10 [ 24.710349] lock_acquire+0x16b/0x420 [ 24.710354] ? lock_acquire+0x16b/0x420 [ 24.710360] ? remove_wait_queue+0x24/0x1b0 [ 24.710369] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.710375] ? remove_wait_queue+0x24/0x1b0 [ 24.710381] remove_wait_queue+0x24/0x1b0 [ 24.710389] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 24.710396] ? ep_free+0x230/0x230 [ 24.710401] ep_free+0xae/0x230 [ 24.710407] ? ep_free+0x230/0x230 [ 24.710413] ep_eventpoll_release+0x44/0x60 [ 24.710418] __fput+0x291/0x6e0 [ 24.710426] ____fput+0x15/0x20 [ 24.710431] task_work_run+0x122/0x1a0 [ 24.710439] do_exit+0x7f4/0x2da0 [ 24.710445] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 24.710452] ? do_vfs_ioctl+0x439/0xfe0 [ 24.710458] ? mm_update_next_owner+0x690/0x690 [ 24.710464] ? ioctl_preallocate+0x1c0/0x1c0 [ 24.710471] ? __do_page_fault+0x3c3/0xca0 [ 24.710480] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 24.710487] do_group_exit+0x108/0x320 [ 24.710494] SyS_exit_group+0x1d/0x20 [ 24.710501] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.710504] RIP: 0033:0x4429f8 [ 24.710507] RSP: 002b:00007ffc3e023b98 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.710512] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.710515] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.710519] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.710522] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.710525] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.730000] Dumping ftrace buffer: [ 24.730003] (ftrace buffer empty) [ 24.730006] Kernel Offset: disabled [ 25.470436] Rebooting in 86400 seconds..