[....] Starting enhanced syslogd: rsyslogd[ 11.073820] audit: type=1400 audit(1514403030.602:5): avc: denied { syslog } for pid=2996 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: [ 15.727752] audit: type=1400 audit(1514403035.256:6): avc: denied { map } for pid=3135 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.7' (ECDSA) to the list of known hosts. executing program [ 21.951618] audit: type=1400 audit(1514403041.480:7): avc: denied { map } for pid=3149 comm="syzkaller186946" path="/root/syzkaller186946395" 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 [ 21.957754] ================================================================== [ 21.957771] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 21.957777] Read of size 8 at addr ffff8801c87e0878 by task syzkaller186946/3149 [ 21.957778] [ 21.957786] CPU: 1 PID: 3149 Comm: syzkaller186946 Not tainted 4.15.0-rc4-mm1+ #49 [ 21.957789] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 21.957791] Call Trace: [ 21.957803] dump_stack+0x194/0x257 [ 21.957810] ? arch_local_irq_restore+0x53/0x53 [ 21.957819] ? show_regs_print_info+0x18/0x18 [ 21.957827] ? __lock_acquire+0x3d4d/0x3e00 [ 21.957838] print_address_description+0x73/0x250 [ 21.957844] ? __lock_acquire+0x3d4d/0x3e00 [ 21.957850] kasan_report+0x23b/0x360 [ 21.957858] __asan_report_load8_noabort+0x14/0x20 [ 21.957864] __lock_acquire+0x3d4d/0x3e00 [ 21.957870] ? print_irqtrace_events+0x270/0x270 [ 21.957879] ? unwind_get_return_address+0x61/0xa0 [ 21.957888] ? remove_wait_queue+0x81/0x350 [ 21.957897] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.957904] ? __lock_acquire+0x664/0x3e00 [ 21.957910] ? print_irqtrace_events+0x270/0x270 [ 21.957916] ? __lock_acquire+0x664/0x3e00 [ 21.957926] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.957936] ? __lock_acquire+0x664/0x3e00 [ 21.957942] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.957947] ? __lock_acquire+0x664/0x3e00 [ 21.957953] ? check_noncircular+0x20/0x20 [ 21.957960] ? check_noncircular+0x20/0x20 [ 21.957968] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.957973] ? __lock_acquire+0x664/0x3e00 [ 21.957979] ? check_noncircular+0x20/0x20 [ 21.957992] lock_acquire+0x1d5/0x580 [ 21.957997] ? lock_acquire+0x1d5/0x580 [ 21.958007] ? remove_wait_queue+0x81/0x350 [ 21.958015] ? lock_release+0xa40/0xa40 [ 21.958021] ? print_irqtrace_events+0x270/0x270 [ 21.958026] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.958035] ? lock_acquire+0x1d5/0x580 [ 21.958040] ? lock_acquire+0x1d5/0x580 [ 21.958048] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 21.958056] _raw_spin_lock_irqsave+0x96/0xc0 [ 21.958062] ? remove_wait_queue+0x81/0x350 [ 21.958068] remove_wait_queue+0x81/0x350 [ 21.958073] ? eventpoll_release_file+0xba/0x140 [ 21.958081] ? add_wait_queue+0x290/0x290 [ 21.958088] ? rcutorture_record_progress+0x10/0x10 [ 21.958092] ? mutex_lock_io_nested+0x1900/0x1900 [ 21.958102] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 21.958108] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.958116] ? clear_tfile_check_list+0x370/0x370 [ 21.958123] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.958131] ? rcutorture_record_progress+0x10/0x10 [ 21.958141] ? is_bpf_text_address+0xa4/0x120 [ 21.958148] ep_remove+0xcd/0x800 [ 21.958154] ? unwind_get_return_address+0x61/0xa0 [ 21.958161] ? ep_destroy_wakeup_source+0x240/0x240 [ 21.958167] ? check_noncircular+0x20/0x20 [ 21.958174] ? check_noncircular+0x20/0x20 [ 21.958183] ? fsnotify+0x7b3/0x1140 [ 21.958195] eventpoll_release_file+0xc5/0x140 [ 21.958204] __fput+0x5f1/0x7e0 [ 21.958212] ? fput+0x140/0x140 [ 21.958218] ? _raw_spin_unlock_irq+0x27/0x70 [ 21.958226] ____fput+0x15/0x20 [ 21.958234] task_work_run+0x199/0x270 [ 21.958242] ? task_work_cancel+0x210/0x210 [ 21.958248] ? _raw_spin_unlock+0x22/0x30 [ 21.958254] ? switch_task_namespaces+0x87/0xc0 [ 21.958263] do_exit+0x9bb/0x1ad0 [ 21.958272] ? binder_ioctl+0x551/0x1417 [ 21.958278] ? mm_update_next_owner+0x930/0x930 [ 21.958285] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 21.958295] ? avc_ss_reset+0x110/0x110 [ 21.958302] ? mutex_unlock+0xd/0x10 [ 21.958307] ? SyS_epoll_ctl+0x30a/0x1a80 [ 21.958327] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 21.958332] ? up_read+0x1a/0x40 [ 21.958339] ? rcu_note_context_switch+0x710/0x710 [ 21.958347] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 21.958353] ? do_vfs_ioctl+0x486/0x1520 [ 21.958359] ? _cond_resched+0x14/0x30 [ 21.958366] ? ioctl_preallocate+0x2b0/0x2b0 [ 21.958374] ? selinux_capable+0x40/0x40 [ 21.958381] ? putname+0xf3/0x130 [ 21.958389] do_group_exit+0x149/0x400 [ 21.958396] ? SyS_exit+0x30/0x30 [ 21.958402] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 21.958410] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 21.958418] SyS_exit_group+0x1d/0x20 [ 21.958424] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 21.958429] RIP: 0033:0x4429f8 [ 21.958433] RSP: 002b:00007ffc9133a198 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 21.958439] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 21.958442] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 21.958446] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 21.958449] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 21.958452] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 21.958460] [ 21.958463] Allocated by task 3149: [ 21.958469] save_stack+0x43/0xd0 [ 21.958474] kasan_kmalloc+0xad/0xe0 [ 21.958479] kmem_cache_alloc_trace+0x136/0x750 [ 21.958484] binder_get_thread+0x1cf/0x870 [ 21.958488] binder_poll+0x8c/0x390 [ 21.958493] ep_item_poll.isra.10+0xf2/0x320 [ 21.958497] ep_insert+0x6a2/0x1ac0 [ 21.958502] SyS_epoll_ctl+0x12bf/0x1a80 [ 21.958507] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 21.958508] [ 21.958510] Freed by task 3149: [ 21.958515] save_stack+0x43/0xd0 [ 21.958520] kasan_slab_free+0x71/0xc0 [ 21.958523] kfree+0xd6/0x260 [ 21.958528] binder_thread_dec_tmpref+0x27f/0x310 [ 21.958533] binder_thread_release+0x27d/0x540 [ 21.958537] binder_ioctl+0xc02/0x1417 [ 21.958541] do_vfs_ioctl+0x1b1/0x1520 [ 21.958545] SyS_ioctl+0x8f/0xc0 [ 21.958550] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 21.958551] [ 21.958555] The buggy address belongs to the object at ffff8801c87e07c0 [ 21.958555] which belongs to the cache kmalloc-512 of size 512 [ 21.958560] The buggy address is located 184 bytes inside of [ 21.958560] 512-byte region [ffff8801c87e07c0, ffff8801c87e09c0) [ 21.958562] The buggy address belongs to the page: [ 21.958567] page:ffffea000721f800 count:1 mapcount:0 mapping:ffff8801c87e0040 index:0x0 [ 21.958572] flags: 0x2fffc0000000100(slab) [ 21.958581] raw: 02fffc0000000100 ffff8801c87e0040 0000000000000000 0000000100000006 [ 21.958587] raw: ffffea0007214460 ffffea00072025a0 ffff8801dac00940 0000000000000000 [ 21.958590] page dumped because: kasan: bad access detected [ 21.958591] [ 21.958593] Memory state around the buggy address: [ 21.958598] ffff8801c87e0700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.958602] ffff8801c87e0780: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 21.958606] >ffff8801c87e0800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.958608] ^ [ 21.958613] ffff8801c87e0880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.958617] ffff8801c87e0900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.958619] ================================================================== [ 21.958621] Disabling lock debugging due to kernel taint [ 21.958629] Kernel panic - not syncing: panic_on_warn set ... [ 21.958629] [ 21.958635] CPU: 1 PID: 3149 Comm: syzkaller186946 Tainted: G B 4.15.0-rc4-mm1+ #49 [ 21.958638] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 21.958639] Call Trace: [ 21.958645] dump_stack+0x194/0x257 [ 21.958652] ? arch_local_irq_restore+0x53/0x53 [ 21.958657] ? kasan_end_report+0x32/0x50 [ 21.958663] ? lock_downgrade+0x980/0x980 [ 21.958668] ? vsnprintf+0x1ed/0x1900 [ 21.958675] ? __lock_acquire+0x3c90/0x3e00 [ 21.958680] panic+0x1e4/0x41c [ 21.958686] ? refcount_error_report+0x214/0x214 [ 21.958693] ? add_taint+0x40/0x50 [ 21.958698] ? add_taint+0x1c/0x50 [ 21.958705] ? __lock_acquire+0x3d4d/0x3e00 [ 21.958711] kasan_end_report+0x50/0x50 [ 21.958716] kasan_report+0x148/0x360 [ 21.958724] __asan_report_load8_noabort+0x14/0x20 [ 21.958730] __lock_acquire+0x3d4d/0x3e00 [ 21.958736] ? print_irqtrace_events+0x270/0x270 [ 21.958742] ? unwind_get_return_address+0x61/0xa0 [ 21.958749] ? remove_wait_queue+0x81/0x350 [ 21.958758] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.958764] ? __lock_acquire+0x664/0x3e00 [ 21.958770] ? print_irqtrace_events+0x270/0x270 [ 21.958776] ? __lock_acquire+0x664/0x3e00 [ 21.958786] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.958794] ? __lock_acquire+0x664/0x3e00 [ 21.958801] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.958806] ? __lock_acquire+0x664/0x3e00 [ 21.958812] ? check_noncircular+0x20/0x20 [ 21.958819] ? check_noncircular+0x20/0x20 [ 21.958826] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.958832] ? __lock_acquire+0x664/0x3e00 [ 21.958837] ? check_noncircular+0x20/0x20 [ 21.958850] lock_acquire+0x1d5/0x580 [ 21.958855] ? lock_acquire+0x1d5/0x580 [ 21.958861] ? remove_wait_queue+0x81/0x350 [ 21.958869] ? lock_release+0xa40/0xa40 [ 21.958874] ? print_irqtrace_events+0x270/0x270 [ 21.958879] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.958887] ? lock_acquire+0x1d5/0x580 [ 21.958893] ? lock_acquire+0x1d5/0x580 [ 21.958899] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 21.958906] _raw_spin_lock_irqsave+0x96/0xc0 [ 21.958911] ? remove_wait_queue+0x81/0x350 [ 21.958918] remove_wait_queue+0x81/0x350 [ 21.958923] ? eventpoll_release_file+0xba/0x140 [ 21.958931] ? add_wait_queue+0x290/0x290 [ 21.958936] ? rcutorture_record_progress+0x10/0x10 [ 21.958941] ? mutex_lock_io_nested+0x1900/0x1900 [ 21.958950] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 21.958957] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.958964] ? clear_tfile_check_list+0x370/0x370 [ 21.958971] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.958978] ? rcutorture_record_progress+0x10/0x10 [ 21.958987] ? is_bpf_text_address+0xa4/0x120 [ 21.958994] ep_remove+0xcd/0x800 [ 21.959000] ? unwind_get_return_address+0x61/0xa0 [ 21.959007] ? ep_destroy_wakeup_source+0x240/0x240 [ 21.959013] ? check_noncircular+0x20/0x20 [ 21.959019] ? check_noncircular+0x20/0x20 [ 21.959028] ? fsnotify+0x7b3/0x1140 [ 21.959040] eventpoll_release_file+0xc5/0x140 [ 21.959047] __fput+0x5f1/0x7e0 [ 21.959055] ? fput+0x140/0x140 [ 21.959061] ? _raw_spin_unlock_irq+0x27/0x70 [ 21.959069] ____fput+0x15/0x20 [ 21.959075] task_work_run+0x199/0x270 [ 21.959083] ? task_work_cancel+0x210/0x210 [ 21.959088] ? _raw_spin_unlock+0x22/0x30 [ 21.959094] ? switch_task_namespaces+0x87/0xc0 [ 21.959101] do_exit+0x9bb/0x1ad0 [ 21.959108] ? binder_ioctl+0x551/0x1417 [ 21.959114] ? mm_update_next_owner+0x930/0x930 [ 21.959121] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 21.959129] ? avc_ss_reset+0x110/0x110 [ 21.959135] ? mutex_unlock+0xd/0x10 [ 21.959141] ? SyS_epoll_ctl+0x30a/0x1a80 [ 21.959158] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 21.959163] ? up_read+0x1a/0x40 [ 21.959169] ? rcu_note_context_switch+0x710/0x710 [ 21.959178] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 21.959183] ? do_vfs_ioctl+0x486/0x1520 [ 21.959188] ? _cond_resched+0x14/0x30 [ 21.959196] ? ioctl_preallocate+0x2b0/0x2b0 [ 21.959203] ? selinux_capable+0x40/0x40 [ 21.959209] ? putname+0xf3/0x130 [ 21.959217] do_group_exit+0x149/0x400 [ 21.959224] ? SyS_exit+0x30/0x30 [ 21.959230] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 21.959236] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 21.959244] SyS_exit_group+0x1d/0x20 [ 21.959250] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 21.959253] RIP: 0033:0x4429f8 [ 21.959256] RSP: 002b:00007ffc9133a198 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 21.959261] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 21.959265] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 21.959268] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 21.959271] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 21.959274] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 21.977965] Dumping ftrace buffer: [ 21.977968] (ftrace buffer empty) [ 21.977971] Kernel Offset: disabled [ 23.118999] Rebooting in 86400 seconds..