[....] Starting enhanced syslogd: rsyslogd[ 16.548664] audit: type=1400 audit(1517305579.039:5): avc: denied { syslog } for pid=4001 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.761620] audit: type=1400 audit(1517305581.252:6): avc: denied { map } for pid=4140 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.220' (ECDSA) to the list of known hosts. executing program [ 43.237187] audit: type=1400 audit(1517305605.727:7): avc: denied { map } for pid=4159 comm="syzkaller847356" path="/root/syzkaller847356439" 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 [ 43.241962] ================================================================== [ 43.241976] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 43.241980] Read of size 8 at addr ffff8801b4d2c630 by task syzkaller847356/4159 [ 43.241981] [ 43.241987] CPU: 1 PID: 4159 Comm: syzkaller847356 Not tainted 4.15.0+ #196 [ 43.241989] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.241991] Call Trace: [ 43.242000] dump_stack+0x194/0x257 [ 43.242009] ? arch_local_irq_restore+0x53/0x53 [ 43.242016] ? show_regs_print_info+0x18/0x18 [ 43.242019] ? print_irqtrace_events+0x270/0x270 [ 43.242023] ? __lock_acquire+0x664/0x3e00 [ 43.242027] ? __lock_acquire+0x3d4d/0x3e00 [ 43.242035] print_address_description+0x73/0x250 [ 43.242038] ? __lock_acquire+0x3d4d/0x3e00 [ 43.242042] kasan_report+0x25b/0x340 [ 43.242047] __asan_report_load8_noabort+0x14/0x20 [ 43.242051] __lock_acquire+0x3d4d/0x3e00 [ 43.242054] ? __lock_acquire+0x664/0x3e00 [ 43.242058] ? lock_downgrade+0x980/0x980 [ 43.242061] ? lock_downgrade+0x980/0x980 [ 43.242065] ? print_irqtrace_events+0x270/0x270 [ 43.242071] ? remove_wait_queue+0x81/0x350 [ 43.242077] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 43.242081] ? __lock_acquire+0x664/0x3e00 [ 43.242084] ? check_noncircular+0x20/0x20 [ 43.242091] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 43.242096] ? lock_acquire+0x1d5/0x580 [ 43.242099] ? lock_acquire+0x1d5/0x580 [ 43.242105] ? ep_free+0xf4/0x320 [ 43.242110] ? lock_release+0xa40/0xa40 [ 43.242115] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 43.242118] ? print_irqtrace_events+0x270/0x270 [ 43.242122] ? print_irqtrace_events+0x270/0x270 [ 43.242128] ? rcu_note_context_switch+0x710/0x710 [ 43.242133] ? __might_sleep+0x95/0x190 [ 43.242136] ? ep_free+0xf4/0x320 [ 43.242142] ? __mutex_lock+0x16f/0x1a80 [ 43.242145] ? ep_free+0xf4/0x320 [ 43.242150] ? print_irqtrace_events+0x270/0x270 [ 43.242153] ? ep_free+0xf4/0x320 [ 43.242157] lock_acquire+0x1d5/0x580 [ 43.242161] ? lock_acquire+0x1d5/0x580 [ 43.242164] ? remove_wait_queue+0x81/0x350 [ 43.242169] ? lock_release+0xa40/0xa40 [ 43.242174] ? lock_acquire+0x1d5/0x580 [ 43.242178] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 43.242181] ? lock_acquire+0x1d5/0x580 [ 43.242185] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 43.242192] _raw_spin_lock_irqsave+0x96/0xc0 [ 43.242195] ? remove_wait_queue+0x81/0x350 [ 43.242199] remove_wait_queue+0x81/0x350 [ 43.242205] ? depot_save_stack+0x3b5/0x490 [ 43.242209] ? add_wait_queue+0x290/0x290 [ 43.242213] ? rcutorture_record_progress+0x10/0x10 [ 43.242217] ? lock_release+0xa40/0xa40 [ 43.242222] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 43.242228] ? __kernel_text_address+0xd/0x40 [ 43.242233] ? clear_tfile_check_list+0x370/0x370 [ 43.242238] ? check_noncircular+0x20/0x20 [ 43.242244] ? locks_remove_file+0x3fa/0x5a0 [ 43.242249] ep_free+0x13f/0x320 [ 43.242253] ? ep_remove+0x800/0x800 [ 43.242256] ? fsnotify_first_mark+0x2b0/0x2b0 [ 43.242261] ? ep_free+0x320/0x320 [ 43.242265] ep_eventpoll_release+0x44/0x60 [ 43.242270] __fput+0x327/0x7e0 [ 43.242275] ? fput+0x140/0x140 [ 43.242280] ? _raw_spin_unlock_irq+0x27/0x70 [ 43.242285] ____fput+0x15/0x20 [ 43.242288] task_work_run+0x199/0x270 [ 43.242293] ? task_work_cancel+0x210/0x210 [ 43.242297] ? _raw_spin_unlock+0x22/0x30 [ 43.242301] ? switch_task_namespaces+0x87/0xc0 [ 43.242306] do_exit+0x9bb/0x1ad0 [ 43.242311] ? __handle_mm_fault+0x2330/0x3ce0 [ 43.242316] ? mm_update_next_owner+0x930/0x930 [ 43.242322] ? do_raw_spin_trylock+0x190/0x190 [ 43.242326] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 43.242330] ? check_noncircular+0x20/0x20 [ 43.242334] ? _raw_spin_unlock+0x22/0x30 [ 43.242338] ? __handle_mm_fault+0x80e/0x3ce0 [ 43.242342] ? check_noncircular+0x20/0x20 [ 43.242345] ? __pmd_alloc+0x4e0/0x4e0 [ 43.242349] ? lock_downgrade+0x980/0x980 [ 43.242353] ? find_held_lock+0x35/0x1d0 [ 43.242358] ? handle_mm_fault+0x248/0x8d0 [ 43.242362] ? find_held_lock+0x35/0x1d0 [ 43.242370] ? __do_page_fault+0x5f7/0xc90 [ 43.242374] ? lock_downgrade+0x980/0x980 [ 43.242379] ? handle_mm_fault+0x410/0x8d0 [ 43.242382] ? down_read_trylock+0xdb/0x170 [ 43.242386] ? __do_page_fault+0x32d/0xc90 [ 43.242389] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 43.242392] ? vmacache_find+0x5f/0x280 [ 43.242397] do_group_exit+0x149/0x400 [ 43.242402] ? __do_page_fault+0x3d6/0xc90 [ 43.242405] ? SyS_exit+0x30/0x30 [ 43.242412] ? do_fast_syscall_32+0x156/0xf9d [ 43.242415] ? do_group_exit+0x400/0x400 [ 43.242419] SyS_exit_group+0x1d/0x20 [ 43.242423] do_fast_syscall_32+0x3ee/0xf9d [ 43.242428] ? do_int80_syscall_32+0x9d0/0x9d0 [ 43.242431] ? kasan_check_read+0x11/0x20 [ 43.242436] ? syscall_return_slowpath+0x550/0x550 [ 43.242440] ? SyS_rt_sigaction+0x94/0x1b0 [ 43.242444] ? SyS_sigprocmask+0x4b0/0x4b0 [ 43.242447] ? SyS_read+0x184/0x220 [ 43.242451] ? retint_user+0x18/0x18 [ 43.242456] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 43.242461] entry_SYSENTER_compat+0x54/0x63 [ 43.242465] RIP: 0023:0xf7f7bc79 [ 43.242467] RSP: 002b:00000000ffa3ed7c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 43.242471] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 43.242473] RDX: 0000000000000000 RSI: 00000000080d9ab8 RDI: 00000000080f02a0 [ 43.242475] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 43.242477] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 43.242479] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 43.242483] [ 43.242485] Allocated by task 4159: [ 43.242489] save_stack+0x43/0xd0 [ 43.242492] kasan_kmalloc+0xad/0xe0 [ 43.242495] kmem_cache_alloc_trace+0x136/0x750 [ 43.242500] binder_get_thread+0x1cf/0x870 [ 43.242502] binder_poll+0x8c/0x390 [ 43.242506] ep_item_poll.isra.10+0xec/0x320 [ 43.242509] ep_insert+0x6a3/0x1b10 [ 43.242512] SyS_epoll_ctl+0x12e4/0x1ab0 [ 43.242515] do_fast_syscall_32+0x3ee/0xf9d [ 43.242518] entry_SYSENTER_compat+0x54/0x63 [ 43.242518] [ 43.242520] Freed by task 4159: [ 43.242522] save_stack+0x43/0xd0 [ 43.242525] kasan_slab_free+0x71/0xc0 [ 43.242528] kfree+0xd6/0x260 [ 43.242531] binder_thread_dec_tmpref+0x27f/0x310 [ 43.242533] binder_thread_release+0x27d/0x540 [ 43.242536] binder_ioctl+0xc02/0x1417 [ 43.242539] compat_SyS_ioctl+0x151/0x2a30 [ 43.242542] do_fast_syscall_32+0x3ee/0xf9d [ 43.242545] entry_SYSENTER_compat+0x54/0x63 [ 43.242546] [ 43.242549] The buggy address belongs to the object at ffff8801b4d2c580 [ 43.242549] which belongs to the cache kmalloc-512 of size 512 [ 43.242552] The buggy address is located 176 bytes inside of [ 43.242552] 512-byte region [ffff8801b4d2c580, ffff8801b4d2c780) [ 43.242553] The buggy address belongs to the page: [ 43.242556] page:ffffea0006d34b00 count:1 mapcount:0 mapping:ffff8801b4d2c080 index:0x0 [ 43.242561] flags: 0x2fffc0000000100(slab) [ 43.242567] raw: 02fffc0000000100 ffff8801b4d2c080 0000000000000000 0000000100000006 [ 43.242571] raw: ffffea00072cb620 ffff8801db001748 ffff8801db000940 0000000000000000 [ 43.242573] page dumped because: kasan: bad access detected [ 43.242574] [ 43.242575] Memory state around the buggy address: [ 43.242578] ffff8801b4d2c500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 43.242580] ffff8801b4d2c580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.242583] >ffff8801b4d2c600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.242584] ^ [ 43.242587] ffff8801b4d2c680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.242589] ffff8801b4d2c700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.242590] ================================================================== [ 43.242591] Disabling lock debugging due to kernel taint [ 43.242594] Kernel panic - not syncing: panic_on_warn set ... [ 43.242594] [ 43.242598] CPU: 1 PID: 4159 Comm: syzkaller847356 Tainted: G B 4.15.0+ #196 [ 43.242600] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.242600] Call Trace: [ 43.242605] dump_stack+0x194/0x257 [ 43.242609] ? arch_local_irq_restore+0x53/0x53 [ 43.242612] ? kasan_end_report+0x32/0x50 [ 43.242616] ? lock_downgrade+0x980/0x980 [ 43.242621] ? vsnprintf+0x1ed/0x1900 [ 43.242625] ? __lock_acquire+0x3cd0/0x3e00 [ 43.242628] panic+0x1e4/0x41c [ 43.242632] ? refcount_error_report+0x214/0x214 [ 43.242636] ? add_taint+0x40/0x50 [ 43.242639] ? add_taint+0x1c/0x50 [ 43.242643] ? __lock_acquire+0x3d4d/0x3e00 [ 43.242646] kasan_end_report+0x50/0x50 [ 43.242650] kasan_report+0x144/0x340 [ 43.242655] __asan_report_load8_noabort+0x14/0x20 [ 43.242658] __lock_acquire+0x3d4d/0x3e00 [ 43.242661] ? __lock_acquire+0x664/0x3e00 [ 43.242665] ? lock_downgrade+0x980/0x980 [ 43.242668] ? lock_downgrade+0x980/0x980 [ 43.242672] ? print_irqtrace_events+0x270/0x270 [ 43.242675] ? remove_wait_queue+0x81/0x350 [ 43.242680] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 43.242684] ? __lock_acquire+0x664/0x3e00 [ 43.242688] ? check_noncircular+0x20/0x20 [ 43.242694] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 43.242698] ? lock_acquire+0x1d5/0x580 [ 43.242701] ? lock_acquire+0x1d5/0x580 [ 43.242705] ? ep_free+0xf4/0x320 [ 43.242709] ? lock_release+0xa40/0xa40 [ 43.242713] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 43.242716] ? print_irqtrace_events+0x270/0x270 [ 43.242720] ? print_irqtrace_events+0x270/0x270 [ 43.242724] ? rcu_note_context_switch+0x710/0x710 [ 43.242728] ? __might_sleep+0x95/0x190 [ 43.242731] ? ep_free+0xf4/0x320 [ 43.242735] ? __mutex_lock+0x16f/0x1a80 [ 43.242738] ? ep_free+0xf4/0x320 [ 43.242742] ? print_irqtrace_events+0x270/0x270 [ 43.242745] ? ep_free+0xf4/0x320 [ 43.242750] lock_acquire+0x1d5/0x580 [ 43.242753] ? lock_acquire+0x1d5/0x580 [ 43.242757] ? remove_wait_queue+0x81/0x350 [ 43.242761] ? lock_release+0xa40/0xa40 [ 43.242766] ? lock_acquire+0x1d5/0x580 [ 43.242770] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 43.242773] ? lock_acquire+0x1d5/0x580 [ 43.242777] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 43.242781] _raw_spin_lock_irqsave+0x96/0xc0 [ 43.242785] ? remove_wait_queue+0x81/0x350 [ 43.242789] remove_wait_queue+0x81/0x350 [ 43.242792] ? depot_save_stack+0x3b5/0x490 [ 43.242796] ? add_wait_queue+0x290/0x290 [ 43.242800] ? rcutorture_record_progress+0x10/0x10 [ 43.242803] ? lock_release+0xa40/0xa40 [ 43.242808] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 43.242813] ? __kernel_text_address+0xd/0x40 [ 43.242817] ? clear_tfile_check_list+0x370/0x370 [ 43.242822] ? check_noncircular+0x20/0x20 [ 43.242827] ? locks_remove_file+0x3fa/0x5a0 [ 43.242832] ep_free+0x13f/0x320 [ 43.242836] ? ep_remove+0x800/0x800 [ 43.242844] ? fsnotify_first_mark+0x2b0/0x2b0 [ 43.242849] ? ep_free+0x320/0x320 [ 43.242853] ep_eventpoll_release+0x44/0x60 [ 43.242856] __fput+0x327/0x7e0 [ 43.242861] ? fput+0x140/0x140 [ 43.242865] ? _raw_spin_unlock_irq+0x27/0x70 [ 43.242870] ____fput+0x15/0x20 [ 43.242874] task_work_run+0x199/0x270 [ 43.242878] ? task_work_cancel+0x210/0x210 [ 43.242882] ? _raw_spin_unlock+0x22/0x30 [ 43.242886] ? switch_task_namespaces+0x87/0xc0 [ 43.242890] do_exit+0x9bb/0x1ad0 [ 43.242894] ? __handle_mm_fault+0x2330/0x3ce0 [ 43.242898] ? mm_update_next_owner+0x930/0x930 [ 43.242904] ? do_raw_spin_trylock+0x190/0x190 [ 43.242908] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 43.242911] ? check_noncircular+0x20/0x20 [ 43.242916] ? _raw_spin_unlock+0x22/0x30 [ 43.242919] ? __handle_mm_fault+0x80e/0x3ce0 [ 43.242924] ? check_noncircular+0x20/0x20 [ 43.242927] ? __pmd_alloc+0x4e0/0x4e0 [ 43.242930] ? lock_downgrade+0x980/0x980 [ 43.242934] ? find_held_lock+0x35/0x1d0 [ 43.242939] ? handle_mm_fault+0x248/0x8d0 [ 43.242943] ? find_held_lock+0x35/0x1d0 [ 43.242948] ? __do_page_fault+0x5f7/0xc90 [ 43.242952] ? lock_downgrade+0x980/0x980 [ 43.242957] ? handle_mm_fault+0x410/0x8d0 [ 43.242960] ? down_read_trylock+0xdb/0x170 [ 43.242964] ? __do_page_fault+0x32d/0xc90 [ 43.242967] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 43.242970] ? vmacache_find+0x5f/0x280 [ 43.242975] do_group_exit+0x149/0x400 [ 43.242979] ? __do_page_fault+0x3d6/0xc90 [ 43.242982] ? SyS_exit+0x30/0x30 [ 43.242986] ? do_fast_syscall_32+0x156/0xf9d [ 43.242990] ? do_group_exit+0x400/0x400 [ 43.242994] SyS_exit_group+0x1d/0x20 [ 43.242997] do_fast_syscall_32+0x3ee/0xf9d [ 43.243002] ? do_int80_syscall_32+0x9d0/0x9d0 [ 43.243006] ? kasan_check_read+0x11/0x20 [ 43.243010] ? syscall_return_slowpath+0x550/0x550 [ 43.243014] ? SyS_rt_sigaction+0x94/0x1b0 [ 43.243018] ? SyS_sigprocmask+0x4b0/0x4b0 [ 43.243021] ? SyS_read+0x184/0x220 [ 43.243025] ? retint_user+0x18/0x18 [ 43.243029] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 43.243034] entry_SYSENTER_compat+0x54/0x63 [ 43.243036] RIP: 0023:0xf7f7bc79 [ 43.243038] RSP: 002b:00000000ffa3ed7c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 43.243041] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 43.243043] RDX: 0000000000000000 RSI: 00000000080d9ab8 RDI: 00000000080f02a0 [ 43.243045] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 43.243047] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 43.243049] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 43.263474] Dumping ftrace buffer: [ 43.263478] (ftrace buffer empty) [ 43.263481] Kernel Offset: disabled [ 44.544510] Rebooting in 86400 seconds..