[....] Starting enhanced syslogd: rsyslogd[ 11.893442] audit: type=1400 audit(1515322806.949:5): avc: denied { syslog } for pid=3335 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: [ 16.467689] audit: type=1400 audit(1515322811.523:6): avc: denied { map } for pid=3475 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 [ 32.565215] audit: type=1400 audit(1515322827.621:7): avc: denied { map } for pid=3492 comm="syzkaller901534" path="/root/syzkaller901534613" 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 [ 32.570571] ================================================================== [ 32.570586] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 32.570590] Read of size 8 at addr ffff8801c9f54330 by task syzkaller901534/3492 [ 32.570591] [ 32.570597] CPU: 0 PID: 3492 Comm: syzkaller901534 Not tainted 4.15.0-rc6+ #160 [ 32.570599] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.570601] Call Trace: [ 32.570611] dump_stack+0x194/0x257 [ 32.570615] ? arch_local_irq_restore+0x53/0x53 [ 32.570621] ? show_regs_print_info+0x18/0x18 [ 32.570625] ? print_irqtrace_events+0x270/0x270 [ 32.570629] ? __lock_acquire+0x664/0x3e00 [ 32.570633] ? __lock_acquire+0x3d4d/0x3e00 [ 32.570641] print_address_description+0x73/0x250 [ 32.570644] ? __lock_acquire+0x3d4d/0x3e00 [ 32.570648] kasan_report+0x25b/0x340 [ 32.570654] __asan_report_load8_noabort+0x14/0x20 [ 32.570658] __lock_acquire+0x3d4d/0x3e00 [ 32.570661] ? __lock_acquire+0x664/0x3e00 [ 32.570665] ? lock_downgrade+0x980/0x980 [ 32.570668] ? lock_downgrade+0x980/0x980 [ 32.570672] ? print_irqtrace_events+0x270/0x270 [ 32.570677] ? remove_wait_queue+0x81/0x350 [ 32.570683] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.570687] ? __lock_acquire+0x664/0x3e00 [ 32.570690] ? check_noncircular+0x20/0x20 [ 32.570697] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.570701] ? lock_acquire+0x1d5/0x580 [ 32.570705] ? lock_acquire+0x1d5/0x580 [ 32.570711] ? ep_free+0xf4/0x320 [ 32.570716] ? lock_release+0xa40/0xa40 [ 32.570722] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 32.570725] ? print_irqtrace_events+0x270/0x270 [ 32.570729] ? print_irqtrace_events+0x270/0x270 [ 32.570736] ? rcu_note_context_switch+0x710/0x710 [ 32.570740] ? __might_sleep+0x95/0x190 [ 32.570744] ? ep_free+0xf4/0x320 [ 32.570749] ? __mutex_lock+0x16f/0x1a80 [ 32.570752] ? ep_free+0xf4/0x320 [ 32.570756] ? print_irqtrace_events+0x270/0x270 [ 32.570759] ? ep_free+0xf4/0x320 [ 32.570764] lock_acquire+0x1d5/0x580 [ 32.570767] ? lock_acquire+0x1d5/0x580 [ 32.570771] ? remove_wait_queue+0x81/0x350 [ 32.570776] ? lock_release+0xa40/0xa40 [ 32.570781] ? lock_acquire+0x1d5/0x580 [ 32.570784] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.570787] ? lock_acquire+0x1d5/0x580 [ 32.570791] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 32.570796] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.570800] ? remove_wait_queue+0x81/0x350 [ 32.570803] remove_wait_queue+0x81/0x350 [ 32.570810] ? depot_save_stack+0x3b5/0x490 [ 32.570814] ? add_wait_queue+0x290/0x290 [ 32.570818] ? rcutorture_record_progress+0x10/0x10 [ 32.570822] ? lock_release+0xa40/0xa40 [ 32.570827] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 32.570832] ? __kernel_text_address+0xd/0x40 [ 32.570837] ? clear_tfile_check_list+0x370/0x370 [ 32.570842] ? check_noncircular+0x20/0x20 [ 32.570848] ? locks_remove_file+0x3fa/0x5a0 [ 32.570853] ep_free+0x13f/0x320 [ 32.570857] ? ep_remove+0x800/0x800 [ 32.570860] ? fsnotify_first_mark+0x2b0/0x2b0 [ 32.570865] ? ep_free+0x320/0x320 [ 32.570868] ep_eventpoll_release+0x44/0x60 [ 32.570874] __fput+0x327/0x7e0 [ 32.570879] ? fput+0x140/0x140 [ 32.570883] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.570888] ____fput+0x15/0x20 [ 32.570892] task_work_run+0x199/0x270 [ 32.570897] ? task_work_cancel+0x210/0x210 [ 32.570900] ? _raw_spin_unlock+0x22/0x30 [ 32.570904] ? switch_task_namespaces+0x87/0xc0 [ 32.570910] do_exit+0x9bb/0x1ad0 [ 32.570915] ? __handle_mm_fault+0x2330/0x3ce0 [ 32.570919] ? mm_update_next_owner+0x930/0x930 [ 32.570925] ? do_raw_spin_trylock+0x190/0x190 [ 32.570931] ? _raw_spin_unlock+0x22/0x30 [ 32.570934] ? __handle_mm_fault+0x80e/0x3ce0 [ 32.570939] ? check_noncircular+0x20/0x20 [ 32.570942] ? __pmd_alloc+0x4e0/0x4e0 [ 32.570945] ? lock_downgrade+0x980/0x980 [ 32.570950] ? find_held_lock+0x35/0x1d0 [ 32.570955] ? handle_mm_fault+0x248/0x8d0 [ 32.570959] ? find_held_lock+0x35/0x1d0 [ 32.570966] ? __do_page_fault+0x5f7/0xc90 [ 32.570969] ? lock_downgrade+0x980/0x980 [ 32.570974] ? handle_mm_fault+0x410/0x8d0 [ 32.570978] ? down_read_trylock+0xdb/0x170 [ 32.570981] ? __do_page_fault+0x32d/0xc90 [ 32.570985] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 32.570989] ? vmacache_find+0x5f/0x280 [ 32.570994] do_group_exit+0x149/0x400 [ 32.570998] ? __do_page_fault+0x3d6/0xc90 [ 32.571005] ? SyS_exit+0x30/0x30 [ 32.571014] ? do_fast_syscall_32+0x156/0xf9d [ 32.571018] ? do_group_exit+0x400/0x400 [ 32.571021] SyS_exit_group+0x1d/0x20 [ 32.571025] do_fast_syscall_32+0x3ee/0xf9d [ 32.571030] ? do_int80_syscall_32+0x9d0/0x9d0 [ 32.571034] ? kasan_check_read+0x11/0x20 [ 32.571038] ? syscall_return_slowpath+0x550/0x550 [ 32.571045] ? SyS_rt_sigaction+0x94/0x1b0 [ 32.571049] ? SyS_sigprocmask+0x4b0/0x4b0 [ 32.571052] ? SyS_read+0x184/0x220 [ 32.571056] ? retint_user+0x18/0x18 [ 32.571061] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.571068] entry_SYSENTER_compat+0x54/0x63 [ 32.571071] RIP: 0023:0xf7f5fc79 [ 32.571073] RSP: 002b:00000000ffaf868c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 32.571078] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 32.571080] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 32.571082] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 32.571084] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 32.571086] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 32.571091] [ 32.571093] Allocated by task 3492: [ 32.571097] save_stack+0x43/0xd0 [ 32.571100] kasan_kmalloc+0xad/0xe0 [ 32.571103] kmem_cache_alloc_trace+0x136/0x750 [ 32.571109] binder_get_thread+0x1cf/0x870 [ 32.571111] binder_poll+0x8c/0x390 [ 32.571118] ep_item_poll.isra.10+0xec/0x320 [ 32.571121] ep_insert+0x6a3/0x1b10 [ 32.571124] SyS_epoll_ctl+0x12e4/0x1ab0 [ 32.571127] do_fast_syscall_32+0x3ee/0xf9d [ 32.571131] entry_SYSENTER_compat+0x54/0x63 [ 32.571132] [ 32.571133] Freed by task 3492: [ 32.571136] save_stack+0x43/0xd0 [ 32.571139] kasan_slab_free+0x71/0xc0 [ 32.571141] kfree+0xd6/0x260 [ 32.571144] binder_thread_dec_tmpref+0x27f/0x310 [ 32.571147] binder_thread_release+0x27d/0x540 [ 32.571149] binder_ioctl+0xc02/0x1417 [ 32.571153] compat_SyS_ioctl+0x151/0x2a30 [ 32.571156] do_fast_syscall_32+0x3ee/0xf9d [ 32.571159] entry_SYSENTER_compat+0x54/0x63 [ 32.571160] [ 32.571162] The buggy address belongs to the object at ffff8801c9f54280 [ 32.571162] which belongs to the cache kmalloc-512 of size 512 [ 32.571166] The buggy address is located 176 bytes inside of [ 32.571166] 512-byte region [ffff8801c9f54280, ffff8801c9f54480) [ 32.571167] The buggy address belongs to the page: [ 32.571171] page:ffffea000727d500 count:1 mapcount:0 mapping:ffff8801c9f54000 index:0x0 [ 32.571175] flags: 0x2fffc0000000100(slab) [ 32.571181] raw: 02fffc0000000100 ffff8801c9f54000 0000000000000000 0000000100000006 [ 32.571185] raw: ffffea000727b120 ffffea000727b2a0 ffff8801dac00940 0000000000000000 [ 32.571186] page dumped because: kasan: bad access detected [ 32.571187] [ 32.571188] Memory state around the buggy address: [ 32.571191] ffff8801c9f54200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.571194] ffff8801c9f54280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.571196] >ffff8801c9f54300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.571197] ^ [ 32.571200] ffff8801c9f54380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.571202] ffff8801c9f54400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.571203] ================================================================== [ 32.571205] Disabling lock debugging due to kernel taint [ 32.571207] Kernel panic - not syncing: panic_on_warn set ... [ 32.571207] [ 32.571211] CPU: 0 PID: 3492 Comm: syzkaller901534 Tainted: G B 4.15.0-rc6+ #160 [ 32.571213] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.571214] Call Trace: [ 32.571217] dump_stack+0x194/0x257 [ 32.571222] ? arch_local_irq_restore+0x53/0x53 [ 32.571225] ? kasan_end_report+0x32/0x50 [ 32.571229] ? lock_downgrade+0x980/0x980 [ 32.571234] ? vsnprintf+0x1ed/0x1900 [ 32.571238] ? __lock_acquire+0x3cb0/0x3e00 [ 32.571241] panic+0x1e4/0x41c [ 32.571245] ? refcount_error_report+0x214/0x214 [ 32.571249] ? add_taint+0x40/0x50 [ 32.571252] ? add_taint+0x1c/0x50 [ 32.571256] ? __lock_acquire+0x3d4d/0x3e00 [ 32.571259] kasan_end_report+0x50/0x50 [ 32.571262] kasan_report+0x144/0x340 [ 32.571267] __asan_report_load8_noabort+0x14/0x20 [ 32.571270] __lock_acquire+0x3d4d/0x3e00 [ 32.571274] ? __lock_acquire+0x664/0x3e00 [ 32.571277] ? lock_downgrade+0x980/0x980 [ 32.571280] ? lock_downgrade+0x980/0x980 [ 32.571284] ? print_irqtrace_events+0x270/0x270 [ 32.571288] ? remove_wait_queue+0x81/0x350 [ 32.571293] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.571296] ? __lock_acquire+0x664/0x3e00 [ 32.571300] ? check_noncircular+0x20/0x20 [ 32.571306] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.571310] ? lock_acquire+0x1d5/0x580 [ 32.571313] ? lock_acquire+0x1d5/0x580 [ 32.571317] ? ep_free+0xf4/0x320 [ 32.571321] ? lock_release+0xa40/0xa40 [ 32.571325] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 32.571328] ? print_irqtrace_events+0x270/0x270 [ 32.571332] ? print_irqtrace_events+0x270/0x270 [ 32.571336] ? rcu_note_context_switch+0x710/0x710 [ 32.571340] ? __might_sleep+0x95/0x190 [ 32.571343] ? ep_free+0xf4/0x320 [ 32.571347] ? __mutex_lock+0x16f/0x1a80 [ 32.571350] ? ep_free+0xf4/0x320 [ 32.571354] ? print_irqtrace_events+0x270/0x270 [ 32.571357] ? ep_free+0xf4/0x320 [ 32.571361] lock_acquire+0x1d5/0x580 [ 32.571364] ? lock_acquire+0x1d5/0x580 [ 32.571368] ? remove_wait_queue+0x81/0x350 [ 32.571372] ? lock_release+0xa40/0xa40 [ 32.571377] ? lock_acquire+0x1d5/0x580 [ 32.571381] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.571384] ? lock_acquire+0x1d5/0x580 [ 32.571388] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 32.571392] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.571395] ? remove_wait_queue+0x81/0x350 [ 32.571399] remove_wait_queue+0x81/0x350 [ 32.571403] ? depot_save_stack+0x3b5/0x490 [ 32.571407] ? add_wait_queue+0x290/0x290 [ 32.571410] ? rcutorture_record_progress+0x10/0x10 [ 32.571414] ? lock_release+0xa40/0xa40 [ 32.571419] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 32.571423] ? __kernel_text_address+0xd/0x40 [ 32.571428] ? clear_tfile_check_list+0x370/0x370 [ 32.571432] ? check_noncircular+0x20/0x20 [ 32.571436] ? locks_remove_file+0x3fa/0x5a0 [ 32.571442] ep_free+0x13f/0x320 [ 32.571445] ? ep_remove+0x800/0x800 [ 32.571448] ? fsnotify_first_mark+0x2b0/0x2b0 [ 32.571453] ? ep_free+0x320/0x320 [ 32.571456] ep_eventpoll_release+0x44/0x60 [ 32.571460] __fput+0x327/0x7e0 [ 32.571465] ? fput+0x140/0x140 [ 32.571469] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.571473] ____fput+0x15/0x20 [ 32.571477] task_work_run+0x199/0x270 [ 32.571482] ? task_work_cancel+0x210/0x210 [ 32.571485] ? _raw_spin_unlock+0x22/0x30 [ 32.571489] ? switch_task_namespaces+0x87/0xc0 [ 32.571493] do_exit+0x9bb/0x1ad0 [ 32.571497] ? __handle_mm_fault+0x2330/0x3ce0 [ 32.571501] ? mm_update_next_owner+0x930/0x930 [ 32.571506] ? do_raw_spin_trylock+0x190/0x190 [ 32.571512] ? _raw_spin_unlock+0x22/0x30 [ 32.571515] ? __handle_mm_fault+0x80e/0x3ce0 [ 32.571520] ? check_noncircular+0x20/0x20 [ 32.571523] ? __pmd_alloc+0x4e0/0x4e0 [ 32.571526] ? lock_downgrade+0x980/0x980 [ 32.571530] ? find_held_lock+0x35/0x1d0 [ 32.571535] ? handle_mm_fault+0x248/0x8d0 [ 32.571539] ? find_held_lock+0x35/0x1d0 [ 32.571544] ? __do_page_fault+0x5f7/0xc90 [ 32.571548] ? lock_downgrade+0x980/0x980 [ 32.571553] ? handle_mm_fault+0x410/0x8d0 [ 32.571556] ? down_read_trylock+0xdb/0x170 [ 32.571559] ? __do_page_fault+0x32d/0xc90 [ 32.571563] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 32.571566] ? vmacache_find+0x5f/0x280 [ 32.571571] do_group_exit+0x149/0x400 [ 32.571575] ? __do_page_fault+0x3d6/0xc90 [ 32.571578] ? SyS_exit+0x30/0x30 [ 32.571582] ? do_fast_syscall_32+0x156/0xf9d [ 32.571586] ? do_group_exit+0x400/0x400 [ 32.571590] SyS_exit_group+0x1d/0x20 [ 32.571593] do_fast_syscall_32+0x3ee/0xf9d [ 32.571598] ? do_int80_syscall_32+0x9d0/0x9d0 [ 32.571601] ? kasan_check_read+0x11/0x20 [ 32.571606] ? syscall_return_slowpath+0x550/0x550 [ 32.571610] ? SyS_rt_sigaction+0x94/0x1b0 [ 32.571613] ? SyS_sigprocmask+0x4b0/0x4b0 [ 32.571616] ? SyS_read+0x184/0x220 [ 32.571620] ? retint_user+0x18/0x18 [ 32.571625] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.571630] entry_SYSENTER_compat+0x54/0x63 [ 32.571632] RIP: 0023:0xf7f5fc79 [ 32.571634] RSP: 002b:00000000ffaf868c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 32.571638] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 32.571640] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 32.571641] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 32.571643] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 32.571645] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 32.591111] Dumping ftrace buffer: [ 32.591118] (ftrace buffer empty) [ 32.591120] Kernel Offset: disabled [ 33.850292] Rebooting in 86400 seconds..