[....] Starting enhanced syslogd: rsyslogd[ 12.640293] audit: type=1400 audit(1517089001.719:5): avc: denied { syslog } for pid=3530 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: [ 17.854219] audit: type=1400 audit(1517089006.934:6): avc: denied { map } for pid=3669 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.30' (ECDSA) to the list of known hosts. executing program [ 24.171403] audit: type=1400 audit(1517089013.251:7): avc: denied { map } for pid=3683 comm="syzkaller298239" path="/root/syzkaller298239808" 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 [ 24.178389] ================================================================== [ 24.178408] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 24.178414] Read of size 8 at addr ffff8801d992f330 by task syzkaller298239/3683 [ 24.178415] [ 24.178423] CPU: 1 PID: 3683 Comm: syzkaller298239 Not tainted 4.15.0-rc9+ #283 [ 24.178426] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.178429] Call Trace: [ 24.178439] dump_stack+0x194/0x257 [ 24.178447] ? arch_local_irq_restore+0x53/0x53 [ 24.178455] ? show_regs_print_info+0x18/0x18 [ 24.178461] ? print_irqtrace_events+0x270/0x270 [ 24.178467] ? __lock_acquire+0x664/0x3e00 [ 24.178474] ? __lock_acquire+0x3d4d/0x3e00 [ 24.178484] print_address_description+0x73/0x250 [ 24.178490] ? __lock_acquire+0x3d4d/0x3e00 [ 24.178496] kasan_report+0x25b/0x340 [ 24.178505] __asan_report_load8_noabort+0x14/0x20 [ 24.178510] __lock_acquire+0x3d4d/0x3e00 [ 24.178516] ? __lock_acquire+0x664/0x3e00 [ 24.178522] ? lock_downgrade+0x980/0x980 [ 24.178528] ? lock_downgrade+0x980/0x980 [ 24.178538] ? remove_wait_queue+0x81/0x350 [ 24.178547] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.178554] ? __lock_acquire+0x664/0x3e00 [ 24.178559] ? check_noncircular+0x20/0x20 [ 24.178572] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.178579] ? lock_acquire+0x1d5/0x580 [ 24.178585] ? lock_acquire+0x1d5/0x580 [ 24.178593] ? ep_free+0xf4/0x320 [ 24.178601] ? lock_release+0xa40/0xa40 [ 24.178609] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.178615] ? print_irqtrace_events+0x270/0x270 [ 24.178624] ? rcu_note_context_switch+0x710/0x710 [ 24.178632] ? __might_sleep+0x95/0x190 [ 24.178638] ? ep_free+0xf4/0x320 [ 24.178647] ? __mutex_lock+0x16f/0x1a80 [ 24.178652] ? ep_free+0xf4/0x320 [ 24.178659] ? print_irqtrace_events+0x270/0x270 [ 24.178664] ? ep_free+0xf4/0x320 [ 24.178673] lock_acquire+0x1d5/0x580 [ 24.178679] ? lock_acquire+0x1d5/0x580 [ 24.178685] ? remove_wait_queue+0x81/0x350 [ 24.178691] ? __lock_acquire+0x664/0x3e00 [ 24.178698] ? lock_release+0xa40/0xa40 [ 24.178708] ? lock_acquire+0x1d5/0x580 [ 24.178713] ? lock_acquire+0x1d5/0x580 [ 24.178720] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.178728] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.178734] ? remove_wait_queue+0x81/0x350 [ 24.178741] remove_wait_queue+0x81/0x350 [ 24.178749] ? add_wait_queue+0x290/0x290 [ 24.178755] ? rcutorture_record_progress+0x10/0x10 [ 24.178765] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.178773] ? __kernel_text_address+0xd/0x40 [ 24.178781] ? clear_tfile_check_list+0x370/0x370 [ 24.178789] ? check_noncircular+0x20/0x20 [ 24.178798] ? locks_remove_file+0x3fa/0x5a0 [ 24.178808] ep_free+0x13f/0x320 [ 24.178814] ? ep_remove+0x800/0x800 [ 24.178820] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.178828] ? ep_free+0x320/0x320 [ 24.178835] ep_eventpoll_release+0x44/0x60 [ 24.178842] __fput+0x327/0x7e0 [ 24.178850] ? fput+0x140/0x140 [ 24.178857] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.178866] ____fput+0x15/0x20 [ 24.178873] task_work_run+0x199/0x270 [ 24.178881] ? task_work_cancel+0x210/0x210 [ 24.178887] ? _raw_spin_unlock+0x22/0x30 [ 24.178894] ? switch_task_namespaces+0x87/0xc0 [ 24.178902] do_exit+0x9bb/0x1ad0 [ 24.178911] ? binder_ioctl+0x521/0x1417 [ 24.178918] ? mm_update_next_owner+0x930/0x930 [ 24.178925] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.178936] ? avc_ss_reset+0x110/0x110 [ 24.178941] ? mutex_unlock+0xd/0x10 [ 24.178947] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 24.178966] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.178976] ? up_read+0x1a/0x40 [ 24.178983] ? rcu_note_context_switch+0x710/0x710 [ 24.178989] ? __fd_install+0x288/0x740 [ 24.178998] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.179007] ? do_vfs_ioctl+0x486/0x1520 [ 24.179012] ? _cond_resched+0x14/0x30 [ 24.179020] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.179029] ? selinux_capable+0x40/0x40 [ 24.179036] ? __alloc_fd+0x750/0x750 [ 24.179045] do_group_exit+0x149/0x400 [ 24.179052] ? SyS_exit+0x30/0x30 [ 24.179059] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.179068] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.179076] SyS_exit_group+0x1d/0x20 [ 24.179083] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 24.179089] RIP: 0033:0x4429f8 [ 24.179092] RSP: 002b:00007ffe8739f978 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.179099] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.179102] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.179106] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.179109] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.179113] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.179121] [ 24.179124] Allocated by task 3683: [ 24.179131] save_stack+0x43/0xd0 [ 24.179135] kasan_kmalloc+0xad/0xe0 [ 24.179140] kmem_cache_alloc_trace+0x136/0x750 [ 24.179147] binder_get_thread+0x1cf/0x870 [ 24.179151] binder_poll+0x8c/0x390 [ 24.179157] ep_item_poll.isra.10+0xec/0x320 [ 24.179162] ep_insert+0x6a3/0x1b10 [ 24.179167] SyS_epoll_ctl+0x12e4/0x1ab0 [ 24.179173] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 24.179174] [ 24.179176] Freed by task 3683: [ 24.179181] save_stack+0x43/0xd0 [ 24.179186] kasan_slab_free+0x71/0xc0 [ 24.179190] kfree+0xd6/0x260 [ 24.179196] binder_thread_dec_tmpref+0x27f/0x310 [ 24.179201] binder_thread_release+0x27d/0x540 [ 24.179205] binder_ioctl+0xc02/0x1417 [ 24.179210] do_vfs_ioctl+0x1b1/0x1520 [ 24.179214] SyS_ioctl+0x8f/0xc0 [ 24.179220] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 24.179221] [ 24.179226] The buggy address belongs to the object at ffff8801d992f280 [ 24.179226] which belongs to the cache kmalloc-512 of size 512 [ 24.179231] The buggy address is located 176 bytes inside of [ 24.179231] 512-byte region [ffff8801d992f280, ffff8801d992f480) [ 24.179233] The buggy address belongs to the page: [ 24.179238] page:ffffea0007664bc0 count:1 mapcount:0 mapping:ffff8801d992f000 index:0x0 [ 24.179244] flags: 0x2fffc0000000100(slab) [ 24.179253] raw: 02fffc0000000100 ffff8801d992f000 0000000000000000 0000000100000006 [ 24.179260] raw: ffffea0007646f60 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 24.179263] page dumped because: kasan: bad access detected [ 24.179264] [ 24.179266] Memory state around the buggy address: [ 24.179271] ffff8801d992f200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.179275] ffff8801d992f280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.179280] >ffff8801d992f300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.179282] ^ [ 24.179286] ffff8801d992f380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.179290] ffff8801d992f400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.179292] ================================================================== [ 24.179294] Disabling lock debugging due to kernel taint [ 24.179297] Kernel panic - not syncing: panic_on_warn set ... [ 24.179297] [ 24.179303] CPU: 1 PID: 3683 Comm: syzkaller298239 Tainted: G B 4.15.0-rc9+ #283 [ 24.179306] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.179308] Call Trace: [ 24.179314] dump_stack+0x194/0x257 [ 24.179322] ? arch_local_irq_restore+0x53/0x53 [ 24.179327] ? kasan_end_report+0x32/0x50 [ 24.179334] ? lock_downgrade+0x980/0x980 [ 24.179341] ? vsnprintf+0x1ed/0x1900 [ 24.179348] ? __lock_acquire+0x3ca0/0x3e00 [ 24.179353] panic+0x1e4/0x41c [ 24.179359] ? refcount_error_report+0x214/0x214 [ 24.179366] ? add_taint+0x40/0x50 [ 24.179371] ? add_taint+0x1c/0x50 [ 24.179379] ? __lock_acquire+0x3d4d/0x3e00 [ 24.179385] kasan_end_report+0x50/0x50 [ 24.179390] kasan_report+0x144/0x340 [ 24.179399] __asan_report_load8_noabort+0x14/0x20 [ 24.179404] __lock_acquire+0x3d4d/0x3e00 [ 24.179410] ? __lock_acquire+0x664/0x3e00 [ 24.179416] ? lock_downgrade+0x980/0x980 [ 24.179422] ? lock_downgrade+0x980/0x980 [ 24.179429] ? remove_wait_queue+0x81/0x350 [ 24.179438] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.179445] ? __lock_acquire+0x664/0x3e00 [ 24.179450] ? check_noncircular+0x20/0x20 [ 24.179462] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.179469] ? lock_acquire+0x1d5/0x580 [ 24.179475] ? lock_acquire+0x1d5/0x580 [ 24.179480] ? ep_free+0xf4/0x320 [ 24.179488] ? lock_release+0xa40/0xa40 [ 24.179495] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.179501] ? print_irqtrace_events+0x270/0x270 [ 24.179507] ? rcu_note_context_switch+0x710/0x710 [ 24.179514] ? __might_sleep+0x95/0x190 [ 24.179521] ? ep_free+0xf4/0x320 [ 24.179526] ? __mutex_lock+0x16f/0x1a80 [ 24.179531] ? ep_free+0xf4/0x320 [ 24.179538] ? print_irqtrace_events+0x270/0x270 [ 24.179543] ? ep_free+0xf4/0x320 [ 24.179551] lock_acquire+0x1d5/0x580 [ 24.179557] ? lock_acquire+0x1d5/0x580 [ 24.179563] ? remove_wait_queue+0x81/0x350 [ 24.179569] ? __lock_acquire+0x664/0x3e00 [ 24.179576] ? lock_release+0xa40/0xa40 [ 24.179586] ? lock_acquire+0x1d5/0x580 [ 24.179591] ? lock_acquire+0x1d5/0x580 [ 24.179597] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.179605] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.179611] ? remove_wait_queue+0x81/0x350 [ 24.179617] remove_wait_queue+0x81/0x350 [ 24.179625] ? add_wait_queue+0x290/0x290 [ 24.179631] ? rcutorture_record_progress+0x10/0x10 [ 24.179641] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.179648] ? __kernel_text_address+0xd/0x40 [ 24.179656] ? clear_tfile_check_list+0x370/0x370 [ 24.179664] ? check_noncircular+0x20/0x20 [ 24.179672] ? locks_remove_file+0x3fa/0x5a0 [ 24.179681] ep_free+0x13f/0x320 [ 24.179687] ? ep_remove+0x800/0x800 [ 24.179693] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.179701] ? ep_free+0x320/0x320 [ 24.179707] ep_eventpoll_release+0x44/0x60 [ 24.179713] __fput+0x327/0x7e0 [ 24.179722] ? fput+0x140/0x140 [ 24.179728] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.179737] ____fput+0x15/0x20 [ 24.179744] task_work_run+0x199/0x270 [ 24.179752] ? task_work_cancel+0x210/0x210 [ 24.179758] ? _raw_spin_unlock+0x22/0x30 [ 24.179764] ? switch_task_namespaces+0x87/0xc0 [ 24.179771] do_exit+0x9bb/0x1ad0 [ 24.179778] ? binder_ioctl+0x521/0x1417 [ 24.179785] ? mm_update_next_owner+0x930/0x930 [ 24.179792] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.179800] ? avc_ss_reset+0x110/0x110 [ 24.179806] ? mutex_unlock+0xd/0x10 [ 24.179811] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 24.179829] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.179834] ? up_read+0x1a/0x40 [ 24.179841] ? rcu_note_context_switch+0x710/0x710 [ 24.179846] ? __fd_install+0x288/0x740 [ 24.179855] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.179860] ? do_vfs_ioctl+0x486/0x1520 [ 24.179865] ? _cond_resched+0x14/0x30 [ 24.179873] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.179880] ? selinux_capable+0x40/0x40 [ 24.179886] ? __alloc_fd+0x750/0x750 [ 24.179895] do_group_exit+0x149/0x400 [ 24.179902] ? SyS_exit+0x30/0x30 [ 24.179908] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.179915] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.179923] SyS_exit_group+0x1d/0x20 [ 24.179929] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 24.179933] RIP: 0033:0x4429f8 [ 24.179936] RSP: 002b:00007ffe8739f978 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.179942] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.179945] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.179948] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.179952] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.179955] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.197715] Dumping ftrace buffer: [ 24.197718] (ftrace buffer empty) [ 24.197722] Kernel Offset: disabled [ 25.321757] Rebooting in 86400 seconds..