[....] Starting enhanced syslogd: rsyslogd[ 11.499045] audit: type=1400 audit(1514565256.904:5): avc: denied { syslog } for pid=2997 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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] 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: [ 17.186526] audit: type=1400 audit(1514565262.592:6): avc: denied { map } for pid=3137 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.234' (ECDSA) to the list of known hosts. executing program [ 23.338590] audit: type=1400 audit(1514565268.744:7): avc: denied { map } for pid=3151 comm="syzkaller359616" path="/root/syzkaller359616940" 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 [ 23.344178] ================================================================== [ 23.344191] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 23.344196] Read of size 8 at addr ffff8801c95b6830 by task syzkaller359616/3151 [ 23.344197] [ 23.344204] CPU: 0 PID: 3151 Comm: syzkaller359616 Not tainted 4.15.0-rc5+ #150 [ 23.344208] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.344210] Call Trace: [ 23.344218] dump_stack+0x194/0x257 [ 23.344226] ? arch_local_irq_restore+0x53/0x53 [ 23.344233] ? show_regs_print_info+0x18/0x18 [ 23.344238] ? print_irqtrace_events+0x270/0x270 [ 23.344245] ? __lock_acquire+0x664/0x3e00 [ 23.344251] ? __lock_acquire+0x3d4d/0x3e00 [ 23.344259] print_address_description+0x73/0x250 [ 23.344265] ? __lock_acquire+0x3d4d/0x3e00 [ 23.344271] kasan_report+0x25b/0x340 [ 23.344278] __asan_report_load8_noabort+0x14/0x20 [ 23.344284] __lock_acquire+0x3d4d/0x3e00 [ 23.344290] ? __lock_acquire+0x664/0x3e00 [ 23.344295] ? lock_downgrade+0x980/0x980 [ 23.344301] ? lock_downgrade+0x980/0x980 [ 23.344307] ? print_irqtrace_events+0x270/0x270 [ 23.344314] ? remove_wait_queue+0x81/0x350 [ 23.344323] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.344329] ? __lock_acquire+0x664/0x3e00 [ 23.344335] ? check_noncircular+0x20/0x20 [ 23.344347] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.344354] ? lock_acquire+0x1d5/0x580 [ 23.344359] ? lock_acquire+0x1d5/0x580 [ 23.344366] ? ep_free+0xf4/0x320 [ 23.344374] ? lock_release+0xa40/0xa40 [ 23.344380] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.344386] ? print_irqtrace_events+0x270/0x270 [ 23.344391] ? print_irqtrace_events+0x270/0x270 [ 23.344398] ? rcu_note_context_switch+0x710/0x710 [ 23.344406] ? __might_sleep+0x95/0x190 [ 23.344411] ? ep_free+0xf4/0x320 [ 23.344417] ? __mutex_lock+0x16f/0x1a80 [ 23.344421] ? ep_free+0xf4/0x320 [ 23.344428] ? print_irqtrace_events+0x270/0x270 [ 23.344432] ? ep_free+0xf4/0x320 [ 23.344440] lock_acquire+0x1d5/0x580 [ 23.344446] ? lock_acquire+0x1d5/0x580 [ 23.344452] ? remove_wait_queue+0x81/0x350 [ 23.344460] ? lock_release+0xa40/0xa40 [ 23.344469] ? lock_acquire+0x1d5/0x580 [ 23.344474] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.344479] ? lock_acquire+0x1d5/0x580 [ 23.344485] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.344492] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.344497] ? remove_wait_queue+0x81/0x350 [ 23.344504] remove_wait_queue+0x81/0x350 [ 23.344511] ? depot_save_stack+0x3b5/0x490 [ 23.344518] ? add_wait_queue+0x290/0x290 [ 23.344523] ? rcutorture_record_progress+0x10/0x10 [ 23.344529] ? lock_release+0xa40/0xa40 [ 23.344538] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.344545] ? __kernel_text_address+0xd/0x40 [ 23.344552] ? clear_tfile_check_list+0x370/0x370 [ 23.344559] ? check_noncircular+0x20/0x20 [ 23.344567] ? locks_remove_file+0x3fa/0x5a0 [ 23.344576] ep_free+0x13f/0x320 [ 23.344581] ? ep_remove+0x800/0x800 [ 23.344588] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.344595] ? ep_free+0x320/0x320 [ 23.344605] ep_eventpoll_release+0x44/0x60 [ 23.344612] __fput+0x327/0x7e0 [ 23.344620] ? fput+0x140/0x140 [ 23.344626] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.344634] ____fput+0x15/0x20 [ 23.344640] task_work_run+0x199/0x270 [ 23.344648] ? task_work_cancel+0x210/0x210 [ 23.344654] ? _raw_spin_unlock+0x22/0x30 [ 23.344660] ? switch_task_namespaces+0x87/0xc0 [ 23.344669] do_exit+0x9bb/0x1ad0 [ 23.344676] ? __handle_mm_fault+0x2330/0x3ce0 [ 23.344683] ? mm_update_next_owner+0x930/0x930 [ 23.344693] ? do_raw_spin_trylock+0x190/0x190 [ 23.344700] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.344706] ? check_noncircular+0x20/0x20 [ 23.344713] ? _raw_spin_unlock+0x22/0x30 [ 23.344719] ? __handle_mm_fault+0x80e/0x3ce0 [ 23.344726] ? check_noncircular+0x20/0x20 [ 23.344731] ? __pmd_alloc+0x4e0/0x4e0 [ 23.344736] ? lock_downgrade+0x980/0x980 [ 23.344745] ? find_held_lock+0x35/0x1d0 [ 23.344753] ? handle_mm_fault+0x248/0x8d0 [ 23.344760] ? find_held_lock+0x35/0x1d0 [ 23.344771] ? __do_page_fault+0x5f7/0xc90 [ 23.344777] ? lock_downgrade+0x980/0x980 [ 23.344786] ? handle_mm_fault+0x410/0x8d0 [ 23.344791] ? down_read_trylock+0xdb/0x170 [ 23.344797] ? __do_page_fault+0x32d/0xc90 [ 23.344803] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 23.344809] ? vmacache_find+0x5f/0x280 [ 23.344817] do_group_exit+0x149/0x400 [ 23.344823] ? __do_page_fault+0x3d6/0xc90 [ 23.344829] ? SyS_exit+0x30/0x30 [ 23.344838] ? do_fast_syscall_32+0x156/0xf9d [ 23.344844] ? do_group_exit+0x400/0x400 [ 23.344850] SyS_exit_group+0x1d/0x20 [ 23.344857] do_fast_syscall_32+0x3ee/0xf9d [ 23.344865] ? do_int80_syscall_32+0x9d0/0x9d0 [ 23.344871] ? kasan_check_read+0x11/0x20 [ 23.344878] ? syscall_return_slowpath+0x550/0x550 [ 23.344885] ? SyS_rt_sigaction+0x94/0x1b0 [ 23.344892] ? SyS_sigprocmask+0x4b0/0x4b0 [ 23.344897] ? SyS_read+0x184/0x220 [ 23.344902] ? retint_user+0x18/0x18 [ 23.344910] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 23.344919] entry_SYSENTER_compat+0x54/0x63 [ 23.344924] RIP: 0023:0xf7f6ac79 [ 23.344928] RSP: 002b:00000000ffc97dec EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 23.344934] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 23.344938] RDX: 0000000000000000 RSI: 00000000080d9b18 RDI: 00000000080f02a0 [ 23.344941] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 23.344944] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 23.344947] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 23.344955] [ 23.344958] Allocated by task 3151: [ 23.344963] save_stack+0x43/0xd0 [ 23.344967] kasan_kmalloc+0xad/0xe0 [ 23.344973] kmem_cache_alloc_trace+0x136/0x750 [ 23.344979] binder_get_thread+0x1cf/0x870 [ 23.344984] binder_poll+0x8c/0x390 [ 23.344989] ep_item_poll.isra.10+0xec/0x320 [ 23.344993] ep_insert+0x6a3/0x1b10 [ 23.344997] SyS_epoll_ctl+0x12e4/0x1ab0 [ 23.345005] do_fast_syscall_32+0x3ee/0xf9d [ 23.345011] entry_SYSENTER_compat+0x54/0x63 [ 23.345012] [ 23.345014] Freed by task 3151: [ 23.345018] save_stack+0x43/0xd0 [ 23.345023] kasan_slab_free+0x71/0xc0 [ 23.345026] kfree+0xd6/0x260 [ 23.345031] binder_thread_dec_tmpref+0x27f/0x310 [ 23.345036] binder_thread_release+0x27d/0x540 [ 23.345041] binder_ioctl+0xc02/0x1417 [ 23.345046] compat_SyS_ioctl+0x151/0x2a30 [ 23.345051] do_fast_syscall_32+0x3ee/0xf9d [ 23.345056] entry_SYSENTER_compat+0x54/0x63 [ 23.345057] [ 23.345061] The buggy address belongs to the object at ffff8801c95b6780 [ 23.345061] which belongs to the cache kmalloc-512 of size 512 [ 23.345066] The buggy address is located 176 bytes inside of [ 23.345066] 512-byte region [ffff8801c95b6780, ffff8801c95b6980) [ 23.345068] The buggy address belongs to the page: [ 23.345073] page:00000000f752723c count:1 mapcount:0 mapping:00000000d55d4488 index:0x0 [ 23.345078] flags: 0x2fffc0000000100(slab) [ 23.345086] raw: 02fffc0000000100 ffff8801c95b6000 0000000000000000 0000000100000006 [ 23.345093] raw: ffffea00072548a0 ffffea00072637a0 ffff8801db000940 0000000000000000 [ 23.345095] page dumped because: kasan: bad access detected [ 23.345096] [ 23.345098] Memory state around the buggy address: [ 23.345103] ffff8801c95b6700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.345107] ffff8801c95b6780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.345111] >ffff8801c95b6800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.345113] ^ [ 23.345118] ffff8801c95b6880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.345122] ffff8801c95b6900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.345124] ================================================================== [ 23.345125] Disabling lock debugging due to kernel taint [ 23.345128] Kernel panic - not syncing: panic_on_warn set ... [ 23.345128] [ 23.345134] CPU: 0 PID: 3151 Comm: syzkaller359616 Tainted: G B 4.15.0-rc5+ #150 [ 23.345138] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.345139] Call Trace: [ 23.345145] dump_stack+0x194/0x257 [ 23.345152] ? arch_local_irq_restore+0x53/0x53 [ 23.345157] ? kasan_end_report+0x32/0x50 [ 23.345163] ? lock_downgrade+0x980/0x980 [ 23.345168] ? vsnprintf+0x1ed/0x1900 [ 23.345175] ? __lock_acquire+0x3cd0/0x3e00 [ 23.345180] panic+0x1e4/0x41c [ 23.345185] ? refcount_error_report+0x214/0x214 [ 23.345192] ? add_taint+0x40/0x50 [ 23.345197] ? add_taint+0x1c/0x50 [ 23.345204] ? __lock_acquire+0x3d4d/0x3e00 [ 23.345209] kasan_end_report+0x50/0x50 [ 23.345214] kasan_report+0x144/0x340 [ 23.345222] __asan_report_load8_noabort+0x14/0x20 [ 23.345227] __lock_acquire+0x3d4d/0x3e00 [ 23.345233] ? __lock_acquire+0x664/0x3e00 [ 23.345238] ? lock_downgrade+0x980/0x980 [ 23.345244] ? lock_downgrade+0x980/0x980 [ 23.345250] ? print_irqtrace_events+0x270/0x270 [ 23.345256] ? remove_wait_queue+0x81/0x350 [ 23.345264] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.345270] ? __lock_acquire+0x664/0x3e00 [ 23.345276] ? check_noncircular+0x20/0x20 [ 23.345287] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.345294] ? lock_acquire+0x1d5/0x580 [ 23.345299] ? lock_acquire+0x1d5/0x580 [ 23.345304] ? ep_free+0xf4/0x320 [ 23.345311] ? lock_release+0xa40/0xa40 [ 23.345317] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.345323] ? print_irqtrace_events+0x270/0x270 [ 23.345328] ? print_irqtrace_events+0x270/0x270 [ 23.345335] ? rcu_note_context_switch+0x710/0x710 [ 23.345341] ? __might_sleep+0x95/0x190 [ 23.345347] ? ep_free+0xf4/0x320 [ 23.345352] ? __mutex_lock+0x16f/0x1a80 [ 23.345356] ? ep_free+0xf4/0x320 [ 23.345363] ? print_irqtrace_events+0x270/0x270 [ 23.345367] ? ep_free+0xf4/0x320 [ 23.345375] lock_acquire+0x1d5/0x580 [ 23.345381] ? lock_acquire+0x1d5/0x580 [ 23.345387] ? remove_wait_queue+0x81/0x350 [ 23.345395] ? lock_release+0xa40/0xa40 [ 23.345403] ? lock_acquire+0x1d5/0x580 [ 23.345409] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.345414] ? lock_acquire+0x1d5/0x580 [ 23.345419] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.345427] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.345432] ? remove_wait_queue+0x81/0x350 [ 23.345438] remove_wait_queue+0x81/0x350 [ 23.345444] ? depot_save_stack+0x3b5/0x490 [ 23.345450] ? add_wait_queue+0x290/0x290 [ 23.345456] ? rcutorture_record_progress+0x10/0x10 [ 23.345462] ? lock_release+0xa40/0xa40 [ 23.345470] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.345476] ? __kernel_text_address+0xd/0x40 [ 23.345483] ? clear_tfile_check_list+0x370/0x370 [ 23.345490] ? check_noncircular+0x20/0x20 [ 23.345498] ? locks_remove_file+0x3fa/0x5a0 [ 23.345506] ep_free+0x13f/0x320 [ 23.345512] ? ep_remove+0x800/0x800 [ 23.345518] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.345525] ? ep_free+0x320/0x320 [ 23.345530] ep_eventpoll_release+0x44/0x60 [ 23.345535] __fput+0x327/0x7e0 [ 23.345543] ? fput+0x140/0x140 [ 23.345549] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.345557] ____fput+0x15/0x20 [ 23.345563] task_work_run+0x199/0x270 [ 23.345570] ? task_work_cancel+0x210/0x210 [ 23.345576] ? _raw_spin_unlock+0x22/0x30 [ 23.345582] ? switch_task_namespaces+0x87/0xc0 [ 23.345589] do_exit+0x9bb/0x1ad0 [ 23.345595] ? __handle_mm_fault+0x2330/0x3ce0 [ 23.345606] ? mm_update_next_owner+0x930/0x930 [ 23.345615] ? do_raw_spin_trylock+0x190/0x190 [ 23.345622] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.345628] ? check_noncircular+0x20/0x20 [ 23.345635] ? _raw_spin_unlock+0x22/0x30 [ 23.345640] ? __handle_mm_fault+0x80e/0x3ce0 [ 23.345648] ? check_noncircular+0x20/0x20 [ 23.345653] ? __pmd_alloc+0x4e0/0x4e0 [ 23.345658] ? lock_downgrade+0x980/0x980 [ 23.345665] ? find_held_lock+0x35/0x1d0 [ 23.345673] ? handle_mm_fault+0x248/0x8d0 [ 23.345680] ? find_held_lock+0x35/0x1d0 [ 23.345689] ? __do_page_fault+0x5f7/0xc90 [ 23.345695] ? lock_downgrade+0x980/0x980 [ 23.345703] ? handle_mm_fault+0x410/0x8d0 [ 23.345708] ? down_read_trylock+0xdb/0x170 [ 23.345713] ? __do_page_fault+0x32d/0xc90 [ 23.345719] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 23.345725] ? vmacache_find+0x5f/0x280 [ 23.345733] do_group_exit+0x149/0x400 [ 23.345739] ? __do_page_fault+0x3d6/0xc90 [ 23.345745] ? SyS_exit+0x30/0x30 [ 23.345753] ? do_fast_syscall_32+0x156/0xf9d [ 23.345758] ? do_group_exit+0x400/0x400 [ 23.345764] SyS_exit_group+0x1d/0x20 [ 23.345770] do_fast_syscall_32+0x3ee/0xf9d [ 23.345779] ? do_int80_syscall_32+0x9d0/0x9d0 [ 23.345784] ? kasan_check_read+0x11/0x20 [ 23.345791] ? syscall_return_slowpath+0x550/0x550 [ 23.345797] ? SyS_rt_sigaction+0x94/0x1b0 [ 23.345804] ? SyS_sigprocmask+0x4b0/0x4b0 [ 23.345808] ? SyS_read+0x184/0x220 [ 23.345814] ? retint_user+0x18/0x18 [ 23.345822] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 23.345831] entry_SYSENTER_compat+0x54/0x63 [ 23.345834] RIP: 0023:0xf7f6ac79 [ 23.345837] RSP: 002b:00000000ffc97dec EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 23.345843] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 23.345846] RDX: 0000000000000000 RSI: 00000000080d9b18 RDI: 00000000080f02a0 [ 23.345849] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 23.345852] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 23.345855] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 23.365890] Dumping ftrace buffer: [ 23.365896] (ftrace buffer empty) [ 23.365898] Kernel Offset: disabled [ 24.659439] Rebooting in 86400 seconds..