[....] Starting enhanced syslogd: rsyslogd[ 10.932616] audit: type=1400 audit(1514078142.473:5): avc: denied { syslog } for pid=2987 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.915263] audit: type=1400 audit(1514078149.456:6): avc: denied { map } for pid=3127 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-2,10.128.0.2' (ECDSA) to the list of known hosts. executing program [ 46.074615] audit: type=1400 audit(1514078177.615:7): avc: denied { map } for pid=3144 comm="syzkaller425810" path="/root/syzkaller425810652" 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 [ 46.078807] ================================================================== [ 46.078820] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 46.078824] Read of size 8 at addr ffff8801cedb7130 by task syzkaller425810/3144 [ 46.078825] [ 46.078829] CPU: 0 PID: 3144 Comm: syzkaller425810 Not tainted 4.15.0-rc4+ #146 [ 46.078832] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.078833] Call Trace: [ 46.078841] dump_stack+0x194/0x257 [ 46.078846] ? arch_local_irq_restore+0x53/0x53 [ 46.078851] ? show_regs_print_info+0x18/0x18 [ 46.078855] ? print_irqtrace_events+0x270/0x270 [ 46.078859] ? __lock_acquire+0x664/0x3e00 [ 46.078862] ? __lock_acquire+0x3d4d/0x3e00 [ 46.078868] print_address_description+0x73/0x250 [ 46.078872] ? __lock_acquire+0x3d4d/0x3e00 [ 46.078875] kasan_report+0x25b/0x340 [ 46.078880] __asan_report_load8_noabort+0x14/0x20 [ 46.078883] __lock_acquire+0x3d4d/0x3e00 [ 46.078886] ? __lock_acquire+0x664/0x3e00 [ 46.078890] ? lock_downgrade+0x980/0x980 [ 46.078893] ? lock_downgrade+0x980/0x980 [ 46.078897] ? print_irqtrace_events+0x270/0x270 [ 46.078902] ? remove_wait_queue+0x81/0x350 [ 46.078907] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 46.078911] ? __lock_acquire+0x664/0x3e00 [ 46.078914] ? check_noncircular+0x20/0x20 [ 46.078921] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 46.078925] ? lock_acquire+0x1d5/0x580 [ 46.078928] ? lock_acquire+0x1d5/0x580 [ 46.078933] ? ep_free+0xf4/0x320 [ 46.078938] ? lock_release+0xa40/0xa40 [ 46.078943] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 46.078946] ? print_irqtrace_events+0x270/0x270 [ 46.078950] ? print_irqtrace_events+0x270/0x270 [ 46.078955] ? rcu_note_context_switch+0x710/0x710 [ 46.078959] ? __might_sleep+0x95/0x190 [ 46.078962] ? ep_free+0xf4/0x320 [ 46.078966] ? __mutex_lock+0x16f/0x1a80 [ 46.078968] ? ep_free+0xf4/0x320 [ 46.078972] ? print_irqtrace_events+0x270/0x270 [ 46.078975] ? ep_free+0xf4/0x320 [ 46.078980] lock_acquire+0x1d5/0x580 [ 46.078983] ? lock_acquire+0x1d5/0x580 [ 46.078986] ? remove_wait_queue+0x81/0x350 [ 46.078991] ? lock_release+0xa40/0xa40 [ 46.078996] ? lock_acquire+0x1d5/0x580 [ 46.078999] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 46.079007] ? lock_acquire+0x1d5/0x580 [ 46.079011] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 46.079017] _raw_spin_lock_irqsave+0x96/0xc0 [ 46.079021] ? remove_wait_queue+0x81/0x350 [ 46.079024] remove_wait_queue+0x81/0x350 [ 46.079030] ? depot_save_stack+0x3b5/0x490 [ 46.079034] ? add_wait_queue+0x290/0x290 [ 46.079037] ? rcutorture_record_progress+0x10/0x10 [ 46.079041] ? lock_release+0xa40/0xa40 [ 46.079046] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 46.079052] ? __kernel_text_address+0xd/0x40 [ 46.079056] ? clear_tfile_check_list+0x370/0x370 [ 46.079060] ? check_noncircular+0x20/0x20 [ 46.079065] ? locks_remove_file+0x3fa/0x5a0 [ 46.079070] ep_free+0x13f/0x320 [ 46.079073] ? ep_remove+0x800/0x800 [ 46.079079] ? fsnotify_first_mark+0x2b0/0x2b0 [ 46.079083] ? ep_free+0x320/0x320 [ 46.079086] ep_eventpoll_release+0x44/0x60 [ 46.079091] __fput+0x327/0x7e0 [ 46.079096] ? fput+0x140/0x140 [ 46.079100] ? _raw_spin_unlock_irq+0x27/0x70 [ 46.079104] ____fput+0x15/0x20 [ 46.079108] task_work_run+0x199/0x270 [ 46.079113] ? task_work_cancel+0x210/0x210 [ 46.079116] ? _raw_spin_unlock+0x22/0x30 [ 46.079129] ? switch_task_namespaces+0x87/0xc0 [ 46.079135] do_exit+0x9bb/0x1ad0 [ 46.079140] ? __handle_mm_fault+0x2330/0x3ce0 [ 46.079144] ? mm_update_next_owner+0x930/0x930 [ 46.079151] ? do_raw_spin_trylock+0x190/0x190 [ 46.079155] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 46.079158] ? check_noncircular+0x20/0x20 [ 46.079162] ? _raw_spin_unlock+0x22/0x30 [ 46.079166] ? __handle_mm_fault+0x80e/0x3ce0 [ 46.079170] ? check_noncircular+0x20/0x20 [ 46.079173] ? __pmd_alloc+0x4e0/0x4e0 [ 46.079176] ? lock_downgrade+0x980/0x980 [ 46.079181] ? find_held_lock+0x35/0x1d0 [ 46.079186] ? handle_mm_fault+0x248/0x8d0 [ 46.079190] ? find_held_lock+0x35/0x1d0 [ 46.079198] ? __do_page_fault+0x5f7/0xc90 [ 46.079202] ? lock_downgrade+0x980/0x980 [ 46.079207] ? handle_mm_fault+0x410/0x8d0 [ 46.079210] ? down_read_trylock+0xdb/0x170 [ 46.079213] ? __do_page_fault+0x32d/0xc90 [ 46.079216] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 46.079221] ? vmacache_find+0x5f/0x280 [ 46.079226] do_group_exit+0x149/0x400 [ 46.079229] ? __do_page_fault+0x3d6/0xc90 [ 46.079232] ? SyS_exit+0x30/0x30 [ 46.079240] ? do_fast_syscall_32+0x156/0xf9d [ 46.079244] ? do_group_exit+0x400/0x400 [ 46.079247] SyS_exit_group+0x1d/0x20 [ 46.079251] do_fast_syscall_32+0x3ee/0xf9d [ 46.079256] ? do_int80_syscall_32+0x9d0/0x9d0 [ 46.079259] ? kasan_check_read+0x11/0x20 [ 46.079263] ? syscall_return_slowpath+0x550/0x550 [ 46.079269] ? SyS_rt_sigaction+0x94/0x1b0 [ 46.079273] ? SyS_sigprocmask+0x4b0/0x4b0 [ 46.079276] ? SyS_read+0x184/0x220 [ 46.079279] ? retint_user+0x18/0x18 [ 46.079284] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.079290] entry_SYSENTER_compat+0x54/0x63 [ 46.079293] RIP: 0023:0xf7f2ac79 [ 46.079295] RSP: 002b:00000000ff9e055c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 46.079299] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 46.079301] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 46.079303] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 46.079305] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 46.079306] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 46.079311] [ 46.079313] Allocated by task 3144: [ 46.079316] save_stack+0x43/0xd0 [ 46.079319] kasan_kmalloc+0xad/0xe0 [ 46.079323] kmem_cache_alloc_trace+0x136/0x750 [ 46.079328] binder_get_thread+0x1cf/0x870 [ 46.079330] binder_poll+0x8c/0x390 [ 46.079333] ep_item_poll.isra.10+0xec/0x320 [ 46.079335] ep_insert+0x6a3/0x1b10 [ 46.079338] SyS_epoll_ctl+0x12e4/0x1ab0 [ 46.079341] do_fast_syscall_32+0x3ee/0xf9d [ 46.079344] entry_SYSENTER_compat+0x54/0x63 [ 46.079345] [ 46.079346] Freed by task 3144: [ 46.079349] save_stack+0x43/0xd0 [ 46.079351] kasan_slab_free+0x71/0xc0 [ 46.079353] kfree+0xd6/0x260 [ 46.079356] binder_thread_dec_tmpref+0x27f/0x310 [ 46.079359] binder_thread_release+0x27d/0x540 [ 46.079363] binder_ioctl+0xc02/0x1417 [ 46.079366] compat_SyS_ioctl+0x151/0x2a30 [ 46.079369] do_fast_syscall_32+0x3ee/0xf9d [ 46.079372] entry_SYSENTER_compat+0x54/0x63 [ 46.079372] [ 46.079375] The buggy address belongs to the object at ffff8801cedb7080 [ 46.079375] which belongs to the cache kmalloc-512 of size 512 [ 46.079378] The buggy address is located 176 bytes inside of [ 46.079378] 512-byte region [ffff8801cedb7080, ffff8801cedb7280) [ 46.079379] The buggy address belongs to the page: [ 46.079382] page:00000000b627c9d9 count:1 mapcount:0 mapping:0000000088f1aa1e index:0x0 [ 46.079386] flags: 0x2fffc0000000100(slab) [ 46.079392] raw: 02fffc0000000100 ffff8801cedb7080 0000000000000000 0000000100000006 [ 46.079395] raw: ffffea00073a67e0 ffffea00073b6e20 ffff8801db000940 0000000000000000 [ 46.079397] page dumped because: kasan: bad access detected [ 46.079398] [ 46.079399] Memory state around the buggy address: [ 46.079401] ffff8801cedb7000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 46.079404] ffff8801cedb7080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.079406] >ffff8801cedb7100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.079408] ^ [ 46.079410] ffff8801cedb7180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.079413] ffff8801cedb7200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.079414] ================================================================== [ 46.079415] Disabling lock debugging due to kernel taint [ 46.079417] Kernel panic - not syncing: panic_on_warn set ... [ 46.079417] [ 46.079421] CPU: 0 PID: 3144 Comm: syzkaller425810 Tainted: G B 4.15.0-rc4+ #146 [ 46.079423] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.079424] Call Trace: [ 46.079427] dump_stack+0x194/0x257 [ 46.079431] ? arch_local_irq_restore+0x53/0x53 [ 46.079434] ? kasan_end_report+0x32/0x50 [ 46.079438] ? lock_downgrade+0x980/0x980 [ 46.079441] ? vsnprintf+0x1ed/0x1900 [ 46.079445] ? __lock_acquire+0x3cd0/0x3e00 [ 46.079448] panic+0x1e4/0x41c [ 46.079451] ? refcount_error_report+0x214/0x214 [ 46.079455] ? add_taint+0x40/0x50 [ 46.079458] ? add_taint+0x1c/0x50 [ 46.079462] ? __lock_acquire+0x3d4d/0x3e00 [ 46.079465] kasan_end_report+0x50/0x50 [ 46.079468] kasan_report+0x144/0x340 [ 46.079473] __asan_report_load8_noabort+0x14/0x20 [ 46.079476] __lock_acquire+0x3d4d/0x3e00 [ 46.079479] ? __lock_acquire+0x664/0x3e00 [ 46.079483] ? lock_downgrade+0x980/0x980 [ 46.079486] ? lock_downgrade+0x980/0x980 [ 46.079490] ? print_irqtrace_events+0x270/0x270 [ 46.079493] ? remove_wait_queue+0x81/0x350 [ 46.079498] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 46.079501] ? __lock_acquire+0x664/0x3e00 [ 46.079505] ? check_noncircular+0x20/0x20 [ 46.079511] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 46.079515] ? lock_acquire+0x1d5/0x580 [ 46.079518] ? lock_acquire+0x1d5/0x580 [ 46.079521] ? ep_free+0xf4/0x320 [ 46.079525] ? lock_release+0xa40/0xa40 [ 46.079529] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 46.079532] ? print_irqtrace_events+0x270/0x270 [ 46.079535] ? print_irqtrace_events+0x270/0x270 [ 46.079539] ? rcu_note_context_switch+0x710/0x710 [ 46.079543] ? __might_sleep+0x95/0x190 [ 46.079546] ? ep_free+0xf4/0x320 [ 46.079549] ? __mutex_lock+0x16f/0x1a80 [ 46.079551] ? ep_free+0xf4/0x320 [ 46.079555] ? print_irqtrace_events+0x270/0x270 [ 46.079558] ? ep_free+0xf4/0x320 [ 46.079562] lock_acquire+0x1d5/0x580 [ 46.079565] ? lock_acquire+0x1d5/0x580 [ 46.079569] ? remove_wait_queue+0x81/0x350 [ 46.079573] ? lock_release+0xa40/0xa40 [ 46.079578] ? lock_acquire+0x1d5/0x580 [ 46.079581] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 46.079584] ? lock_acquire+0x1d5/0x580 [ 46.079588] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 46.079592] _raw_spin_lock_irqsave+0x96/0xc0 [ 46.079595] ? remove_wait_queue+0x81/0x350 [ 46.079599] remove_wait_queue+0x81/0x350 [ 46.079602] ? depot_save_stack+0x3b5/0x490 [ 46.079606] ? add_wait_queue+0x290/0x290 [ 46.079609] ? rcutorture_record_progress+0x10/0x10 [ 46.079612] ? lock_release+0xa40/0xa40 [ 46.079617] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 46.079621] ? __kernel_text_address+0xd/0x40 [ 46.079625] ? clear_tfile_check_list+0x370/0x370 [ 46.079629] ? check_noncircular+0x20/0x20 [ 46.079633] ? locks_remove_file+0x3fa/0x5a0 [ 46.079638] ep_free+0x13f/0x320 [ 46.079641] ? ep_remove+0x800/0x800 [ 46.079645] ? fsnotify_first_mark+0x2b0/0x2b0 [ 46.079649] ? ep_free+0x320/0x320 [ 46.079652] ep_eventpoll_release+0x44/0x60 [ 46.079655] __fput+0x327/0x7e0 [ 46.079659] ? fput+0x140/0x140 [ 46.079663] ? _raw_spin_unlock_irq+0x27/0x70 [ 46.079667] ____fput+0x15/0x20 [ 46.079671] task_work_run+0x199/0x270 [ 46.079675] ? task_work_cancel+0x210/0x210 [ 46.079679] ? _raw_spin_unlock+0x22/0x30 [ 46.079682] ? switch_task_namespaces+0x87/0xc0 [ 46.079686] do_exit+0x9bb/0x1ad0 [ 46.079690] ? __handle_mm_fault+0x2330/0x3ce0 [ 46.079694] ? mm_update_next_owner+0x930/0x930 [ 46.079699] ? do_raw_spin_trylock+0x190/0x190 [ 46.079703] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 46.079707] ? check_noncircular+0x20/0x20 [ 46.079711] ? _raw_spin_unlock+0x22/0x30 [ 46.079714] ? __handle_mm_fault+0x80e/0x3ce0 [ 46.079718] ? check_noncircular+0x20/0x20 [ 46.079721] ? __pmd_alloc+0x4e0/0x4e0 [ 46.079724] ? lock_downgrade+0x980/0x980 [ 46.079728] ? find_held_lock+0x35/0x1d0 [ 46.079733] ? handle_mm_fault+0x248/0x8d0 [ 46.079737] ? find_held_lock+0x35/0x1d0 [ 46.079742] ? __do_page_fault+0x5f7/0xc90 [ 46.079745] ? lock_downgrade+0x980/0x980 [ 46.079750] ? handle_mm_fault+0x410/0x8d0 [ 46.079753] ? down_read_trylock+0xdb/0x170 [ 46.079756] ? __do_page_fault+0x32d/0xc90 [ 46.079760] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 46.079763] ? vmacache_find+0x5f/0x280 [ 46.079768] do_group_exit+0x149/0x400 [ 46.079771] ? __do_page_fault+0x3d6/0xc90 [ 46.079775] ? SyS_exit+0x30/0x30 [ 46.079779] ? do_fast_syscall_32+0x156/0xf9d [ 46.079782] ? do_group_exit+0x400/0x400 [ 46.079786] SyS_exit_group+0x1d/0x20 [ 46.079790] do_fast_syscall_32+0x3ee/0xf9d [ 46.079794] ? do_int80_syscall_32+0x9d0/0x9d0 [ 46.079798] ? kasan_check_read+0x11/0x20 [ 46.079802] ? syscall_return_slowpath+0x550/0x550 [ 46.079806] ? SyS_rt_sigaction+0x94/0x1b0 [ 46.079809] ? SyS_sigprocmask+0x4b0/0x4b0 [ 46.079812] ? SyS_read+0x184/0x220 [ 46.079815] ? retint_user+0x18/0x18 [ 46.079820] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.079825] entry_SYSENTER_compat+0x54/0x63 [ 46.079828] RIP: 0023:0xf7f2ac79 [ 46.079829] RSP: 002b:00000000ff9e055c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 46.079833] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 46.079835] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 46.079837] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 46.079838] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 46.079840] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 46.100509] Dumping ftrace buffer: [ 46.100512] (ftrace buffer empty) [ 46.100514] Kernel Offset: disabled [ 47.386376] Rebooting in 86400 seconds..