[....] Starting enhanced syslogd: rsyslogd[ 11.046410] audit: type=1400 audit(1514027611.001:5): avc: denied { syslog } for pid=2991 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.000889] audit: type=1400 audit(1514027615.955:6): avc: denied { map } for pid=3132 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-1,10.128.0.28' (ECDSA) to the list of known hosts. executing program [ 22.166357] audit: type=1400 audit(1514027622.121:7): avc: denied { map } for pid=3146 comm="syzkaller285990" path="/root/syzkaller285990821" 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.171568] ================================================================== [ 22.171582] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 22.171587] Read of size 8 at addr ffff8801cb56b8b0 by task syzkaller285990/3146 [ 22.171589] [ 22.171595] CPU: 1 PID: 3146 Comm: syzkaller285990 Not tainted 4.15.0-rc4+ #145 [ 22.171598] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.171600] Call Trace: [ 22.171609] dump_stack+0x194/0x257 [ 22.171616] ? arch_local_irq_restore+0x53/0x53 [ 22.171623] ? show_regs_print_info+0x18/0x18 [ 22.171629] ? print_irqtrace_events+0x270/0x270 [ 22.171635] ? __lock_acquire+0x664/0x3e00 [ 22.171641] ? __lock_acquire+0x3d4d/0x3e00 [ 22.171650] print_address_description+0x73/0x250 [ 22.171656] ? __lock_acquire+0x3d4d/0x3e00 [ 22.171661] kasan_report+0x25b/0x340 [ 22.171669] __asan_report_load8_noabort+0x14/0x20 [ 22.171675] __lock_acquire+0x3d4d/0x3e00 [ 22.171680] ? __lock_acquire+0x664/0x3e00 [ 22.171686] ? lock_downgrade+0x980/0x980 [ 22.171691] ? lock_downgrade+0x980/0x980 [ 22.171697] ? print_irqtrace_events+0x270/0x270 [ 22.171703] ? remove_wait_queue+0x81/0x350 [ 22.171712] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.171719] ? __lock_acquire+0x664/0x3e00 [ 22.171724] ? check_noncircular+0x20/0x20 [ 22.171736] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.171743] ? lock_acquire+0x1d5/0x580 [ 22.171748] ? lock_acquire+0x1d5/0x580 [ 22.171754] ? ep_free+0xf4/0x320 [ 22.171762] ? lock_release+0xa40/0xa40 [ 22.171768] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.171773] ? print_irqtrace_events+0x270/0x270 [ 22.171779] ? print_irqtrace_events+0x270/0x270 [ 22.171786] ? rcu_note_context_switch+0x710/0x710 [ 22.171793] ? __might_sleep+0x95/0x190 [ 22.171798] ? ep_free+0xf4/0x320 [ 22.171804] ? __mutex_lock+0x16f/0x1a80 [ 22.171808] ? ep_free+0xf4/0x320 [ 22.171815] ? print_irqtrace_events+0x270/0x270 [ 22.171820] ? ep_free+0xf4/0x320 [ 22.171828] lock_acquire+0x1d5/0x580 [ 22.171833] ? lock_acquire+0x1d5/0x580 [ 22.171839] ? remove_wait_queue+0x81/0x350 [ 22.171847] ? lock_release+0xa40/0xa40 [ 22.171855] ? lock_acquire+0x1d5/0x580 [ 22.171861] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.171866] ? lock_acquire+0x1d5/0x580 [ 22.171871] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.171879] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.171884] ? remove_wait_queue+0x81/0x350 [ 22.171890] remove_wait_queue+0x81/0x350 [ 22.171897] ? depot_save_stack+0x3b5/0x490 [ 22.171904] ? add_wait_queue+0x290/0x290 [ 22.171909] ? rcutorture_record_progress+0x10/0x10 [ 22.171915] ? lock_release+0xa40/0xa40 [ 22.171923] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.171930] ? __kernel_text_address+0xd/0x40 [ 22.171937] ? clear_tfile_check_list+0x370/0x370 [ 22.171945] ? check_noncircular+0x20/0x20 [ 22.171952] ? locks_remove_file+0x3fa/0x5a0 [ 22.171961] ep_free+0x13f/0x320 [ 22.171966] ? ep_remove+0x800/0x800 [ 22.171973] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.171980] ? ep_free+0x320/0x320 [ 22.171986] ep_eventpoll_release+0x44/0x60 [ 22.171992] __fput+0x327/0x7e0 [ 22.171999] ? fput+0x140/0x140 [ 22.172010] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.172018] ____fput+0x15/0x20 [ 22.172024] task_work_run+0x199/0x270 [ 22.172031] ? task_work_cancel+0x210/0x210 [ 22.172037] ? _raw_spin_unlock+0x22/0x30 [ 22.172043] ? switch_task_namespaces+0x87/0xc0 [ 22.172051] do_exit+0x9bb/0x1ad0 [ 22.172057] ? __handle_mm_fault+0x2330/0x3ce0 [ 22.172065] ? mm_update_next_owner+0x930/0x930 [ 22.172074] ? do_raw_spin_trylock+0x190/0x190 [ 22.172081] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.172087] ? check_noncircular+0x20/0x20 [ 22.172098] ? _raw_spin_unlock+0x22/0x30 [ 22.172104] ? __handle_mm_fault+0x80e/0x3ce0 [ 22.172111] ? check_noncircular+0x20/0x20 [ 22.172116] ? __pmd_alloc+0x4e0/0x4e0 [ 22.172121] ? lock_downgrade+0x980/0x980 [ 22.172129] ? find_held_lock+0x35/0x1d0 [ 22.172137] ? handle_mm_fault+0x248/0x8d0 [ 22.172144] ? find_held_lock+0x35/0x1d0 [ 22.172155] ? __do_page_fault+0x5f7/0xc90 [ 22.172161] ? lock_downgrade+0x980/0x980 [ 22.172169] ? handle_mm_fault+0x410/0x8d0 [ 22.172174] ? down_read_trylock+0xdb/0x170 [ 22.172179] ? __do_page_fault+0x32d/0xc90 [ 22.172185] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 22.172192] ? vmacache_find+0x5f/0x280 [ 22.172200] do_group_exit+0x149/0x400 [ 22.172206] ? __do_page_fault+0x3d6/0xc90 [ 22.172212] ? SyS_exit+0x30/0x30 [ 22.172220] ? do_fast_syscall_32+0x156/0xf9d [ 22.172226] ? do_group_exit+0x400/0x400 [ 22.172232] SyS_exit_group+0x1d/0x20 [ 22.172238] do_fast_syscall_32+0x3ee/0xf9d [ 22.172247] ? do_int80_syscall_32+0x9d0/0x9d0 [ 22.172252] ? kasan_check_read+0x11/0x20 [ 22.172259] ? syscall_return_slowpath+0x550/0x550 [ 22.172266] ? SyS_rt_sigaction+0x94/0x1b0 [ 22.172273] ? SyS_sigprocmask+0x4b0/0x4b0 [ 22.172277] ? SyS_read+0x184/0x220 [ 22.172283] ? retint_user+0x18/0x18 [ 22.172291] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 22.172300] entry_SYSENTER_compat+0x54/0x63 [ 22.172304] RIP: 0023:0xf7f8ac79 [ 22.172308] RSP: 002b:00000000ff84fdac EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 22.172314] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 22.172317] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 22.172320] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 22.172323] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 22.172327] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 22.172334] [ 22.172337] Allocated by task 3146: [ 22.172342] save_stack+0x43/0xd0 [ 22.172347] kasan_kmalloc+0xad/0xe0 [ 22.172353] kmem_cache_alloc_trace+0x136/0x750 [ 22.172359] binder_get_thread+0x1cf/0x870 [ 22.172363] binder_poll+0x8c/0x390 [ 22.172368] ep_item_poll.isra.10+0xec/0x320 [ 22.172372] ep_insert+0x6a3/0x1b10 [ 22.172377] SyS_epoll_ctl+0x12e4/0x1ab0 [ 22.172381] do_fast_syscall_32+0x3ee/0xf9d [ 22.172387] entry_SYSENTER_compat+0x54/0x63 [ 22.172388] [ 22.172390] Freed by task 3146: [ 22.172395] save_stack+0x43/0xd0 [ 22.172399] kasan_slab_free+0x71/0xc0 [ 22.172404] kfree+0xd6/0x260 [ 22.172409] binder_thread_dec_tmpref+0x27f/0x310 [ 22.172414] binder_thread_release+0x27d/0x540 [ 22.172419] binder_ioctl+0xc02/0x1417 [ 22.172424] compat_SyS_ioctl+0x151/0x2a30 [ 22.172429] do_fast_syscall_32+0x3ee/0xf9d [ 22.172434] entry_SYSENTER_compat+0x54/0x63 [ 22.172435] [ 22.172439] The buggy address belongs to the object at ffff8801cb56b800 [ 22.172439] which belongs to the cache kmalloc-512 of size 512 [ 22.172444] The buggy address is located 176 bytes inside of [ 22.172444] 512-byte region [ffff8801cb56b800, ffff8801cb56ba00) [ 22.172446] The buggy address belongs to the page: [ 22.172451] page:00000000b87f6b65 count:1 mapcount:0 mapping:000000006d38241b index:0x0 [ 22.172456] flags: 0x2fffc0000000100(slab) [ 22.172464] raw: 02fffc0000000100 ffff8801cb56b080 0000000000000000 0000000100000006 [ 22.172471] raw: ffffea00072eefe0 ffffea00072d3aa0 ffff8801db000940 0000000000000000 [ 22.172473] page dumped because: kasan: bad access detected [ 22.172474] [ 22.172476] Memory state around the buggy address: [ 22.172481] ffff8801cb56b780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.172485] ffff8801cb56b800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.172489] >ffff8801cb56b880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.172491] ^ [ 22.172495] ffff8801cb56b900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.172500] ffff8801cb56b980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.172501] ================================================================== [ 22.172503] Disabling lock debugging due to kernel taint [ 22.172507] Kernel panic - not syncing: panic_on_warn set ... [ 22.172507] [ 22.172512] CPU: 1 PID: 3146 Comm: syzkaller285990 Tainted: G B 4.15.0-rc4+ #145 [ 22.172515] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.172517] Call Trace: [ 22.172522] dump_stack+0x194/0x257 [ 22.172529] ? arch_local_irq_restore+0x53/0x53 [ 22.172534] ? kasan_end_report+0x32/0x50 [ 22.172540] ? lock_downgrade+0x980/0x980 [ 22.172546] ? vsnprintf+0x1ed/0x1900 [ 22.172552] ? __lock_acquire+0x3cf0/0x3e00 [ 22.172557] panic+0x1e4/0x41c [ 22.172563] ? refcount_error_report+0x214/0x214 [ 22.172570] ? add_taint+0x40/0x50 [ 22.172575] ? add_taint+0x1c/0x50 [ 22.172581] ? __lock_acquire+0x3d4d/0x3e00 [ 22.172587] kasan_end_report+0x50/0x50 [ 22.172592] kasan_report+0x144/0x340 [ 22.172599] __asan_report_load8_noabort+0x14/0x20 [ 22.172605] __lock_acquire+0x3d4d/0x3e00 [ 22.172610] ? __lock_acquire+0x664/0x3e00 [ 22.172616] ? lock_downgrade+0x980/0x980 [ 22.172621] ? lock_downgrade+0x980/0x980 [ 22.172627] ? print_irqtrace_events+0x270/0x270 [ 22.172633] ? remove_wait_queue+0x81/0x350 [ 22.172641] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.172648] ? __lock_acquire+0x664/0x3e00 [ 22.172653] ? check_noncircular+0x20/0x20 [ 22.172664] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.172671] ? lock_acquire+0x1d5/0x580 [ 22.172676] ? lock_acquire+0x1d5/0x580 [ 22.172680] ? ep_free+0xf4/0x320 [ 22.172688] ? lock_release+0xa40/0xa40 [ 22.172694] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.172699] ? print_irqtrace_events+0x270/0x270 [ 22.172705] ? print_irqtrace_events+0x270/0x270 [ 22.172711] ? rcu_note_context_switch+0x710/0x710 [ 22.172718] ? __might_sleep+0x95/0x190 [ 22.172723] ? ep_free+0xf4/0x320 [ 22.172728] ? __mutex_lock+0x16f/0x1a80 [ 22.172732] ? ep_free+0xf4/0x320 [ 22.172739] ? print_irqtrace_events+0x270/0x270 [ 22.172743] ? ep_free+0xf4/0x320 [ 22.172751] lock_acquire+0x1d5/0x580 [ 22.172757] ? lock_acquire+0x1d5/0x580 [ 22.172762] ? remove_wait_queue+0x81/0x350 [ 22.172770] ? lock_release+0xa40/0xa40 [ 22.172778] ? lock_acquire+0x1d5/0x580 [ 22.172784] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.172789] ? lock_acquire+0x1d5/0x580 [ 22.172794] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.172801] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.172807] ? remove_wait_queue+0x81/0x350 [ 22.172813] remove_wait_queue+0x81/0x350 [ 22.172818] ? depot_save_stack+0x3b5/0x490 [ 22.172825] ? add_wait_queue+0x290/0x290 [ 22.172831] ? rcutorture_record_progress+0x10/0x10 [ 22.172836] ? lock_release+0xa40/0xa40 [ 22.172844] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.172851] ? __kernel_text_address+0xd/0x40 [ 22.172858] ? clear_tfile_check_list+0x370/0x370 [ 22.172865] ? check_noncircular+0x20/0x20 [ 22.172872] ? locks_remove_file+0x3fa/0x5a0 [ 22.172880] ep_free+0x13f/0x320 [ 22.172886] ? ep_remove+0x800/0x800 [ 22.172892] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.172898] ? ep_free+0x320/0x320 [ 22.172904] ep_eventpoll_release+0x44/0x60 [ 22.172909] __fput+0x327/0x7e0 [ 22.172917] ? fput+0x140/0x140 [ 22.172923] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.172930] ____fput+0x15/0x20 [ 22.172936] task_work_run+0x199/0x270 [ 22.172944] ? task_work_cancel+0x210/0x210 [ 22.172950] ? _raw_spin_unlock+0x22/0x30 [ 22.172955] ? switch_task_namespaces+0x87/0xc0 [ 22.172962] do_exit+0x9bb/0x1ad0 [ 22.172968] ? __handle_mm_fault+0x2330/0x3ce0 [ 22.172975] ? mm_update_next_owner+0x930/0x930 [ 22.172984] ? do_raw_spin_trylock+0x190/0x190 [ 22.172991] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.172996] ? check_noncircular+0x20/0x20 [ 22.173003] ? _raw_spin_unlock+0x22/0x30 [ 22.173009] ? __handle_mm_fault+0x80e/0x3ce0 [ 22.173016] ? check_noncircular+0x20/0x20 [ 22.173021] ? __pmd_alloc+0x4e0/0x4e0 [ 22.173026] ? lock_downgrade+0x980/0x980 [ 22.173033] ? find_held_lock+0x35/0x1d0 [ 22.173041] ? handle_mm_fault+0x248/0x8d0 [ 22.173048] ? find_held_lock+0x35/0x1d0 [ 22.173056] ? __do_page_fault+0x5f7/0xc90 [ 22.173062] ? lock_downgrade+0x980/0x980 [ 22.173071] ? handle_mm_fault+0x410/0x8d0 [ 22.173075] ? down_read_trylock+0xdb/0x170 [ 22.173081] ? __do_page_fault+0x32d/0xc90 [ 22.173086] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 22.173092] ? vmacache_find+0x5f/0x280 [ 22.173104] do_group_exit+0x149/0x400 [ 22.173110] ? __do_page_fault+0x3d6/0xc90 [ 22.173115] ? SyS_exit+0x30/0x30 [ 22.173123] ? do_fast_syscall_32+0x156/0xf9d [ 22.173129] ? do_group_exit+0x400/0x400 [ 22.173135] SyS_exit_group+0x1d/0x20 [ 22.173141] do_fast_syscall_32+0x3ee/0xf9d [ 22.173149] ? do_int80_syscall_32+0x9d0/0x9d0 [ 22.173155] ? kasan_check_read+0x11/0x20 [ 22.173161] ? syscall_return_slowpath+0x550/0x550 [ 22.173168] ? SyS_rt_sigaction+0x94/0x1b0 [ 22.173174] ? SyS_sigprocmask+0x4b0/0x4b0 [ 22.173179] ? SyS_read+0x184/0x220 [ 22.173184] ? retint_user+0x18/0x18 [ 22.173192] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 22.173200] entry_SYSENTER_compat+0x54/0x63 [ 22.173204] RIP: 0023:0xf7f8ac79 [ 22.173207] RSP: 002b:00000000ff84fdac EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 22.173213] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 22.173216] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 22.173219] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 22.173222] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 22.173225] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 22.192646] Dumping ftrace buffer: [ 22.192649] (ftrace buffer empty) [ 22.192652] Kernel Offset: disabled [ 23.471649] Rebooting in 86400 seconds..