[....] Starting enhanced syslogd: rsyslogd[ 11.666615] audit: type=1400 audit(1514352012.590:5): avc: denied { syslog } for pid=2996 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: [ 15.901340] audit: type=1400 audit(1514352016.825:6): avc: denied { map } for pid=3136 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 'ci-upstream-kasan-gce-386-4,10.128.0.59' (ECDSA) to the list of known hosts. executing program [ 22.099943] audit: type=1400 audit(1514352023.023:7): avc: denied { map } for pid=3150 comm="syzkaller922844" path="/root/syzkaller922844213" 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 [ 22.105556] ================================================================== [ 22.105571] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 22.105577] Read of size 8 at addr ffff8801cec54170 by task syzkaller922844/3150 [ 22.105578] [ 22.105585] CPU: 0 PID: 3150 Comm: syzkaller922844 Not tainted 4.15.0-rc5+ #148 [ 22.105588] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.105590] Call Trace: [ 22.105602] dump_stack+0x194/0x257 [ 22.105610] ? arch_local_irq_restore+0x53/0x53 [ 22.105617] ? show_regs_print_info+0x18/0x18 [ 22.105623] ? print_irqtrace_events+0x270/0x270 [ 22.105629] ? __lock_acquire+0x664/0x3e00 [ 22.105635] ? __lock_acquire+0x3d4d/0x3e00 [ 22.105644] print_address_description+0x73/0x250 [ 22.105651] ? __lock_acquire+0x3d4d/0x3e00 [ 22.105657] kasan_report+0x25b/0x340 [ 22.105664] __asan_report_load8_noabort+0x14/0x20 [ 22.105670] __lock_acquire+0x3d4d/0x3e00 [ 22.105675] ? __lock_acquire+0x664/0x3e00 [ 22.105681] ? lock_downgrade+0x980/0x980 [ 22.105687] ? lock_downgrade+0x980/0x980 [ 22.105693] ? print_irqtrace_events+0x270/0x270 [ 22.105700] ? remove_wait_queue+0x81/0x350 [ 22.105708] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.105715] ? __lock_acquire+0x664/0x3e00 [ 22.105720] ? check_noncircular+0x20/0x20 [ 22.105732] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.105739] ? lock_acquire+0x1d5/0x580 [ 22.105744] ? lock_acquire+0x1d5/0x580 [ 22.105752] ? ep_free+0xf4/0x320 [ 22.105760] ? lock_release+0xa40/0xa40 [ 22.105767] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.105772] ? print_irqtrace_events+0x270/0x270 [ 22.105777] ? print_irqtrace_events+0x270/0x270 [ 22.105784] ? rcu_note_context_switch+0x710/0x710 [ 22.105792] ? __might_sleep+0x95/0x190 [ 22.105797] ? ep_free+0xf4/0x320 [ 22.105804] ? __mutex_lock+0x16f/0x1a80 [ 22.105809] ? ep_free+0xf4/0x320 [ 22.105815] ? print_irqtrace_events+0x270/0x270 [ 22.105820] ? ep_free+0xf4/0x320 [ 22.105828] lock_acquire+0x1d5/0x580 [ 22.105833] ? lock_acquire+0x1d5/0x580 [ 22.105839] ? remove_wait_queue+0x81/0x350 [ 22.105847] ? lock_release+0xa40/0xa40 [ 22.105856] ? lock_acquire+0x1d5/0x580 [ 22.105863] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.105868] ? lock_acquire+0x1d5/0x580 [ 22.105874] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.105881] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.105887] ? remove_wait_queue+0x81/0x350 [ 22.105893] remove_wait_queue+0x81/0x350 [ 22.105900] ? depot_save_stack+0x3b5/0x490 [ 22.105906] ? add_wait_queue+0x290/0x290 [ 22.105912] ? rcutorture_record_progress+0x10/0x10 [ 22.105918] ? lock_release+0xa40/0xa40 [ 22.105926] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.105934] ? __kernel_text_address+0xd/0x40 [ 22.105941] ? clear_tfile_check_list+0x370/0x370 [ 22.105948] ? check_noncircular+0x20/0x20 [ 22.105956] ? locks_remove_file+0x3fa/0x5a0 [ 22.105965] ep_free+0x13f/0x320 [ 22.105970] ? ep_remove+0x800/0x800 [ 22.105977] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.105985] ? ep_free+0x320/0x320 [ 22.105991] ep_eventpoll_release+0x44/0x60 [ 22.105997] __fput+0x327/0x7e0 [ 22.106008] ? fput+0x140/0x140 [ 22.106015] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.106023] ____fput+0x15/0x20 [ 22.106029] task_work_run+0x199/0x270 [ 22.106037] ? task_work_cancel+0x210/0x210 [ 22.106043] ? _raw_spin_unlock+0x22/0x30 [ 22.106049] ? switch_task_namespaces+0x87/0xc0 [ 22.106062] do_exit+0x9bb/0x1ad0 [ 22.106069] ? __handle_mm_fault+0x2330/0x3ce0 [ 22.106077] ? mm_update_next_owner+0x930/0x930 [ 22.106086] ? do_raw_spin_trylock+0x190/0x190 [ 22.106094] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.106099] ? check_noncircular+0x20/0x20 [ 22.106106] ? _raw_spin_unlock+0x22/0x30 [ 22.106112] ? __handle_mm_fault+0x80e/0x3ce0 [ 22.106120] ? check_noncircular+0x20/0x20 [ 22.106124] ? __pmd_alloc+0x4e0/0x4e0 [ 22.106129] ? lock_downgrade+0x980/0x980 [ 22.106138] ? find_held_lock+0x35/0x1d0 [ 22.106146] ? handle_mm_fault+0x248/0x8d0 [ 22.106153] ? find_held_lock+0x35/0x1d0 [ 22.106164] ? __do_page_fault+0x5f7/0xc90 [ 22.106175] ? lock_downgrade+0x980/0x980 [ 22.106183] ? handle_mm_fault+0x410/0x8d0 [ 22.106188] ? down_read_trylock+0xdb/0x170 [ 22.106194] ? __do_page_fault+0x32d/0xc90 [ 22.106200] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 22.106206] ? vmacache_find+0x5f/0x280 [ 22.106215] do_group_exit+0x149/0x400 [ 22.106221] ? __do_page_fault+0x3d6/0xc90 [ 22.106227] ? SyS_exit+0x30/0x30 [ 22.106236] ? do_fast_syscall_32+0x156/0xf9d [ 22.106242] ? do_group_exit+0x400/0x400 [ 22.106248] SyS_exit_group+0x1d/0x20 [ 22.106254] do_fast_syscall_32+0x3ee/0xf9d [ 22.106263] ? do_int80_syscall_32+0x9d0/0x9d0 [ 22.106268] ? kasan_check_read+0x11/0x20 [ 22.106275] ? syscall_return_slowpath+0x550/0x550 [ 22.106282] ? SyS_rt_sigaction+0x94/0x1b0 [ 22.106289] ? SyS_sigprocmask+0x4b0/0x4b0 [ 22.106294] ? SyS_read+0x184/0x220 [ 22.106299] ? retint_user+0x18/0x18 [ 22.106307] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 22.106316] entry_SYSENTER_compat+0x54/0x63 [ 22.106321] RIP: 0023:0xf7f33c79 [ 22.106324] RSP: 002b:00000000ffea707c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 22.106330] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 22.106334] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 22.106337] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 22.106340] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 22.106343] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 22.106351] [ 22.106354] Allocated by task 3150: [ 22.106359] save_stack+0x43/0xd0 [ 22.106364] kasan_kmalloc+0xad/0xe0 [ 22.106370] kmem_cache_alloc_trace+0x136/0x750 [ 22.106377] binder_get_thread+0x1cf/0x870 [ 22.106381] binder_poll+0x8c/0x390 [ 22.106386] ep_item_poll.isra.10+0xec/0x320 [ 22.106390] ep_insert+0x6a3/0x1b10 [ 22.106395] SyS_epoll_ctl+0x12e4/0x1ab0 [ 22.106400] do_fast_syscall_32+0x3ee/0xf9d [ 22.106404] entry_SYSENTER_compat+0x54/0x63 [ 22.106406] [ 22.106408] Freed by task 3150: [ 22.106412] save_stack+0x43/0xd0 [ 22.106416] kasan_slab_free+0x71/0xc0 [ 22.106420] kfree+0xd6/0x260 [ 22.106425] binder_thread_dec_tmpref+0x27f/0x310 [ 22.106430] binder_thread_release+0x27d/0x540 [ 22.106435] binder_ioctl+0xc02/0x1417 [ 22.106439] compat_SyS_ioctl+0x151/0x2a30 [ 22.106444] do_fast_syscall_32+0x3ee/0xf9d [ 22.106450] entry_SYSENTER_compat+0x54/0x63 [ 22.106451] [ 22.106455] The buggy address belongs to the object at ffff8801cec540c0 [ 22.106455] which belongs to the cache kmalloc-512 of size 512 [ 22.106460] The buggy address is located 176 bytes inside of [ 22.106460] 512-byte region [ffff8801cec540c0, ffff8801cec542c0) [ 22.106461] The buggy address belongs to the page: [ 22.106467] page:000000003e8e66c2 count:1 mapcount:0 mapping:00000000ef17a988 index:0x0 [ 22.106473] flags: 0x2fffc0000000100(slab) [ 22.106481] raw: 02fffc0000000100 ffff8801cec540c0 0000000000000000 0000000100000006 [ 22.106487] raw: ffffea00073cd2a0 ffffea00073b1620 ffff8801db000940 0000000000000000 [ 22.106490] page dumped because: kasan: bad access detected [ 22.106491] [ 22.106492] Memory state around the buggy address: [ 22.106497] ffff8801cec54000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.106501] ffff8801cec54080: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 22.106505] >ffff8801cec54100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.106508] ^ [ 22.106512] ffff8801cec54180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.106516] ffff8801cec54200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.106518] ================================================================== [ 22.106519] Disabling lock debugging due to kernel taint [ 22.106522] Kernel panic - not syncing: panic_on_warn set ... [ 22.106522] [ 22.106528] CPU: 0 PID: 3150 Comm: syzkaller922844 Tainted: G B 4.15.0-rc5+ #148 [ 22.106531] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.106532] Call Trace: [ 22.106538] dump_stack+0x194/0x257 [ 22.106545] ? arch_local_irq_restore+0x53/0x53 [ 22.106550] ? kasan_end_report+0x32/0x50 [ 22.106556] ? lock_downgrade+0x980/0x980 [ 22.106563] ? vsnprintf+0x1ed/0x1900 [ 22.106569] ? __lock_acquire+0x3cd0/0x3e00 [ 22.106574] panic+0x1e4/0x41c [ 22.106580] ? refcount_error_report+0x214/0x214 [ 22.106587] ? add_taint+0x40/0x50 [ 22.106592] ? add_taint+0x1c/0x50 [ 22.106599] ? __lock_acquire+0x3d4d/0x3e00 [ 22.106604] kasan_end_report+0x50/0x50 [ 22.106610] kasan_report+0x144/0x340 [ 22.106617] __asan_report_load8_noabort+0x14/0x20 [ 22.106623] __lock_acquire+0x3d4d/0x3e00 [ 22.106628] ? __lock_acquire+0x664/0x3e00 [ 22.106634] ? lock_downgrade+0x980/0x980 [ 22.106639] ? lock_downgrade+0x980/0x980 [ 22.106645] ? print_irqtrace_events+0x270/0x270 [ 22.106651] ? remove_wait_queue+0x81/0x350 [ 22.106661] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.106667] ? __lock_acquire+0x664/0x3e00 [ 22.106672] ? check_noncircular+0x20/0x20 [ 22.106683] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.106690] ? lock_acquire+0x1d5/0x580 [ 22.106696] ? lock_acquire+0x1d5/0x580 [ 22.106700] ? ep_free+0xf4/0x320 [ 22.106708] ? lock_release+0xa40/0xa40 [ 22.106714] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.106719] ? print_irqtrace_events+0x270/0x270 [ 22.106725] ? print_irqtrace_events+0x270/0x270 [ 22.106731] ? rcu_note_context_switch+0x710/0x710 [ 22.106738] ? __might_sleep+0x95/0x190 [ 22.106743] ? ep_free+0xf4/0x320 [ 22.106748] ? __mutex_lock+0x16f/0x1a80 [ 22.106753] ? ep_free+0xf4/0x320 [ 22.106760] ? print_irqtrace_events+0x270/0x270 [ 22.106764] ? ep_free+0xf4/0x320 [ 22.106772] lock_acquire+0x1d5/0x580 [ 22.106777] ? lock_acquire+0x1d5/0x580 [ 22.106782] ? remove_wait_queue+0x81/0x350 [ 22.106791] ? lock_release+0xa40/0xa40 [ 22.106799] ? lock_acquire+0x1d5/0x580 [ 22.106805] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.106810] ? lock_acquire+0x1d5/0x580 [ 22.106815] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.106822] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.106828] ? remove_wait_queue+0x81/0x350 [ 22.106834] remove_wait_queue+0x81/0x350 [ 22.106840] ? depot_save_stack+0x3b5/0x490 [ 22.106847] ? add_wait_queue+0x290/0x290 [ 22.106852] ? rcutorture_record_progress+0x10/0x10 [ 22.106858] ? lock_release+0xa40/0xa40 [ 22.106866] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.106873] ? __kernel_text_address+0xd/0x40 [ 22.106880] ? clear_tfile_check_list+0x370/0x370 [ 22.106887] ? check_noncircular+0x20/0x20 [ 22.106894] ? locks_remove_file+0x3fa/0x5a0 [ 22.106902] ep_free+0x13f/0x320 [ 22.106908] ? ep_remove+0x800/0x800 [ 22.106914] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.106921] ? ep_free+0x320/0x320 [ 22.106927] ep_eventpoll_release+0x44/0x60 [ 22.106932] __fput+0x327/0x7e0 [ 22.106940] ? fput+0x140/0x140 [ 22.106946] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.106953] ____fput+0x15/0x20 [ 22.106960] task_work_run+0x199/0x270 [ 22.106967] ? task_work_cancel+0x210/0x210 [ 22.106973] ? _raw_spin_unlock+0x22/0x30 [ 22.106979] ? switch_task_namespaces+0x87/0xc0 [ 22.106986] do_exit+0x9bb/0x1ad0 [ 22.106992] ? __handle_mm_fault+0x2330/0x3ce0 [ 22.106999] ? mm_update_next_owner+0x930/0x930 [ 22.107008] ? do_raw_spin_trylock+0x190/0x190 [ 22.107015] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.107021] ? check_noncircular+0x20/0x20 [ 22.107027] ? _raw_spin_unlock+0x22/0x30 [ 22.107033] ? __handle_mm_fault+0x80e/0x3ce0 [ 22.107040] ? check_noncircular+0x20/0x20 [ 22.107045] ? __pmd_alloc+0x4e0/0x4e0 [ 22.107050] ? lock_downgrade+0x980/0x980 [ 22.107062] ? find_held_lock+0x35/0x1d0 [ 22.107070] ? handle_mm_fault+0x248/0x8d0 [ 22.107077] ? find_held_lock+0x35/0x1d0 [ 22.107085] ? __do_page_fault+0x5f7/0xc90 [ 22.107091] ? lock_downgrade+0x980/0x980 [ 22.107100] ? handle_mm_fault+0x410/0x8d0 [ 22.107104] ? down_read_trylock+0xdb/0x170 [ 22.107110] ? __do_page_fault+0x32d/0xc90 [ 22.107116] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 22.107121] ? vmacache_find+0x5f/0x280 [ 22.107129] do_group_exit+0x149/0x400 [ 22.107135] ? __do_page_fault+0x3d6/0xc90 [ 22.107141] ? SyS_exit+0x30/0x30 [ 22.107148] ? do_fast_syscall_32+0x156/0xf9d [ 22.107154] ? do_group_exit+0x400/0x400 [ 22.107160] SyS_exit_group+0x1d/0x20 [ 22.107166] do_fast_syscall_32+0x3ee/0xf9d [ 22.107175] ? do_int80_syscall_32+0x9d0/0x9d0 [ 22.107180] ? kasan_check_read+0x11/0x20 [ 22.107187] ? syscall_return_slowpath+0x550/0x550 [ 22.107193] ? SyS_rt_sigaction+0x94/0x1b0 [ 22.107200] ? SyS_sigprocmask+0x4b0/0x4b0 [ 22.107204] ? SyS_read+0x184/0x220 [ 22.107210] ? retint_user+0x18/0x18 [ 22.107217] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 22.107226] entry_SYSENTER_compat+0x54/0x63 [ 22.107230] RIP: 0023:0xf7f33c79 [ 22.107233] RSP: 002b:00000000ffea707c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 22.107238] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 22.107242] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 22.107245] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 22.107248] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 22.107251] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 22.126274] Dumping ftrace buffer: [ 22.126278] (ftrace buffer empty) [ 22.126280] Kernel Offset: disabled [ 23.409491] Rebooting in 86400 seconds..