[....] Starting enhanced syslogd: rsyslogd[ 12.589175] audit: type=1400 audit(1516140543.108:5): avc: denied { syslog } for pid=3493 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.629687] audit: type=1400 audit(1516140549.149:6): avc: denied { map } for pid=3633 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.247' (ECDSA) to the list of known hosts. executing program [ 45.736662] audit: type=1400 audit(1516140576.256:7): avc: denied { map } for pid=3650 comm="syzkaller357825" path="/root/syzkaller357825923" 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 [ 45.743107] ================================================================== [ 45.743120] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 45.743124] Read of size 8 at addr ffff8801bcfbd670 by task syzkaller357825/3650 [ 45.743125] [ 45.743130] CPU: 0 PID: 3650 Comm: syzkaller357825 Not tainted 4.15.0-rc8+ #174 [ 45.743133] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 45.743134] Call Trace: [ 45.743143] dump_stack+0x194/0x257 [ 45.743148] ? arch_local_irq_restore+0x53/0x53 [ 45.743154] ? show_regs_print_info+0x18/0x18 [ 45.743157] ? print_irqtrace_events+0x270/0x270 [ 45.743161] ? __lock_acquire+0x664/0x3e00 [ 45.743165] ? __lock_acquire+0x3d4d/0x3e00 [ 45.743171] print_address_description+0x73/0x250 [ 45.743174] ? __lock_acquire+0x3d4d/0x3e00 [ 45.743178] kasan_report+0x25b/0x340 [ 45.743183] __asan_report_load8_noabort+0x14/0x20 [ 45.743186] __lock_acquire+0x3d4d/0x3e00 [ 45.743190] ? __lock_acquire+0x664/0x3e00 [ 45.743193] ? lock_downgrade+0x980/0x980 [ 45.743197] ? lock_downgrade+0x980/0x980 [ 45.743200] ? print_irqtrace_events+0x270/0x270 [ 45.743207] ? remove_wait_queue+0x81/0x350 [ 45.743212] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 45.743235] ? __lock_acquire+0x664/0x3e00 [ 45.743238] ? check_noncircular+0x20/0x20 [ 45.743245] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 45.743250] ? lock_acquire+0x1d5/0x580 [ 45.743254] ? lock_acquire+0x1d5/0x580 [ 45.743261] ? ep_free+0xf4/0x320 [ 45.743266] ? lock_release+0xa40/0xa40 [ 45.743271] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 45.743274] ? print_irqtrace_events+0x270/0x270 [ 45.743278] ? print_irqtrace_events+0x270/0x270 [ 45.743284] ? rcu_note_context_switch+0x710/0x710 [ 45.743288] ? __might_sleep+0x95/0x190 [ 45.743292] ? ep_free+0xf4/0x320 [ 45.743297] ? __mutex_lock+0x16f/0x1a80 [ 45.743300] ? ep_free+0xf4/0x320 [ 45.743304] ? print_irqtrace_events+0x270/0x270 [ 45.743307] ? ep_free+0xf4/0x320 [ 45.743312] lock_acquire+0x1d5/0x580 [ 45.743315] ? lock_acquire+0x1d5/0x580 [ 45.743319] ? remove_wait_queue+0x81/0x350 [ 45.743323] ? lock_release+0xa40/0xa40 [ 45.743328] ? lock_acquire+0x1d5/0x580 [ 45.743332] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 45.743335] ? lock_acquire+0x1d5/0x580 [ 45.743339] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 45.743344] _raw_spin_lock_irqsave+0x96/0xc0 [ 45.743347] ? remove_wait_queue+0x81/0x350 [ 45.743351] remove_wait_queue+0x81/0x350 [ 45.743357] ? depot_save_stack+0x3b5/0x490 [ 45.743366] ? add_wait_queue+0x290/0x290 [ 45.743370] ? rcutorture_record_progress+0x10/0x10 [ 45.743373] ? lock_release+0xa40/0xa40 [ 45.743379] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 45.743387] ? __kernel_text_address+0xd/0x40 [ 45.743393] ? clear_tfile_check_list+0x370/0x370 [ 45.743400] ? check_noncircular+0x20/0x20 [ 45.743406] ? locks_remove_file+0x3fa/0x5a0 [ 45.743412] ep_free+0x13f/0x320 [ 45.743416] ? ep_remove+0x800/0x800 [ 45.743420] ? fsnotify_first_mark+0x2b0/0x2b0 [ 45.743430] ? ep_free+0x320/0x320 [ 45.743434] ep_eventpoll_release+0x44/0x60 [ 45.743439] __fput+0x327/0x7e0 [ 45.743444] ? fput+0x140/0x140 [ 45.743449] ? _raw_spin_unlock_irq+0x27/0x70 [ 45.743454] ____fput+0x15/0x20 [ 45.743458] task_work_run+0x199/0x270 [ 45.743462] ? task_work_cancel+0x210/0x210 [ 45.743466] ? _raw_spin_unlock+0x22/0x30 [ 45.743471] ? switch_task_namespaces+0x87/0xc0 [ 45.743478] do_exit+0x9bb/0x1ad0 [ 45.743483] ? __handle_mm_fault+0x2330/0x3ce0 [ 45.743488] ? mm_update_next_owner+0x930/0x930 [ 45.743494] ? do_raw_spin_trylock+0x190/0x190 [ 45.743499] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 45.743502] ? check_noncircular+0x20/0x20 [ 45.743507] ? _raw_spin_unlock+0x22/0x30 [ 45.743510] ? __handle_mm_fault+0x80e/0x3ce0 [ 45.743515] ? check_noncircular+0x20/0x20 [ 45.743518] ? __pmd_alloc+0x4e0/0x4e0 [ 45.743521] ? lock_downgrade+0x980/0x980 [ 45.743526] ? find_held_lock+0x35/0x1d0 [ 45.743531] ? handle_mm_fault+0x248/0x8d0 [ 45.743535] ? find_held_lock+0x35/0x1d0 [ 45.743542] ? __do_page_fault+0x5f7/0xc90 [ 45.743545] ? lock_downgrade+0x980/0x980 [ 45.743551] ? handle_mm_fault+0x410/0x8d0 [ 45.743554] ? down_read_trylock+0xdb/0x170 [ 45.743557] ? __do_page_fault+0x32d/0xc90 [ 45.743561] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 45.743567] ? vmacache_find+0x5f/0x280 [ 45.743572] do_group_exit+0x149/0x400 [ 45.743576] ? __do_page_fault+0x3d6/0xc90 [ 45.743579] ? SyS_exit+0x30/0x30 [ 45.743586] ? do_fast_syscall_32+0x156/0xf9d [ 45.743589] ? do_group_exit+0x400/0x400 [ 45.743593] SyS_exit_group+0x1d/0x20 [ 45.743597] do_fast_syscall_32+0x3ee/0xf9d [ 45.743602] ? do_int80_syscall_32+0x9d0/0x9d0 [ 45.743606] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 45.743610] ? syscall_return_slowpath+0x550/0x550 [ 45.743615] ? SyS_rt_sigaction+0x94/0x1b0 [ 45.743620] ? retint_user+0x18/0x18 [ 45.743625] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 45.743631] entry_SYSENTER_compat+0x54/0x63 [ 45.743635] RIP: 0023:0xf7f07c79 [ 45.743638] RSP: 002b:00000000fff1981c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 45.743642] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 45.743644] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 45.743646] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 45.743648] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 45.743650] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 45.743654] [ 45.743656] Allocated by task 3650: [ 45.743661] save_stack+0x43/0xd0 [ 45.743663] kasan_kmalloc+0xad/0xe0 [ 45.743667] kmem_cache_alloc_trace+0x136/0x750 [ 45.743671] binder_get_thread+0x1cf/0x870 [ 45.743674] binder_poll+0x8c/0x390 [ 45.743677] ep_item_poll.isra.10+0xec/0x320 [ 45.743680] ep_insert+0x6a3/0x1b10 [ 45.743683] SyS_epoll_ctl+0x12e4/0x1ab0 [ 45.743690] do_fast_syscall_32+0x3ee/0xf9d [ 45.743693] entry_SYSENTER_compat+0x54/0x63 [ 45.743694] [ 45.743695] Freed by task 3650: [ 45.743698] save_stack+0x43/0xd0 [ 45.743701] kasan_slab_free+0x71/0xc0 [ 45.743703] kfree+0xd6/0x260 [ 45.743707] binder_thread_dec_tmpref+0x27f/0x310 [ 45.743710] binder_thread_release+0x27d/0x540 [ 45.743713] binder_ioctl+0xc02/0x1417 [ 45.743716] compat_SyS_ioctl+0x151/0x2a30 [ 45.743719] do_fast_syscall_32+0x3ee/0xf9d [ 45.743722] entry_SYSENTER_compat+0x54/0x63 [ 45.743723] [ 45.743725] The buggy address belongs to the object at ffff8801bcfbd5c0 [ 45.743725] which belongs to the cache kmalloc-512 of size 512 [ 45.743729] The buggy address is located 176 bytes inside of [ 45.743729] 512-byte region [ffff8801bcfbd5c0, ffff8801bcfbd7c0) [ 45.743729] The buggy address belongs to the page: [ 45.743733] page:ffffea0006f3ef40 count:1 mapcount:0 mapping:ffff8801bcfbd0c0 index:0x0 [ 45.743737] flags: 0x2fffc0000000100(slab) [ 45.743743] raw: 02fffc0000000100 ffff8801bcfbd0c0 0000000000000000 0000000100000006 [ 45.743747] raw: ffffea0006f03660 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 45.743749] page dumped because: kasan: bad access detected [ 45.743749] [ 45.743750] Memory state around the buggy address: [ 45.743753] ffff8801bcfbd500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 45.743756] ffff8801bcfbd580: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 45.743759] >ffff8801bcfbd600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 45.743760] ^ [ 45.743763] ffff8801bcfbd680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 45.743766] ffff8801bcfbd700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 45.743767] ================================================================== [ 45.743768] Disabling lock debugging due to kernel taint [ 45.743771] Kernel panic - not syncing: panic_on_warn set ... [ 45.743771] [ 45.743774] CPU: 0 PID: 3650 Comm: syzkaller357825 Tainted: G B 4.15.0-rc8+ #174 [ 45.743776] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 45.743778] Call Trace: [ 45.743782] dump_stack+0x194/0x257 [ 45.743787] ? arch_local_irq_restore+0x53/0x53 [ 45.743790] ? kasan_end_report+0x32/0x50 [ 45.743794] ? lock_downgrade+0x980/0x980 [ 45.743799] ? vsnprintf+0x1ed/0x1900 [ 45.743802] ? __lock_acquire+0x3c70/0x3e00 [ 45.743806] panic+0x1e4/0x41c [ 45.743809] ? refcount_error_report+0x214/0x214 [ 45.743813] ? add_taint+0x40/0x50 [ 45.743816] ? add_taint+0x1c/0x50 [ 45.743820] ? __lock_acquire+0x3d4d/0x3e00 [ 45.743824] kasan_end_report+0x50/0x50 [ 45.743827] kasan_report+0x144/0x340 [ 45.743832] __asan_report_load8_noabort+0x14/0x20 [ 45.743835] __lock_acquire+0x3d4d/0x3e00 [ 45.743839] ? __lock_acquire+0x664/0x3e00 [ 45.743842] ? lock_downgrade+0x980/0x980 [ 45.743846] ? lock_downgrade+0x980/0x980 [ 45.743849] ? print_irqtrace_events+0x270/0x270 [ 45.743853] ? remove_wait_queue+0x81/0x350 [ 45.743858] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 45.743862] ? __lock_acquire+0x664/0x3e00 [ 45.743865] ? check_noncircular+0x20/0x20 [ 45.743872] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 45.743876] ? lock_acquire+0x1d5/0x580 [ 45.743879] ? lock_acquire+0x1d5/0x580 [ 45.743882] ? ep_free+0xf4/0x320 [ 45.743887] ? lock_release+0xa40/0xa40 [ 45.743891] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 45.743894] ? print_irqtrace_events+0x270/0x270 [ 45.743898] ? print_irqtrace_events+0x270/0x270 [ 45.743901] ? rcu_note_context_switch+0x710/0x710 [ 45.743906] ? __might_sleep+0x95/0x190 [ 45.743909] ? ep_free+0xf4/0x320 [ 45.743913] ? __mutex_lock+0x16f/0x1a80 [ 45.743916] ? ep_free+0xf4/0x320 [ 45.743920] ? print_irqtrace_events+0x270/0x270 [ 45.743923] ? ep_free+0xf4/0x320 [ 45.743928] lock_acquire+0x1d5/0x580 [ 45.743931] ? lock_acquire+0x1d5/0x580 [ 45.743935] ? remove_wait_queue+0x81/0x350 [ 45.743940] ? lock_release+0xa40/0xa40 [ 45.743945] ? lock_acquire+0x1d5/0x580 [ 45.743948] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 45.743951] ? lock_acquire+0x1d5/0x580 [ 45.743955] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 45.743960] _raw_spin_lock_irqsave+0x96/0xc0 [ 45.743963] ? remove_wait_queue+0x81/0x350 [ 45.743967] remove_wait_queue+0x81/0x350 [ 45.743970] ? depot_save_stack+0x3b5/0x490 [ 45.743974] ? add_wait_queue+0x290/0x290 [ 45.743978] ? rcutorture_record_progress+0x10/0x10 [ 45.743981] ? lock_release+0xa40/0xa40 [ 45.743987] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 45.743991] ? __kernel_text_address+0xd/0x40 [ 45.743995] ? clear_tfile_check_list+0x370/0x370 [ 45.744000] ? check_noncircular+0x20/0x20 [ 45.744008] ? locks_remove_file+0x3fa/0x5a0 [ 45.744013] ep_free+0x13f/0x320 [ 45.744017] ? ep_remove+0x800/0x800 [ 45.744020] ? fsnotify_first_mark+0x2b0/0x2b0 [ 45.744025] ? ep_free+0x320/0x320 [ 45.744028] ep_eventpoll_release+0x44/0x60 [ 45.744032] __fput+0x327/0x7e0 [ 45.744037] ? fput+0x140/0x140 [ 45.744041] ? _raw_spin_unlock_irq+0x27/0x70 [ 45.744046] ____fput+0x15/0x20 [ 45.744050] task_work_run+0x199/0x270 [ 45.744055] ? task_work_cancel+0x210/0x210 [ 45.744059] ? _raw_spin_unlock+0x22/0x30 [ 45.744062] ? switch_task_namespaces+0x87/0xc0 [ 45.744067] do_exit+0x9bb/0x1ad0 [ 45.744071] ? __handle_mm_fault+0x2330/0x3ce0 [ 45.744075] ? mm_update_next_owner+0x930/0x930 [ 45.744080] ? do_raw_spin_trylock+0x190/0x190 [ 45.744085] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 45.744089] ? check_noncircular+0x20/0x20 [ 45.744093] ? _raw_spin_unlock+0x22/0x30 [ 45.744097] ? __handle_mm_fault+0x80e/0x3ce0 [ 45.744101] ? check_noncircular+0x20/0x20 [ 45.744104] ? __pmd_alloc+0x4e0/0x4e0 [ 45.744107] ? lock_downgrade+0x980/0x980 [ 45.744112] ? find_held_lock+0x35/0x1d0 [ 45.744117] ? handle_mm_fault+0x248/0x8d0 [ 45.744121] ? find_held_lock+0x35/0x1d0 [ 45.744126] ? __do_page_fault+0x5f7/0xc90 [ 45.744130] ? lock_downgrade+0x980/0x980 [ 45.744135] ? handle_mm_fault+0x410/0x8d0 [ 45.744138] ? down_read_trylock+0xdb/0x170 [ 45.744141] ? __do_page_fault+0x32d/0xc90 [ 45.744145] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 45.744149] ? vmacache_find+0x5f/0x280 [ 45.744153] do_group_exit+0x149/0x400 [ 45.744157] ? __do_page_fault+0x3d6/0xc90 [ 45.744161] ? SyS_exit+0x30/0x30 [ 45.744165] ? do_fast_syscall_32+0x156/0xf9d [ 45.744169] ? do_group_exit+0x400/0x400 [ 45.744172] SyS_exit_group+0x1d/0x20 [ 45.744176] do_fast_syscall_32+0x3ee/0xf9d [ 45.744181] ? do_int80_syscall_32+0x9d0/0x9d0 [ 45.744185] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 45.744189] ? syscall_return_slowpath+0x550/0x550 [ 45.744193] ? SyS_rt_sigaction+0x94/0x1b0 [ 45.744197] ? retint_user+0x18/0x18 [ 45.744202] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 45.744207] entry_SYSENTER_compat+0x54/0x63 [ 45.744209] RIP: 0023:0xf7f07c79 [ 45.744211] RSP: 002b:00000000fff1981c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 45.744214] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 45.744216] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 45.744218] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 45.744220] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 45.744222] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 45.762873] Dumping ftrace buffer: [ 45.762876] (ftrace buffer empty) [ 45.762878] Kernel Offset: disabled [ 47.035729] Rebooting in 86400 seconds..