[....] Starting enhanced syslogd: rsyslogd[ 12.550761] audit: type=1400 audit(1515731521.546:5): avc: denied { syslog } for pid=3344 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: [ 19.825106] audit: type=1400 audit(1515731528.820:6): avc: denied { map } for pid=3486 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.13' (ECDSA) to the list of known hosts. executing program [ 26.036284] audit: type=1400 audit(1515731535.031:7): avc: denied { map } for pid=3500 comm="syzkaller991505" path="/root/syzkaller991505223" 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 [ 26.042916] ================================================================== [ 26.042934] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 26.042940] Read of size 8 at addr ffff8801ccfcedf0 by task syzkaller991505/3500 [ 26.042942] [ 26.042950] CPU: 1 PID: 3500 Comm: syzkaller991505 Not tainted 4.15.0-rc7+ #168 [ 26.042954] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.042956] Call Trace: [ 26.042968] dump_stack+0x194/0x257 [ 26.042976] ? arch_local_irq_restore+0x53/0x53 [ 26.042985] ? show_regs_print_info+0x18/0x18 [ 26.042991] ? print_irqtrace_events+0x270/0x270 [ 26.042997] ? __lock_acquire+0x664/0x3e00 [ 26.043008] ? __lock_acquire+0x3d4d/0x3e00 [ 26.043017] print_address_description+0x73/0x250 [ 26.043023] ? __lock_acquire+0x3d4d/0x3e00 [ 26.043029] kasan_report+0x25b/0x340 [ 26.043038] __asan_report_load8_noabort+0x14/0x20 [ 26.043044] __lock_acquire+0x3d4d/0x3e00 [ 26.043050] ? __lock_acquire+0x664/0x3e00 [ 26.043056] ? lock_downgrade+0x980/0x980 [ 26.043061] ? lock_downgrade+0x980/0x980 [ 26.043067] ? print_irqtrace_events+0x270/0x270 [ 26.043076] ? remove_wait_queue+0x81/0x350 [ 26.043086] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.043092] ? __lock_acquire+0x664/0x3e00 [ 26.043098] ? check_noncircular+0x20/0x20 [ 26.043110] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.043117] ? lock_acquire+0x1d5/0x580 [ 26.043123] ? lock_acquire+0x1d5/0x580 [ 26.043130] ? ep_free+0xf4/0x320 [ 26.043138] ? lock_release+0xa40/0xa40 [ 26.043145] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.043155] ? print_irqtrace_events+0x270/0x270 [ 26.043161] ? print_irqtrace_events+0x270/0x270 [ 26.043169] ? rcu_note_context_switch+0x710/0x710 [ 26.043177] ? __might_sleep+0x95/0x190 [ 26.043183] ? ep_free+0xf4/0x320 [ 26.043190] ? __mutex_lock+0x16f/0x1a80 [ 26.043195] ? ep_free+0xf4/0x320 [ 26.043202] ? print_irqtrace_events+0x270/0x270 [ 26.043207] ? ep_free+0xf4/0x320 [ 26.043216] lock_acquire+0x1d5/0x580 [ 26.043221] ? lock_acquire+0x1d5/0x580 [ 26.043227] ? remove_wait_queue+0x81/0x350 [ 26.043235] ? lock_release+0xa40/0xa40 [ 26.043244] ? lock_acquire+0x1d5/0x580 [ 26.043250] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.043255] ? lock_acquire+0x1d5/0x580 [ 26.043261] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 26.043269] _raw_spin_lock_irqsave+0x96/0xc0 [ 26.043275] ? remove_wait_queue+0x81/0x350 [ 26.043281] remove_wait_queue+0x81/0x350 [ 26.043291] ? depot_save_stack+0x3b5/0x490 [ 26.043298] ? add_wait_queue+0x290/0x290 [ 26.043304] ? rcutorture_record_progress+0x10/0x10 [ 26.043310] ? lock_release+0xa40/0xa40 [ 26.043320] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 26.043329] ? __kernel_text_address+0xd/0x40 [ 26.043337] ? clear_tfile_check_list+0x370/0x370 [ 26.043345] ? check_noncircular+0x20/0x20 [ 26.043354] ? locks_remove_file+0x3fa/0x5a0 [ 26.043364] ep_free+0x13f/0x320 [ 26.043370] ? ep_remove+0x800/0x800 [ 26.043376] ? fsnotify_first_mark+0x2b0/0x2b0 [ 26.043384] ? ep_free+0x320/0x320 [ 26.043390] ep_eventpoll_release+0x44/0x60 [ 26.043397] __fput+0x327/0x7e0 [ 26.043405] ? fput+0x140/0x140 [ 26.043412] ? _raw_spin_unlock_irq+0x27/0x70 [ 26.043420] ____fput+0x15/0x20 [ 26.043427] task_work_run+0x199/0x270 [ 26.043434] ? task_work_cancel+0x210/0x210 [ 26.043441] ? _raw_spin_unlock+0x22/0x30 [ 26.043447] ? switch_task_namespaces+0x87/0xc0 [ 26.043456] do_exit+0x9bb/0x1ad0 [ 26.043463] ? __handle_mm_fault+0x2330/0x3ce0 [ 26.043471] ? mm_update_next_owner+0x930/0x930 [ 26.043482] ? do_raw_spin_trylock+0x190/0x190 [ 26.043489] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.043495] ? check_noncircular+0x20/0x20 [ 26.043502] ? _raw_spin_unlock+0x22/0x30 [ 26.043508] ? __handle_mm_fault+0x80e/0x3ce0 [ 26.043516] ? check_noncircular+0x20/0x20 [ 26.043521] ? __pmd_alloc+0x4e0/0x4e0 [ 26.043526] ? lock_downgrade+0x980/0x980 [ 26.043534] ? find_held_lock+0x35/0x1d0 [ 26.043543] ? handle_mm_fault+0x248/0x8d0 [ 26.043550] ? find_held_lock+0x35/0x1d0 [ 26.043560] ? __do_page_fault+0x5f7/0xc90 [ 26.043566] ? lock_downgrade+0x980/0x980 [ 26.043575] ? handle_mm_fault+0x410/0x8d0 [ 26.043580] ? down_read_trylock+0xdb/0x170 [ 26.043586] ? __do_page_fault+0x32d/0xc90 [ 26.043592] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 26.043600] ? vmacache_find+0x5f/0x280 [ 26.043608] do_group_exit+0x149/0x400 [ 26.043614] ? __do_page_fault+0x3d6/0xc90 [ 26.043620] ? SyS_exit+0x30/0x30 [ 26.043629] ? do_fast_syscall_32+0x156/0xf9d [ 26.043636] ? do_group_exit+0x400/0x400 [ 26.043642] SyS_exit_group+0x1d/0x20 [ 26.043648] do_fast_syscall_32+0x3ee/0xf9d [ 26.043656] ? do_int80_syscall_32+0x9d0/0x9d0 [ 26.043662] ? kasan_check_read+0x11/0x20 [ 26.043669] ? syscall_return_slowpath+0x550/0x550 [ 26.043677] ? SyS_rt_sigaction+0x94/0x1b0 [ 26.043684] ? SyS_sigprocmask+0x4b0/0x4b0 [ 26.043690] ? SyS_read+0x184/0x220 [ 26.043696] ? retint_user+0x18/0x18 [ 26.043704] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 26.043712] entry_SYSENTER_compat+0x54/0x63 [ 26.043718] RIP: 0023:0xf7ff8c79 [ 26.043721] RSP: 002b:00000000ffb5c63c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 26.043727] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 26.043731] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 26.043734] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 26.043737] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 26.043740] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 26.043748] [ 26.043751] Allocated by task 3500: [ 26.043757] save_stack+0x43/0xd0 [ 26.043762] kasan_kmalloc+0xad/0xe0 [ 26.043767] kmem_cache_alloc_trace+0x136/0x750 [ 26.043773] binder_get_thread+0x1cf/0x870 [ 26.043777] binder_poll+0x8c/0x390 [ 26.043782] ep_item_poll.isra.10+0xec/0x320 [ 26.043787] ep_insert+0x6a3/0x1b10 [ 26.043793] SyS_epoll_ctl+0x12e4/0x1ab0 [ 26.043798] do_fast_syscall_32+0x3ee/0xf9d [ 26.043802] entry_SYSENTER_compat+0x54/0x63 [ 26.043803] [ 26.043805] Freed by task 3500: [ 26.043810] save_stack+0x43/0xd0 [ 26.043815] kasan_slab_free+0x71/0xc0 [ 26.043819] kfree+0xd6/0x260 [ 26.043824] binder_thread_dec_tmpref+0x27f/0x310 [ 26.043828] binder_thread_release+0x27d/0x540 [ 26.043833] binder_ioctl+0xc02/0x1417 [ 26.043838] compat_SyS_ioctl+0x151/0x2a30 [ 26.043843] do_fast_syscall_32+0x3ee/0xf9d [ 26.043847] entry_SYSENTER_compat+0x54/0x63 [ 26.043848] [ 26.043852] The buggy address belongs to the object at ffff8801ccfced40 [ 26.043852] which belongs to the cache kmalloc-512 of size 512 [ 26.043857] The buggy address is located 176 bytes inside of [ 26.043857] 512-byte region [ffff8801ccfced40, ffff8801ccfcef40) [ 26.043859] The buggy address belongs to the page: [ 26.043864] page:ffffea000733f380 count:1 mapcount:0 mapping:ffff8801ccfce0c0 index:0x0 [ 26.043870] flags: 0x2fffc0000000100(slab) [ 26.043879] raw: 02fffc0000000100 ffff8801ccfce0c0 0000000000000000 0000000100000006 [ 26.043886] raw: ffffea0007398120 ffffea00072c6220 ffff8801dac00940 0000000000000000 [ 26.043888] page dumped because: kasan: bad access detected [ 26.043889] [ 26.043891] Memory state around the buggy address: [ 26.043896] ffff8801ccfcec80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 26.043900] ffff8801ccfced00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 26.043905] >ffff8801ccfced80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.043907] ^ [ 26.043911] ffff8801ccfcee00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.043916] ffff8801ccfcee80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.043917] ================================================================== [ 26.043919] Disabling lock debugging due to kernel taint [ 26.043922] Kernel panic - not syncing: panic_on_warn set ... [ 26.043922] [ 26.043929] CPU: 1 PID: 3500 Comm: syzkaller991505 Tainted: G B 4.15.0-rc7+ #168 [ 26.043932] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.043934] Call Trace: [ 26.043940] dump_stack+0x194/0x257 [ 26.043947] ? arch_local_irq_restore+0x53/0x53 [ 26.043952] ? kasan_end_report+0x32/0x50 [ 26.043959] ? lock_downgrade+0x980/0x980 [ 26.043965] ? vsnprintf+0x1ed/0x1900 [ 26.043972] ? __lock_acquire+0x3cb0/0x3e00 [ 26.043977] panic+0x1e4/0x41c [ 26.043983] ? refcount_error_report+0x214/0x214 [ 26.043990] ? add_taint+0x40/0x50 [ 26.043995] ? add_taint+0x1c/0x50 [ 26.044002] ? __lock_acquire+0x3d4d/0x3e00 [ 26.044008] kasan_end_report+0x50/0x50 [ 26.044014] kasan_report+0x144/0x340 [ 26.044021] __asan_report_load8_noabort+0x14/0x20 [ 26.044027] __lock_acquire+0x3d4d/0x3e00 [ 26.044032] ? __lock_acquire+0x664/0x3e00 [ 26.044038] ? lock_downgrade+0x980/0x980 [ 26.044043] ? lock_downgrade+0x980/0x980 [ 26.044050] ? print_irqtrace_events+0x270/0x270 [ 26.044056] ? remove_wait_queue+0x81/0x350 [ 26.044065] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.044071] ? __lock_acquire+0x664/0x3e00 [ 26.044077] ? check_noncircular+0x20/0x20 [ 26.044088] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.044095] ? lock_acquire+0x1d5/0x580 [ 26.044100] ? lock_acquire+0x1d5/0x580 [ 26.044105] ? ep_free+0xf4/0x320 [ 26.044114] ? lock_release+0xa40/0xa40 [ 26.044120] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.044125] ? print_irqtrace_events+0x270/0x270 [ 26.044131] ? print_irqtrace_events+0x270/0x270 [ 26.044137] ? rcu_note_context_switch+0x710/0x710 [ 26.044144] ? __might_sleep+0x95/0x190 [ 26.044154] ? ep_free+0xf4/0x320 [ 26.044159] ? __mutex_lock+0x16f/0x1a80 [ 26.044164] ? ep_free+0xf4/0x320 [ 26.044171] ? print_irqtrace_events+0x270/0x270 [ 26.044176] ? ep_free+0xf4/0x320 [ 26.044184] lock_acquire+0x1d5/0x580 [ 26.044190] ? lock_acquire+0x1d5/0x580 [ 26.044195] ? remove_wait_queue+0x81/0x350 [ 26.044203] ? lock_release+0xa40/0xa40 [ 26.044212] ? lock_acquire+0x1d5/0x580 [ 26.044218] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.044223] ? lock_acquire+0x1d5/0x580 [ 26.044229] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 26.044236] _raw_spin_lock_irqsave+0x96/0xc0 [ 26.044242] ? remove_wait_queue+0x81/0x350 [ 26.044248] remove_wait_queue+0x81/0x350 [ 26.044254] ? depot_save_stack+0x3b5/0x490 [ 26.044261] ? add_wait_queue+0x290/0x290 [ 26.044267] ? rcutorture_record_progress+0x10/0x10 [ 26.044273] ? lock_release+0xa40/0xa40 [ 26.044281] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 26.044288] ? __kernel_text_address+0xd/0x40 [ 26.044296] ? clear_tfile_check_list+0x370/0x370 [ 26.044303] ? check_noncircular+0x20/0x20 [ 26.044311] ? locks_remove_file+0x3fa/0x5a0 [ 26.044320] ep_free+0x13f/0x320 [ 26.044326] ? ep_remove+0x800/0x800 [ 26.044332] ? fsnotify_first_mark+0x2b0/0x2b0 [ 26.044340] ? ep_free+0x320/0x320 [ 26.044346] ep_eventpoll_release+0x44/0x60 [ 26.044352] __fput+0x327/0x7e0 [ 26.044360] ? fput+0x140/0x140 [ 26.044367] ? _raw_spin_unlock_irq+0x27/0x70 [ 26.044375] ____fput+0x15/0x20 [ 26.044382] task_work_run+0x199/0x270 [ 26.044389] ? task_work_cancel+0x210/0x210 [ 26.044395] ? _raw_spin_unlock+0x22/0x30 [ 26.044402] ? switch_task_namespaces+0x87/0xc0 [ 26.044409] do_exit+0x9bb/0x1ad0 [ 26.044415] ? __handle_mm_fault+0x2330/0x3ce0 [ 26.044422] ? mm_update_next_owner+0x930/0x930 [ 26.044431] ? do_raw_spin_trylock+0x190/0x190 [ 26.044439] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.044444] ? check_noncircular+0x20/0x20 [ 26.044451] ? _raw_spin_unlock+0x22/0x30 [ 26.044457] ? __handle_mm_fault+0x80e/0x3ce0 [ 26.044465] ? check_noncircular+0x20/0x20 [ 26.044470] ? __pmd_alloc+0x4e0/0x4e0 [ 26.044475] ? lock_downgrade+0x980/0x980 [ 26.044483] ? find_held_lock+0x35/0x1d0 [ 26.044491] ? handle_mm_fault+0x248/0x8d0 [ 26.044498] ? find_held_lock+0x35/0x1d0 [ 26.044507] ? __do_page_fault+0x5f7/0xc90 [ 26.044513] ? lock_downgrade+0x980/0x980 [ 26.044521] ? handle_mm_fault+0x410/0x8d0 [ 26.044526] ? down_read_trylock+0xdb/0x170 [ 26.044532] ? __do_page_fault+0x32d/0xc90 [ 26.044538] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 26.044544] ? vmacache_find+0x5f/0x280 [ 26.044552] do_group_exit+0x149/0x400 [ 26.044558] ? __do_page_fault+0x3d6/0xc90 [ 26.044564] ? SyS_exit+0x30/0x30 [ 26.044572] ? do_fast_syscall_32+0x156/0xf9d [ 26.044578] ? do_group_exit+0x400/0x400 [ 26.044584] SyS_exit_group+0x1d/0x20 [ 26.044590] do_fast_syscall_32+0x3ee/0xf9d [ 26.044599] ? do_int80_syscall_32+0x9d0/0x9d0 [ 26.044604] ? kasan_check_read+0x11/0x20 [ 26.044611] ? syscall_return_slowpath+0x550/0x550 [ 26.044618] ? SyS_rt_sigaction+0x94/0x1b0 [ 26.044624] ? SyS_sigprocmask+0x4b0/0x4b0 [ 26.044630] ? SyS_read+0x184/0x220 [ 26.044636] ? retint_user+0x18/0x18 [ 26.044644] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 26.044651] entry_SYSENTER_compat+0x54/0x63 [ 26.044655] RIP: 0023:0xf7ff8c79 [ 26.044658] RSP: 002b:00000000ffb5c63c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 26.044663] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 26.044666] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 26.044669] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 26.044672] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 26.044675] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 26.062613] Dumping ftrace buffer: [ 26.062618] (ftrace buffer empty) [ 26.062621] Kernel Offset: disabled [ 27.345583] Rebooting in 86400 seconds..