[....] Starting enhanced syslogd: rsyslogd[ 11.597795] audit: type=1400 audit(1515769134.308:5): avc: denied { syslog } for pid=3340 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 file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?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: [ 16.356156] audit: type=1400 audit(1515769139.066:6): avc: denied { map } for pid=3479 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.59' (ECDSA) to the list of known hosts. executing program [ 22.584621] audit: type=1400 audit(1515769145.295:7): avc: denied { map } for pid=3493 comm="syzkaller207997" path="/root/syzkaller207997966" 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 [ 22.590764] ================================================================== [ 22.590779] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 22.590784] Read of size 8 at addr ffff8801ca612ab0 by task syzkaller207997/3493 [ 22.590786] [ 22.590794] CPU: 0 PID: 3493 Comm: syzkaller207997 Not tainted 4.15.0-rc7+ #168 [ 22.590797] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.590799] Call Trace: [ 22.590810] dump_stack+0x194/0x257 [ 22.590818] ? arch_local_irq_restore+0x53/0x53 [ 22.590826] ? show_regs_print_info+0x18/0x18 [ 22.590832] ? print_irqtrace_events+0x270/0x270 [ 22.590838] ? __lock_acquire+0x664/0x3e00 [ 22.590845] ? __lock_acquire+0x3d4d/0x3e00 [ 22.590854] print_address_description+0x73/0x250 [ 22.590860] ? __lock_acquire+0x3d4d/0x3e00 [ 22.590867] kasan_report+0x25b/0x340 [ 22.590875] __asan_report_load8_noabort+0x14/0x20 [ 22.590881] __lock_acquire+0x3d4d/0x3e00 [ 22.590886] ? __lock_acquire+0x664/0x3e00 [ 22.590892] ? lock_downgrade+0x980/0x980 [ 22.590898] ? lock_downgrade+0x980/0x980 [ 22.590904] ? print_irqtrace_events+0x270/0x270 [ 22.590913] ? remove_wait_queue+0x81/0x350 [ 22.590922] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.590928] ? __lock_acquire+0x664/0x3e00 [ 22.590934] ? check_noncircular+0x20/0x20 [ 22.590946] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.590953] ? lock_acquire+0x1d5/0x580 [ 22.590959] ? lock_acquire+0x1d5/0x580 [ 22.590965] ? ep_free+0xf4/0x320 [ 22.590974] ? lock_release+0xa40/0xa40 [ 22.590980] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.590986] ? print_irqtrace_events+0x270/0x270 [ 22.590992] ? print_irqtrace_events+0x270/0x270 [ 22.590999] ? rcu_note_context_switch+0x710/0x710 [ 22.591010] ? __might_sleep+0x95/0x190 [ 22.591016] ? ep_free+0xf4/0x320 [ 22.591023] ? __mutex_lock+0x16f/0x1a80 [ 22.591028] ? ep_free+0xf4/0x320 [ 22.591035] ? print_irqtrace_events+0x270/0x270 [ 22.591040] ? ep_free+0xf4/0x320 [ 22.591049] lock_acquire+0x1d5/0x580 [ 22.591054] ? lock_acquire+0x1d5/0x580 [ 22.591060] ? remove_wait_queue+0x81/0x350 [ 22.591069] ? lock_release+0xa40/0xa40 [ 22.591077] ? lock_acquire+0x1d5/0x580 [ 22.591083] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.591088] ? lock_acquire+0x1d5/0x580 [ 22.591095] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.591103] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.591108] ? remove_wait_queue+0x81/0x350 [ 22.591114] remove_wait_queue+0x81/0x350 [ 22.591122] ? depot_save_stack+0x3b5/0x490 [ 22.591129] ? add_wait_queue+0x290/0x290 [ 22.591135] ? rcutorture_record_progress+0x10/0x10 [ 22.591140] ? lock_release+0xa40/0xa40 [ 22.591150] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.591159] ? __kernel_text_address+0xd/0x40 [ 22.591167] ? clear_tfile_check_list+0x370/0x370 [ 22.591174] ? check_noncircular+0x20/0x20 [ 22.591184] ? locks_remove_file+0x3fa/0x5a0 [ 22.591193] ep_free+0x13f/0x320 [ 22.591199] ? ep_remove+0x800/0x800 [ 22.591205] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.591213] ? ep_free+0x320/0x320 [ 22.591219] ep_eventpoll_release+0x44/0x60 [ 22.591227] __fput+0x327/0x7e0 [ 22.591236] ? fput+0x140/0x140 [ 22.591243] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.591251] ____fput+0x15/0x20 [ 22.591257] task_work_run+0x199/0x270 [ 22.591265] ? task_work_cancel+0x210/0x210 [ 22.591271] ? _raw_spin_unlock+0x22/0x30 [ 22.591277] ? switch_task_namespaces+0x87/0xc0 [ 22.591289] do_exit+0x9bb/0x1ad0 [ 22.591297] ? __handle_mm_fault+0x2330/0x3ce0 [ 22.591305] ? mm_update_next_owner+0x930/0x930 [ 22.591315] ? do_raw_spin_trylock+0x190/0x190 [ 22.591322] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.591328] ? check_noncircular+0x20/0x20 [ 22.591336] ? _raw_spin_unlock+0x22/0x30 [ 22.591342] ? __handle_mm_fault+0x80e/0x3ce0 [ 22.591349] ? check_noncircular+0x20/0x20 [ 22.591354] ? __pmd_alloc+0x4e0/0x4e0 [ 22.591359] ? lock_downgrade+0x980/0x980 [ 22.591367] ? find_held_lock+0x35/0x1d0 [ 22.591376] ? handle_mm_fault+0x248/0x8d0 [ 22.591383] ? find_held_lock+0x35/0x1d0 [ 22.591395] ? __do_page_fault+0x5f7/0xc90 [ 22.591401] ? lock_downgrade+0x980/0x980 [ 22.591410] ? handle_mm_fault+0x410/0x8d0 [ 22.591415] ? down_read_trylock+0xdb/0x170 [ 22.591421] ? __do_page_fault+0x32d/0xc90 [ 22.591427] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 22.591435] ? vmacache_find+0x5f/0x280 [ 22.591443] do_group_exit+0x149/0x400 [ 22.591449] ? __do_page_fault+0x3d6/0xc90 [ 22.591455] ? SyS_exit+0x30/0x30 [ 22.591466] ? do_fast_syscall_32+0x156/0xf9d [ 22.591472] ? do_group_exit+0x400/0x400 [ 22.591478] SyS_exit_group+0x1d/0x20 [ 22.591484] do_fast_syscall_32+0x3ee/0xf9d [ 22.591493] ? do_int80_syscall_32+0x9d0/0x9d0 [ 22.591499] ? kasan_check_read+0x11/0x20 [ 22.591506] ? syscall_return_slowpath+0x550/0x550 [ 22.591515] ? SyS_rt_sigaction+0x94/0x1b0 [ 22.591522] ? SyS_sigprocmask+0x4b0/0x4b0 [ 22.591527] ? SyS_read+0x184/0x220 [ 22.591533] ? retint_user+0x18/0x18 [ 22.591542] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 22.591550] entry_SYSENTER_compat+0x54/0x63 [ 22.591555] RIP: 0023:0xf7fa0c79 [ 22.591558] RSP: 002b:00000000ffe9280c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 22.591565] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 22.591568] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 22.591571] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 22.591574] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 22.591577] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 22.591585] [ 22.591588] Allocated by task 3493: [ 22.591595] save_stack+0x43/0xd0 [ 22.591599] kasan_kmalloc+0xad/0xe0 [ 22.591604] kmem_cache_alloc_trace+0x136/0x750 [ 22.591610] binder_get_thread+0x1cf/0x870 [ 22.591615] binder_poll+0x8c/0x390 [ 22.591625] ep_item_poll.isra.10+0xec/0x320 [ 22.591630] ep_insert+0x6a3/0x1b10 [ 22.591635] SyS_epoll_ctl+0x12e4/0x1ab0 [ 22.591640] do_fast_syscall_32+0x3ee/0xf9d [ 22.591645] entry_SYSENTER_compat+0x54/0x63 [ 22.591646] [ 22.591648] Freed by task 3493: [ 22.591652] save_stack+0x43/0xd0 [ 22.591657] kasan_slab_free+0x71/0xc0 [ 22.591661] kfree+0xd6/0x260 [ 22.591666] binder_thread_dec_tmpref+0x27f/0x310 [ 22.591670] binder_thread_release+0x27d/0x540 [ 22.591675] binder_ioctl+0xc02/0x1417 [ 22.591680] compat_SyS_ioctl+0x151/0x2a30 [ 22.591685] do_fast_syscall_32+0x3ee/0xf9d [ 22.591690] entry_SYSENTER_compat+0x54/0x63 [ 22.591691] [ 22.591695] The buggy address belongs to the object at ffff8801ca612a00 [ 22.591695] which belongs to the cache kmalloc-512 of size 512 [ 22.591700] The buggy address is located 176 bytes inside of [ 22.591700] 512-byte region [ffff8801ca612a00, ffff8801ca612c00) [ 22.591701] The buggy address belongs to the page: [ 22.591706] page:ffffea0007298480 count:1 mapcount:0 mapping:ffff8801ca612000 index:0x0 [ 22.591712] flags: 0x2fffc0000000100(slab) [ 22.591721] raw: 02fffc0000000100 ffff8801ca612000 0000000000000000 0000000100000006 [ 22.591728] raw: ffffea0007299c20 ffffea000728f0e0 ffff8801dac00940 0000000000000000 [ 22.591730] page dumped because: kasan: bad access detected [ 22.591731] [ 22.591733] Memory state around the buggy address: [ 22.591738] ffff8801ca612980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.591742] ffff8801ca612a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.591746] >ffff8801ca612a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.591748] ^ [ 22.591752] ffff8801ca612b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.591757] ffff8801ca612b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.591759] ================================================================== [ 22.591761] Disabling lock debugging due to kernel taint [ 22.591764] Kernel panic - not syncing: panic_on_warn set ... [ 22.591764] [ 22.591770] CPU: 0 PID: 3493 Comm: syzkaller207997 Tainted: G B 4.15.0-rc7+ #168 [ 22.591773] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.591774] Call Trace: [ 22.591780] dump_stack+0x194/0x257 [ 22.591788] ? arch_local_irq_restore+0x53/0x53 [ 22.591793] ? kasan_end_report+0x32/0x50 [ 22.591799] ? lock_downgrade+0x980/0x980 [ 22.591807] ? vsnprintf+0x1ed/0x1900 [ 22.591813] ? __lock_acquire+0x3cb0/0x3e00 [ 22.591818] panic+0x1e4/0x41c [ 22.591824] ? refcount_error_report+0x214/0x214 [ 22.591831] ? add_taint+0x40/0x50 [ 22.591836] ? add_taint+0x1c/0x50 [ 22.591843] ? __lock_acquire+0x3d4d/0x3e00 [ 22.591849] kasan_end_report+0x50/0x50 [ 22.591855] kasan_report+0x144/0x340 [ 22.591863] __asan_report_load8_noabort+0x14/0x20 [ 22.591868] __lock_acquire+0x3d4d/0x3e00 [ 22.591874] ? __lock_acquire+0x664/0x3e00 [ 22.591880] ? lock_downgrade+0x980/0x980 [ 22.591885] ? lock_downgrade+0x980/0x980 [ 22.591891] ? print_irqtrace_events+0x270/0x270 [ 22.591897] ? remove_wait_queue+0x81/0x350 [ 22.591906] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.591912] ? __lock_acquire+0x664/0x3e00 [ 22.591918] ? check_noncircular+0x20/0x20 [ 22.591929] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.591936] ? lock_acquire+0x1d5/0x580 [ 22.591942] ? lock_acquire+0x1d5/0x580 [ 22.591947] ? ep_free+0xf4/0x320 [ 22.591955] ? lock_release+0xa40/0xa40 [ 22.591961] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.591967] ? print_irqtrace_events+0x270/0x270 [ 22.591972] ? print_irqtrace_events+0x270/0x270 [ 22.591979] ? rcu_note_context_switch+0x710/0x710 [ 22.591986] ? __might_sleep+0x95/0x190 [ 22.591991] ? ep_free+0xf4/0x320 [ 22.591997] ? __mutex_lock+0x16f/0x1a80 [ 22.592002] ? ep_free+0xf4/0x320 [ 22.592009] ? print_irqtrace_events+0x270/0x270 [ 22.592014] ? ep_free+0xf4/0x320 [ 22.592022] lock_acquire+0x1d5/0x580 [ 22.592027] ? lock_acquire+0x1d5/0x580 [ 22.592033] ? remove_wait_queue+0x81/0x350 [ 22.592042] ? lock_release+0xa40/0xa40 [ 22.592050] ? lock_acquire+0x1d5/0x580 [ 22.592056] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.592061] ? lock_acquire+0x1d5/0x580 [ 22.592067] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.592075] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.592080] ? remove_wait_queue+0x81/0x350 [ 22.592086] remove_wait_queue+0x81/0x350 [ 22.592092] ? depot_save_stack+0x3b5/0x490 [ 22.592099] ? add_wait_queue+0x290/0x290 [ 22.592105] ? rcutorture_record_progress+0x10/0x10 [ 22.592111] ? lock_release+0xa40/0xa40 [ 22.592119] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.592126] ? __kernel_text_address+0xd/0x40 [ 22.592134] ? clear_tfile_check_list+0x370/0x370 [ 22.592141] ? check_noncircular+0x20/0x20 [ 22.592149] ? locks_remove_file+0x3fa/0x5a0 [ 22.592158] ep_free+0x13f/0x320 [ 22.592164] ? ep_remove+0x800/0x800 [ 22.592169] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.592177] ? ep_free+0x320/0x320 [ 22.592183] ep_eventpoll_release+0x44/0x60 [ 22.592189] __fput+0x327/0x7e0 [ 22.592197] ? fput+0x140/0x140 [ 22.592204] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.592212] ____fput+0x15/0x20 [ 22.592219] task_work_run+0x199/0x270 [ 22.592226] ? task_work_cancel+0x210/0x210 [ 22.592232] ? _raw_spin_unlock+0x22/0x30 [ 22.592238] ? switch_task_namespaces+0x87/0xc0 [ 22.592245] do_exit+0x9bb/0x1ad0 [ 22.592251] ? __handle_mm_fault+0x2330/0x3ce0 [ 22.592259] ? mm_update_next_owner+0x930/0x930 [ 22.592268] ? do_raw_spin_trylock+0x190/0x190 [ 22.592275] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.592281] ? check_noncircular+0x20/0x20 [ 22.592288] ? _raw_spin_unlock+0x22/0x30 [ 22.592294] ? __handle_mm_fault+0x80e/0x3ce0 [ 22.592302] ? check_noncircular+0x20/0x20 [ 22.592306] ? __pmd_alloc+0x4e0/0x4e0 [ 22.592312] ? lock_downgrade+0x980/0x980 [ 22.592320] ? find_held_lock+0x35/0x1d0 [ 22.592328] ? handle_mm_fault+0x248/0x8d0 [ 22.592334] ? find_held_lock+0x35/0x1d0 [ 22.592343] ? __do_page_fault+0x5f7/0xc90 [ 22.592349] ? lock_downgrade+0x980/0x980 [ 22.592358] ? handle_mm_fault+0x410/0x8d0 [ 22.592363] ? down_read_trylock+0xdb/0x170 [ 22.592368] ? __do_page_fault+0x32d/0xc90 [ 22.592374] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 22.592380] ? vmacache_find+0x5f/0x280 [ 22.592388] do_group_exit+0x149/0x400 [ 22.592395] ? __do_page_fault+0x3d6/0xc90 [ 22.592400] ? SyS_exit+0x30/0x30 [ 22.592408] ? do_fast_syscall_32+0x156/0xf9d [ 22.592414] ? do_group_exit+0x400/0x400 [ 22.592420] SyS_exit_group+0x1d/0x20 [ 22.592426] do_fast_syscall_32+0x3ee/0xf9d [ 22.592434] ? do_int80_syscall_32+0x9d0/0x9d0 [ 22.592440] ? kasan_check_read+0x11/0x20 [ 22.592447] ? syscall_return_slowpath+0x550/0x550 [ 22.592454] ? SyS_rt_sigaction+0x94/0x1b0 [ 22.592461] ? SyS_sigprocmask+0x4b0/0x4b0 [ 22.592466] ? SyS_read+0x184/0x220 [ 22.592472] ? retint_user+0x18/0x18 [ 22.592479] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 22.592487] entry_SYSENTER_compat+0x54/0x63 [ 22.592491] RIP: 0023:0xf7fa0c79 [ 22.592494] RSP: 002b:00000000ffe9280c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 22.592499] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 22.592503] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 22.592505] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 22.592509] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 22.592511] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 22.610888] Dumping ftrace buffer: [ 22.610891] (ftrace buffer empty) [ 22.610893] Kernel Offset: disabled [ 23.891792] Rebooting in 86400 seconds..