[....] Starting enhanced syslogd: rsyslogd[ 12.740673] audit: type=1400 audit(1514889499.672: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: [ 17.243644] audit: type=1400 audit(1514889504.175:6): avc: denied { map } for pid=3484 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 [ 23.464663] audit: type=1400 audit(1514889510.396:7): avc: denied { map } for pid=3498 comm="syzkaller278627" path="/root/syzkaller278627527" 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.469948] ================================================================== [ 23.469961] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 23.469967] Read of size 8 at addr ffff8801c6e64330 by task syzkaller278627/3498 [ 23.469968] [ 23.469975] CPU: 0 PID: 3498 Comm: syzkaller278627 Not tainted 4.15.0-rc6+ #155 [ 23.469979] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.469981] Call Trace: [ 23.469990] dump_stack+0x194/0x257 [ 23.469998] ? arch_local_irq_restore+0x53/0x53 [ 23.470009] ? show_regs_print_info+0x18/0x18 [ 23.470015] ? print_irqtrace_events+0x270/0x270 [ 23.470021] ? __lock_acquire+0x664/0x3e00 [ 23.470028] ? __lock_acquire+0x3d4d/0x3e00 [ 23.470037] print_address_description+0x73/0x250 [ 23.470043] ? __lock_acquire+0x3d4d/0x3e00 [ 23.470049] kasan_report+0x25b/0x340 [ 23.470058] __asan_report_load8_noabort+0x14/0x20 [ 23.470063] __lock_acquire+0x3d4d/0x3e00 [ 23.470069] ? __lock_acquire+0x664/0x3e00 [ 23.470075] ? lock_downgrade+0x980/0x980 [ 23.470081] ? lock_downgrade+0x980/0x980 [ 23.470087] ? print_irqtrace_events+0x270/0x270 [ 23.470095] ? remove_wait_queue+0x81/0x350 [ 23.470104] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.470110] ? __lock_acquire+0x664/0x3e00 [ 23.470116] ? check_noncircular+0x20/0x20 [ 23.470128] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.470135] ? lock_acquire+0x1d5/0x580 [ 23.470140] ? lock_acquire+0x1d5/0x580 [ 23.470148] ? ep_free+0xf4/0x320 [ 23.470156] ? lock_release+0xa40/0xa40 [ 23.470163] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.470168] ? print_irqtrace_events+0x270/0x270 [ 23.470174] ? print_irqtrace_events+0x270/0x270 [ 23.470182] ? rcu_note_context_switch+0x710/0x710 [ 23.470189] ? __might_sleep+0x95/0x190 [ 23.470195] ? ep_free+0xf4/0x320 [ 23.470201] ? __mutex_lock+0x16f/0x1a80 [ 23.470206] ? ep_free+0xf4/0x320 [ 23.470213] ? print_irqtrace_events+0x270/0x270 [ 23.470218] ? ep_free+0xf4/0x320 [ 23.470226] lock_acquire+0x1d5/0x580 [ 23.470232] ? lock_acquire+0x1d5/0x580 [ 23.470238] ? remove_wait_queue+0x81/0x350 [ 23.470246] ? lock_release+0xa40/0xa40 [ 23.470255] ? lock_acquire+0x1d5/0x580 [ 23.470261] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.470266] ? lock_acquire+0x1d5/0x580 [ 23.470272] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.470280] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.470286] ? remove_wait_queue+0x81/0x350 [ 23.470292] remove_wait_queue+0x81/0x350 [ 23.470298] ? depot_save_stack+0x3b5/0x490 [ 23.470305] ? add_wait_queue+0x290/0x290 [ 23.470311] ? rcutorture_record_progress+0x10/0x10 [ 23.470317] ? lock_release+0xa40/0xa40 [ 23.470326] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.470333] ? __kernel_text_address+0xd/0x40 [ 23.470341] ? clear_tfile_check_list+0x370/0x370 [ 23.470353] ? check_noncircular+0x20/0x20 [ 23.470362] ? locks_remove_file+0x3fa/0x5a0 [ 23.470371] ep_free+0x13f/0x320 [ 23.470377] ? ep_remove+0x800/0x800 [ 23.470383] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.470391] ? ep_free+0x320/0x320 [ 23.470397] ep_eventpoll_release+0x44/0x60 [ 23.470405] __fput+0x327/0x7e0 [ 23.470413] ? fput+0x140/0x140 [ 23.470419] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.470428] ____fput+0x15/0x20 [ 23.470434] task_work_run+0x199/0x270 [ 23.470442] ? task_work_cancel+0x210/0x210 [ 23.470448] ? _raw_spin_unlock+0x22/0x30 [ 23.470455] ? switch_task_namespaces+0x87/0xc0 [ 23.470464] do_exit+0x9bb/0x1ad0 [ 23.470471] ? __handle_mm_fault+0x2330/0x3ce0 [ 23.470479] ? mm_update_next_owner+0x930/0x930 [ 23.470489] ? do_raw_spin_trylock+0x190/0x190 [ 23.470496] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.470502] ? check_noncircular+0x20/0x20 [ 23.470509] ? _raw_spin_unlock+0x22/0x30 [ 23.470514] ? __handle_mm_fault+0x80e/0x3ce0 [ 23.470522] ? check_noncircular+0x20/0x20 [ 23.470527] ? __pmd_alloc+0x4e0/0x4e0 [ 23.470532] ? lock_downgrade+0x980/0x980 [ 23.470541] ? find_held_lock+0x35/0x1d0 [ 23.470549] ? handle_mm_fault+0x248/0x8d0 [ 23.470556] ? find_held_lock+0x35/0x1d0 [ 23.470567] ? __do_page_fault+0x5f7/0xc90 [ 23.470573] ? lock_downgrade+0x980/0x980 [ 23.470582] ? handle_mm_fault+0x410/0x8d0 [ 23.470587] ? down_read_trylock+0xdb/0x170 [ 23.470593] ? __do_page_fault+0x32d/0xc90 [ 23.470599] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 23.470611] ? vmacache_find+0x5f/0x280 [ 23.470620] do_group_exit+0x149/0x400 [ 23.470626] ? __do_page_fault+0x3d6/0xc90 [ 23.470632] ? SyS_exit+0x30/0x30 [ 23.470642] ? do_fast_syscall_32+0x156/0xf9d [ 23.470648] ? do_group_exit+0x400/0x400 [ 23.470654] SyS_exit_group+0x1d/0x20 [ 23.470660] do_fast_syscall_32+0x3ee/0xf9d [ 23.470669] ? do_int80_syscall_32+0x9d0/0x9d0 [ 23.470675] ? kasan_check_read+0x11/0x20 [ 23.470682] ? syscall_return_slowpath+0x550/0x550 [ 23.470690] ? SyS_rt_sigaction+0x94/0x1b0 [ 23.470696] ? SyS_sigprocmask+0x4b0/0x4b0 [ 23.470701] ? SyS_read+0x184/0x220 [ 23.470707] ? retint_user+0x18/0x18 [ 23.470715] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 23.470725] entry_SYSENTER_compat+0x54/0x63 [ 23.470730] RIP: 0023:0xf7f2fc79 [ 23.470733] RSP: 002b:00000000ffbd743c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 23.470740] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 23.470743] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 23.470746] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 23.470749] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 23.470753] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 23.470760] [ 23.470763] Allocated by task 3498: [ 23.470769] save_stack+0x43/0xd0 [ 23.470773] kasan_kmalloc+0xad/0xe0 [ 23.470778] kmem_cache_alloc_trace+0x136/0x750 [ 23.470784] binder_get_thread+0x1cf/0x870 [ 23.470789] binder_poll+0x8c/0x390 [ 23.470794] ep_item_poll.isra.10+0xec/0x320 [ 23.470798] ep_insert+0x6a3/0x1b10 [ 23.470803] SyS_epoll_ctl+0x12e4/0x1ab0 [ 23.470809] do_fast_syscall_32+0x3ee/0xf9d [ 23.470814] entry_SYSENTER_compat+0x54/0x63 [ 23.470815] [ 23.470817] Freed by task 3498: [ 23.470822] save_stack+0x43/0xd0 [ 23.470826] kasan_slab_free+0x71/0xc0 [ 23.470830] kfree+0xd6/0x260 [ 23.470835] binder_thread_dec_tmpref+0x27f/0x310 [ 23.470839] binder_thread_release+0x27d/0x540 [ 23.470843] binder_ioctl+0xc02/0x1417 [ 23.470848] compat_SyS_ioctl+0x151/0x2a30 [ 23.470853] do_fast_syscall_32+0x3ee/0xf9d [ 23.470858] entry_SYSENTER_compat+0x54/0x63 [ 23.470859] [ 23.470863] The buggy address belongs to the object at ffff8801c6e64280 [ 23.470863] which belongs to the cache kmalloc-512 of size 512 [ 23.470868] The buggy address is located 176 bytes inside of [ 23.470868] 512-byte region [ffff8801c6e64280, ffff8801c6e64480) [ 23.470870] The buggy address belongs to the page: [ 23.470876] page:00000000ed8a50a9 count:1 mapcount:0 mapping:00000000dc615a6a index:0x0 [ 23.470880] flags: 0x2fffc0000000100(slab) [ 23.470889] raw: 02fffc0000000100 ffff8801c6e64000 0000000000000000 0000000100000006 [ 23.470895] raw: ffffea00071fb5a0 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 23.470898] page dumped because: kasan: bad access detected [ 23.470899] [ 23.470900] Memory state around the buggy address: [ 23.470905] ffff8801c6e64200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.470909] ffff8801c6e64280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.470913] >ffff8801c6e64300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.470915] ^ [ 23.470920] ffff8801c6e64380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.470924] ffff8801c6e64400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.470926] ================================================================== [ 23.470928] Disabling lock debugging due to kernel taint [ 23.470931] Kernel panic - not syncing: panic_on_warn set ... [ 23.470931] [ 23.470937] CPU: 0 PID: 3498 Comm: syzkaller278627 Tainted: G B 4.15.0-rc6+ #155 [ 23.470940] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.470941] Call Trace: [ 23.470948] dump_stack+0x194/0x257 [ 23.470955] ? arch_local_irq_restore+0x53/0x53 [ 23.470960] ? kasan_end_report+0x32/0x50 [ 23.470966] ? lock_downgrade+0x980/0x980 [ 23.470973] ? vsnprintf+0x1ed/0x1900 [ 23.470979] ? __lock_acquire+0x3c70/0x3e00 [ 23.470984] panic+0x1e4/0x41c [ 23.470990] ? refcount_error_report+0x214/0x214 [ 23.470997] ? add_taint+0x40/0x50 [ 23.471002] ? add_taint+0x1c/0x50 [ 23.471009] ? __lock_acquire+0x3d4d/0x3e00 [ 23.471015] kasan_end_report+0x50/0x50 [ 23.471021] kasan_report+0x144/0x340 [ 23.471029] __asan_report_load8_noabort+0x14/0x20 [ 23.471034] __lock_acquire+0x3d4d/0x3e00 [ 23.471040] ? __lock_acquire+0x664/0x3e00 [ 23.471045] ? lock_downgrade+0x980/0x980 [ 23.471050] ? lock_downgrade+0x980/0x980 [ 23.471057] ? print_irqtrace_events+0x270/0x270 [ 23.471062] ? remove_wait_queue+0x81/0x350 [ 23.471071] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.471078] ? __lock_acquire+0x664/0x3e00 [ 23.471083] ? check_noncircular+0x20/0x20 [ 23.471094] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.471101] ? lock_acquire+0x1d5/0x580 [ 23.471107] ? lock_acquire+0x1d5/0x580 [ 23.471112] ? ep_free+0xf4/0x320 [ 23.471120] ? lock_release+0xa40/0xa40 [ 23.471126] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.471132] ? print_irqtrace_events+0x270/0x270 [ 23.471137] ? print_irqtrace_events+0x270/0x270 [ 23.471144] ? rcu_note_context_switch+0x710/0x710 [ 23.471151] ? __might_sleep+0x95/0x190 [ 23.471156] ? ep_free+0xf4/0x320 [ 23.471162] ? __mutex_lock+0x16f/0x1a80 [ 23.471167] ? ep_free+0xf4/0x320 [ 23.471173] ? print_irqtrace_events+0x270/0x270 [ 23.471178] ? ep_free+0xf4/0x320 [ 23.471186] lock_acquire+0x1d5/0x580 [ 23.471191] ? lock_acquire+0x1d5/0x580 [ 23.471197] ? remove_wait_queue+0x81/0x350 [ 23.471205] ? lock_release+0xa40/0xa40 [ 23.471214] ? lock_acquire+0x1d5/0x580 [ 23.471219] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.471224] ? lock_acquire+0x1d5/0x580 [ 23.471230] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.471238] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.471243] ? remove_wait_queue+0x81/0x350 [ 23.471250] remove_wait_queue+0x81/0x350 [ 23.471255] ? depot_save_stack+0x3b5/0x490 [ 23.471262] ? add_wait_queue+0x290/0x290 [ 23.471267] ? rcutorture_record_progress+0x10/0x10 [ 23.471273] ? lock_release+0xa40/0xa40 [ 23.471282] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.471288] ? __kernel_text_address+0xd/0x40 [ 23.471296] ? clear_tfile_check_list+0x370/0x370 [ 23.471303] ? check_noncircular+0x20/0x20 [ 23.471311] ? locks_remove_file+0x3fa/0x5a0 [ 23.471320] ep_free+0x13f/0x320 [ 23.471326] ? ep_remove+0x800/0x800 [ 23.471331] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.471339] ? ep_free+0x320/0x320 [ 23.471350] ep_eventpoll_release+0x44/0x60 [ 23.471356] __fput+0x327/0x7e0 [ 23.471364] ? fput+0x140/0x140 [ 23.471371] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.471379] ____fput+0x15/0x20 [ 23.471385] task_work_run+0x199/0x270 [ 23.471393] ? task_work_cancel+0x210/0x210 [ 23.471399] ? _raw_spin_unlock+0x22/0x30 [ 23.471405] ? switch_task_namespaces+0x87/0xc0 [ 23.471412] do_exit+0x9bb/0x1ad0 [ 23.471417] ? __handle_mm_fault+0x2330/0x3ce0 [ 23.471425] ? mm_update_next_owner+0x930/0x930 [ 23.471434] ? do_raw_spin_trylock+0x190/0x190 [ 23.471441] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.471446] ? check_noncircular+0x20/0x20 [ 23.471453] ? _raw_spin_unlock+0x22/0x30 [ 23.471459] ? __handle_mm_fault+0x80e/0x3ce0 [ 23.471467] ? check_noncircular+0x20/0x20 [ 23.471471] ? __pmd_alloc+0x4e0/0x4e0 [ 23.471476] ? lock_downgrade+0x980/0x980 [ 23.471484] ? find_held_lock+0x35/0x1d0 [ 23.471493] ? handle_mm_fault+0x248/0x8d0 [ 23.471500] ? find_held_lock+0x35/0x1d0 [ 23.471508] ? __do_page_fault+0x5f7/0xc90 [ 23.471514] ? lock_downgrade+0x980/0x980 [ 23.471523] ? handle_mm_fault+0x410/0x8d0 [ 23.471528] ? down_read_trylock+0xdb/0x170 [ 23.471533] ? __do_page_fault+0x32d/0xc90 [ 23.471539] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 23.471545] ? vmacache_find+0x5f/0x280 [ 23.471553] do_group_exit+0x149/0x400 [ 23.471559] ? __do_page_fault+0x3d6/0xc90 [ 23.471565] ? SyS_exit+0x30/0x30 [ 23.471572] ? do_fast_syscall_32+0x156/0xf9d [ 23.471578] ? do_group_exit+0x400/0x400 [ 23.471584] SyS_exit_group+0x1d/0x20 [ 23.471590] do_fast_syscall_32+0x3ee/0xf9d [ 23.471599] ? do_int80_syscall_32+0x9d0/0x9d0 [ 23.471604] ? kasan_check_read+0x11/0x20 [ 23.471611] ? syscall_return_slowpath+0x550/0x550 [ 23.471618] ? SyS_rt_sigaction+0x94/0x1b0 [ 23.471624] ? SyS_sigprocmask+0x4b0/0x4b0 [ 23.471629] ? SyS_read+0x184/0x220 [ 23.471635] ? retint_user+0x18/0x18 [ 23.471643] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 23.471652] entry_SYSENTER_compat+0x54/0x63 [ 23.471655] RIP: 0023:0xf7f2fc79 [ 23.471658] RSP: 002b:00000000ffbd743c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 23.471663] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 23.471667] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 23.471670] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 23.471673] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 23.471676] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 23.490957] Dumping ftrace buffer: [ 23.490960] (ftrace buffer empty) [ 23.490962] Kernel Offset: disabled [ 24.772247] Rebooting in 86400 seconds..