[....] Starting enhanced syslogd: rsyslogd[ 12.768750] audit: type=1400 audit(1515934302.383:5): avc: denied { syslog } for pid=3500 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: [ 18.099737] audit: type=1400 audit(1515934307.714:6): avc: denied { map } for pid=3640 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.25' (ECDSA) to the list of known hosts. executing program [ 38.036645] audit: type=1400 audit(1515934327.651:7): avc: denied { map } for pid=3657 comm="syzkaller572038" path="/root/syzkaller572038837" 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 [ 38.042278] ================================================================== [ 38.042290] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 38.042293] Read of size 8 at addr ffff8801bb951630 by task syzkaller572038/3657 [ 38.042294] [ 38.042299] CPU: 1 PID: 3657 Comm: syzkaller572038 Not tainted 4.15.0-rc7+ #171 [ 38.042302] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.042303] Call Trace: [ 38.042312] dump_stack+0x194/0x257 [ 38.042317] ? arch_local_irq_restore+0x53/0x53 [ 38.042323] ? show_regs_print_info+0x18/0x18 [ 38.042326] ? print_irqtrace_events+0x270/0x270 [ 38.042330] ? __lock_acquire+0x664/0x3e00 [ 38.042334] ? __lock_acquire+0x3d4d/0x3e00 [ 38.042340] print_address_description+0x73/0x250 [ 38.042344] ? __lock_acquire+0x3d4d/0x3e00 [ 38.042348] kasan_report+0x25b/0x340 [ 38.042352] __asan_report_load8_noabort+0x14/0x20 [ 38.042356] __lock_acquire+0x3d4d/0x3e00 [ 38.042359] ? __lock_acquire+0x664/0x3e00 [ 38.042363] ? lock_downgrade+0x980/0x980 [ 38.042366] ? lock_downgrade+0x980/0x980 [ 38.042370] ? print_irqtrace_events+0x270/0x270 [ 38.042375] ? remove_wait_queue+0x81/0x350 [ 38.042381] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.042385] ? __lock_acquire+0x664/0x3e00 [ 38.042388] ? check_noncircular+0x20/0x20 [ 38.042395] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.042399] ? lock_acquire+0x1d5/0x580 [ 38.042402] ? lock_acquire+0x1d5/0x580 [ 38.042407] ? ep_free+0xf4/0x320 [ 38.042412] ? lock_release+0xa40/0xa40 [ 38.042417] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.042420] ? print_irqtrace_events+0x270/0x270 [ 38.042423] ? print_irqtrace_events+0x270/0x270 [ 38.042430] ? rcu_note_context_switch+0x710/0x710 [ 38.042434] ? __might_sleep+0x95/0x190 [ 38.042438] ? ep_free+0xf4/0x320 [ 38.042443] ? __mutex_lock+0x16f/0x1a80 [ 38.042446] ? ep_free+0xf4/0x320 [ 38.042450] ? print_irqtrace_events+0x270/0x270 [ 38.042453] ? ep_free+0xf4/0x320 [ 38.042458] lock_acquire+0x1d5/0x580 [ 38.042461] ? lock_acquire+0x1d5/0x580 [ 38.042465] ? remove_wait_queue+0x81/0x350 [ 38.042470] ? lock_release+0xa40/0xa40 [ 38.042475] ? lock_acquire+0x1d5/0x580 [ 38.042478] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.042482] ? lock_acquire+0x1d5/0x580 [ 38.042485] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 38.042492] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.042496] ? remove_wait_queue+0x81/0x350 [ 38.042499] remove_wait_queue+0x81/0x350 [ 38.042505] ? depot_save_stack+0x3b5/0x490 [ 38.042509] ? add_wait_queue+0x290/0x290 [ 38.042513] ? rcutorture_record_progress+0x10/0x10 [ 38.042516] ? lock_release+0xa40/0xa40 [ 38.042522] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 38.042529] ? __kernel_text_address+0xd/0x40 [ 38.042534] ? clear_tfile_check_list+0x370/0x370 [ 38.042538] ? check_noncircular+0x20/0x20 [ 38.042544] ? locks_remove_file+0x3fa/0x5a0 [ 38.042549] ep_free+0x13f/0x320 [ 38.042553] ? ep_remove+0x800/0x800 [ 38.042556] ? fsnotify_first_mark+0x2b0/0x2b0 [ 38.042561] ? ep_free+0x320/0x320 [ 38.042564] ep_eventpoll_release+0x44/0x60 [ 38.042569] __fput+0x327/0x7e0 [ 38.042574] ? fput+0x140/0x140 [ 38.042578] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.042583] ____fput+0x15/0x20 [ 38.042587] task_work_run+0x199/0x270 [ 38.042592] ? task_work_cancel+0x210/0x210 [ 38.042596] ? _raw_spin_unlock+0x22/0x30 [ 38.042599] ? switch_task_namespaces+0x87/0xc0 [ 38.042605] do_exit+0x9bb/0x1ad0 [ 38.042610] ? __handle_mm_fault+0x2330/0x3ce0 [ 38.042614] ? mm_update_next_owner+0x930/0x930 [ 38.042620] ? do_raw_spin_trylock+0x190/0x190 [ 38.042625] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.042628] ? check_noncircular+0x20/0x20 [ 38.042633] ? _raw_spin_unlock+0x22/0x30 [ 38.042636] ? __handle_mm_fault+0x80e/0x3ce0 [ 38.042641] ? check_noncircular+0x20/0x20 [ 38.042644] ? __pmd_alloc+0x4e0/0x4e0 [ 38.042647] ? lock_downgrade+0x980/0x980 [ 38.042652] ? find_held_lock+0x35/0x1d0 [ 38.042657] ? handle_mm_fault+0x248/0x8d0 [ 38.042661] ? find_held_lock+0x35/0x1d0 [ 38.042667] ? __do_page_fault+0x5f7/0xc90 [ 38.042671] ? lock_downgrade+0x980/0x980 [ 38.042676] ? handle_mm_fault+0x410/0x8d0 [ 38.042679] ? down_read_trylock+0xdb/0x170 [ 38.042683] ? __do_page_fault+0x32d/0xc90 [ 38.042686] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 38.042690] ? vmacache_find+0x5f/0x280 [ 38.042695] do_group_exit+0x149/0x400 [ 38.042699] ? __do_page_fault+0x3d6/0xc90 [ 38.042703] ? SyS_exit+0x30/0x30 [ 38.042708] ? do_fast_syscall_32+0x156/0xf9d [ 38.042712] ? do_group_exit+0x400/0x400 [ 38.042716] SyS_exit_group+0x1d/0x20 [ 38.042720] do_fast_syscall_32+0x3ee/0xf9d [ 38.042725] ? do_int80_syscall_32+0x9d0/0x9d0 [ 38.042729] ? kasan_check_read+0x11/0x20 [ 38.042733] ? syscall_return_slowpath+0x550/0x550 [ 38.042737] ? SyS_rt_sigaction+0x94/0x1b0 [ 38.042741] ? SyS_sigprocmask+0x4b0/0x4b0 [ 38.042744] ? SyS_read+0x184/0x220 [ 38.042748] ? retint_user+0x18/0x18 [ 38.042753] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.042758] entry_SYSENTER_compat+0x54/0x63 [ 38.042761] RIP: 0023:0xf7f5ec79 [ 38.042764] RSP: 002b:00000000ff935e5c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 38.042768] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 38.042770] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 38.042771] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 38.042773] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 38.042775] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 38.042779] [ 38.042781] Allocated by task 3657: [ 38.042786] save_stack+0x43/0xd0 [ 38.042788] kasan_kmalloc+0xad/0xe0 [ 38.042791] kmem_cache_alloc_trace+0x136/0x750 [ 38.042796] binder_get_thread+0x1cf/0x870 [ 38.042799] binder_poll+0x8c/0x390 [ 38.042803] ep_item_poll.isra.10+0xec/0x320 [ 38.042806] ep_insert+0x6a3/0x1b10 [ 38.042809] SyS_epoll_ctl+0x12e4/0x1ab0 [ 38.042812] do_fast_syscall_32+0x3ee/0xf9d [ 38.042815] entry_SYSENTER_compat+0x54/0x63 [ 38.042815] [ 38.042817] Freed by task 3657: [ 38.042819] save_stack+0x43/0xd0 [ 38.042822] kasan_slab_free+0x71/0xc0 [ 38.042825] kfree+0xd6/0x260 [ 38.042828] binder_thread_dec_tmpref+0x27f/0x310 [ 38.042831] binder_thread_release+0x27d/0x540 [ 38.042835] binder_ioctl+0xc02/0x1417 [ 38.042838] compat_SyS_ioctl+0x151/0x2a30 [ 38.042841] do_fast_syscall_32+0x3ee/0xf9d [ 38.042844] entry_SYSENTER_compat+0x54/0x63 [ 38.042845] [ 38.042847] The buggy address belongs to the object at ffff8801bb951580 [ 38.042847] which belongs to the cache kmalloc-512 of size 512 [ 38.042850] The buggy address is located 176 bytes inside of [ 38.042850] 512-byte region [ffff8801bb951580, ffff8801bb951780) [ 38.042851] The buggy address belongs to the page: [ 38.042855] page:ffffea0006ee5440 count:1 mapcount:0 mapping:ffff8801bb951080 index:0x0 [ 38.042858] flags: 0x2fffc0000000100(slab) [ 38.042864] raw: 02fffc0000000100 ffff8801bb951080 0000000000000000 0000000100000006 [ 38.042868] raw: ffffea0006ed0860 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 38.042869] page dumped because: kasan: bad access detected [ 38.042870] [ 38.042871] Memory state around the buggy address: [ 38.042874] ffff8801bb951500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.042877] ffff8801bb951580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.042879] >ffff8801bb951600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.042881] ^ [ 38.042883] ffff8801bb951680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.042886] ffff8801bb951700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.042887] ================================================================== [ 38.042888] Disabling lock debugging due to kernel taint [ 38.042890] Kernel panic - not syncing: panic_on_warn set ... [ 38.042890] [ 38.042894] CPU: 1 PID: 3657 Comm: syzkaller572038 Tainted: G B 4.15.0-rc7+ #171 [ 38.042895] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.042896] Call Trace: [ 38.042901] dump_stack+0x194/0x257 [ 38.042905] ? arch_local_irq_restore+0x53/0x53 [ 38.042909] ? kasan_end_report+0x32/0x50 [ 38.042913] ? lock_downgrade+0x980/0x980 [ 38.042917] ? vsnprintf+0x1ed/0x1900 [ 38.042921] ? __lock_acquire+0x3cb0/0x3e00 [ 38.042924] panic+0x1e4/0x41c [ 38.042928] ? refcount_error_report+0x214/0x214 [ 38.042932] ? add_taint+0x40/0x50 [ 38.042935] ? add_taint+0x1c/0x50 [ 38.042939] ? __lock_acquire+0x3d4d/0x3e00 [ 38.042943] kasan_end_report+0x50/0x50 [ 38.042946] kasan_report+0x144/0x340 [ 38.042951] __asan_report_load8_noabort+0x14/0x20 [ 38.042954] __lock_acquire+0x3d4d/0x3e00 [ 38.042958] ? __lock_acquire+0x664/0x3e00 [ 38.042961] ? lock_downgrade+0x980/0x980 [ 38.042964] ? lock_downgrade+0x980/0x980 [ 38.042968] ? print_irqtrace_events+0x270/0x270 [ 38.042972] ? remove_wait_queue+0x81/0x350 [ 38.042977] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.042980] ? __lock_acquire+0x664/0x3e00 [ 38.042984] ? check_noncircular+0x20/0x20 [ 38.042990] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.042994] ? lock_acquire+0x1d5/0x580 [ 38.042998] ? lock_acquire+0x1d5/0x580 [ 38.043005] ? ep_free+0xf4/0x320 [ 38.043010] ? lock_release+0xa40/0xa40 [ 38.043014] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.043017] ? print_irqtrace_events+0x270/0x270 [ 38.043020] ? print_irqtrace_events+0x270/0x270 [ 38.043024] ? rcu_note_context_switch+0x710/0x710 [ 38.043028] ? __might_sleep+0x95/0x190 [ 38.043032] ? ep_free+0xf4/0x320 [ 38.043035] ? __mutex_lock+0x16f/0x1a80 [ 38.043038] ? ep_free+0xf4/0x320 [ 38.043042] ? print_irqtrace_events+0x270/0x270 [ 38.043045] ? ep_free+0xf4/0x320 [ 38.043050] lock_acquire+0x1d5/0x580 [ 38.043053] ? lock_acquire+0x1d5/0x580 [ 38.043057] ? remove_wait_queue+0x81/0x350 [ 38.043062] ? lock_release+0xa40/0xa40 [ 38.043067] ? lock_acquire+0x1d5/0x580 [ 38.043070] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.043073] ? lock_acquire+0x1d5/0x580 [ 38.043077] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 38.043082] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.043085] ? remove_wait_queue+0x81/0x350 [ 38.043089] remove_wait_queue+0x81/0x350 [ 38.043093] ? depot_save_stack+0x3b5/0x490 [ 38.043097] ? add_wait_queue+0x290/0x290 [ 38.043100] ? rcutorture_record_progress+0x10/0x10 [ 38.043104] ? lock_release+0xa40/0xa40 [ 38.043109] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 38.043113] ? __kernel_text_address+0xd/0x40 [ 38.043118] ? clear_tfile_check_list+0x370/0x370 [ 38.043122] ? check_noncircular+0x20/0x20 [ 38.043127] ? locks_remove_file+0x3fa/0x5a0 [ 38.043132] ep_free+0x13f/0x320 [ 38.043136] ? ep_remove+0x800/0x800 [ 38.043139] ? fsnotify_first_mark+0x2b0/0x2b0 [ 38.043144] ? ep_free+0x320/0x320 [ 38.043147] ep_eventpoll_release+0x44/0x60 [ 38.043151] __fput+0x327/0x7e0 [ 38.043156] ? fput+0x140/0x140 [ 38.043160] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.043169] ____fput+0x15/0x20 [ 38.043174] task_work_run+0x199/0x270 [ 38.043178] ? task_work_cancel+0x210/0x210 [ 38.043182] ? _raw_spin_unlock+0x22/0x30 [ 38.043186] ? switch_task_namespaces+0x87/0xc0 [ 38.043190] do_exit+0x9bb/0x1ad0 [ 38.043194] ? __handle_mm_fault+0x2330/0x3ce0 [ 38.043198] ? mm_update_next_owner+0x930/0x930 [ 38.043203] ? do_raw_spin_trylock+0x190/0x190 [ 38.043208] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.043211] ? check_noncircular+0x20/0x20 [ 38.043216] ? _raw_spin_unlock+0x22/0x30 [ 38.043219] ? __handle_mm_fault+0x80e/0x3ce0 [ 38.043224] ? check_noncircular+0x20/0x20 [ 38.043227] ? __pmd_alloc+0x4e0/0x4e0 [ 38.043230] ? lock_downgrade+0x980/0x980 [ 38.043234] ? find_held_lock+0x35/0x1d0 [ 38.043239] ? handle_mm_fault+0x248/0x8d0 [ 38.043243] ? find_held_lock+0x35/0x1d0 [ 38.043249] ? __do_page_fault+0x5f7/0xc90 [ 38.043252] ? lock_downgrade+0x980/0x980 [ 38.043257] ? handle_mm_fault+0x410/0x8d0 [ 38.043260] ? down_read_trylock+0xdb/0x170 [ 38.043264] ? __do_page_fault+0x32d/0xc90 [ 38.043267] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 38.043271] ? vmacache_find+0x5f/0x280 [ 38.043276] do_group_exit+0x149/0x400 [ 38.043280] ? __do_page_fault+0x3d6/0xc90 [ 38.043283] ? SyS_exit+0x30/0x30 [ 38.043288] ? do_fast_syscall_32+0x156/0xf9d [ 38.043291] ? do_group_exit+0x400/0x400 [ 38.043295] SyS_exit_group+0x1d/0x20 [ 38.043298] do_fast_syscall_32+0x3ee/0xf9d [ 38.043303] ? do_int80_syscall_32+0x9d0/0x9d0 [ 38.043307] ? kasan_check_read+0x11/0x20 [ 38.043311] ? syscall_return_slowpath+0x550/0x550 [ 38.043315] ? SyS_rt_sigaction+0x94/0x1b0 [ 38.043319] ? SyS_sigprocmask+0x4b0/0x4b0 [ 38.043323] ? SyS_read+0x184/0x220 [ 38.043325] ? retint_user+0x18/0x18 [ 38.043330] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.043335] entry_SYSENTER_compat+0x54/0x63 [ 38.043337] RIP: 0023:0xf7f5ec79 [ 38.043339] RSP: 002b:00000000ff935e5c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 38.043343] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 38.043345] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 38.043347] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 38.043349] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 38.043351] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 38.062914] Dumping ftrace buffer: [ 38.062918] (ftrace buffer empty) [ 38.062920] Kernel Offset: disabled [ 39.344186] Rebooting in 86400 seconds..