[....] Starting enhanced syslogd: rsyslogd[ 11.949288] audit: type=1400 audit(1515135923.895: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 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: [ 17.100671] audit: type=1400 audit(1515135929.046:6): avc: denied { map } for pid=3478 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.57' (ECDSA) to the list of known hosts. executing program [ 23.262590] audit: type=1400 audit(1515135935.208:7): avc: denied { map } for pid=3492 comm="syzkaller552000" path="/root/syzkaller552000331" 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.268851] ================================================================== [ 23.268865] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 23.268871] Read of size 8 at addr ffff8801c86e68b0 by task syzkaller552000/3492 [ 23.268872] [ 23.268879] CPU: 0 PID: 3492 Comm: syzkaller552000 Not tainted 4.15.0-rc6+ #158 [ 23.268882] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.268885] Call Trace: [ 23.268900] dump_stack+0x194/0x257 [ 23.268908] ? arch_local_irq_restore+0x53/0x53 [ 23.268915] ? show_regs_print_info+0x18/0x18 [ 23.268921] ? print_irqtrace_events+0x270/0x270 [ 23.268927] ? __lock_acquire+0x664/0x3e00 [ 23.268934] ? __lock_acquire+0x3d4d/0x3e00 [ 23.268942] print_address_description+0x73/0x250 [ 23.268948] ? __lock_acquire+0x3d4d/0x3e00 [ 23.268954] kasan_report+0x25b/0x340 [ 23.268963] __asan_report_load8_noabort+0x14/0x20 [ 23.268969] __lock_acquire+0x3d4d/0x3e00 [ 23.268975] ? __lock_acquire+0x664/0x3e00 [ 23.268980] ? lock_downgrade+0x980/0x980 [ 23.268986] ? lock_downgrade+0x980/0x980 [ 23.268992] ? print_irqtrace_events+0x270/0x270 [ 23.269000] ? remove_wait_queue+0x81/0x350 [ 23.269012] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.269018] ? __lock_acquire+0x664/0x3e00 [ 23.269024] ? check_noncircular+0x20/0x20 [ 23.269036] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.269043] ? lock_acquire+0x1d5/0x580 [ 23.269048] ? lock_acquire+0x1d5/0x580 [ 23.269054] ? ep_free+0xf4/0x320 [ 23.269062] ? lock_release+0xa40/0xa40 [ 23.269069] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.269075] ? print_irqtrace_events+0x270/0x270 [ 23.269080] ? print_irqtrace_events+0x270/0x270 [ 23.269087] ? rcu_note_context_switch+0x710/0x710 [ 23.269095] ? __might_sleep+0x95/0x190 [ 23.269100] ? ep_free+0xf4/0x320 [ 23.269106] ? __mutex_lock+0x16f/0x1a80 [ 23.269111] ? ep_free+0xf4/0x320 [ 23.269118] ? print_irqtrace_events+0x270/0x270 [ 23.269123] ? ep_free+0xf4/0x320 [ 23.269131] lock_acquire+0x1d5/0x580 [ 23.269137] ? lock_acquire+0x1d5/0x580 [ 23.269142] ? remove_wait_queue+0x81/0x350 [ 23.269151] ? lock_release+0xa40/0xa40 [ 23.269159] ? lock_acquire+0x1d5/0x580 [ 23.269165] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.269170] ? lock_acquire+0x1d5/0x580 [ 23.269176] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.269184] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.269189] ? remove_wait_queue+0x81/0x350 [ 23.269196] remove_wait_queue+0x81/0x350 [ 23.269202] ? depot_save_stack+0x3b5/0x490 [ 23.269209] ? add_wait_queue+0x290/0x290 [ 23.269215] ? rcutorture_record_progress+0x10/0x10 [ 23.269221] ? lock_release+0xa40/0xa40 [ 23.269230] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.269237] ? __kernel_text_address+0xd/0x40 [ 23.269245] ? clear_tfile_check_list+0x370/0x370 [ 23.269253] ? check_noncircular+0x20/0x20 [ 23.269261] ? locks_remove_file+0x3fa/0x5a0 [ 23.269271] ep_free+0x13f/0x320 [ 23.269277] ? ep_remove+0x800/0x800 [ 23.269283] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.269290] ? ep_free+0x320/0x320 [ 23.269296] ep_eventpoll_release+0x44/0x60 [ 23.269303] __fput+0x327/0x7e0 [ 23.269311] ? fput+0x140/0x140 [ 23.269318] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.269326] ____fput+0x15/0x20 [ 23.269332] task_work_run+0x199/0x270 [ 23.269340] ? task_work_cancel+0x210/0x210 [ 23.269346] ? _raw_spin_unlock+0x22/0x30 [ 23.269352] ? switch_task_namespaces+0x87/0xc0 [ 23.269359] do_exit+0x9bb/0x1ad0 [ 23.269366] ? __handle_mm_fault+0x2330/0x3ce0 [ 23.269373] ? mm_update_next_owner+0x930/0x930 [ 23.269384] ? do_raw_spin_trylock+0x190/0x190 [ 23.269391] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.269397] ? check_noncircular+0x20/0x20 [ 23.269404] ? _raw_spin_unlock+0x22/0x30 [ 23.269409] ? __handle_mm_fault+0x80e/0x3ce0 [ 23.269417] ? check_noncircular+0x20/0x20 [ 23.269422] ? __pmd_alloc+0x4e0/0x4e0 [ 23.269427] ? lock_downgrade+0x980/0x980 [ 23.269435] ? find_held_lock+0x35/0x1d0 [ 23.269444] ? handle_mm_fault+0x248/0x8d0 [ 23.269451] ? find_held_lock+0x35/0x1d0 [ 23.269460] ? __do_page_fault+0x5f7/0xc90 [ 23.269466] ? lock_downgrade+0x980/0x980 [ 23.269475] ? handle_mm_fault+0x410/0x8d0 [ 23.269480] ? down_read_trylock+0xdb/0x170 [ 23.269486] ? __do_page_fault+0x32d/0xc90 [ 23.269492] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 23.269498] ? vmacache_find+0x5f/0x280 [ 23.269506] do_group_exit+0x149/0x400 [ 23.269512] ? __do_page_fault+0x3d6/0xc90 [ 23.269518] ? SyS_exit+0x30/0x30 [ 23.269526] ? do_fast_syscall_32+0x156/0xf9d [ 23.269533] ? do_group_exit+0x400/0x400 [ 23.269539] SyS_exit_group+0x1d/0x20 [ 23.269545] do_fast_syscall_32+0x3ee/0xf9d [ 23.269553] ? do_int80_syscall_32+0x9d0/0x9d0 [ 23.269559] ? kasan_check_read+0x11/0x20 [ 23.269566] ? syscall_return_slowpath+0x550/0x550 [ 23.269574] ? SyS_rt_sigaction+0x94/0x1b0 [ 23.269580] ? SyS_sigprocmask+0x4b0/0x4b0 [ 23.269585] ? SyS_read+0x184/0x220 [ 23.269591] ? retint_user+0x18/0x18 [ 23.269599] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 23.269608] entry_SYSENTER_compat+0x54/0x63 [ 23.269613] RIP: 0023:0xf7ff6c79 [ 23.269616] RSP: 002b:00000000ffa140cc EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 23.269623] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 23.269626] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 23.269629] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 23.269632] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 23.269635] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 23.269644] [ 23.269646] Allocated by task 3492: [ 23.269652] save_stack+0x43/0xd0 [ 23.269657] kasan_kmalloc+0xad/0xe0 [ 23.269661] kmem_cache_alloc_trace+0x136/0x750 [ 23.269667] binder_get_thread+0x1cf/0x870 [ 23.269671] binder_poll+0x8c/0x390 [ 23.269676] ep_item_poll.isra.10+0xec/0x320 [ 23.269681] ep_insert+0x6a3/0x1b10 [ 23.269686] SyS_epoll_ctl+0x12e4/0x1ab0 [ 23.269691] do_fast_syscall_32+0x3ee/0xf9d [ 23.269697] entry_SYSENTER_compat+0x54/0x63 [ 23.269698] [ 23.269700] Freed by task 3492: [ 23.269704] save_stack+0x43/0xd0 [ 23.269709] kasan_slab_free+0x71/0xc0 [ 23.269713] kfree+0xd6/0x260 [ 23.269717] binder_thread_dec_tmpref+0x27f/0x310 [ 23.269722] binder_thread_release+0x27d/0x540 [ 23.269726] binder_ioctl+0xc02/0x1417 [ 23.269731] compat_SyS_ioctl+0x151/0x2a30 [ 23.269736] do_fast_syscall_32+0x3ee/0xf9d [ 23.269742] entry_SYSENTER_compat+0x54/0x63 [ 23.269743] [ 23.269747] The buggy address belongs to the object at ffff8801c86e6800 [ 23.269747] which belongs to the cache kmalloc-512 of size 512 [ 23.269752] The buggy address is located 176 bytes inside of [ 23.269752] 512-byte region [ffff8801c86e6800, ffff8801c86e6a00) [ 23.269753] The buggy address belongs to the page: [ 23.269759] page:0000000013e7facc count:1 mapcount:0 mapping:0000000024bbabd4 index:0x0 [ 23.269764] flags: 0x2fffc0000000100(slab) [ 23.269772] raw: 02fffc0000000100 ffff8801c86e6080 0000000000000000 0000000100000006 [ 23.269778] raw: ffffea0007399220 ffffea000721e160 ffff8801dac00940 0000000000000000 [ 23.269781] page dumped because: kasan: bad access detected [ 23.269782] [ 23.269783] Memory state around the buggy address: [ 23.269788] ffff8801c86e6780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.269793] ffff8801c86e6800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.269797] >ffff8801c86e6880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.269799] ^ [ 23.269803] ffff8801c86e6900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.269807] ffff8801c86e6980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.269809] ================================================================== [ 23.269811] Disabling lock debugging due to kernel taint [ 23.269814] Kernel panic - not syncing: panic_on_warn set ... [ 23.269814] [ 23.269820] CPU: 0 PID: 3492 Comm: syzkaller552000 Tainted: G B 4.15.0-rc6+ #158 [ 23.269823] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.269825] Call Trace: [ 23.269831] dump_stack+0x194/0x257 [ 23.269838] ? arch_local_irq_restore+0x53/0x53 [ 23.269843] ? kasan_end_report+0x32/0x50 [ 23.269849] ? lock_downgrade+0x980/0x980 [ 23.269855] ? vsnprintf+0x1ed/0x1900 [ 23.269861] ? __lock_acquire+0x3cb0/0x3e00 [ 23.269867] panic+0x1e4/0x41c [ 23.269872] ? refcount_error_report+0x214/0x214 [ 23.269879] ? add_taint+0x40/0x50 [ 23.269884] ? add_taint+0x1c/0x50 [ 23.269896] ? __lock_acquire+0x3d4d/0x3e00 [ 23.269902] kasan_end_report+0x50/0x50 [ 23.269908] kasan_report+0x144/0x340 [ 23.269916] __asan_report_load8_noabort+0x14/0x20 [ 23.269921] __lock_acquire+0x3d4d/0x3e00 [ 23.269927] ? __lock_acquire+0x664/0x3e00 [ 23.269932] ? lock_downgrade+0x980/0x980 [ 23.269938] ? lock_downgrade+0x980/0x980 [ 23.269944] ? print_irqtrace_events+0x270/0x270 [ 23.269950] ? remove_wait_queue+0x81/0x350 [ 23.269958] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.269965] ? __lock_acquire+0x664/0x3e00 [ 23.269970] ? check_noncircular+0x20/0x20 [ 23.269981] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.269988] ? lock_acquire+0x1d5/0x580 [ 23.269994] ? lock_acquire+0x1d5/0x580 [ 23.269999] ? ep_free+0xf4/0x320 [ 23.270007] ? lock_release+0xa40/0xa40 [ 23.270013] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.270018] ? print_irqtrace_events+0x270/0x270 [ 23.270024] ? print_irqtrace_events+0x270/0x270 [ 23.270030] ? rcu_note_context_switch+0x710/0x710 [ 23.270037] ? __might_sleep+0x95/0x190 [ 23.270043] ? ep_free+0xf4/0x320 [ 23.270048] ? __mutex_lock+0x16f/0x1a80 [ 23.270053] ? ep_free+0xf4/0x320 [ 23.270060] ? print_irqtrace_events+0x270/0x270 [ 23.270064] ? ep_free+0xf4/0x320 [ 23.270073] lock_acquire+0x1d5/0x580 [ 23.270078] ? lock_acquire+0x1d5/0x580 [ 23.270084] ? remove_wait_queue+0x81/0x350 [ 23.270092] ? lock_release+0xa40/0xa40 [ 23.270100] ? lock_acquire+0x1d5/0x580 [ 23.270106] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.270111] ? lock_acquire+0x1d5/0x580 [ 23.270117] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.270124] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.270129] ? remove_wait_queue+0x81/0x350 [ 23.270136] remove_wait_queue+0x81/0x350 [ 23.270141] ? depot_save_stack+0x3b5/0x490 [ 23.270148] ? add_wait_queue+0x290/0x290 [ 23.270153] ? rcutorture_record_progress+0x10/0x10 [ 23.270159] ? lock_release+0xa40/0xa40 [ 23.270167] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.270174] ? __kernel_text_address+0xd/0x40 [ 23.270182] ? clear_tfile_check_list+0x370/0x370 [ 23.270189] ? check_noncircular+0x20/0x20 [ 23.270197] ? locks_remove_file+0x3fa/0x5a0 [ 23.270206] ep_free+0x13f/0x320 [ 23.270212] ? ep_remove+0x800/0x800 [ 23.270217] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.270225] ? ep_free+0x320/0x320 [ 23.270231] ep_eventpoll_release+0x44/0x60 [ 23.270237] __fput+0x327/0x7e0 [ 23.270245] ? fput+0x140/0x140 [ 23.270251] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.270259] ____fput+0x15/0x20 [ 23.270265] task_work_run+0x199/0x270 [ 23.270273] ? task_work_cancel+0x210/0x210 [ 23.270279] ? _raw_spin_unlock+0x22/0x30 [ 23.270284] ? switch_task_namespaces+0x87/0xc0 [ 23.270290] do_exit+0x9bb/0x1ad0 [ 23.270295] ? __handle_mm_fault+0x2330/0x3ce0 [ 23.270303] ? mm_update_next_owner+0x930/0x930 [ 23.270312] ? do_raw_spin_trylock+0x190/0x190 [ 23.270319] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.270324] ? check_noncircular+0x20/0x20 [ 23.270331] ? _raw_spin_unlock+0x22/0x30 [ 23.270337] ? __handle_mm_fault+0x80e/0x3ce0 [ 23.270344] ? check_noncircular+0x20/0x20 [ 23.270349] ? __pmd_alloc+0x4e0/0x4e0 [ 23.270354] ? lock_downgrade+0x980/0x980 [ 23.270362] ? find_held_lock+0x35/0x1d0 [ 23.270370] ? handle_mm_fault+0x248/0x8d0 [ 23.270377] ? find_held_lock+0x35/0x1d0 [ 23.270386] ? __do_page_fault+0x5f7/0xc90 [ 23.270392] ? lock_downgrade+0x980/0x980 [ 23.270400] ? handle_mm_fault+0x410/0x8d0 [ 23.270405] ? down_read_trylock+0xdb/0x170 [ 23.270410] ? __do_page_fault+0x32d/0xc90 [ 23.270416] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 23.270422] ? vmacache_find+0x5f/0x280 [ 23.270430] do_group_exit+0x149/0x400 [ 23.270437] ? __do_page_fault+0x3d6/0xc90 [ 23.270442] ? SyS_exit+0x30/0x30 [ 23.270450] ? do_fast_syscall_32+0x156/0xf9d [ 23.270456] ? do_group_exit+0x400/0x400 [ 23.270461] SyS_exit_group+0x1d/0x20 [ 23.270467] do_fast_syscall_32+0x3ee/0xf9d [ 23.270476] ? do_int80_syscall_32+0x9d0/0x9d0 [ 23.270481] ? kasan_check_read+0x11/0x20 [ 23.270488] ? syscall_return_slowpath+0x550/0x550 [ 23.270495] ? SyS_rt_sigaction+0x94/0x1b0 [ 23.270501] ? SyS_sigprocmask+0x4b0/0x4b0 [ 23.270506] ? SyS_read+0x184/0x220 [ 23.270512] ? retint_user+0x18/0x18 [ 23.270520] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 23.270529] entry_SYSENTER_compat+0x54/0x63 [ 23.270532] RIP: 0023:0xf7ff6c79 [ 23.270535] RSP: 002b:00000000ffa140cc EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 23.270541] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 23.270544] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 23.270547] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 23.270550] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 23.270553] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 23.288932] Dumping ftrace buffer: [ 23.288936] (ftrace buffer empty) [ 23.288938] Kernel Offset: disabled [ 24.570038] Rebooting in 86400 seconds..