[....] Starting enhanced syslogd: rsyslogd[ 11.962881] audit: type=1400 audit(1515541506.503:5): avc: denied { syslog } for pid=3343 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.365937] audit: type=1400 audit(1515541512.906:6): avc: denied { map } for pid=3483 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.7' (ECDSA) to the list of known hosts. executing program [ 25.234358] audit: type=1400 audit(1515541519.775:7): avc: denied { map } for pid=3498 comm="syzkaller126107" path="/root/syzkaller126107838" 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 [ 25.238871] ================================================================== [ 25.238886] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 25.238894] Read of size 8 at addr ffff8801c6faaaf0 by task syzkaller126107/3498 [ 25.238895] [ 25.238902] CPU: 0 PID: 3498 Comm: syzkaller126107 Not tainted 4.15.0-rc7+ #165 [ 25.238905] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.238908] Call Trace: [ 25.238917] dump_stack+0x194/0x257 [ 25.238924] ? arch_local_irq_restore+0x53/0x53 [ 25.238931] ? show_regs_print_info+0x18/0x18 [ 25.238937] ? print_irqtrace_events+0x270/0x270 [ 25.238943] ? __lock_acquire+0x664/0x3e00 [ 25.238950] ? __lock_acquire+0x3d4d/0x3e00 [ 25.238958] print_address_description+0x73/0x250 [ 25.238964] ? __lock_acquire+0x3d4d/0x3e00 [ 25.238970] kasan_report+0x25b/0x340 [ 25.238979] __asan_report_load8_noabort+0x14/0x20 [ 25.238985] __lock_acquire+0x3d4d/0x3e00 [ 25.238990] ? __lock_acquire+0x664/0x3e00 [ 25.238996] ? lock_downgrade+0x980/0x980 [ 25.239004] ? lock_downgrade+0x980/0x980 [ 25.239010] ? print_irqtrace_events+0x270/0x270 [ 25.239019] ? remove_wait_queue+0x81/0x350 [ 25.239028] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.239035] ? __lock_acquire+0x664/0x3e00 [ 25.239040] ? check_noncircular+0x20/0x20 [ 25.239052] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.239059] ? lock_acquire+0x1d5/0x580 [ 25.239065] ? lock_acquire+0x1d5/0x580 [ 25.239071] ? ep_free+0xf4/0x320 [ 25.239079] ? lock_release+0xa40/0xa40 [ 25.239085] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.239091] ? print_irqtrace_events+0x270/0x270 [ 25.239096] ? print_irqtrace_events+0x270/0x270 [ 25.239104] ? rcu_note_context_switch+0x710/0x710 [ 25.239113] ? __might_sleep+0x95/0x190 [ 25.239119] ? ep_free+0xf4/0x320 [ 25.239125] ? __mutex_lock+0x16f/0x1a80 [ 25.239130] ? ep_free+0xf4/0x320 [ 25.239137] ? print_irqtrace_events+0x270/0x270 [ 25.239142] ? ep_free+0xf4/0x320 [ 25.239152] lock_acquire+0x1d5/0x580 [ 25.239158] ? lock_acquire+0x1d5/0x580 [ 25.239163] ? remove_wait_queue+0x81/0x350 [ 25.239172] ? lock_release+0xa40/0xa40 [ 25.239181] ? lock_acquire+0x1d5/0x580 [ 25.239187] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.239192] ? lock_acquire+0x1d5/0x580 [ 25.239198] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.239207] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.239212] ? remove_wait_queue+0x81/0x350 [ 25.239219] remove_wait_queue+0x81/0x350 [ 25.239226] ? depot_save_stack+0x3b5/0x490 [ 25.239233] ? add_wait_queue+0x290/0x290 [ 25.239239] ? rcutorture_record_progress+0x10/0x10 [ 25.239245] ? lock_release+0xa40/0xa40 [ 25.239254] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.239261] ? __kernel_text_address+0xd/0x40 [ 25.239271] ? clear_tfile_check_list+0x370/0x370 [ 25.239278] ? check_noncircular+0x20/0x20 [ 25.239287] ? locks_remove_file+0x3fa/0x5a0 [ 25.239296] ep_free+0x13f/0x320 [ 25.239302] ? ep_remove+0x800/0x800 [ 25.239308] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.239316] ? ep_free+0x320/0x320 [ 25.239322] ep_eventpoll_release+0x44/0x60 [ 25.239329] __fput+0x327/0x7e0 [ 25.239337] ? fput+0x140/0x140 [ 25.239344] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.239353] ____fput+0x15/0x20 [ 25.239359] task_work_run+0x199/0x270 [ 25.239366] ? task_work_cancel+0x210/0x210 [ 25.239373] ? _raw_spin_unlock+0x22/0x30 [ 25.239379] ? switch_task_namespaces+0x87/0xc0 [ 25.239387] do_exit+0x9bb/0x1ad0 [ 25.239394] ? __handle_mm_fault+0x2330/0x3ce0 [ 25.239402] ? mm_update_next_owner+0x930/0x930 [ 25.239411] ? do_raw_spin_trylock+0x190/0x190 [ 25.239419] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.239429] ? check_noncircular+0x20/0x20 [ 25.239437] ? _raw_spin_unlock+0x22/0x30 [ 25.239442] ? __handle_mm_fault+0x80e/0x3ce0 [ 25.239450] ? check_noncircular+0x20/0x20 [ 25.239455] ? __pmd_alloc+0x4e0/0x4e0 [ 25.239460] ? lock_downgrade+0x980/0x980 [ 25.239468] ? find_held_lock+0x35/0x1d0 [ 25.239477] ? handle_mm_fault+0x248/0x8d0 [ 25.239484] ? find_held_lock+0x35/0x1d0 [ 25.239495] ? __do_page_fault+0x5f7/0xc90 [ 25.239501] ? lock_downgrade+0x980/0x980 [ 25.239510] ? handle_mm_fault+0x410/0x8d0 [ 25.239515] ? down_read_trylock+0xdb/0x170 [ 25.239520] ? __do_page_fault+0x32d/0xc90 [ 25.239526] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 25.239534] ? vmacache_find+0x5f/0x280 [ 25.239542] do_group_exit+0x149/0x400 [ 25.239549] ? __do_page_fault+0x3d6/0xc90 [ 25.239554] ? SyS_exit+0x30/0x30 [ 25.239564] ? do_fast_syscall_32+0x156/0xf9d [ 25.239570] ? do_group_exit+0x400/0x400 [ 25.239576] SyS_exit_group+0x1d/0x20 [ 25.239582] do_fast_syscall_32+0x3ee/0xf9d [ 25.239590] ? do_int80_syscall_32+0x9d0/0x9d0 [ 25.239596] ? kasan_check_read+0x11/0x20 [ 25.239603] ? syscall_return_slowpath+0x550/0x550 [ 25.239612] ? SyS_rt_sigaction+0x94/0x1b0 [ 25.239618] ? SyS_sigprocmask+0x4b0/0x4b0 [ 25.239623] ? SyS_read+0x184/0x220 [ 25.239629] ? retint_user+0x18/0x18 [ 25.239637] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.239647] entry_SYSENTER_compat+0x54/0x63 [ 25.239652] RIP: 0023:0xf7f19c79 [ 25.239655] RSP: 002b:00000000ffc2079c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 25.239662] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 25.239665] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 25.239668] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 25.239671] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.239674] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.239683] [ 25.239685] Allocated by task 3498: [ 25.239691] save_stack+0x43/0xd0 [ 25.239695] kasan_kmalloc+0xad/0xe0 [ 25.239700] kmem_cache_alloc_trace+0x136/0x750 [ 25.239706] binder_get_thread+0x1cf/0x870 [ 25.239710] binder_poll+0x8c/0x390 [ 25.239715] ep_item_poll.isra.10+0xec/0x320 [ 25.239720] ep_insert+0x6a3/0x1b10 [ 25.239725] SyS_epoll_ctl+0x12e4/0x1ab0 [ 25.239730] do_fast_syscall_32+0x3ee/0xf9d [ 25.239734] entry_SYSENTER_compat+0x54/0x63 [ 25.239736] [ 25.239737] Freed by task 3498: [ 25.239742] save_stack+0x43/0xd0 [ 25.239747] kasan_slab_free+0x71/0xc0 [ 25.239751] kfree+0xd6/0x260 [ 25.239756] binder_thread_dec_tmpref+0x27f/0x310 [ 25.239760] binder_thread_release+0x27d/0x540 [ 25.239765] binder_ioctl+0xc02/0x1417 [ 25.239770] compat_SyS_ioctl+0x151/0x2a30 [ 25.239775] do_fast_syscall_32+0x3ee/0xf9d [ 25.239779] entry_SYSENTER_compat+0x54/0x63 [ 25.239780] [ 25.239784] The buggy address belongs to the object at ffff8801c6faaa40 [ 25.239784] which belongs to the cache kmalloc-512 of size 512 [ 25.239789] The buggy address is located 176 bytes inside of [ 25.239789] 512-byte region [ffff8801c6faaa40, ffff8801c6faac40) [ 25.239790] The buggy address belongs to the page: [ 25.239795] page:ffffea00071bea80 count:1 mapcount:0 mapping:ffff8801c6faa040 index:0x0 [ 25.239802] flags: 0x2fffc0000000100(slab) [ 25.239811] raw: 02fffc0000000100 ffff8801c6faa040 0000000000000000 0000000100000006 [ 25.239818] raw: ffffea00071beba0 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 25.239820] page dumped because: kasan: bad access detected [ 25.239821] [ 25.239823] Memory state around the buggy address: [ 25.239827] ffff8801c6faa980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.239832] ffff8801c6faaa00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 25.239836] >ffff8801c6faaa80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.239838] ^ [ 25.239842] ffff8801c6faab00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.239847] ffff8801c6faab80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.239848] ================================================================== [ 25.239850] Disabling lock debugging due to kernel taint [ 25.239853] Kernel panic - not syncing: panic_on_warn set ... [ 25.239853] [ 25.239859] CPU: 0 PID: 3498 Comm: syzkaller126107 Tainted: G B 4.15.0-rc7+ #165 [ 25.239862] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.239863] Call Trace: [ 25.239869] dump_stack+0x194/0x257 [ 25.239876] ? arch_local_irq_restore+0x53/0x53 [ 25.239882] ? kasan_end_report+0x32/0x50 [ 25.239888] ? lock_downgrade+0x980/0x980 [ 25.239894] ? vsnprintf+0x1ed/0x1900 [ 25.239900] ? __lock_acquire+0x3cb0/0x3e00 [ 25.239905] panic+0x1e4/0x41c [ 25.239911] ? refcount_error_report+0x214/0x214 [ 25.239918] ? add_taint+0x40/0x50 [ 25.239923] ? add_taint+0x1c/0x50 [ 25.239931] ? __lock_acquire+0x3d4d/0x3e00 [ 25.239937] kasan_end_report+0x50/0x50 [ 25.239943] kasan_report+0x144/0x340 [ 25.239951] __asan_report_load8_noabort+0x14/0x20 [ 25.239956] __lock_acquire+0x3d4d/0x3e00 [ 25.239962] ? __lock_acquire+0x664/0x3e00 [ 25.239968] ? lock_downgrade+0x980/0x980 [ 25.239973] ? lock_downgrade+0x980/0x980 [ 25.239979] ? print_irqtrace_events+0x270/0x270 [ 25.239985] ? remove_wait_queue+0x81/0x350 [ 25.239994] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.240001] ? __lock_acquire+0x664/0x3e00 [ 25.240006] ? check_noncircular+0x20/0x20 [ 25.240017] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.240024] ? lock_acquire+0x1d5/0x580 [ 25.240030] ? lock_acquire+0x1d5/0x580 [ 25.240035] ? ep_free+0xf4/0x320 [ 25.240043] ? lock_release+0xa40/0xa40 [ 25.240049] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.240054] ? print_irqtrace_events+0x270/0x270 [ 25.240060] ? print_irqtrace_events+0x270/0x270 [ 25.240066] ? rcu_note_context_switch+0x710/0x710 [ 25.240073] ? __might_sleep+0x95/0x190 [ 25.240079] ? ep_free+0xf4/0x320 [ 25.240084] ? __mutex_lock+0x16f/0x1a80 [ 25.240089] ? ep_free+0xf4/0x320 [ 25.240096] ? print_irqtrace_events+0x270/0x270 [ 25.240101] ? ep_free+0xf4/0x320 [ 25.240109] lock_acquire+0x1d5/0x580 [ 25.240114] ? lock_acquire+0x1d5/0x580 [ 25.240120] ? remove_wait_queue+0x81/0x350 [ 25.240128] ? lock_release+0xa40/0xa40 [ 25.240137] ? lock_acquire+0x1d5/0x580 [ 25.240142] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.240148] ? lock_acquire+0x1d5/0x580 [ 25.240154] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.240161] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.240166] ? remove_wait_queue+0x81/0x350 [ 25.240173] remove_wait_queue+0x81/0x350 [ 25.240178] ? depot_save_stack+0x3b5/0x490 [ 25.240185] ? add_wait_queue+0x290/0x290 [ 25.240191] ? rcutorture_record_progress+0x10/0x10 [ 25.240197] ? lock_release+0xa40/0xa40 [ 25.240206] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.240212] ? __kernel_text_address+0xd/0x40 [ 25.240220] ? clear_tfile_check_list+0x370/0x370 [ 25.240227] ? check_noncircular+0x20/0x20 [ 25.240237] ? locks_remove_file+0x3fa/0x5a0 [ 25.240245] ep_free+0x13f/0x320 [ 25.240251] ? ep_remove+0x800/0x800 [ 25.240257] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.240265] ? ep_free+0x320/0x320 [ 25.240271] ep_eventpoll_release+0x44/0x60 [ 25.240276] __fput+0x327/0x7e0 [ 25.240284] ? fput+0x140/0x140 [ 25.240291] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.240299] ____fput+0x15/0x20 [ 25.240305] task_work_run+0x199/0x270 [ 25.240313] ? task_work_cancel+0x210/0x210 [ 25.240319] ? _raw_spin_unlock+0x22/0x30 [ 25.240325] ? switch_task_namespaces+0x87/0xc0 [ 25.240332] do_exit+0x9bb/0x1ad0 [ 25.240338] ? __handle_mm_fault+0x2330/0x3ce0 [ 25.240345] ? mm_update_next_owner+0x930/0x930 [ 25.240354] ? do_raw_spin_trylock+0x190/0x190 [ 25.240361] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.240367] ? check_noncircular+0x20/0x20 [ 25.240374] ? _raw_spin_unlock+0x22/0x30 [ 25.240380] ? __handle_mm_fault+0x80e/0x3ce0 [ 25.240387] ? check_noncircular+0x20/0x20 [ 25.240392] ? __pmd_alloc+0x4e0/0x4e0 [ 25.240397] ? lock_downgrade+0x980/0x980 [ 25.240405] ? find_held_lock+0x35/0x1d0 [ 25.240413] ? handle_mm_fault+0x248/0x8d0 [ 25.240420] ? find_held_lock+0x35/0x1d0 [ 25.240441] ? __do_page_fault+0x5f7/0xc90 [ 25.240447] ? lock_downgrade+0x980/0x980 [ 25.240457] ? handle_mm_fault+0x410/0x8d0 [ 25.240462] ? down_read_trylock+0xdb/0x170 [ 25.240468] ? __do_page_fault+0x32d/0xc90 [ 25.240474] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 25.240479] ? vmacache_find+0x5f/0x280 [ 25.240487] do_group_exit+0x149/0x400 [ 25.240494] ? __do_page_fault+0x3d6/0xc90 [ 25.240499] ? SyS_exit+0x30/0x30 [ 25.240507] ? do_fast_syscall_32+0x156/0xf9d [ 25.240513] ? do_group_exit+0x400/0x400 [ 25.240519] SyS_exit_group+0x1d/0x20 [ 25.240525] do_fast_syscall_32+0x3ee/0xf9d [ 25.240533] ? do_int80_syscall_32+0x9d0/0x9d0 [ 25.240539] ? kasan_check_read+0x11/0x20 [ 25.240546] ? syscall_return_slowpath+0x550/0x550 [ 25.240552] ? SyS_rt_sigaction+0x94/0x1b0 [ 25.240559] ? SyS_sigprocmask+0x4b0/0x4b0 [ 25.240564] ? SyS_read+0x184/0x220 [ 25.240570] ? retint_user+0x18/0x18 [ 25.240578] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.240585] entry_SYSENTER_compat+0x54/0x63 [ 25.240589] RIP: 0023:0xf7f19c79 [ 25.240592] RSP: 002b:00000000ffc2079c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 25.240597] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 25.240601] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 25.240605] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 25.240608] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.240611] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.260666] Dumping ftrace buffer: [ 25.260669] (ftrace buffer empty) [ 25.260672] Kernel Offset: disabled [ 26.543095] Rebooting in 86400 seconds..