[....] Starting enhanced syslogd: rsyslogd[ 12.403041] audit: type=1400 audit(1516139091.377:5): avc: denied { syslog } for pid=3498 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.769795] audit: type=1400 audit(1516139096.744:6): avc: denied { map } for pid=3639 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.15.243' (ECDSA) to the list of known hosts. executing program [ 36.486421] audit: type=1400 audit(1516139115.461:7): avc: denied { map } for pid=3656 comm="syzkaller145746" path="/root/syzkaller145746944" 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 [ 36.490148] ================================================================== [ 36.490159] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 36.490163] Read of size 8 at addr ffff8801bbf9b0f0 by task syzkaller145746/3656 [ 36.490164] [ 36.490169] CPU: 0 PID: 3656 Comm: syzkaller145746 Not tainted 4.15.0-rc8+ #264 [ 36.490171] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.490173] Call Trace: [ 36.490182] dump_stack+0x194/0x257 [ 36.490187] ? arch_local_irq_restore+0x53/0x53 [ 36.490192] ? show_regs_print_info+0x18/0x18 [ 36.490197] ? __lock_acquire+0x3d4d/0x3e00 [ 36.490203] print_address_description+0x73/0x250 [ 36.490207] ? __lock_acquire+0x3d4d/0x3e00 [ 36.490211] kasan_report+0x25b/0x340 [ 36.490215] __asan_report_load8_noabort+0x14/0x20 [ 36.490219] __lock_acquire+0x3d4d/0x3e00 [ 36.490223] ? print_irqtrace_events+0x270/0x270 [ 36.490228] ? unwind_get_return_address+0x61/0xa0 [ 36.490235] ? remove_wait_queue+0x81/0x350 [ 36.490240] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.490244] ? __lock_acquire+0x664/0x3e00 [ 36.490248] ? print_irqtrace_events+0x270/0x270 [ 36.490252] ? __lock_acquire+0x664/0x3e00 [ 36.490258] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.490263] ? __lock_acquire+0x664/0x3e00 [ 36.490267] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.490270] ? __lock_acquire+0x664/0x3e00 [ 36.490274] ? check_noncircular+0x20/0x20 [ 36.490278] ? check_noncircular+0x20/0x20 [ 36.490283] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.490286] ? __lock_acquire+0x664/0x3e00 [ 36.490290] ? check_noncircular+0x20/0x20 [ 36.490297] lock_acquire+0x1d5/0x580 [ 36.490300] ? lock_acquire+0x1d5/0x580 [ 36.490304] ? remove_wait_queue+0x81/0x350 [ 36.490309] ? lock_release+0xa40/0xa40 [ 36.490312] ? print_irqtrace_events+0x270/0x270 [ 36.490315] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.490320] ? lock_acquire+0x1d5/0x580 [ 36.490323] ? lock_acquire+0x1d5/0x580 [ 36.490330] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 36.490336] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.490340] ? remove_wait_queue+0x81/0x350 [ 36.490344] remove_wait_queue+0x81/0x350 [ 36.490347] ? eventpoll_release_file+0xba/0x140 [ 36.490351] ? add_wait_queue+0x290/0x290 [ 36.490357] ? rcutorture_record_progress+0x10/0x10 [ 36.490361] ? mutex_lock_io_nested+0x1900/0x1900 [ 36.490366] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 36.490370] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.490375] ? clear_tfile_check_list+0x370/0x370 [ 36.490379] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.490384] ? rcutorture_record_progress+0x10/0x10 [ 36.490390] ? is_bpf_text_address+0xa4/0x120 [ 36.490395] ep_remove+0xcd/0x800 [ 36.490398] ? unwind_get_return_address+0x61/0xa0 [ 36.490403] ? ep_destroy_wakeup_source+0x240/0x240 [ 36.490406] ? check_noncircular+0x20/0x20 [ 36.490410] ? check_noncircular+0x20/0x20 [ 36.490416] ? fsnotify+0x7b3/0x1140 [ 36.490423] eventpoll_release_file+0xc5/0x140 [ 36.490429] __fput+0x5f1/0x7e0 [ 36.490433] ? fput+0x140/0x140 [ 36.490438] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.490443] ____fput+0x15/0x20 [ 36.490447] task_work_run+0x199/0x270 [ 36.490452] ? task_work_cancel+0x210/0x210 [ 36.490456] ? _raw_spin_unlock+0x22/0x30 [ 36.490460] ? switch_task_namespaces+0x87/0xc0 [ 36.490465] do_exit+0x9bb/0x1ad0 [ 36.490471] ? binder_ioctl+0x4d1/0x1417 [ 36.490475] ? mm_update_next_owner+0x930/0x930 [ 36.490480] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 36.490487] ? avc_ss_reset+0x110/0x110 [ 36.490490] ? mutex_unlock+0xd/0x10 [ 36.490494] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 36.490505] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 36.490508] ? up_read+0x1a/0x40 [ 36.490513] ? rcu_note_context_switch+0x710/0x710 [ 36.490519] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 36.490522] ? do_vfs_ioctl+0x486/0x1520 [ 36.490526] ? _cond_resched+0x14/0x30 [ 36.490530] ? ioctl_preallocate+0x2b0/0x2b0 [ 36.490535] ? selinux_capable+0x40/0x40 [ 36.490540] ? putname+0xf3/0x130 [ 36.490544] do_group_exit+0x149/0x400 [ 36.490548] ? SyS_exit+0x30/0x30 [ 36.490552] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 36.490557] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.490562] SyS_exit_group+0x1d/0x20 [ 36.490567] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 36.490570] RIP: 0033:0x4429f8 [ 36.490572] RSP: 002b:00007ffc332fc478 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.490576] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 36.490579] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.490581] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.490583] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 36.490585] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 36.490589] [ 36.490591] Allocated by task 3656: [ 36.490596] save_stack+0x43/0xd0 [ 36.490599] kasan_kmalloc+0xad/0xe0 [ 36.490602] kmem_cache_alloc_trace+0x136/0x750 [ 36.490605] binder_get_thread+0x1cf/0x870 [ 36.490608] binder_poll+0x8c/0x390 [ 36.490611] ep_item_poll.isra.10+0xec/0x320 [ 36.490614] ep_insert+0x6a3/0x1b10 [ 36.490618] SyS_epoll_ctl+0x12e4/0x1ab0 [ 36.490621] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 36.490622] [ 36.490623] Freed by task 3656: [ 36.490626] save_stack+0x43/0xd0 [ 36.490629] kasan_slab_free+0x71/0xc0 [ 36.490631] kfree+0xd6/0x260 [ 36.490635] binder_thread_dec_tmpref+0x27f/0x310 [ 36.490638] binder_thread_release+0x27d/0x540 [ 36.490641] binder_ioctl+0xc02/0x1417 [ 36.490644] do_vfs_ioctl+0x1b1/0x1520 [ 36.490647] SyS_ioctl+0x8f/0xc0 [ 36.490650] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 36.490651] [ 36.490654] The buggy address belongs to the object at ffff8801bbf9b040 [ 36.490654] which belongs to the cache kmalloc-512 of size 512 [ 36.490657] The buggy address is located 176 bytes inside of [ 36.490657] 512-byte region [ffff8801bbf9b040, ffff8801bbf9b240) [ 36.490658] The buggy address belongs to the page: [ 36.490661] page:ffffea0006efe6c0 count:1 mapcount:0 mapping:ffff8801bbf9b040 index:0x0 [ 36.490665] flags: 0x2fffc0000000100(slab) [ 36.490670] raw: 02fffc0000000100 ffff8801bbf9b040 0000000000000000 0000000100000006 [ 36.490675] raw: ffffea0006f0c760 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 36.490676] page dumped because: kasan: bad access detected [ 36.490677] [ 36.490678] Memory state around the buggy address: [ 36.490681] ffff8801bbf9af80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 36.490683] ffff8801bbf9b000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 36.490686] >ffff8801bbf9b080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.490687] ^ [ 36.490690] ffff8801bbf9b100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.490693] ffff8801bbf9b180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.490694] ================================================================== [ 36.490695] Disabling lock debugging due to kernel taint [ 36.490698] Kernel panic - not syncing: panic_on_warn set ... [ 36.490698] [ 36.490701] CPU: 0 PID: 3656 Comm: syzkaller145746 Tainted: G B 4.15.0-rc8+ #264 [ 36.490703] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.490704] Call Trace: [ 36.490708] dump_stack+0x194/0x257 [ 36.490713] ? arch_local_irq_restore+0x53/0x53 [ 36.490716] ? kasan_end_report+0x32/0x50 [ 36.490720] ? lock_downgrade+0x980/0x980 [ 36.490725] ? vsnprintf+0x1ed/0x1900 [ 36.490729] ? __lock_acquire+0x3c70/0x3e00 [ 36.490732] panic+0x1e4/0x41c [ 36.490736] ? refcount_error_report+0x214/0x214 [ 36.490740] ? add_taint+0x40/0x50 [ 36.490743] ? add_taint+0x1c/0x50 [ 36.490747] ? __lock_acquire+0x3d4d/0x3e00 [ 36.490750] kasan_end_report+0x50/0x50 [ 36.490754] kasan_report+0x144/0x340 [ 36.490758] __asan_report_load8_noabort+0x14/0x20 [ 36.490762] __lock_acquire+0x3d4d/0x3e00 [ 36.490766] ? print_irqtrace_events+0x270/0x270 [ 36.490769] ? unwind_get_return_address+0x61/0xa0 [ 36.490774] ? remove_wait_queue+0x81/0x350 [ 36.490779] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.490782] ? __lock_acquire+0x664/0x3e00 [ 36.490786] ? print_irqtrace_events+0x270/0x270 [ 36.490790] ? __lock_acquire+0x664/0x3e00 [ 36.490796] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.490801] ? __lock_acquire+0x664/0x3e00 [ 36.490805] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.490808] ? __lock_acquire+0x664/0x3e00 [ 36.490811] ? check_noncircular+0x20/0x20 [ 36.490816] ? check_noncircular+0x20/0x20 [ 36.490820] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.490823] ? __lock_acquire+0x664/0x3e00 [ 36.490827] ? check_noncircular+0x20/0x20 [ 36.490834] lock_acquire+0x1d5/0x580 [ 36.490837] ? lock_acquire+0x1d5/0x580 [ 36.490841] ? remove_wait_queue+0x81/0x350 [ 36.490845] ? lock_release+0xa40/0xa40 [ 36.490849] ? print_irqtrace_events+0x270/0x270 [ 36.490852] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.490857] ? lock_acquire+0x1d5/0x580 [ 36.490860] ? lock_acquire+0x1d5/0x580 [ 36.490864] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 36.490869] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.490872] ? remove_wait_queue+0x81/0x350 [ 36.490876] remove_wait_queue+0x81/0x350 [ 36.490879] ? eventpoll_release_file+0xba/0x140 [ 36.490884] ? add_wait_queue+0x290/0x290 [ 36.490887] ? rcutorture_record_progress+0x10/0x10 [ 36.490890] ? mutex_lock_io_nested+0x1900/0x1900 [ 36.490896] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 36.490900] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.490905] ? clear_tfile_check_list+0x370/0x370 [ 36.490909] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.490913] ? rcutorture_record_progress+0x10/0x10 [ 36.490918] ? is_bpf_text_address+0xa4/0x120 [ 36.490922] ep_remove+0xcd/0x800 [ 36.490926] ? unwind_get_return_address+0x61/0xa0 [ 36.490936] ? ep_destroy_wakeup_source+0x240/0x240 [ 36.490939] ? check_noncircular+0x20/0x20 [ 36.490943] ? check_noncircular+0x20/0x20 [ 36.490948] ? fsnotify+0x7b3/0x1140 [ 36.490955] eventpoll_release_file+0xc5/0x140 [ 36.490960] __fput+0x5f1/0x7e0 [ 36.490965] ? fput+0x140/0x140 [ 36.490969] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.490974] ____fput+0x15/0x20 [ 36.490978] task_work_run+0x199/0x270 [ 36.490982] ? task_work_cancel+0x210/0x210 [ 36.490986] ? _raw_spin_unlock+0x22/0x30 [ 36.490990] ? switch_task_namespaces+0x87/0xc0 [ 36.490994] do_exit+0x9bb/0x1ad0 [ 36.490999] ? binder_ioctl+0x4d1/0x1417 [ 36.491006] ? mm_update_next_owner+0x930/0x930 [ 36.491011] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 36.491016] ? avc_ss_reset+0x110/0x110 [ 36.491019] ? mutex_unlock+0xd/0x10 [ 36.491023] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 36.491033] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 36.491036] ? up_read+0x1a/0x40 [ 36.491040] ? rcu_note_context_switch+0x710/0x710 [ 36.491046] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 36.491049] ? do_vfs_ioctl+0x486/0x1520 [ 36.491052] ? _cond_resched+0x14/0x30 [ 36.491056] ? ioctl_preallocate+0x2b0/0x2b0 [ 36.491061] ? selinux_capable+0x40/0x40 [ 36.491065] ? putname+0xf3/0x130 [ 36.491070] do_group_exit+0x149/0x400 [ 36.491074] ? SyS_exit+0x30/0x30 [ 36.491078] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 36.491081] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.491086] SyS_exit_group+0x1d/0x20 [ 36.491090] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 36.491093] RIP: 0033:0x4429f8 [ 36.491095] RSP: 002b:00007ffc332fc478 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.491099] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 36.491101] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.491103] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.491105] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 36.491107] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 36.512656] Dumping ftrace buffer: [ 36.512659] (ftrace buffer empty) [ 36.512660] Kernel Offset: disabled [ 37.688227] Rebooting in 86400 seconds..