[....] Starting enhanced syslogd: rsyslogd[ 17.594756] audit: type=1400 audit(1517303052.204:5): avc: denied { syslog } for pid=4006 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: [ 23.697114] audit: type=1400 audit(1517303058.306:6): avc: denied { map } for pid=4146 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.51' (ECDSA) to the list of known hosts. executing program [ 30.009288] audit: type=1400 audit(1517303064.618:7): avc: denied { map } for pid=4161 comm="syzkaller238757" path="/root/syzkaller238757789" 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 [ 30.015916] ================================================================== [ 30.015935] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 30.015941] Read of size 8 at addr ffff8801b1f73370 by task syzkaller238757/4161 [ 30.015942] [ 30.015951] CPU: 0 PID: 4161 Comm: syzkaller238757 Not tainted 4.15.0+ #196 [ 30.015954] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.015957] Call Trace: [ 30.015967] dump_stack+0x194/0x257 [ 30.015975] ? arch_local_irq_restore+0x53/0x53 [ 30.015985] ? show_regs_print_info+0x18/0x18 [ 30.015991] ? print_irqtrace_events+0x270/0x270 [ 30.015997] ? __lock_acquire+0x664/0x3e00 [ 30.016009] ? __lock_acquire+0x3d4d/0x3e00 [ 30.016019] print_address_description+0x73/0x250 [ 30.016025] ? __lock_acquire+0x3d4d/0x3e00 [ 30.016031] kasan_report+0x25b/0x340 [ 30.016040] __asan_report_load8_noabort+0x14/0x20 [ 30.016046] __lock_acquire+0x3d4d/0x3e00 [ 30.016051] ? __lock_acquire+0x664/0x3e00 [ 30.016058] ? lock_downgrade+0x980/0x980 [ 30.016063] ? lock_downgrade+0x980/0x980 [ 30.016070] ? print_irqtrace_events+0x270/0x270 [ 30.016076] ? remove_wait_queue+0x81/0x350 [ 30.016085] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.016092] ? __lock_acquire+0x664/0x3e00 [ 30.016098] ? check_noncircular+0x20/0x20 [ 30.016111] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.016118] ? lock_acquire+0x1d5/0x580 [ 30.016124] ? lock_acquire+0x1d5/0x580 [ 30.016131] ? ep_free+0xf4/0x320 [ 30.016140] ? lock_release+0xa40/0xa40 [ 30.016147] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 30.016153] ? print_irqtrace_events+0x270/0x270 [ 30.016159] ? print_irqtrace_events+0x270/0x270 [ 30.016166] ? rcu_note_context_switch+0x710/0x710 [ 30.016175] ? __might_sleep+0x95/0x190 [ 30.016181] ? ep_free+0xf4/0x320 [ 30.016188] ? __mutex_lock+0x16f/0x1a80 [ 30.016193] ? ep_free+0xf4/0x320 [ 30.016200] ? print_irqtrace_events+0x270/0x270 [ 30.016205] ? ep_free+0xf4/0x320 [ 30.016214] lock_acquire+0x1d5/0x580 [ 30.016220] ? lock_acquire+0x1d5/0x580 [ 30.016226] ? remove_wait_queue+0x81/0x350 [ 30.016234] ? lock_release+0xa40/0xa40 [ 30.016243] ? lock_acquire+0x1d5/0x580 [ 30.016249] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.016254] ? lock_acquire+0x1d5/0x580 [ 30.016261] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 30.016269] _raw_spin_lock_irqsave+0x96/0xc0 [ 30.016275] ? remove_wait_queue+0x81/0x350 [ 30.016282] remove_wait_queue+0x81/0x350 [ 30.016290] ? depot_save_stack+0x3b5/0x490 [ 30.016297] ? add_wait_queue+0x290/0x290 [ 30.016303] ? rcutorture_record_progress+0x10/0x10 [ 30.016309] ? lock_release+0xa40/0xa40 [ 30.016319] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 30.016327] ? __kernel_text_address+0xd/0x40 [ 30.016335] ? clear_tfile_check_list+0x370/0x370 [ 30.016343] ? check_noncircular+0x20/0x20 [ 30.016353] ? locks_remove_file+0x3fa/0x5a0 [ 30.016363] ep_free+0x13f/0x320 [ 30.016369] ? ep_remove+0x800/0x800 [ 30.016375] ? fsnotify_first_mark+0x2b0/0x2b0 [ 30.016383] ? ep_free+0x320/0x320 [ 30.016390] ep_eventpoll_release+0x44/0x60 [ 30.016397] __fput+0x327/0x7e0 [ 30.016406] ? fput+0x140/0x140 [ 30.016413] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.016421] ____fput+0x15/0x20 [ 30.016428] task_work_run+0x199/0x270 [ 30.016436] ? task_work_cancel+0x210/0x210 [ 30.016442] ? _raw_spin_unlock+0x22/0x30 [ 30.016448] ? switch_task_namespaces+0x87/0xc0 [ 30.016457] do_exit+0x9bb/0x1ad0 [ 30.016465] ? __handle_mm_fault+0x2330/0x3ce0 [ 30.016472] ? mm_update_next_owner+0x930/0x930 [ 30.016482] ? do_raw_spin_trylock+0x190/0x190 [ 30.016490] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 30.016496] ? check_noncircular+0x20/0x20 [ 30.016503] ? _raw_spin_unlock+0x22/0x30 [ 30.016509] ? __handle_mm_fault+0x80e/0x3ce0 [ 30.016517] ? check_noncircular+0x20/0x20 [ 30.016522] ? __pmd_alloc+0x4e0/0x4e0 [ 30.016527] ? lock_downgrade+0x980/0x980 [ 30.016536] ? find_held_lock+0x35/0x1d0 [ 30.016545] ? handle_mm_fault+0x248/0x8d0 [ 30.016552] ? find_held_lock+0x35/0x1d0 [ 30.016563] ? __do_page_fault+0x5f7/0xc90 [ 30.016569] ? lock_downgrade+0x980/0x980 [ 30.016585] ? handle_mm_fault+0x410/0x8d0 [ 30.016590] ? down_read_trylock+0xdb/0x170 [ 30.016596] ? __do_page_fault+0x32d/0xc90 [ 30.016602] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 30.016607] ? vmacache_find+0x5f/0x280 [ 30.016615] do_group_exit+0x149/0x400 [ 30.016622] ? __do_page_fault+0x3d6/0xc90 [ 30.016628] ? SyS_exit+0x30/0x30 [ 30.016639] ? do_fast_syscall_32+0x156/0xf9d [ 30.016645] ? do_group_exit+0x400/0x400 [ 30.016651] SyS_exit_group+0x1d/0x20 [ 30.016658] do_fast_syscall_32+0x3ee/0xf9d [ 30.016667] ? do_int80_syscall_32+0x9d0/0x9d0 [ 30.016673] ? kasan_check_read+0x11/0x20 [ 30.016680] ? syscall_return_slowpath+0x550/0x550 [ 30.016690] ? SyS_rt_sigaction+0x94/0x1b0 [ 30.016697] ? SyS_sigprocmask+0x4b0/0x4b0 [ 30.016702] ? SyS_read+0x184/0x220 [ 30.016709] ? retint_user+0x18/0x18 [ 30.016717] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 30.016725] entry_SYSENTER_compat+0x54/0x63 [ 30.016731] RIP: 0023:0xf7f97c79 [ 30.016734] RSP: 002b:00000000ffdc4c5c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 30.016741] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 30.016744] RDX: 0000000000000000 RSI: 00000000080d9ab8 RDI: 00000000080f02a0 [ 30.016747] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 30.016751] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 30.016754] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 30.016762] [ 30.016765] Allocated by task 4161: [ 30.016771] save_stack+0x43/0xd0 [ 30.016776] kasan_kmalloc+0xad/0xe0 [ 30.016781] kmem_cache_alloc_trace+0x136/0x750 [ 30.016787] binder_get_thread+0x1cf/0x870 [ 30.016791] binder_poll+0x8c/0x390 [ 30.016797] ep_item_poll.isra.10+0xec/0x320 [ 30.016802] ep_insert+0x6a3/0x1b10 [ 30.016807] SyS_epoll_ctl+0x12e4/0x1ab0 [ 30.016812] do_fast_syscall_32+0x3ee/0xf9d [ 30.016816] entry_SYSENTER_compat+0x54/0x63 [ 30.016818] [ 30.016819] Freed by task 4161: [ 30.016824] save_stack+0x43/0xd0 [ 30.016829] kasan_slab_free+0x71/0xc0 [ 30.016833] kfree+0xd6/0x260 [ 30.016838] binder_thread_dec_tmpref+0x27f/0x310 [ 30.016842] binder_thread_release+0x27d/0x540 [ 30.016847] binder_ioctl+0xc02/0x1417 [ 30.016852] compat_SyS_ioctl+0x151/0x2a30 [ 30.016857] do_fast_syscall_32+0x3ee/0xf9d [ 30.016861] entry_SYSENTER_compat+0x54/0x63 [ 30.016862] [ 30.016867] The buggy address belongs to the object at ffff8801b1f732c0 [ 30.016867] which belongs to the cache kmalloc-512 of size 512 [ 30.016872] The buggy address is located 176 bytes inside of [ 30.016872] 512-byte region [ffff8801b1f732c0, ffff8801b1f734c0) [ 30.016873] The buggy address belongs to the page: [ 30.016878] page:ffffea0006c7dcc0 count:1 mapcount:0 mapping:ffff8801b1f73040 index:0x0 [ 30.016884] flags: 0x2fffc0000000100(slab) [ 30.016893] raw: 02fffc0000000100 ffff8801b1f73040 0000000000000000 0000000100000006 [ 30.016900] raw: ffffea00072cc020 ffffea0006c69a60 ffff8801db000940 0000000000000000 [ 30.016903] page dumped because: kasan: bad access detected [ 30.016904] [ 30.016906] Memory state around the buggy address: [ 30.016911] ffff8801b1f73200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.016915] ffff8801b1f73280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 30.016920] >ffff8801b1f73300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.016922] ^ [ 30.016927] ffff8801b1f73380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.016931] ffff8801b1f73400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.016933] ================================================================== [ 30.016934] Disabling lock debugging due to kernel taint [ 30.016938] Kernel panic - not syncing: panic_on_warn set ... [ 30.016938] [ 30.016944] CPU: 0 PID: 4161 Comm: syzkaller238757 Tainted: G B 4.15.0+ #196 [ 30.016947] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.016948] Call Trace: [ 30.016955] dump_stack+0x194/0x257 [ 30.016962] ? arch_local_irq_restore+0x53/0x53 [ 30.016967] ? kasan_end_report+0x32/0x50 [ 30.016974] ? lock_downgrade+0x980/0x980 [ 30.016981] ? vsnprintf+0x1ed/0x1900 [ 30.016987] ? __lock_acquire+0x3cd0/0x3e00 [ 30.016993] panic+0x1e4/0x41c [ 30.016999] ? refcount_error_report+0x214/0x214 [ 30.017006] ? add_taint+0x40/0x50 [ 30.017011] ? add_taint+0x1c/0x50 [ 30.017018] ? __lock_acquire+0x3d4d/0x3e00 [ 30.017024] kasan_end_report+0x50/0x50 [ 30.017030] kasan_report+0x144/0x340 [ 30.017038] __asan_report_load8_noabort+0x14/0x20 [ 30.017044] __lock_acquire+0x3d4d/0x3e00 [ 30.017049] ? __lock_acquire+0x664/0x3e00 [ 30.017055] ? lock_downgrade+0x980/0x980 [ 30.017061] ? lock_downgrade+0x980/0x980 [ 30.017068] ? print_irqtrace_events+0x270/0x270 [ 30.017073] ? remove_wait_queue+0x81/0x350 [ 30.017082] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.017088] ? __lock_acquire+0x664/0x3e00 [ 30.017094] ? check_noncircular+0x20/0x20 [ 30.017106] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.017113] ? lock_acquire+0x1d5/0x580 [ 30.017118] ? lock_acquire+0x1d5/0x580 [ 30.017124] ? ep_free+0xf4/0x320 [ 30.017132] ? lock_release+0xa40/0xa40 [ 30.017138] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 30.017144] ? print_irqtrace_events+0x270/0x270 [ 30.017149] ? print_irqtrace_events+0x270/0x270 [ 30.017156] ? rcu_note_context_switch+0x710/0x710 [ 30.017163] ? __might_sleep+0x95/0x190 [ 30.017169] ? ep_free+0xf4/0x320 [ 30.017175] ? __mutex_lock+0x16f/0x1a80 [ 30.017180] ? ep_free+0xf4/0x320 [ 30.017187] ? print_irqtrace_events+0x270/0x270 [ 30.017192] ? ep_free+0xf4/0x320 [ 30.017200] lock_acquire+0x1d5/0x580 [ 30.017206] ? lock_acquire+0x1d5/0x580 [ 30.017212] ? remove_wait_queue+0x81/0x350 [ 30.017220] ? lock_release+0xa40/0xa40 [ 30.017229] ? lock_acquire+0x1d5/0x580 [ 30.017234] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.017240] ? lock_acquire+0x1d5/0x580 [ 30.017246] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 30.017254] _raw_spin_lock_irqsave+0x96/0xc0 [ 30.017259] ? remove_wait_queue+0x81/0x350 [ 30.017265] remove_wait_queue+0x81/0x350 [ 30.017271] ? depot_save_stack+0x3b5/0x490 [ 30.017279] ? add_wait_queue+0x290/0x290 [ 30.017284] ? rcutorture_record_progress+0x10/0x10 [ 30.017290] ? lock_release+0xa40/0xa40 [ 30.017299] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 30.017306] ? __kernel_text_address+0xd/0x40 [ 30.017314] ? clear_tfile_check_list+0x370/0x370 [ 30.017321] ? check_noncircular+0x20/0x20 [ 30.017329] ? locks_remove_file+0x3fa/0x5a0 [ 30.017339] ep_free+0x13f/0x320 [ 30.017345] ? ep_remove+0x800/0x800 [ 30.017350] ? fsnotify_first_mark+0x2b0/0x2b0 [ 30.017358] ? ep_free+0x320/0x320 [ 30.017365] ep_eventpoll_release+0x44/0x60 [ 30.017370] __fput+0x327/0x7e0 [ 30.017379] ? fput+0x140/0x140 [ 30.017386] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.017394] ____fput+0x15/0x20 [ 30.017401] task_work_run+0x199/0x270 [ 30.017408] ? task_work_cancel+0x210/0x210 [ 30.017415] ? _raw_spin_unlock+0x22/0x30 [ 30.017421] ? switch_task_namespaces+0x87/0xc0 [ 30.017428] do_exit+0x9bb/0x1ad0 [ 30.017434] ? __handle_mm_fault+0x2330/0x3ce0 [ 30.017441] ? mm_update_next_owner+0x930/0x930 [ 30.017451] ? do_raw_spin_trylock+0x190/0x190 [ 30.017458] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 30.017464] ? check_noncircular+0x20/0x20 [ 30.017471] ? _raw_spin_unlock+0x22/0x30 [ 30.017477] ? __handle_mm_fault+0x80e/0x3ce0 [ 30.017484] ? check_noncircular+0x20/0x20 [ 30.017490] ? __pmd_alloc+0x4e0/0x4e0 [ 30.017495] ? lock_downgrade+0x980/0x980 [ 30.017503] ? find_held_lock+0x35/0x1d0 [ 30.017511] ? handle_mm_fault+0x248/0x8d0 [ 30.017519] ? find_held_lock+0x35/0x1d0 [ 30.017528] ? __do_page_fault+0x5f7/0xc90 [ 30.017534] ? lock_downgrade+0x980/0x980 [ 30.017543] ? handle_mm_fault+0x410/0x8d0 [ 30.017548] ? down_read_trylock+0xdb/0x170 [ 30.017553] ? __do_page_fault+0x32d/0xc90 [ 30.017560] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 30.017564] ? vmacache_find+0x5f/0x280 [ 30.017573] do_group_exit+0x149/0x400 [ 30.017583] ? __do_page_fault+0x3d6/0xc90 [ 30.017589] ? SyS_exit+0x30/0x30 [ 30.017597] ? do_fast_syscall_32+0x156/0xf9d [ 30.017603] ? do_group_exit+0x400/0x400 [ 30.017609] SyS_exit_group+0x1d/0x20 [ 30.017615] do_fast_syscall_32+0x3ee/0xf9d [ 30.017624] ? do_int80_syscall_32+0x9d0/0x9d0 [ 30.017630] ? kasan_check_read+0x11/0x20 [ 30.017637] ? syscall_return_slowpath+0x550/0x550 [ 30.017643] ? SyS_rt_sigaction+0x94/0x1b0 [ 30.017650] ? SyS_sigprocmask+0x4b0/0x4b0 [ 30.017655] ? SyS_read+0x184/0x220 [ 30.017662] ? retint_user+0x18/0x18 [ 30.017670] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 30.017677] entry_SYSENTER_compat+0x54/0x63 [ 30.017681] RIP: 0023:0xf7f97c79 [ 30.017684] RSP: 002b:00000000ffdc4c5c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 30.017690] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 30.017693] RDX: 0000000000000000 RSI: 00000000080d9ab8 RDI: 00000000080f02a0 [ 30.017696] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 30.017699] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 30.017702] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 30.035665] Dumping ftrace buffer: [ 30.035668] (ftrace buffer empty) [ 30.035672] Kernel Offset: disabled [ 31.317721] Rebooting in 86400 seconds..