[....] Starting enhanced syslogd: rsyslogd[ 10.101946] audit: type=1400 audit(1514350419.151:5): avc: denied { syslog } for pid=2993 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.873534] audit: type=1400 audit(1514350424.923:6): avc: denied { map } for pid=3133 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 'ci-upstream-mmots-kasan-gce-9,10.128.0.96' (ECDSA) to the list of known hosts. executing program [ 22.048441] audit: type=1400 audit(1514350431.098:7): avc: denied { map } for pid=3147 comm="syzkaller444366" path="/root/syzkaller444366052" 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.053587] ================================================================== [ 22.053597] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 22.053601] Read of size 8 at addr ffff8801c8fa90b8 by task syzkaller444366/3147 [ 22.053602] [ 22.053607] CPU: 0 PID: 3147 Comm: syzkaller444366 Not tainted 4.15.0-rc4-mm1+ #49 [ 22.053609] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.053611] Call Trace: [ 22.053618] dump_stack+0x194/0x257 [ 22.053623] ? arch_local_irq_restore+0x53/0x53 [ 22.053629] ? show_regs_print_info+0x18/0x18 [ 22.053633] ? print_irqtrace_events+0x270/0x270 [ 22.053637] ? __lock_acquire+0x664/0x3e00 [ 22.053641] ? __lock_acquire+0x3d4d/0x3e00 [ 22.053648] print_address_description+0x73/0x250 [ 22.053651] ? __lock_acquire+0x3d4d/0x3e00 [ 22.053655] kasan_report+0x23b/0x360 [ 22.053660] __asan_report_load8_noabort+0x14/0x20 [ 22.053664] __lock_acquire+0x3d4d/0x3e00 [ 22.053667] ? __lock_acquire+0x664/0x3e00 [ 22.053670] ? lock_downgrade+0x980/0x980 [ 22.053674] ? lock_downgrade+0x980/0x980 [ 22.053679] ? remove_wait_queue+0x81/0x350 [ 22.053685] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.053689] ? __lock_acquire+0x664/0x3e00 [ 22.053692] ? check_noncircular+0x20/0x20 [ 22.053700] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.053704] ? lock_acquire+0x1d5/0x580 [ 22.053708] ? lock_acquire+0x1d5/0x580 [ 22.053713] ? ep_free+0xf4/0x320 [ 22.053718] ? lock_release+0xa40/0xa40 [ 22.053723] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.053727] ? print_irqtrace_events+0x270/0x270 [ 22.053733] ? rcu_note_context_switch+0x710/0x710 [ 22.053737] ? __might_sleep+0x95/0x190 [ 22.053741] ? ep_free+0xf4/0x320 [ 22.053744] ? __mutex_lock+0x16f/0x1a80 [ 22.053747] ? ep_free+0xf4/0x320 [ 22.053752] ? print_irqtrace_events+0x270/0x270 [ 22.053754] ? ep_free+0xf4/0x320 [ 22.053760] lock_acquire+0x1d5/0x580 [ 22.053763] ? lock_acquire+0x1d5/0x580 [ 22.053766] ? remove_wait_queue+0x81/0x350 [ 22.053770] ? __lock_acquire+0x664/0x3e00 [ 22.053775] ? lock_release+0xa40/0xa40 [ 22.053780] ? lock_acquire+0x1d5/0x580 [ 22.053783] ? lock_acquire+0x1d5/0x580 [ 22.053787] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.053792] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.053795] ? remove_wait_queue+0x81/0x350 [ 22.053799] remove_wait_queue+0x81/0x350 [ 22.053804] ? add_wait_queue+0x290/0x290 [ 22.053808] ? rcutorture_record_progress+0x10/0x10 [ 22.053814] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.053820] ? __kernel_text_address+0xd/0x40 [ 22.053825] ? clear_tfile_check_list+0x370/0x370 [ 22.053829] ? check_noncircular+0x20/0x20 [ 22.053835] ? locks_remove_file+0x3fa/0x5a0 [ 22.053841] ep_free+0x13f/0x320 [ 22.053844] ? ep_remove+0x800/0x800 [ 22.053848] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.053852] ? ep_free+0x320/0x320 [ 22.053856] ep_eventpoll_release+0x44/0x60 [ 22.053861] __fput+0x327/0x7e0 [ 22.053866] ? fput+0x140/0x140 [ 22.053870] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.053875] ____fput+0x15/0x20 [ 22.053879] task_work_run+0x199/0x270 [ 22.053884] ? task_work_cancel+0x210/0x210 [ 22.053888] ? _raw_spin_unlock+0x22/0x30 [ 22.053892] ? switch_task_namespaces+0x87/0xc0 [ 22.053897] do_exit+0x9bb/0x1ad0 [ 22.053904] ? binder_ioctl+0x551/0x1417 [ 22.053907] ? mm_update_next_owner+0x930/0x930 [ 22.053912] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.053918] ? avc_ss_reset+0x110/0x110 [ 22.053922] ? mutex_unlock+0xd/0x10 [ 22.053926] ? SyS_epoll_ctl+0x30a/0x1a80 [ 22.053936] ? vmacache_update+0xfe/0x130 [ 22.053941] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.053944] ? up_read+0x1a/0x40 [ 22.053948] ? rcu_note_context_switch+0x710/0x710 [ 22.053952] ? __fd_install+0x288/0x740 [ 22.053957] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.053961] ? do_vfs_ioctl+0x486/0x1520 [ 22.053964] ? _cond_resched+0x14/0x30 [ 22.053969] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.053973] ? selinux_capable+0x40/0x40 [ 22.053977] ? __alloc_fd+0x750/0x750 [ 22.053982] do_group_exit+0x149/0x400 [ 22.053987] ? SyS_exit+0x30/0x30 [ 22.053991] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.053995] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.054004] SyS_exit_group+0x1d/0x20 [ 22.054008] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.054011] RIP: 0033:0x4429f8 [ 22.054013] RSP: 002b:00007ffdd206c538 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.054017] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.054019] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.054022] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.054023] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.054025] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.054031] [ 22.054033] Allocated by task 3147: [ 22.054036] save_stack+0x43/0xd0 [ 22.054039] kasan_kmalloc+0xad/0xe0 [ 22.054043] kmem_cache_alloc_trace+0x136/0x750 [ 22.054045] binder_get_thread+0x1cf/0x870 [ 22.054048] binder_poll+0x8c/0x390 [ 22.054051] ep_item_poll.isra.10+0xf2/0x320 [ 22.054054] ep_insert+0x6a2/0x1ac0 [ 22.054057] SyS_epoll_ctl+0x12bf/0x1a80 [ 22.054060] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.054061] [ 22.054062] Freed by task 3147: [ 22.054065] save_stack+0x43/0xd0 [ 22.054067] kasan_slab_free+0x71/0xc0 [ 22.054070] kfree+0xd6/0x260 [ 22.054073] binder_thread_dec_tmpref+0x27f/0x310 [ 22.054075] binder_thread_release+0x27d/0x540 [ 22.054078] binder_ioctl+0xc02/0x1417 [ 22.054080] do_vfs_ioctl+0x1b1/0x1520 [ 22.054083] SyS_ioctl+0x8f/0xc0 [ 22.054086] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.054086] [ 22.054089] The buggy address belongs to the object at ffff8801c8fa9000 [ 22.054089] which belongs to the cache kmalloc-512 of size 512 [ 22.054092] The buggy address is located 184 bytes inside of [ 22.054092] 512-byte region [ffff8801c8fa9000, ffff8801c8fa9200) [ 22.054093] The buggy address belongs to the page: [ 22.054096] page:ffffea000723ea40 count:1 mapcount:0 mapping:ffff8801c8fa9000 index:0x0 [ 22.054100] flags: 0x2fffc0000000100(slab) [ 22.054105] raw: 02fffc0000000100 ffff8801c8fa9000 0000000000000000 0000000100000006 [ 22.054109] raw: ffffea00072cfc20 ffffea000723ec20 ffff8801dac00940 0000000000000000 [ 22.054111] page dumped because: kasan: bad access detected [ 22.054112] [ 22.054113] Memory state around the buggy address: [ 22.054116] ffff8801c8fa8f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.054119] ffff8801c8fa9000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.054121] >ffff8801c8fa9080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.054123] ^ [ 22.054125] ffff8801c8fa9100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.054128] ffff8801c8fa9180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.054129] ================================================================== [ 22.054130] Disabling lock debugging due to kernel taint [ 22.054132] Kernel panic - not syncing: panic_on_warn set ... [ 22.054132] [ 22.054136] CPU: 0 PID: 3147 Comm: syzkaller444366 Tainted: G B 4.15.0-rc4-mm1+ #49 [ 22.054138] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.054139] Call Trace: [ 22.054143] dump_stack+0x194/0x257 [ 22.054147] ? arch_local_irq_restore+0x53/0x53 [ 22.054150] ? kasan_end_report+0x32/0x50 [ 22.054154] ? lock_downgrade+0x980/0x980 [ 22.054157] ? vsnprintf+0x1ed/0x1900 [ 22.054161] ? __lock_acquire+0x3c90/0x3e00 [ 22.054164] panic+0x1e4/0x41c [ 22.054168] ? refcount_error_report+0x214/0x214 [ 22.054172] ? add_taint+0x40/0x50 [ 22.054175] ? add_taint+0x1c/0x50 [ 22.054179] ? __lock_acquire+0x3d4d/0x3e00 [ 22.054182] kasan_end_report+0x50/0x50 [ 22.054186] kasan_report+0x148/0x360 [ 22.054190] __asan_report_load8_noabort+0x14/0x20 [ 22.054194] __lock_acquire+0x3d4d/0x3e00 [ 22.054197] ? __lock_acquire+0x664/0x3e00 [ 22.054200] ? lock_downgrade+0x980/0x980 [ 22.054203] ? lock_downgrade+0x980/0x980 [ 22.054207] ? remove_wait_queue+0x81/0x350 [ 22.054212] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.054216] ? __lock_acquire+0x664/0x3e00 [ 22.054219] ? check_noncircular+0x20/0x20 [ 22.054226] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.054230] ? lock_acquire+0x1d5/0x580 [ 22.054233] ? lock_acquire+0x1d5/0x580 [ 22.054236] ? ep_free+0xf4/0x320 [ 22.054241] ? lock_release+0xa40/0xa40 [ 22.054244] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.054248] ? print_irqtrace_events+0x270/0x270 [ 22.054252] ? rcu_note_context_switch+0x710/0x710 [ 22.054256] ? __might_sleep+0x95/0x190 [ 22.054259] ? ep_free+0xf4/0x320 [ 22.054262] ? __mutex_lock+0x16f/0x1a80 [ 22.054265] ? ep_free+0xf4/0x320 [ 22.054269] ? print_irqtrace_events+0x270/0x270 [ 22.054272] ? ep_free+0xf4/0x320 [ 22.054276] lock_acquire+0x1d5/0x580 [ 22.054279] ? lock_acquire+0x1d5/0x580 [ 22.054283] ? remove_wait_queue+0x81/0x350 [ 22.054286] ? __lock_acquire+0x664/0x3e00 [ 22.054290] ? lock_release+0xa40/0xa40 [ 22.054295] ? lock_acquire+0x1d5/0x580 [ 22.054298] ? lock_acquire+0x1d5/0x580 [ 22.054302] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.054306] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.054309] ? remove_wait_queue+0x81/0x350 [ 22.054313] remove_wait_queue+0x81/0x350 [ 22.054317] ? add_wait_queue+0x290/0x290 [ 22.054321] ? rcutorture_record_progress+0x10/0x10 [ 22.054326] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.054330] ? __kernel_text_address+0xd/0x40 [ 22.054335] ? clear_tfile_check_list+0x370/0x370 [ 22.054339] ? check_noncircular+0x20/0x20 [ 22.054343] ? locks_remove_file+0x3fa/0x5a0 [ 22.054348] ep_free+0x13f/0x320 [ 22.054352] ? ep_remove+0x800/0x800 [ 22.054355] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.054359] ? ep_free+0x320/0x320 [ 22.054363] ep_eventpoll_release+0x44/0x60 [ 22.054366] __fput+0x327/0x7e0 [ 22.054371] ? fput+0x140/0x140 [ 22.054374] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.054379] ____fput+0x15/0x20 [ 22.054383] task_work_run+0x199/0x270 [ 22.054387] ? task_work_cancel+0x210/0x210 [ 22.054390] ? _raw_spin_unlock+0x22/0x30 [ 22.054394] ? switch_task_namespaces+0x87/0xc0 [ 22.054398] do_exit+0x9bb/0x1ad0 [ 22.054402] ? binder_ioctl+0x551/0x1417 [ 22.054406] ? mm_update_next_owner+0x930/0x930 [ 22.054410] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.054414] ? avc_ss_reset+0x110/0x110 [ 22.054418] ? mutex_unlock+0xd/0x10 [ 22.054422] ? SyS_epoll_ctl+0x30a/0x1a80 [ 22.054430] ? vmacache_update+0xfe/0x130 [ 22.054434] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.054437] ? up_read+0x1a/0x40 [ 22.054441] ? rcu_note_context_switch+0x710/0x710 [ 22.054448] ? __fd_install+0x288/0x740 [ 22.054453] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.054456] ? do_vfs_ioctl+0x486/0x1520 [ 22.054459] ? _cond_resched+0x14/0x30 [ 22.054464] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.054468] ? selinux_capable+0x40/0x40 [ 22.054471] ? __alloc_fd+0x750/0x750 [ 22.054476] do_group_exit+0x149/0x400 [ 22.054480] ? SyS_exit+0x30/0x30 [ 22.054484] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.054488] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.054492] SyS_exit_group+0x1d/0x20 [ 22.054496] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.054498] RIP: 0033:0x4429f8 [ 22.054500] RSP: 002b:00007ffdd206c538 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.054503] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.054505] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.054507] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.054509] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.054511] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.074321] Dumping ftrace buffer: [ 22.074324] (ftrace buffer empty) [ 22.074326] Kernel Offset: disabled [ 23.206543] Rebooting in 86400 seconds..