[....] Starting enhanced syslogd: rsyslogd[ 12.432192] audit: type=1400 audit(1515500401.255:5): avc: denied { syslog } for pid=3351 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: [ 18.549179] audit: type=1400 audit(1515500407.371:6): avc: denied { map } for pid=3491 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.15.242' (ECDSA) to the list of known hosts. executing program [ 24.684668] audit: type=1400 audit(1515500413.507:7): avc: denied { map } for pid=3505 comm="syzkaller993333" path="/root/syzkaller993333625" 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.690132] ================================================================== [ 24.690146] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 24.690152] Read of size 8 at addr ffff8801c8e2fdf8 by task syzkaller993333/3505 [ 24.690153] [ 24.690161] CPU: 0 PID: 3505 Comm: syzkaller993333 Not tainted 4.15.0-rc6-next-20180108+ #91 [ 24.690164] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.690167] Call Trace: [ 24.690176] dump_stack+0x194/0x257 [ 24.690185] ? arch_local_irq_restore+0x53/0x53 [ 24.690192] ? show_regs_print_info+0x18/0x18 [ 24.690198] ? __lock_acquire+0x664/0x3e00 [ 24.690206] ? __lock_acquire+0x3d4d/0x3e00 [ 24.690216] print_address_description+0x73/0x250 [ 24.690222] ? __lock_acquire+0x3d4d/0x3e00 [ 24.690228] kasan_report+0x23b/0x360 [ 24.690237] __asan_report_load8_noabort+0x14/0x20 [ 24.690243] __lock_acquire+0x3d4d/0x3e00 [ 24.690250] ? lock_downgrade+0x980/0x980 [ 24.690259] ? remove_wait_queue+0x81/0x350 [ 24.690268] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.690274] ? __lock_acquire+0x664/0x3e00 [ 24.690280] ? check_noncircular+0x20/0x20 [ 24.690293] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.690300] ? lock_acquire+0x1d5/0x580 [ 24.690305] ? lock_acquire+0x1d5/0x580 [ 24.690311] ? ep_free+0xf4/0x320 [ 24.690318] ? check_noncircular+0x20/0x20 [ 24.690325] ? lock_release+0xa40/0xa40 [ 24.690332] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.690339] ? print_irqtrace_events+0x270/0x270 [ 24.690347] ? rcu_note_context_switch+0x710/0x710 [ 24.690354] ? __might_sleep+0x95/0x190 [ 24.690360] ? ep_free+0xf4/0x320 [ 24.690367] ? __mutex_lock+0x16f/0x1a80 [ 24.690371] ? ep_free+0xf4/0x320 [ 24.690378] ? print_irqtrace_events+0x270/0x270 [ 24.690382] ? ep_free+0xf4/0x320 [ 24.690391] lock_acquire+0x1d5/0x580 [ 24.690396] ? lock_acquire+0x1d5/0x580 [ 24.690403] ? remove_wait_queue+0x81/0x350 [ 24.690409] ? __lock_acquire+0x664/0x3e00 [ 24.690416] ? lock_release+0xa40/0xa40 [ 24.690426] ? lock_acquire+0x1d5/0x580 [ 24.690431] ? lock_acquire+0x1d5/0x580 [ 24.690436] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.690443] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.690449] ? remove_wait_queue+0x81/0x350 [ 24.690456] remove_wait_queue+0x81/0x350 [ 24.690463] ? rcutorture_record_progress+0x10/0x10 [ 24.690469] ? add_wait_queue+0x290/0x290 [ 24.690475] ? rcutorture_record_progress+0x10/0x10 [ 24.690490] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.690498] ? unwind_get_return_address+0x61/0xa0 [ 24.690506] ? clear_tfile_check_list+0x370/0x370 [ 24.690513] ? check_noncircular+0x20/0x20 [ 24.690521] ? locks_remove_file+0x3fa/0x5a0 [ 24.690530] ep_free+0x13f/0x320 [ 24.690535] ? ep_remove+0x800/0x800 [ 24.690543] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.690550] ? ep_free+0x320/0x320 [ 24.690556] ep_eventpoll_release+0x44/0x60 [ 24.690562] __fput+0x327/0x7e0 [ 24.690570] ? fput+0x140/0x140 [ 24.690576] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.690584] ____fput+0x15/0x20 [ 24.690589] task_work_run+0x199/0x270 [ 24.690596] ? task_work_cancel+0x210/0x210 [ 24.690602] ? _raw_spin_unlock+0x22/0x30 [ 24.690609] ? switch_task_namespaces+0x87/0xc0 [ 24.690618] do_exit+0x9bb/0x1ad0 [ 24.690627] ? binder_ioctl+0x521/0x1417 [ 24.690633] ? mm_update_next_owner+0x930/0x930 [ 24.690641] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.690652] ? avc_ss_reset+0x110/0x110 [ 24.690658] ? mutex_unlock+0xd/0x10 [ 24.690663] ? SyS_epoll_ctl+0x30a/0x1a80 [ 24.690683] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.690688] ? up_read+0x1a/0x40 [ 24.690694] ? rcu_note_context_switch+0x710/0x710 [ 24.690701] ? __fd_install+0x288/0x740 [ 24.690709] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.690715] ? do_vfs_ioctl+0x486/0x1520 [ 24.690720] ? _cond_resched+0x14/0x30 [ 24.690729] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.690735] ? selinux_capable+0x40/0x40 [ 24.690742] ? __alloc_fd+0x750/0x750 [ 24.690751] do_group_exit+0x149/0x400 [ 24.690757] ? SyS_exit+0x30/0x30 [ 24.690764] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.690772] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.690780] SyS_exit_group+0x1d/0x20 [ 24.690785] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.690790] RIP: 0033:0x4429f8 [ 24.690793] RSP: 002b:00007ffe0eaf1718 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.690800] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.690803] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.690807] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.690810] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.690813] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.690821] [ 24.690824] Allocated by task 3505: [ 24.690830] save_stack+0x43/0xd0 [ 24.690835] kasan_kmalloc+0xad/0xe0 [ 24.690841] kmem_cache_alloc_trace+0x136/0x750 [ 24.690845] binder_get_thread+0x1cf/0x870 [ 24.690850] binder_poll+0x8c/0x390 [ 24.690854] ep_item_poll.isra.10+0xf2/0x320 [ 24.690858] ep_insert+0x6a2/0x1ac0 [ 24.690863] SyS_epoll_ctl+0x12bf/0x1a80 [ 24.690867] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.690868] [ 24.690871] Freed by task 3505: [ 24.690875] save_stack+0x43/0xd0 [ 24.690881] __kasan_slab_free+0x11a/0x170 [ 24.690886] kasan_slab_free+0xe/0x10 [ 24.690890] kfree+0xd9/0x260 [ 24.690895] binder_thread_dec_tmpref+0x27f/0x310 [ 24.690900] binder_thread_release+0x27d/0x540 [ 24.690904] binder_ioctl+0xc02/0x1417 [ 24.690910] do_vfs_ioctl+0x1b1/0x1520 [ 24.690914] SyS_ioctl+0x8f/0xc0 [ 24.690919] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.690920] [ 24.690924] The buggy address belongs to the object at ffff8801c8e2fd40 [ 24.690924] which belongs to the cache kmalloc-512 of size 512 [ 24.690929] The buggy address is located 184 bytes inside of [ 24.690929] 512-byte region [ffff8801c8e2fd40, ffff8801c8e2ff40) [ 24.690930] The buggy address belongs to the page: [ 24.690935] page:ffffea0007238bc0 count:1 mapcount:0 mapping:ffff8801c8e2f0c0 index:0x0 [ 24.690940] flags: 0x2fffc0000000100(slab) [ 24.690949] raw: 02fffc0000000100 ffff8801c8e2f0c0 0000000000000000 0000000100000006 [ 24.690955] raw: ffffea000727caa0 ffffea0007298f20 ffff8801dac00940 0000000000000000 [ 24.690958] page dumped because: kasan: bad access detected [ 24.690959] [ 24.690960] Memory state around the buggy address: [ 24.690965] ffff8801c8e2fc80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.690969] ffff8801c8e2fd00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 24.690973] >ffff8801c8e2fd80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.690976] ^ [ 24.690980] ffff8801c8e2fe00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.690984] ffff8801c8e2fe80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.690986] ================================================================== [ 24.690988] Disabling lock debugging due to kernel taint [ 24.690991] Kernel panic - not syncing: panic_on_warn set ... [ 24.690991] [ 24.690997] CPU: 0 PID: 3505 Comm: syzkaller993333 Tainted: G B 4.15.0-rc6-next-20180108+ #91 [ 24.691000] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.691004] Call Trace: [ 24.691011] dump_stack+0x194/0x257 [ 24.691018] ? arch_local_irq_restore+0x53/0x53 [ 24.691024] ? kasan_end_report+0x32/0x50 [ 24.691031] ? lock_downgrade+0x980/0x980 [ 24.691036] ? vsnprintf+0x1ed/0x1900 [ 24.691042] ? __lock_acquire+0x3cf0/0x3e00 [ 24.691048] panic+0x1e4/0x41c [ 24.691054] ? refcount_error_report+0x214/0x214 [ 24.691062] ? add_taint+0x40/0x50 [ 24.691067] ? add_taint+0x1c/0x50 [ 24.691074] ? __lock_acquire+0x3d4d/0x3e00 [ 24.691080] kasan_end_report+0x50/0x50 [ 24.691086] kasan_report+0x148/0x360 [ 24.691094] __asan_report_load8_noabort+0x14/0x20 [ 24.691100] __lock_acquire+0x3d4d/0x3e00 [ 24.691106] ? lock_downgrade+0x980/0x980 [ 24.691114] ? remove_wait_queue+0x81/0x350 [ 24.691123] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.691130] ? __lock_acquire+0x664/0x3e00 [ 24.691135] ? check_noncircular+0x20/0x20 [ 24.691147] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.691155] ? lock_acquire+0x1d5/0x580 [ 24.691160] ? lock_acquire+0x1d5/0x580 [ 24.691165] ? ep_free+0xf4/0x320 [ 24.691171] ? check_noncircular+0x20/0x20 [ 24.691178] ? lock_release+0xa40/0xa40 [ 24.691184] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.691190] ? print_irqtrace_events+0x270/0x270 [ 24.691197] ? rcu_note_context_switch+0x710/0x710 [ 24.691204] ? __might_sleep+0x95/0x190 [ 24.691209] ? ep_free+0xf4/0x320 [ 24.691215] ? __mutex_lock+0x16f/0x1a80 [ 24.691219] ? ep_free+0xf4/0x320 [ 24.691227] ? print_irqtrace_events+0x270/0x270 [ 24.691231] ? ep_free+0xf4/0x320 [ 24.691239] lock_acquire+0x1d5/0x580 [ 24.691244] ? lock_acquire+0x1d5/0x580 [ 24.691250] ? remove_wait_queue+0x81/0x350 [ 24.691256] ? __lock_acquire+0x664/0x3e00 [ 24.691263] ? lock_release+0xa40/0xa40 [ 24.691273] ? lock_acquire+0x1d5/0x580 [ 24.691278] ? lock_acquire+0x1d5/0x580 [ 24.691283] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.691290] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.691296] ? remove_wait_queue+0x81/0x350 [ 24.691302] remove_wait_queue+0x81/0x350 [ 24.691309] ? rcutorture_record_progress+0x10/0x10 [ 24.691315] ? add_wait_queue+0x290/0x290 [ 24.691321] ? rcutorture_record_progress+0x10/0x10 [ 24.691330] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.691336] ? unwind_get_return_address+0x61/0xa0 [ 24.691344] ? clear_tfile_check_list+0x370/0x370 [ 24.691351] ? check_noncircular+0x20/0x20 [ 24.691358] ? locks_remove_file+0x3fa/0x5a0 [ 24.691366] ep_free+0x13f/0x320 [ 24.691372] ? ep_remove+0x800/0x800 [ 24.691378] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.691385] ? ep_free+0x320/0x320 [ 24.691390] ep_eventpoll_release+0x44/0x60 [ 24.691396] __fput+0x327/0x7e0 [ 24.691403] ? fput+0x140/0x140 [ 24.691409] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.691416] ____fput+0x15/0x20 [ 24.691421] task_work_run+0x199/0x270 [ 24.691428] ? task_work_cancel+0x210/0x210 [ 24.691433] ? _raw_spin_unlock+0x22/0x30 [ 24.691439] ? switch_task_namespaces+0x87/0xc0 [ 24.691447] do_exit+0x9bb/0x1ad0 [ 24.691454] ? binder_ioctl+0x521/0x1417 [ 24.691460] ? mm_update_next_owner+0x930/0x930 [ 24.691468] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.691482] ? avc_ss_reset+0x110/0x110 [ 24.691488] ? mutex_unlock+0xd/0x10 [ 24.691493] ? SyS_epoll_ctl+0x30a/0x1a80 [ 24.691511] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.691516] ? up_read+0x1a/0x40 [ 24.691523] ? rcu_note_context_switch+0x710/0x710 [ 24.691528] ? __fd_install+0x288/0x740 [ 24.691537] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.691543] ? do_vfs_ioctl+0x486/0x1520 [ 24.691548] ? _cond_resched+0x14/0x30 [ 24.691556] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.691562] ? selinux_capable+0x40/0x40 [ 24.691569] ? __alloc_fd+0x750/0x750 [ 24.691577] do_group_exit+0x149/0x400 [ 24.691584] ? SyS_exit+0x30/0x30 [ 24.691590] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.691597] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.691604] SyS_exit_group+0x1d/0x20 [ 24.691610] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.691613] RIP: 0033:0x4429f8 [ 24.691616] RSP: 002b:00007ffe0eaf1718 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.691622] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.691625] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.691629] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.691632] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.691635] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.711007] Dumping ftrace buffer: [ 24.711010] (ftrace buffer empty) [ 24.711012] Kernel Offset: disabled [ 25.839676] Rebooting in 86400 seconds..