[....] Starting enhanced syslogd: rsyslogd[ 10.858855] audit: type=1400 audit(1514489895.113:5): avc: denied { syslog } for pid=2989 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: [ 17.778057] audit: type=1400 audit(1514489902.032: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 '10.128.0.22' (ECDSA) to the list of known hosts. executing program [ 23.904366] audit: type=1400 audit(1514489908.159:7): avc: denied { map } for pid=3144 comm="syzkaller975885" path="/root/syzkaller975885307" 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 [ 23.908942] ================================================================== [ 23.908953] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 23.908956] Read of size 8 at addr ffff8801ca830838 by task syzkaller975885/3144 [ 23.908957] [ 23.908963] CPU: 0 PID: 3144 Comm: syzkaller975885 Not tainted 4.15.0-rc4-mm1+ #49 [ 23.908965] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.908967] Call Trace: [ 23.908974] dump_stack+0x194/0x257 [ 23.908978] ? arch_local_irq_restore+0x53/0x53 [ 23.908984] ? show_regs_print_info+0x18/0x18 [ 23.908987] ? print_irqtrace_events+0x270/0x270 [ 23.908991] ? __lock_acquire+0x664/0x3e00 [ 23.908995] ? __lock_acquire+0x3d4d/0x3e00 [ 23.909005] print_address_description+0x73/0x250 [ 23.909009] ? __lock_acquire+0x3d4d/0x3e00 [ 23.909013] kasan_report+0x23b/0x360 [ 23.909018] __asan_report_load8_noabort+0x14/0x20 [ 23.909021] __lock_acquire+0x3d4d/0x3e00 [ 23.909025] ? __lock_acquire+0x664/0x3e00 [ 23.909028] ? lock_downgrade+0x980/0x980 [ 23.909031] ? lock_downgrade+0x980/0x980 [ 23.909037] ? remove_wait_queue+0x81/0x350 [ 23.909043] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.909047] ? __lock_acquire+0x664/0x3e00 [ 23.909050] ? check_noncircular+0x20/0x20 [ 23.909058] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.909062] ? lock_acquire+0x1d5/0x580 [ 23.909065] ? lock_acquire+0x1d5/0x580 [ 23.909070] ? ep_free+0xf4/0x320 [ 23.909075] ? lock_release+0xa40/0xa40 [ 23.909080] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.909084] ? print_irqtrace_events+0x270/0x270 [ 23.909089] ? rcu_note_context_switch+0x710/0x710 [ 23.909094] ? __might_sleep+0x95/0x190 [ 23.909097] ? ep_free+0xf4/0x320 [ 23.909101] ? __mutex_lock+0x16f/0x1a80 [ 23.909104] ? ep_free+0xf4/0x320 [ 23.909108] ? print_irqtrace_events+0x270/0x270 [ 23.909111] ? ep_free+0xf4/0x320 [ 23.909116] lock_acquire+0x1d5/0x580 [ 23.909119] ? lock_acquire+0x1d5/0x580 [ 23.909122] ? remove_wait_queue+0x81/0x350 [ 23.909126] ? __lock_acquire+0x664/0x3e00 [ 23.909130] ? lock_release+0xa40/0xa40 [ 23.909136] ? lock_acquire+0x1d5/0x580 [ 23.909139] ? lock_acquire+0x1d5/0x580 [ 23.909143] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.909147] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.909151] ? remove_wait_queue+0x81/0x350 [ 23.909155] remove_wait_queue+0x81/0x350 [ 23.909159] ? add_wait_queue+0x290/0x290 [ 23.909163] ? rcutorture_record_progress+0x10/0x10 [ 23.909169] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.909174] ? __kernel_text_address+0xd/0x40 [ 23.909179] ? clear_tfile_check_list+0x370/0x370 [ 23.909183] ? check_noncircular+0x20/0x20 [ 23.909189] ? locks_remove_file+0x3fa/0x5a0 [ 23.909195] ep_free+0x13f/0x320 [ 23.909198] ? ep_remove+0x800/0x800 [ 23.909201] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.909206] ? ep_free+0x320/0x320 [ 23.909210] ep_eventpoll_release+0x44/0x60 [ 23.909214] __fput+0x327/0x7e0 [ 23.909219] ? fput+0x140/0x140 [ 23.909223] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.909228] ____fput+0x15/0x20 [ 23.909232] task_work_run+0x199/0x270 [ 23.909237] ? task_work_cancel+0x210/0x210 [ 23.909241] ? _raw_spin_unlock+0x22/0x30 [ 23.909244] ? switch_task_namespaces+0x87/0xc0 [ 23.909250] do_exit+0x9bb/0x1ad0 [ 23.909257] ? binder_ioctl+0x551/0x1417 [ 23.909260] ? mm_update_next_owner+0x930/0x930 [ 23.909265] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.909271] ? avc_ss_reset+0x110/0x110 [ 23.909275] ? mutex_unlock+0xd/0x10 [ 23.909279] ? SyS_epoll_ctl+0x30a/0x1a80 [ 23.909291] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.909294] ? up_read+0x1a/0x40 [ 23.909298] ? rcu_note_context_switch+0x710/0x710 [ 23.909301] ? __fd_install+0x288/0x740 [ 23.909306] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.909310] ? do_vfs_ioctl+0x486/0x1520 [ 23.909313] ? _cond_resched+0x14/0x30 [ 23.909318] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.909323] ? selinux_capable+0x40/0x40 [ 23.909326] ? __alloc_fd+0x750/0x750 [ 23.909331] do_group_exit+0x149/0x400 [ 23.909336] ? SyS_exit+0x30/0x30 [ 23.909340] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.909345] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.909349] SyS_exit_group+0x1d/0x20 [ 23.909353] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 23.909356] RIP: 0033:0x4429f8 [ 23.909358] RSP: 002b:00007ffe910ecfe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.909362] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 23.909364] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.909366] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.909368] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 23.909370] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.909375] [ 23.909377] Allocated by task 3144: [ 23.909381] save_stack+0x43/0xd0 [ 23.909384] kasan_kmalloc+0xad/0xe0 [ 23.909387] kmem_cache_alloc_trace+0x136/0x750 [ 23.909390] binder_get_thread+0x1cf/0x870 [ 23.909392] binder_poll+0x8c/0x390 [ 23.909395] ep_item_poll.isra.10+0xf2/0x320 [ 23.909398] ep_insert+0x6a2/0x1ac0 [ 23.909401] SyS_epoll_ctl+0x12bf/0x1a80 [ 23.909404] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 23.909405] [ 23.909406] Freed by task 3144: [ 23.909409] save_stack+0x43/0xd0 [ 23.909412] kasan_slab_free+0x71/0xc0 [ 23.909414] kfree+0xd6/0x260 [ 23.909417] binder_thread_dec_tmpref+0x27f/0x310 [ 23.909420] binder_thread_release+0x27d/0x540 [ 23.909422] binder_ioctl+0xc02/0x1417 [ 23.909425] do_vfs_ioctl+0x1b1/0x1520 [ 23.909427] SyS_ioctl+0x8f/0xc0 [ 23.909430] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 23.909431] [ 23.909433] The buggy address belongs to the object at ffff8801ca830780 [ 23.909433] which belongs to the cache kmalloc-512 of size 512 [ 23.909436] The buggy address is located 184 bytes inside of [ 23.909436] 512-byte region [ffff8801ca830780, ffff8801ca830980) [ 23.909437] The buggy address belongs to the page: [ 23.909440] page:ffffea00072a0c00 count:1 mapcount:0 mapping:ffff8801ca830000 index:0x0 [ 23.909444] flags: 0x2fffc0000000100(slab) [ 23.909449] raw: 02fffc0000000100 ffff8801ca830000 0000000000000000 0000000100000006 [ 23.909453] raw: ffffea00072c9f60 ffffea00072a0820 ffff8801dac00940 0000000000000000 [ 23.909455] page dumped because: kasan: bad access detected [ 23.909455] [ 23.909456] Memory state around the buggy address: [ 23.909459] ffff8801ca830700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.909462] ffff8801ca830780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.909465] >ffff8801ca830800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.909466] ^ [ 23.909468] ffff8801ca830880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.909471] ffff8801ca830900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.909472] ================================================================== [ 23.909473] Disabling lock debugging due to kernel taint [ 23.909476] Kernel panic - not syncing: panic_on_warn set ... [ 23.909476] [ 23.909479] CPU: 0 PID: 3144 Comm: syzkaller975885 Tainted: G B 4.15.0-rc4-mm1+ #49 [ 23.909481] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.909482] Call Trace: [ 23.909486] dump_stack+0x194/0x257 [ 23.909490] ? arch_local_irq_restore+0x53/0x53 [ 23.909493] ? kasan_end_report+0x32/0x50 [ 23.909497] ? lock_downgrade+0x980/0x980 [ 23.909500] ? vsnprintf+0x1ed/0x1900 [ 23.909504] ? __lock_acquire+0x3c90/0x3e00 [ 23.909507] panic+0x1e4/0x41c [ 23.909511] ? refcount_error_report+0x214/0x214 [ 23.909515] ? add_taint+0x40/0x50 [ 23.909518] ? add_taint+0x1c/0x50 [ 23.909522] ? __lock_acquire+0x3d4d/0x3e00 [ 23.909525] kasan_end_report+0x50/0x50 [ 23.909528] kasan_report+0x148/0x360 [ 23.909533] __asan_report_load8_noabort+0x14/0x20 [ 23.909536] __lock_acquire+0x3d4d/0x3e00 [ 23.909540] ? __lock_acquire+0x664/0x3e00 [ 23.909543] ? lock_downgrade+0x980/0x980 [ 23.909546] ? lock_downgrade+0x980/0x980 [ 23.909550] ? remove_wait_queue+0x81/0x350 [ 23.909555] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.909559] ? __lock_acquire+0x664/0x3e00 [ 23.909562] ? check_noncircular+0x20/0x20 [ 23.909569] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.909573] ? lock_acquire+0x1d5/0x580 [ 23.909576] ? lock_acquire+0x1d5/0x580 [ 23.909579] ? ep_free+0xf4/0x320 [ 23.909584] ? lock_release+0xa40/0xa40 [ 23.909588] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.909591] ? print_irqtrace_events+0x270/0x270 [ 23.909595] ? rcu_note_context_switch+0x710/0x710 [ 23.909599] ? __might_sleep+0x95/0x190 [ 23.909602] ? ep_free+0xf4/0x320 [ 23.909605] ? __mutex_lock+0x16f/0x1a80 [ 23.909608] ? ep_free+0xf4/0x320 [ 23.909612] ? print_irqtrace_events+0x270/0x270 [ 23.909615] ? ep_free+0xf4/0x320 [ 23.909619] lock_acquire+0x1d5/0x580 [ 23.909623] ? lock_acquire+0x1d5/0x580 [ 23.909626] ? remove_wait_queue+0x81/0x350 [ 23.909629] ? __lock_acquire+0x664/0x3e00 [ 23.909634] ? lock_release+0xa40/0xa40 [ 23.909639] ? lock_acquire+0x1d5/0x580 [ 23.909642] ? lock_acquire+0x1d5/0x580 [ 23.909645] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.909649] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.909653] ? remove_wait_queue+0x81/0x350 [ 23.909656] remove_wait_queue+0x81/0x350 [ 23.909661] ? add_wait_queue+0x290/0x290 [ 23.909664] ? rcutorture_record_progress+0x10/0x10 [ 23.909670] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.909674] ? __kernel_text_address+0xd/0x40 [ 23.909678] ? clear_tfile_check_list+0x370/0x370 [ 23.909683] ? check_noncircular+0x20/0x20 [ 23.909687] ? locks_remove_file+0x3fa/0x5a0 [ 23.909692] ep_free+0x13f/0x320 [ 23.909696] ? ep_remove+0x800/0x800 [ 23.909699] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.909703] ? ep_free+0x320/0x320 [ 23.909707] ep_eventpoll_release+0x44/0x60 [ 23.909710] __fput+0x327/0x7e0 [ 23.909715] ? fput+0x140/0x140 [ 23.909718] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.909723] ____fput+0x15/0x20 [ 23.909727] task_work_run+0x199/0x270 [ 23.909731] ? task_work_cancel+0x210/0x210 [ 23.909735] ? _raw_spin_unlock+0x22/0x30 [ 23.909738] ? switch_task_namespaces+0x87/0xc0 [ 23.909743] do_exit+0x9bb/0x1ad0 [ 23.909747] ? binder_ioctl+0x551/0x1417 [ 23.909750] ? mm_update_next_owner+0x930/0x930 [ 23.909754] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.909759] ? avc_ss_reset+0x110/0x110 [ 23.909763] ? mutex_unlock+0xd/0x10 [ 23.909766] ? SyS_epoll_ctl+0x30a/0x1a80 [ 23.909776] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.909779] ? up_read+0x1a/0x40 [ 23.909783] ? rcu_note_context_switch+0x710/0x710 [ 23.909786] ? __fd_install+0x288/0x740 [ 23.909791] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.909794] ? do_vfs_ioctl+0x486/0x1520 [ 23.909797] ? _cond_resched+0x14/0x30 [ 23.909801] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.909805] ? selinux_capable+0x40/0x40 [ 23.909809] ? __alloc_fd+0x750/0x750 [ 23.909813] do_group_exit+0x149/0x400 [ 23.909817] ? SyS_exit+0x30/0x30 [ 23.909821] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.909825] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.909829] SyS_exit_group+0x1d/0x20 [ 23.909833] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 23.909835] RIP: 0033:0x4429f8 [ 23.909837] RSP: 002b:00007ffe910ecfe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.909840] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 23.909842] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.909844] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.909846] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 23.909848] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.930251] Dumping ftrace buffer: [ 23.930254] (ftrace buffer empty) [ 23.930256] Kernel Offset: disabled [ 25.053873] Rebooting in 86400 seconds..