[....] Starting enhanced syslogd: rsyslogd[ 10.384617] audit: type=1400 audit(1514079356.960:5): avc: denied { syslog } for pid=2990 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: [ 16.115690] audit: type=1400 audit(1514079362.691:6): avc: denied { map } for pid=3130 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-5,10.128.0.18' (ECDSA) to the list of known hosts. executing program [ 22.407396] audit: type=1400 audit(1514079368.983:7): avc: denied { map } for pid=3144 comm="syzkaller203928" path="/root/syzkaller203928068" 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.411368] ================================================================== [ 22.411379] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 22.411383] Read of size 8 at addr ffff8801cecbb3b8 by task syzkaller203928/3144 [ 22.411384] [ 22.411388] CPU: 1 PID: 3144 Comm: syzkaller203928 Not tainted 4.15.0-rc4-mm1+ #49 [ 22.411390] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.411392] Call Trace: [ 22.411398] dump_stack+0x194/0x257 [ 22.411403] ? arch_local_irq_restore+0x53/0x53 [ 22.411409] ? show_regs_print_info+0x18/0x18 [ 22.411412] ? print_irqtrace_events+0x270/0x270 [ 22.411416] ? __lock_acquire+0x664/0x3e00 [ 22.411420] ? __lock_acquire+0x3d4d/0x3e00 [ 22.411426] print_address_description+0x73/0x250 [ 22.411430] ? __lock_acquire+0x3d4d/0x3e00 [ 22.411434] kasan_report+0x23b/0x360 [ 22.411439] __asan_report_load8_noabort+0x14/0x20 [ 22.411442] __lock_acquire+0x3d4d/0x3e00 [ 22.411446] ? __lock_acquire+0x664/0x3e00 [ 22.411449] ? lock_downgrade+0x980/0x980 [ 22.411452] ? lock_downgrade+0x980/0x980 [ 22.411458] ? remove_wait_queue+0x81/0x350 [ 22.411463] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.411467] ? __lock_acquire+0x664/0x3e00 [ 22.411471] ? check_noncircular+0x20/0x20 [ 22.411478] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.411483] ? lock_acquire+0x1d5/0x580 [ 22.411486] ? lock_acquire+0x1d5/0x580 [ 22.411490] ? ep_free+0xf4/0x320 [ 22.411495] ? lock_release+0xa40/0xa40 [ 22.411500] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.411504] ? print_irqtrace_events+0x270/0x270 [ 22.411509] ? rcu_note_context_switch+0x710/0x710 [ 22.411514] ? __might_sleep+0x95/0x190 [ 22.411517] ? ep_free+0xf4/0x320 [ 22.411521] ? __mutex_lock+0x16f/0x1a80 [ 22.411524] ? ep_free+0xf4/0x320 [ 22.411528] ? print_irqtrace_events+0x270/0x270 [ 22.411531] ? ep_free+0xf4/0x320 [ 22.411536] lock_acquire+0x1d5/0x580 [ 22.411539] ? lock_acquire+0x1d5/0x580 [ 22.411543] ? remove_wait_queue+0x81/0x350 [ 22.411546] ? __lock_acquire+0x664/0x3e00 [ 22.411551] ? lock_release+0xa40/0xa40 [ 22.411556] ? lock_acquire+0x1d5/0x580 [ 22.411559] ? lock_acquire+0x1d5/0x580 [ 22.411563] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.411568] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.411571] ? remove_wait_queue+0x81/0x350 [ 22.411575] remove_wait_queue+0x81/0x350 [ 22.411580] ? add_wait_queue+0x290/0x290 [ 22.411584] ? rcutorture_record_progress+0x10/0x10 [ 22.411590] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.411595] ? __kernel_text_address+0xd/0x40 [ 22.411600] ? clear_tfile_check_list+0x370/0x370 [ 22.411605] ? check_noncircular+0x20/0x20 [ 22.411610] ? locks_remove_file+0x3fa/0x5a0 [ 22.411616] ep_free+0x13f/0x320 [ 22.411619] ? ep_remove+0x800/0x800 [ 22.411623] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.411627] ? ep_free+0x320/0x320 [ 22.411631] ep_eventpoll_release+0x44/0x60 [ 22.411636] __fput+0x327/0x7e0 [ 22.411641] ? fput+0x140/0x140 [ 22.411645] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.411650] ____fput+0x15/0x20 [ 22.411654] task_work_run+0x199/0x270 [ 22.411658] ? task_work_cancel+0x210/0x210 [ 22.411662] ? _raw_spin_unlock+0x22/0x30 [ 22.411665] ? switch_task_namespaces+0x87/0xc0 [ 22.411671] do_exit+0x9bb/0x1ad0 [ 22.411677] ? binder_ioctl+0x551/0x1417 [ 22.411680] ? mm_update_next_owner+0x930/0x930 [ 22.411685] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.411691] ? avc_ss_reset+0x110/0x110 [ 22.411696] ? mutex_unlock+0xd/0x10 [ 22.411699] ? SyS_epoll_ctl+0x30a/0x1a80 [ 22.411711] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.411714] ? up_read+0x1a/0x40 [ 22.411718] ? rcu_note_context_switch+0x710/0x710 [ 22.411722] ? __fd_install+0x288/0x740 [ 22.411727] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.411730] ? do_vfs_ioctl+0x486/0x1520 [ 22.411734] ? _cond_resched+0x14/0x30 [ 22.411738] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.411743] ? selinux_capable+0x40/0x40 [ 22.411747] ? __alloc_fd+0x750/0x750 [ 22.411752] do_group_exit+0x149/0x400 [ 22.411756] ? SyS_exit+0x30/0x30 [ 22.411760] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.411765] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.411770] SyS_exit_group+0x1d/0x20 [ 22.411774] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.411776] RIP: 0033:0x4429f8 [ 22.411778] RSP: 002b:00007fff4d6e2078 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.411782] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.411784] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.411786] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.411788] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.411790] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.411795] [ 22.411797] Allocated by task 3144: [ 22.411801] save_stack+0x43/0xd0 [ 22.411804] kasan_kmalloc+0xad/0xe0 [ 22.411807] kmem_cache_alloc_trace+0x136/0x750 [ 22.411810] binder_get_thread+0x1cf/0x870 [ 22.411812] binder_poll+0x8c/0x390 [ 22.411815] ep_item_poll.isra.10+0xf2/0x320 [ 22.411818] ep_insert+0x6a2/0x1ac0 [ 22.411821] SyS_epoll_ctl+0x12bf/0x1a80 [ 22.411824] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.411825] [ 22.411826] Freed by task 3144: [ 22.411829] save_stack+0x43/0xd0 [ 22.411832] kasan_slab_free+0x71/0xc0 [ 22.411834] kfree+0xd6/0x260 [ 22.411837] binder_thread_dec_tmpref+0x27f/0x310 [ 22.411839] binder_thread_release+0x27d/0x540 [ 22.411842] binder_ioctl+0xc02/0x1417 [ 22.411844] do_vfs_ioctl+0x1b1/0x1520 [ 22.411847] SyS_ioctl+0x8f/0xc0 [ 22.411850] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.411850] [ 22.411853] The buggy address belongs to the object at ffff8801cecbb300 [ 22.411853] which belongs to the cache kmalloc-512 of size 512 [ 22.411856] The buggy address is located 184 bytes inside of [ 22.411856] 512-byte region [ffff8801cecbb300, ffff8801cecbb500) [ 22.411857] The buggy address belongs to the page: [ 22.411860] page:ffffea00073b2ec0 count:1 mapcount:0 mapping:ffff8801cecbb080 index:0x0 [ 22.411864] flags: 0x2fffc0000000100(slab) [ 22.411869] raw: 02fffc0000000100 ffff8801cecbb080 0000000000000000 0000000100000006 [ 22.411873] raw: ffffea00073b2e20 ffffea00073cf560 ffff8801dac00940 0000000000000000 [ 22.411875] page dumped because: kasan: bad access detected [ 22.411876] [ 22.411877] Memory state around the buggy address: [ 22.411880] ffff8801cecbb280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.411882] ffff8801cecbb300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.411885] >ffff8801cecbb380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.411886] ^ [ 22.411889] ffff8801cecbb400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.411891] ffff8801cecbb480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.411892] ================================================================== [ 22.411893] Disabling lock debugging due to kernel taint [ 22.411896] Kernel panic - not syncing: panic_on_warn set ... [ 22.411896] [ 22.411900] CPU: 1 PID: 3144 Comm: syzkaller203928 Tainted: G B 4.15.0-rc4-mm1+ #49 [ 22.411901] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.411902] Call Trace: [ 22.411906] dump_stack+0x194/0x257 [ 22.411910] ? arch_local_irq_restore+0x53/0x53 [ 22.411913] ? kasan_end_report+0x32/0x50 [ 22.411917] ? lock_downgrade+0x980/0x980 [ 22.411920] ? vsnprintf+0x1ed/0x1900 [ 22.411924] ? __lock_acquire+0x3c90/0x3e00 [ 22.411927] panic+0x1e4/0x41c [ 22.411931] ? refcount_error_report+0x214/0x214 [ 22.411935] ? add_taint+0x40/0x50 [ 22.411937] ? add_taint+0x1c/0x50 [ 22.411941] ? __lock_acquire+0x3d4d/0x3e00 [ 22.411945] kasan_end_report+0x50/0x50 [ 22.411948] kasan_report+0x148/0x360 [ 22.411953] __asan_report_load8_noabort+0x14/0x20 [ 22.411956] __lock_acquire+0x3d4d/0x3e00 [ 22.411960] ? __lock_acquire+0x664/0x3e00 [ 22.411963] ? lock_downgrade+0x980/0x980 [ 22.411966] ? lock_downgrade+0x980/0x980 [ 22.411970] ? remove_wait_queue+0x81/0x350 [ 22.411975] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.411979] ? __lock_acquire+0x664/0x3e00 [ 22.411982] ? check_noncircular+0x20/0x20 [ 22.411989] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.411993] ? lock_acquire+0x1d5/0x580 [ 22.411996] ? lock_acquire+0x1d5/0x580 [ 22.411999] ? ep_free+0xf4/0x320 [ 22.412012] ? lock_release+0xa40/0xa40 [ 22.412015] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.412019] ? print_irqtrace_events+0x270/0x270 [ 22.412023] ? rcu_note_context_switch+0x710/0x710 [ 22.412027] ? __might_sleep+0x95/0x190 [ 22.412030] ? ep_free+0xf4/0x320 [ 22.412033] ? __mutex_lock+0x16f/0x1a80 [ 22.412036] ? ep_free+0xf4/0x320 [ 22.412040] ? print_irqtrace_events+0x270/0x270 [ 22.412043] ? ep_free+0xf4/0x320 [ 22.412047] lock_acquire+0x1d5/0x580 [ 22.412050] ? lock_acquire+0x1d5/0x580 [ 22.412054] ? remove_wait_queue+0x81/0x350 [ 22.412057] ? __lock_acquire+0x664/0x3e00 [ 22.412062] ? lock_release+0xa40/0xa40 [ 22.412067] ? lock_acquire+0x1d5/0x580 [ 22.412070] ? lock_acquire+0x1d5/0x580 [ 22.412073] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.412077] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.412081] ? remove_wait_queue+0x81/0x350 [ 22.412084] remove_wait_queue+0x81/0x350 [ 22.412089] ? add_wait_queue+0x290/0x290 [ 22.412092] ? rcutorture_record_progress+0x10/0x10 [ 22.412098] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.412102] ? __kernel_text_address+0xd/0x40 [ 22.412106] ? clear_tfile_check_list+0x370/0x370 [ 22.412110] ? check_noncircular+0x20/0x20 [ 22.412115] ? locks_remove_file+0x3fa/0x5a0 [ 22.412120] ep_free+0x13f/0x320 [ 22.412123] ? ep_remove+0x800/0x800 [ 22.412127] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.412131] ? ep_free+0x320/0x320 [ 22.412134] ep_eventpoll_release+0x44/0x60 [ 22.412138] __fput+0x327/0x7e0 [ 22.412142] ? fput+0x140/0x140 [ 22.412146] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.412151] ____fput+0x15/0x20 [ 22.412154] task_work_run+0x199/0x270 [ 22.412159] ? task_work_cancel+0x210/0x210 [ 22.412162] ? _raw_spin_unlock+0x22/0x30 [ 22.412166] ? switch_task_namespaces+0x87/0xc0 [ 22.412170] do_exit+0x9bb/0x1ad0 [ 22.412174] ? binder_ioctl+0x551/0x1417 [ 22.412177] ? mm_update_next_owner+0x930/0x930 [ 22.412182] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.412186] ? avc_ss_reset+0x110/0x110 [ 22.412190] ? mutex_unlock+0xd/0x10 [ 22.412193] ? SyS_epoll_ctl+0x30a/0x1a80 [ 22.412203] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.412206] ? up_read+0x1a/0x40 [ 22.412210] ? rcu_note_context_switch+0x710/0x710 [ 22.412213] ? __fd_install+0x288/0x740 [ 22.412218] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.412221] ? do_vfs_ioctl+0x486/0x1520 [ 22.412224] ? _cond_resched+0x14/0x30 [ 22.412228] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.412233] ? selinux_capable+0x40/0x40 [ 22.412236] ? __alloc_fd+0x750/0x750 [ 22.412241] do_group_exit+0x149/0x400 [ 22.412245] ? SyS_exit+0x30/0x30 [ 22.412249] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.412253] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.412257] SyS_exit_group+0x1d/0x20 [ 22.412260] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.412263] RIP: 0033:0x4429f8 [ 22.412265] RSP: 002b:00007fff4d6e2078 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.412268] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.412270] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.412272] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.412274] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.412276] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.433270] Dumping ftrace buffer: [ 22.433273] (ftrace buffer empty) [ 22.433274] Kernel Offset: disabled [ 23.555928] Rebooting in 86400 seconds..