[....] Starting enhanced syslogd: rsyslogd[ 17.272254] audit: type=1400 audit(1517262399.846:5): avc: denied { syslog } for pid=4008 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: [ 22.637361] audit: type=1400 audit(1517262405.211:6): avc: denied { map } for pid=4148 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.48' (ECDSA) to the list of known hosts. executing program [ 28.926610] audit: type=1400 audit(1517262411.500:7): avc: denied { map } for pid=4162 comm="syzkaller254619" path="/root/syzkaller254619830" 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 [ 28.932231] ================================================================== [ 28.932245] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 28.932250] Read of size 8 at addr ffff8801b1bd88b0 by task syzkaller254619/4162 [ 28.932251] [ 28.932258] CPU: 1 PID: 4162 Comm: syzkaller254619 Not tainted 4.15.0+ #195 [ 28.932262] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.932264] Call Trace: [ 28.932273] dump_stack+0x194/0x257 [ 28.932281] ? arch_local_irq_restore+0x53/0x53 [ 28.932289] ? show_regs_print_info+0x18/0x18 [ 28.932294] ? print_irqtrace_events+0x270/0x270 [ 28.932301] ? __lock_acquire+0x664/0x3e00 [ 28.932307] ? __lock_acquire+0x3d4d/0x3e00 [ 28.932316] print_address_description+0x73/0x250 [ 28.932322] ? __lock_acquire+0x3d4d/0x3e00 [ 28.932328] kasan_report+0x25b/0x340 [ 28.932336] __asan_report_load8_noabort+0x14/0x20 [ 28.932342] __lock_acquire+0x3d4d/0x3e00 [ 28.932348] ? __lock_acquire+0x664/0x3e00 [ 28.932354] ? lock_downgrade+0x980/0x980 [ 28.932364] ? lock_downgrade+0x980/0x980 [ 28.932371] ? print_irqtrace_events+0x270/0x270 [ 28.932378] ? remove_wait_queue+0x81/0x350 [ 28.932387] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.932394] ? __lock_acquire+0x664/0x3e00 [ 28.932400] ? check_noncircular+0x20/0x20 [ 28.932412] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.932419] ? lock_acquire+0x1d5/0x580 [ 28.932424] ? lock_acquire+0x1d5/0x580 [ 28.932432] ? ep_free+0xf4/0x320 [ 28.932440] ? lock_release+0xa40/0xa40 [ 28.932447] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 28.932452] ? print_irqtrace_events+0x270/0x270 [ 28.932458] ? print_irqtrace_events+0x270/0x270 [ 28.932466] ? rcu_note_context_switch+0x710/0x710 [ 28.932474] ? __might_sleep+0x95/0x190 [ 28.932480] ? ep_free+0xf4/0x320 [ 28.932487] ? __mutex_lock+0x16f/0x1a80 [ 28.932491] ? ep_free+0xf4/0x320 [ 28.932499] ? print_irqtrace_events+0x270/0x270 [ 28.932504] ? ep_free+0xf4/0x320 [ 28.932512] lock_acquire+0x1d5/0x580 [ 28.932518] ? lock_acquire+0x1d5/0x580 [ 28.932524] ? remove_wait_queue+0x81/0x350 [ 28.932532] ? lock_release+0xa40/0xa40 [ 28.932541] ? lock_acquire+0x1d5/0x580 [ 28.932547] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.932552] ? lock_acquire+0x1d5/0x580 [ 28.932559] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 28.932566] _raw_spin_lock_irqsave+0x96/0xc0 [ 28.932572] ? remove_wait_queue+0x81/0x350 [ 28.932578] remove_wait_queue+0x81/0x350 [ 28.932585] ? depot_save_stack+0x3b5/0x490 [ 28.932593] ? add_wait_queue+0x290/0x290 [ 28.932599] ? rcutorture_record_progress+0x10/0x10 [ 28.932605] ? lock_release+0xa40/0xa40 [ 28.932614] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 28.932622] ? __kernel_text_address+0xd/0x40 [ 28.932630] ? clear_tfile_check_list+0x370/0x370 [ 28.932638] ? check_noncircular+0x20/0x20 [ 28.932647] ? locks_remove_file+0x3fa/0x5a0 [ 28.932656] ep_free+0x13f/0x320 [ 28.932663] ? ep_remove+0x800/0x800 [ 28.932668] ? fsnotify_first_mark+0x2b0/0x2b0 [ 28.932676] ? ep_free+0x320/0x320 [ 28.932682] ep_eventpoll_release+0x44/0x60 [ 28.932689] __fput+0x327/0x7e0 [ 28.932698] ? fput+0x140/0x140 [ 28.932704] ? _raw_spin_unlock_irq+0x27/0x70 [ 28.932713] ____fput+0x15/0x20 [ 28.932719] task_work_run+0x199/0x270 [ 28.932727] ? task_work_cancel+0x210/0x210 [ 28.932733] ? _raw_spin_unlock+0x22/0x30 [ 28.932739] ? switch_task_namespaces+0x87/0xc0 [ 28.932748] do_exit+0x9bb/0x1ad0 [ 28.932755] ? __handle_mm_fault+0x2330/0x3ce0 [ 28.932763] ? mm_update_next_owner+0x930/0x930 [ 28.932772] ? do_raw_spin_trylock+0x190/0x190 [ 28.932780] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 28.932785] ? check_noncircular+0x20/0x20 [ 28.932792] ? _raw_spin_unlock+0x22/0x30 [ 28.932798] ? __handle_mm_fault+0x80e/0x3ce0 [ 28.932806] ? check_noncircular+0x20/0x20 [ 28.932811] ? __pmd_alloc+0x4e0/0x4e0 [ 28.932816] ? lock_downgrade+0x980/0x980 [ 28.932825] ? find_held_lock+0x35/0x1d0 [ 28.932833] ? handle_mm_fault+0x248/0x8d0 [ 28.932840] ? find_held_lock+0x35/0x1d0 [ 28.932850] ? __do_page_fault+0x5f7/0xc90 [ 28.932857] ? lock_downgrade+0x980/0x980 [ 28.932865] ? handle_mm_fault+0x410/0x8d0 [ 28.932870] ? down_read_trylock+0xdb/0x170 [ 28.932876] ? __do_page_fault+0x32d/0xc90 [ 28.932882] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 28.932888] ? vmacache_find+0x5f/0x280 [ 28.932897] do_group_exit+0x149/0x400 [ 28.932903] ? __do_page_fault+0x3d6/0xc90 [ 28.932909] ? SyS_exit+0x30/0x30 [ 28.932917] ? do_fast_syscall_32+0x156/0xf9d [ 28.932923] ? do_group_exit+0x400/0x400 [ 28.932929] SyS_exit_group+0x1d/0x20 [ 28.932935] do_fast_syscall_32+0x3ee/0xf9d [ 28.932944] ? do_int80_syscall_32+0x9d0/0x9d0 [ 28.932950] ? kasan_check_read+0x11/0x20 [ 28.932957] ? syscall_return_slowpath+0x550/0x550 [ 28.932965] ? SyS_rt_sigaction+0x94/0x1b0 [ 28.932971] ? SyS_sigprocmask+0x4b0/0x4b0 [ 28.932976] ? SyS_read+0x184/0x220 [ 28.932982] ? retint_user+0x18/0x18 [ 28.932991] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 28.933000] entry_SYSENTER_compat+0x54/0x63 [ 28.933008] RIP: 0023:0xf7f1dc79 [ 28.933012] RSP: 002b:00000000ff8ec2dc EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 28.933018] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 28.933021] RDX: 0000000000000000 RSI: 00000000080d9ab8 RDI: 00000000080f02a0 [ 28.933025] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 28.933028] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 28.933031] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 28.933039] [ 28.933042] Allocated by task 4162: [ 28.933048] save_stack+0x43/0xd0 [ 28.933052] kasan_kmalloc+0xad/0xe0 [ 28.933057] kmem_cache_alloc_trace+0x136/0x750 [ 28.933062] binder_get_thread+0x1cf/0x870 [ 28.933066] binder_poll+0x8c/0x390 [ 28.933072] ep_item_poll.isra.10+0xec/0x320 [ 28.933076] ep_insert+0x6a3/0x1b10 [ 28.933081] SyS_epoll_ctl+0x12e4/0x1ab0 [ 28.933087] do_fast_syscall_32+0x3ee/0xf9d [ 28.933092] entry_SYSENTER_compat+0x54/0x63 [ 28.933093] [ 28.933095] Freed by task 4162: [ 28.933100] save_stack+0x43/0xd0 [ 28.933104] kasan_slab_free+0x71/0xc0 [ 28.933108] kfree+0xd6/0x260 [ 28.933114] binder_thread_dec_tmpref+0x27f/0x310 [ 28.933120] binder_thread_release+0x27d/0x540 [ 28.933124] binder_ioctl+0xc02/0x1417 [ 28.933129] compat_SyS_ioctl+0x151/0x2a30 [ 28.933134] do_fast_syscall_32+0x3ee/0xf9d [ 28.933139] entry_SYSENTER_compat+0x54/0x63 [ 28.933140] [ 28.933144] The buggy address belongs to the object at ffff8801b1bd8800 [ 28.933144] which belongs to the cache kmalloc-512 of size 512 [ 28.933149] The buggy address is located 176 bytes inside of [ 28.933149] 512-byte region [ffff8801b1bd8800, ffff8801b1bd8a00) [ 28.933150] The buggy address belongs to the page: [ 28.933156] page:ffffea0006c6f600 count:1 mapcount:0 mapping:ffff8801b1bd8080 index:0x0 [ 28.933161] flags: 0x2fffc0000000100(slab) [ 28.933169] raw: 02fffc0000000100 ffff8801b1bd8080 0000000000000000 0000000100000006 [ 28.933176] raw: ffffea0006c693a0 ffff8801db001748 ffff8801db000940 0000000000000000 [ 28.933178] page dumped because: kasan: bad access detected [ 28.933179] [ 28.933181] Memory state around the buggy address: [ 28.933186] ffff8801b1bd8780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.933190] ffff8801b1bd8800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.933194] >ffff8801b1bd8880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.933196] ^ [ 28.933200] ffff8801b1bd8900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.933205] ffff8801b1bd8980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.933206] ================================================================== [ 28.933208] Disabling lock debugging due to kernel taint [ 28.933211] Kernel panic - not syncing: panic_on_warn set ... [ 28.933211] [ 28.933217] CPU: 1 PID: 4162 Comm: syzkaller254619 Tainted: G B 4.15.0+ #195 [ 28.933220] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.933221] Call Trace: [ 28.933227] dump_stack+0x194/0x257 [ 28.933234] ? arch_local_irq_restore+0x53/0x53 [ 28.933240] ? kasan_end_report+0x32/0x50 [ 28.933246] ? lock_downgrade+0x980/0x980 [ 28.933253] ? vsnprintf+0x1ed/0x1900 [ 28.933259] ? __lock_acquire+0x3cd0/0x3e00 [ 28.933264] panic+0x1e4/0x41c [ 28.933270] ? refcount_error_report+0x214/0x214 [ 28.933277] ? add_taint+0x40/0x50 [ 28.933282] ? add_taint+0x1c/0x50 [ 28.933289] ? __lock_acquire+0x3d4d/0x3e00 [ 28.933295] kasan_end_report+0x50/0x50 [ 28.933301] kasan_report+0x144/0x340 [ 28.933309] __asan_report_load8_noabort+0x14/0x20 [ 28.933315] __lock_acquire+0x3d4d/0x3e00 [ 28.933320] ? __lock_acquire+0x664/0x3e00 [ 28.933326] ? lock_downgrade+0x980/0x980 [ 28.933331] ? lock_downgrade+0x980/0x980 [ 28.933338] ? print_irqtrace_events+0x270/0x270 [ 28.933344] ? remove_wait_queue+0x81/0x350 [ 28.933352] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.933364] ? __lock_acquire+0x664/0x3e00 [ 28.933369] ? check_noncircular+0x20/0x20 [ 28.933381] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.933388] ? lock_acquire+0x1d5/0x580 [ 28.933393] ? lock_acquire+0x1d5/0x580 [ 28.933398] ? ep_free+0xf4/0x320 [ 28.933407] ? lock_release+0xa40/0xa40 [ 28.933412] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 28.933418] ? print_irqtrace_events+0x270/0x270 [ 28.933424] ? print_irqtrace_events+0x270/0x270 [ 28.933430] ? rcu_note_context_switch+0x710/0x710 [ 28.933437] ? __might_sleep+0x95/0x190 [ 28.933443] ? ep_free+0xf4/0x320 [ 28.933448] ? __mutex_lock+0x16f/0x1a80 [ 28.933453] ? ep_free+0xf4/0x320 [ 28.933460] ? print_irqtrace_events+0x270/0x270 [ 28.933465] ? ep_free+0xf4/0x320 [ 28.933473] lock_acquire+0x1d5/0x580 [ 28.933479] ? lock_acquire+0x1d5/0x580 [ 28.933485] ? remove_wait_queue+0x81/0x350 [ 28.933493] ? lock_release+0xa40/0xa40 [ 28.933502] ? lock_acquire+0x1d5/0x580 [ 28.933507] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.933512] ? lock_acquire+0x1d5/0x580 [ 28.933519] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 28.933526] _raw_spin_lock_irqsave+0x96/0xc0 [ 28.933532] ? remove_wait_queue+0x81/0x350 [ 28.933538] remove_wait_queue+0x81/0x350 [ 28.933544] ? depot_save_stack+0x3b5/0x490 [ 28.933551] ? add_wait_queue+0x290/0x290 [ 28.933557] ? rcutorture_record_progress+0x10/0x10 [ 28.933562] ? lock_release+0xa40/0xa40 [ 28.933571] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 28.933578] ? __kernel_text_address+0xd/0x40 [ 28.933586] ? clear_tfile_check_list+0x370/0x370 [ 28.933593] ? check_noncircular+0x20/0x20 [ 28.933601] ? locks_remove_file+0x3fa/0x5a0 [ 28.933610] ep_free+0x13f/0x320 [ 28.933616] ? ep_remove+0x800/0x800 [ 28.933622] ? fsnotify_first_mark+0x2b0/0x2b0 [ 28.933629] ? ep_free+0x320/0x320 [ 28.933636] ep_eventpoll_release+0x44/0x60 [ 28.933642] __fput+0x327/0x7e0 [ 28.933650] ? fput+0x140/0x140 [ 28.933657] ? _raw_spin_unlock_irq+0x27/0x70 [ 28.933665] ____fput+0x15/0x20 [ 28.933671] task_work_run+0x199/0x270 [ 28.933679] ? task_work_cancel+0x210/0x210 [ 28.933685] ? _raw_spin_unlock+0x22/0x30 [ 28.933691] ? switch_task_namespaces+0x87/0xc0 [ 28.933699] do_exit+0x9bb/0x1ad0 [ 28.933705] ? __handle_mm_fault+0x2330/0x3ce0 [ 28.933712] ? mm_update_next_owner+0x930/0x930 [ 28.933722] ? do_raw_spin_trylock+0x190/0x190 [ 28.933729] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 28.933735] ? check_noncircular+0x20/0x20 [ 28.933742] ? _raw_spin_unlock+0x22/0x30 [ 28.933748] ? __handle_mm_fault+0x80e/0x3ce0 [ 28.933755] ? check_noncircular+0x20/0x20 [ 28.933760] ? __pmd_alloc+0x4e0/0x4e0 [ 28.933765] ? lock_downgrade+0x980/0x980 [ 28.933773] ? find_held_lock+0x35/0x1d0 [ 28.933782] ? handle_mm_fault+0x248/0x8d0 [ 28.933789] ? find_held_lock+0x35/0x1d0 [ 28.933797] ? __do_page_fault+0x5f7/0xc90 [ 28.933803] ? lock_downgrade+0x980/0x980 [ 28.933812] ? handle_mm_fault+0x410/0x8d0 [ 28.933817] ? down_read_trylock+0xdb/0x170 [ 28.933823] ? __do_page_fault+0x32d/0xc90 [ 28.933829] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 28.933835] ? vmacache_find+0x5f/0x280 [ 28.933843] do_group_exit+0x149/0x400 [ 28.933849] ? __do_page_fault+0x3d6/0xc90 [ 28.933855] ? SyS_exit+0x30/0x30 [ 28.933862] ? do_fast_syscall_32+0x156/0xf9d [ 28.933868] ? do_group_exit+0x400/0x400 [ 28.933874] SyS_exit_group+0x1d/0x20 [ 28.933880] do_fast_syscall_32+0x3ee/0xf9d [ 28.933889] ? do_int80_syscall_32+0x9d0/0x9d0 [ 28.933895] ? kasan_check_read+0x11/0x20 [ 28.933902] ? syscall_return_slowpath+0x550/0x550 [ 28.933909] ? SyS_rt_sigaction+0x94/0x1b0 [ 28.933915] ? SyS_sigprocmask+0x4b0/0x4b0 [ 28.933920] ? SyS_read+0x184/0x220 [ 28.933926] ? retint_user+0x18/0x18 [ 28.933934] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 28.933943] entry_SYSENTER_compat+0x54/0x63 [ 28.933946] RIP: 0023:0xf7f1dc79 [ 28.933949] RSP: 002b:00000000ff8ec2dc EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 28.933955] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 28.933958] RDX: 0000000000000000 RSI: 00000000080d9ab8 RDI: 00000000080f02a0 [ 28.933961] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 28.933965] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 28.933967] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 28.952884] Dumping ftrace buffer: [ 28.952887] (ftrace buffer empty) [ 28.952890] Kernel Offset: disabled [ 30.232712] Rebooting in 86400 seconds..