[....] Starting enhanced syslogd: rsyslogd[ 12.855673] audit: type=1400 audit(1515898745.126:5): avc: denied { syslog } for pid=3506 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: [ 18.941865] audit: type=1400 audit(1515898751.212:6): avc: denied { map } for pid=3645 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.32' (ECDSA) to the list of known hosts. executing program [ 25.202984] audit: type=1400 audit(1515898757.473:7): avc: denied { map } for pid=3659 comm="syzkaller929868" path="/root/syzkaller929868378" 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.209979] ================================================================== [ 25.210008] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 25.210014] Read of size 8 at addr ffff8801bc668630 by task syzkaller929868/3659 [ 25.210015] [ 25.210024] CPU: 0 PID: 3659 Comm: syzkaller929868 Not tainted 4.15.0-rc7+ #171 [ 25.210027] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.210030] Call Trace: [ 25.210042] dump_stack+0x194/0x257 [ 25.210050] ? arch_local_irq_restore+0x53/0x53 [ 25.210058] ? show_regs_print_info+0x18/0x18 [ 25.210064] ? print_irqtrace_events+0x270/0x270 [ 25.210070] ? __lock_acquire+0x664/0x3e00 [ 25.210077] ? __lock_acquire+0x3d4d/0x3e00 [ 25.210086] print_address_description+0x73/0x250 [ 25.210092] ? __lock_acquire+0x3d4d/0x3e00 [ 25.210098] kasan_report+0x25b/0x340 [ 25.210106] __asan_report_load8_noabort+0x14/0x20 [ 25.210112] __lock_acquire+0x3d4d/0x3e00 [ 25.210117] ? __lock_acquire+0x664/0x3e00 [ 25.210123] ? lock_downgrade+0x980/0x980 [ 25.210128] ? lock_downgrade+0x980/0x980 [ 25.210135] ? print_irqtrace_events+0x270/0x270 [ 25.210145] ? remove_wait_queue+0x81/0x350 [ 25.210154] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.210160] ? __lock_acquire+0x664/0x3e00 [ 25.210166] ? check_noncircular+0x20/0x20 [ 25.210178] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.210185] ? lock_acquire+0x1d5/0x580 [ 25.210191] ? lock_acquire+0x1d5/0x580 [ 25.210198] ? ep_free+0xf4/0x320 [ 25.210207] ? lock_release+0xa40/0xa40 [ 25.210214] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.210219] ? print_irqtrace_events+0x270/0x270 [ 25.210225] ? print_irqtrace_events+0x270/0x270 [ 25.210233] ? rcu_note_context_switch+0x710/0x710 [ 25.210241] ? __might_sleep+0x95/0x190 [ 25.210247] ? ep_free+0xf4/0x320 [ 25.210254] ? __mutex_lock+0x16f/0x1a80 [ 25.210259] ? ep_free+0xf4/0x320 [ 25.210266] ? print_irqtrace_events+0x270/0x270 [ 25.210271] ? ep_free+0xf4/0x320 [ 25.210279] lock_acquire+0x1d5/0x580 [ 25.210285] ? lock_acquire+0x1d5/0x580 [ 25.210290] ? remove_wait_queue+0x81/0x350 [ 25.210299] ? lock_release+0xa40/0xa40 [ 25.210308] ? lock_acquire+0x1d5/0x580 [ 25.210313] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.210319] ? lock_acquire+0x1d5/0x580 [ 25.210325] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.210334] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.210340] ? remove_wait_queue+0x81/0x350 [ 25.210346] remove_wait_queue+0x81/0x350 [ 25.210354] ? depot_save_stack+0x3b5/0x490 [ 25.210361] ? add_wait_queue+0x290/0x290 [ 25.210367] ? rcutorture_record_progress+0x10/0x10 [ 25.210372] ? lock_release+0xa40/0xa40 [ 25.210381] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.210389] ? __kernel_text_address+0xd/0x40 [ 25.210396] ? clear_tfile_check_list+0x370/0x370 [ 25.210404] ? check_noncircular+0x20/0x20 [ 25.210413] ? locks_remove_file+0x3fa/0x5a0 [ 25.210422] ep_free+0x13f/0x320 [ 25.210428] ? ep_remove+0x800/0x800 [ 25.210435] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.210442] ? ep_free+0x320/0x320 [ 25.210448] ep_eventpoll_release+0x44/0x60 [ 25.210455] __fput+0x327/0x7e0 [ 25.210463] ? fput+0x140/0x140 [ 25.210471] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.210479] ____fput+0x15/0x20 [ 25.210485] task_work_run+0x199/0x270 [ 25.210493] ? task_work_cancel+0x210/0x210 [ 25.210499] ? _raw_spin_unlock+0x22/0x30 [ 25.210506] ? switch_task_namespaces+0x87/0xc0 [ 25.210515] do_exit+0x9bb/0x1ad0 [ 25.210523] ? __handle_mm_fault+0x2330/0x3ce0 [ 25.210530] ? mm_update_next_owner+0x930/0x930 [ 25.210540] ? do_raw_spin_trylock+0x190/0x190 [ 25.210547] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.210553] ? check_noncircular+0x20/0x20 [ 25.210561] ? _raw_spin_unlock+0x22/0x30 [ 25.210567] ? __handle_mm_fault+0x80e/0x3ce0 [ 25.210574] ? check_noncircular+0x20/0x20 [ 25.210579] ? __pmd_alloc+0x4e0/0x4e0 [ 25.210585] ? lock_downgrade+0x980/0x980 [ 25.210593] ? find_held_lock+0x35/0x1d0 [ 25.210601] ? handle_mm_fault+0x248/0x8d0 [ 25.210608] ? find_held_lock+0x35/0x1d0 [ 25.210619] ? __do_page_fault+0x5f7/0xc90 [ 25.210625] ? lock_downgrade+0x980/0x980 [ 25.210634] ? handle_mm_fault+0x410/0x8d0 [ 25.210638] ? down_read_trylock+0xdb/0x170 [ 25.210644] ? __do_page_fault+0x32d/0xc90 [ 25.210650] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 25.210656] ? vmacache_find+0x5f/0x280 [ 25.210665] do_group_exit+0x149/0x400 [ 25.210671] ? __do_page_fault+0x3d6/0xc90 [ 25.210677] ? SyS_exit+0x30/0x30 [ 25.210686] ? do_fast_syscall_32+0x156/0xf9d [ 25.210692] ? do_group_exit+0x400/0x400 [ 25.210698] SyS_exit_group+0x1d/0x20 [ 25.210704] do_fast_syscall_32+0x3ee/0xf9d [ 25.210713] ? do_int80_syscall_32+0x9d0/0x9d0 [ 25.210719] ? kasan_check_read+0x11/0x20 [ 25.210726] ? syscall_return_slowpath+0x550/0x550 [ 25.210733] ? SyS_rt_sigaction+0x94/0x1b0 [ 25.210739] ? SyS_sigprocmask+0x4b0/0x4b0 [ 25.210744] ? SyS_read+0x184/0x220 [ 25.210749] ? retint_user+0x18/0x18 [ 25.210758] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.210766] entry_SYSENTER_compat+0x54/0x63 [ 25.210771] RIP: 0023:0xf7f40c79 [ 25.210774] RSP: 002b:00000000ff86b9cc EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 25.210780] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 25.210784] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 25.210787] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 25.210790] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.210793] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.210801] [ 25.210804] Allocated by task 3659: [ 25.210810] save_stack+0x43/0xd0 [ 25.210815] kasan_kmalloc+0xad/0xe0 [ 25.210820] kmem_cache_alloc_trace+0x136/0x750 [ 25.210827] binder_get_thread+0x1cf/0x870 [ 25.210833] binder_poll+0x8c/0x390 [ 25.210838] ep_item_poll.isra.10+0xec/0x320 [ 25.210843] ep_insert+0x6a3/0x1b10 [ 25.210848] SyS_epoll_ctl+0x12e4/0x1ab0 [ 25.210853] do_fast_syscall_32+0x3ee/0xf9d [ 25.210857] entry_SYSENTER_compat+0x54/0x63 [ 25.210858] [ 25.210861] Freed by task 3659: [ 25.210865] save_stack+0x43/0xd0 [ 25.210870] kasan_slab_free+0x71/0xc0 [ 25.210874] kfree+0xd6/0x260 [ 25.210879] binder_thread_dec_tmpref+0x27f/0x310 [ 25.210884] binder_thread_release+0x27d/0x540 [ 25.210889] binder_ioctl+0xc02/0x1417 [ 25.210895] compat_SyS_ioctl+0x151/0x2a30 [ 25.210900] do_fast_syscall_32+0x3ee/0xf9d [ 25.210904] entry_SYSENTER_compat+0x54/0x63 [ 25.210905] [ 25.210909] The buggy address belongs to the object at ffff8801bc668580 [ 25.210909] which belongs to the cache kmalloc-512 of size 512 [ 25.210914] The buggy address is located 176 bytes inside of [ 25.210914] 512-byte region [ffff8801bc668580, ffff8801bc668780) [ 25.210916] The buggy address belongs to the page: [ 25.210921] page:ffffea0006f19a00 count:1 mapcount:0 mapping:ffff8801bc668080 index:0x0 [ 25.210926] flags: 0x2fffc0000000100(slab) [ 25.210936] raw: 02fffc0000000100 ffff8801bc668080 0000000000000000 0000000100000006 [ 25.210942] raw: ffffea00076581e0 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 25.210945] page dumped because: kasan: bad access detected [ 25.210946] [ 25.210948] Memory state around the buggy address: [ 25.210952] ffff8801bc668500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.210957] ffff8801bc668580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.210961] >ffff8801bc668600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.210963] ^ [ 25.210967] ffff8801bc668680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.210971] ffff8801bc668700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.210973] ================================================================== [ 25.210975] Disabling lock debugging due to kernel taint [ 25.210978] Kernel panic - not syncing: panic_on_warn set ... [ 25.210978] [ 25.210985] CPU: 0 PID: 3659 Comm: syzkaller929868 Tainted: G B 4.15.0-rc7+ #171 [ 25.210988] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.210994] Call Trace: [ 25.211001] dump_stack+0x194/0x257 [ 25.211008] ? arch_local_irq_restore+0x53/0x53 [ 25.211014] ? kasan_end_report+0x32/0x50 [ 25.211020] ? lock_downgrade+0x980/0x980 [ 25.211026] ? vsnprintf+0x1ed/0x1900 [ 25.211033] ? __lock_acquire+0x3cb0/0x3e00 [ 25.211038] panic+0x1e4/0x41c [ 25.211044] ? refcount_error_report+0x214/0x214 [ 25.211051] ? add_taint+0x40/0x50 [ 25.211056] ? add_taint+0x1c/0x50 [ 25.211062] ? __lock_acquire+0x3d4d/0x3e00 [ 25.211068] kasan_end_report+0x50/0x50 [ 25.211074] kasan_report+0x144/0x340 [ 25.211081] __asan_report_load8_noabort+0x14/0x20 [ 25.211087] __lock_acquire+0x3d4d/0x3e00 [ 25.211093] ? __lock_acquire+0x664/0x3e00 [ 25.211099] ? lock_downgrade+0x980/0x980 [ 25.211104] ? lock_downgrade+0x980/0x980 [ 25.211110] ? print_irqtrace_events+0x270/0x270 [ 25.211116] ? remove_wait_queue+0x81/0x350 [ 25.211125] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.211131] ? __lock_acquire+0x664/0x3e00 [ 25.211136] ? check_noncircular+0x20/0x20 [ 25.211148] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.211155] ? lock_acquire+0x1d5/0x580 [ 25.211160] ? lock_acquire+0x1d5/0x580 [ 25.211165] ? ep_free+0xf4/0x320 [ 25.211173] ? lock_release+0xa40/0xa40 [ 25.211179] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.211184] ? print_irqtrace_events+0x270/0x270 [ 25.211190] ? print_irqtrace_events+0x270/0x270 [ 25.211196] ? rcu_note_context_switch+0x710/0x710 [ 25.211203] ? __might_sleep+0x95/0x190 [ 25.211209] ? ep_free+0xf4/0x320 [ 25.211215] ? __mutex_lock+0x16f/0x1a80 [ 25.211219] ? ep_free+0xf4/0x320 [ 25.211226] ? print_irqtrace_events+0x270/0x270 [ 25.211231] ? ep_free+0xf4/0x320 [ 25.211239] lock_acquire+0x1d5/0x580 [ 25.211245] ? lock_acquire+0x1d5/0x580 [ 25.211251] ? remove_wait_queue+0x81/0x350 [ 25.211259] ? lock_release+0xa40/0xa40 [ 25.211267] ? lock_acquire+0x1d5/0x580 [ 25.211273] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.211278] ? lock_acquire+0x1d5/0x580 [ 25.211284] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.211292] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.211298] ? remove_wait_queue+0x81/0x350 [ 25.211304] remove_wait_queue+0x81/0x350 [ 25.211310] ? depot_save_stack+0x3b5/0x490 [ 25.211316] ? add_wait_queue+0x290/0x290 [ 25.211322] ? rcutorture_record_progress+0x10/0x10 [ 25.211328] ? lock_release+0xa40/0xa40 [ 25.211336] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.211343] ? __kernel_text_address+0xd/0x40 [ 25.211351] ? clear_tfile_check_list+0x370/0x370 [ 25.211358] ? check_noncircular+0x20/0x20 [ 25.211366] ? locks_remove_file+0x3fa/0x5a0 [ 25.211375] ep_free+0x13f/0x320 [ 25.211381] ? ep_remove+0x800/0x800 [ 25.211386] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.211394] ? ep_free+0x320/0x320 [ 25.211400] ep_eventpoll_release+0x44/0x60 [ 25.211405] __fput+0x327/0x7e0 [ 25.211414] ? fput+0x140/0x140 [ 25.211420] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.211429] ____fput+0x15/0x20 [ 25.211435] task_work_run+0x199/0x270 [ 25.211442] ? task_work_cancel+0x210/0x210 [ 25.211448] ? _raw_spin_unlock+0x22/0x30 [ 25.211454] ? switch_task_namespaces+0x87/0xc0 [ 25.211462] do_exit+0x9bb/0x1ad0 [ 25.211468] ? __handle_mm_fault+0x2330/0x3ce0 [ 25.211475] ? mm_update_next_owner+0x930/0x930 [ 25.211484] ? do_raw_spin_trylock+0x190/0x190 [ 25.211491] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.211497] ? check_noncircular+0x20/0x20 [ 25.211504] ? _raw_spin_unlock+0x22/0x30 [ 25.211509] ? __handle_mm_fault+0x80e/0x3ce0 [ 25.211517] ? check_noncircular+0x20/0x20 [ 25.211522] ? __pmd_alloc+0x4e0/0x4e0 [ 25.211527] ? lock_downgrade+0x980/0x980 [ 25.211535] ? find_held_lock+0x35/0x1d0 [ 25.211543] ? handle_mm_fault+0x248/0x8d0 [ 25.211550] ? find_held_lock+0x35/0x1d0 [ 25.211559] ? __do_page_fault+0x5f7/0xc90 [ 25.211565] ? lock_downgrade+0x980/0x980 [ 25.211573] ? handle_mm_fault+0x410/0x8d0 [ 25.211578] ? down_read_trylock+0xdb/0x170 [ 25.211584] ? __do_page_fault+0x32d/0xc90 [ 25.211590] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 25.211595] ? vmacache_find+0x5f/0x280 [ 25.211604] do_group_exit+0x149/0x400 [ 25.211610] ? __do_page_fault+0x3d6/0xc90 [ 25.211615] ? SyS_exit+0x30/0x30 [ 25.211623] ? do_fast_syscall_32+0x156/0xf9d [ 25.211629] ? do_group_exit+0x400/0x400 [ 25.211635] SyS_exit_group+0x1d/0x20 [ 25.211641] do_fast_syscall_32+0x3ee/0xf9d [ 25.211649] ? do_int80_syscall_32+0x9d0/0x9d0 [ 25.211655] ? kasan_check_read+0x11/0x20 [ 25.211661] ? syscall_return_slowpath+0x550/0x550 [ 25.211668] ? SyS_rt_sigaction+0x94/0x1b0 [ 25.211674] ? SyS_sigprocmask+0x4b0/0x4b0 [ 25.211679] ? SyS_read+0x184/0x220 [ 25.211684] ? retint_user+0x18/0x18 [ 25.211692] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.211700] entry_SYSENTER_compat+0x54/0x63 [ 25.211704] RIP: 0023:0xf7f40c79 [ 25.211707] RSP: 002b:00000000ff86b9cc EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 25.211712] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 25.211716] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 25.211718] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 25.211722] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.211724] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.229305] Dumping ftrace buffer: [ 25.229308] (ftrace buffer empty) [ 25.229311] Kernel Offset: disabled [ 26.519894] Rebooting in 86400 seconds..