[....] Starting enhanced syslogd: rsyslogd[ 12.065429] audit: type=1400 audit(1514889518.175:5): avc: denied { syslog } for pid=3340 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.690122] audit: type=1400 audit(1514889524.799:6): avc: denied { map } for pid=3480 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.28' (ECDSA) to the list of known hosts. executing program [ 24.885199] audit: type=1400 audit(1514889530.994:7): avc: denied { map } for pid=3494 comm="syzkaller256437" path="/root/syzkaller256437534" 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.889927] ================================================================== [ 24.889943] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 24.889948] Read of size 8 at addr ffff8801cabac870 by task syzkaller256437/3494 [ 24.889949] [ 24.889956] CPU: 0 PID: 3494 Comm: syzkaller256437 Not tainted 4.15.0-rc6+ #245 [ 24.889959] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.889962] Call Trace: [ 24.889971] dump_stack+0x194/0x257 [ 24.889979] ? arch_local_irq_restore+0x53/0x53 [ 24.889986] ? show_regs_print_info+0x18/0x18 [ 24.889992] ? print_irqtrace_events+0x270/0x270 [ 24.889998] ? __lock_acquire+0x664/0x3e00 [ 24.890008] ? __lock_acquire+0x3d4d/0x3e00 [ 24.890017] print_address_description+0x73/0x250 [ 24.890023] ? __lock_acquire+0x3d4d/0x3e00 [ 24.890029] kasan_report+0x25b/0x340 [ 24.890038] __asan_report_load8_noabort+0x14/0x20 [ 24.890043] __lock_acquire+0x3d4d/0x3e00 [ 24.890049] ? __lock_acquire+0x664/0x3e00 [ 24.890055] ? lock_downgrade+0x980/0x980 [ 24.890059] ? lock_downgrade+0x980/0x980 [ 24.890069] ? remove_wait_queue+0x81/0x350 [ 24.890078] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.890084] ? __lock_acquire+0x664/0x3e00 [ 24.890089] ? check_noncircular+0x20/0x20 [ 24.890102] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.890109] ? lock_acquire+0x1d5/0x580 [ 24.890114] ? lock_acquire+0x1d5/0x580 [ 24.890121] ? ep_free+0xf4/0x320 [ 24.890129] ? lock_release+0xa40/0xa40 [ 24.890137] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.890143] ? print_irqtrace_events+0x270/0x270 [ 24.890151] ? rcu_note_context_switch+0x710/0x710 [ 24.890158] ? __might_sleep+0x95/0x190 [ 24.890164] ? ep_free+0xf4/0x320 [ 24.890170] ? __mutex_lock+0x16f/0x1a80 [ 24.890175] ? ep_free+0xf4/0x320 [ 24.890182] ? print_irqtrace_events+0x270/0x270 [ 24.890187] ? ep_free+0xf4/0x320 [ 24.890196] lock_acquire+0x1d5/0x580 [ 24.890201] ? lock_acquire+0x1d5/0x580 [ 24.890206] ? remove_wait_queue+0x81/0x350 [ 24.890212] ? __lock_acquire+0x664/0x3e00 [ 24.890220] ? lock_release+0xa40/0xa40 [ 24.890229] ? lock_acquire+0x1d5/0x580 [ 24.890234] ? lock_acquire+0x1d5/0x580 [ 24.890240] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.890248] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.890253] ? remove_wait_queue+0x81/0x350 [ 24.890260] remove_wait_queue+0x81/0x350 [ 24.890268] ? add_wait_queue+0x290/0x290 [ 24.890274] ? rcutorture_record_progress+0x10/0x10 [ 24.890284] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.890291] ? __kernel_text_address+0xd/0x40 [ 24.890299] ? clear_tfile_check_list+0x370/0x370 [ 24.890307] ? check_noncircular+0x20/0x20 [ 24.890315] ? locks_remove_file+0x3fa/0x5a0 [ 24.890325] ep_free+0x13f/0x320 [ 24.890331] ? ep_remove+0x800/0x800 [ 24.890337] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.890345] ? ep_free+0x320/0x320 [ 24.890351] ep_eventpoll_release+0x44/0x60 [ 24.890358] __fput+0x327/0x7e0 [ 24.890366] ? fput+0x140/0x140 [ 24.890373] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.890381] ____fput+0x15/0x20 [ 24.890387] task_work_run+0x199/0x270 [ 24.890395] ? task_work_cancel+0x210/0x210 [ 24.890401] ? _raw_spin_unlock+0x22/0x30 [ 24.890407] ? switch_task_namespaces+0x87/0xc0 [ 24.890416] do_exit+0x9bb/0x1ad0 [ 24.890424] ? binder_ioctl+0x551/0x1417 [ 24.890430] ? mm_update_next_owner+0x930/0x930 [ 24.890437] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.890447] ? avc_ss_reset+0x110/0x110 [ 24.890452] ? mutex_unlock+0xd/0x10 [ 24.890458] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 24.890477] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.890482] ? up_read+0x1a/0x40 [ 24.890489] ? rcu_note_context_switch+0x710/0x710 [ 24.890494] ? __fd_install+0x288/0x740 [ 24.890503] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.890508] ? do_vfs_ioctl+0x486/0x1520 [ 24.890513] ? _cond_resched+0x14/0x30 [ 24.890520] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.890528] ? selinux_capable+0x40/0x40 [ 24.890534] ? __alloc_fd+0x750/0x750 [ 24.890542] do_group_exit+0x149/0x400 [ 24.890549] ? SyS_exit+0x30/0x30 [ 24.890556] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.890563] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.890571] SyS_exit_group+0x1d/0x20 [ 24.890577] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.890582] RIP: 0033:0x4429f8 [ 24.890585] RSP: 002b:00007fff9b606188 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.890591] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.890595] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.890598] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.890601] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.890605] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.890613] [ 24.890615] Allocated by task 3494: [ 24.890621] save_stack+0x43/0xd0 [ 24.890626] kasan_kmalloc+0xad/0xe0 [ 24.890630] kmem_cache_alloc_trace+0x136/0x750 [ 24.890635] binder_get_thread+0x1cf/0x870 [ 24.890639] binder_poll+0x8c/0x390 [ 24.890644] ep_item_poll.isra.10+0xec/0x320 [ 24.890654] ep_insert+0x6a3/0x1b10 [ 24.890658] SyS_epoll_ctl+0x12e4/0x1ab0 [ 24.890664] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.890665] [ 24.890667] Freed by task 3494: [ 24.890671] save_stack+0x43/0xd0 [ 24.890676] kasan_slab_free+0x71/0xc0 [ 24.890680] kfree+0xd6/0x260 [ 24.890684] binder_thread_dec_tmpref+0x27f/0x310 [ 24.890689] binder_thread_release+0x27d/0x540 [ 24.890693] binder_ioctl+0xc02/0x1417 [ 24.890698] do_vfs_ioctl+0x1b1/0x1520 [ 24.890702] SyS_ioctl+0x8f/0xc0 [ 24.890707] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.890708] [ 24.890712] The buggy address belongs to the object at ffff8801cabac7c0 [ 24.890712] which belongs to the cache kmalloc-512 of size 512 [ 24.890717] The buggy address is located 176 bytes inside of [ 24.890717] 512-byte region [ffff8801cabac7c0, ffff8801cabac9c0) [ 24.890719] The buggy address belongs to the page: [ 24.890724] page:0000000030720a4c count:1 mapcount:0 mapping:00000000edcadd11 index:0x0 [ 24.890729] flags: 0x2fffc0000000100(slab) [ 24.890737] raw: 02fffc0000000100 ffff8801cabac040 0000000000000000 0000000100000006 [ 24.890744] raw: ffffea00072b9460 ffffea00072aeda0 ffff8801dac00940 0000000000000000 [ 24.890746] page dumped because: kasan: bad access detected [ 24.890748] [ 24.890749] Memory state around the buggy address: [ 24.890754] ffff8801cabac700: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.890758] ffff8801cabac780: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 24.890762] >ffff8801cabac800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.890765] ^ [ 24.890769] ffff8801cabac880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.890773] ffff8801cabac900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.890775] ================================================================== [ 24.890777] Disabling lock debugging due to kernel taint [ 24.890780] Kernel panic - not syncing: panic_on_warn set ... [ 24.890780] [ 24.890786] CPU: 0 PID: 3494 Comm: syzkaller256437 Tainted: G B 4.15.0-rc6+ #245 [ 24.890789] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.890791] Call Trace: [ 24.890797] dump_stack+0x194/0x257 [ 24.890804] ? arch_local_irq_restore+0x53/0x53 [ 24.890809] ? kasan_end_report+0x32/0x50 [ 24.890815] ? lock_downgrade+0x980/0x980 [ 24.890822] ? vsnprintf+0x1ed/0x1900 [ 24.890828] ? __lock_acquire+0x3c70/0x3e00 [ 24.890834] panic+0x1e4/0x41c [ 24.890839] ? refcount_error_report+0x214/0x214 [ 24.890846] ? add_taint+0x40/0x50 [ 24.890851] ? add_taint+0x1c/0x50 [ 24.890858] ? __lock_acquire+0x3d4d/0x3e00 [ 24.890864] kasan_end_report+0x50/0x50 [ 24.890869] kasan_report+0x144/0x340 [ 24.890877] __asan_report_load8_noabort+0x14/0x20 [ 24.890882] __lock_acquire+0x3d4d/0x3e00 [ 24.890888] ? __lock_acquire+0x664/0x3e00 [ 24.890893] ? lock_downgrade+0x980/0x980 [ 24.890899] ? lock_downgrade+0x980/0x980 [ 24.890906] ? remove_wait_queue+0x81/0x350 [ 24.890914] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.890921] ? __lock_acquire+0x664/0x3e00 [ 24.890926] ? check_noncircular+0x20/0x20 [ 24.890938] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.890945] ? lock_acquire+0x1d5/0x580 [ 24.890950] ? lock_acquire+0x1d5/0x580 [ 24.890955] ? ep_free+0xf4/0x320 [ 24.890963] ? lock_release+0xa40/0xa40 [ 24.890969] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.890975] ? print_irqtrace_events+0x270/0x270 [ 24.890981] ? rcu_note_context_switch+0x710/0x710 [ 24.890988] ? __might_sleep+0x95/0x190 [ 24.890994] ? ep_free+0xf4/0x320 [ 24.891000] ? __mutex_lock+0x16f/0x1a80 [ 24.891004] ? ep_free+0xf4/0x320 [ 24.891011] ? print_irqtrace_events+0x270/0x270 [ 24.891016] ? ep_free+0xf4/0x320 [ 24.891024] lock_acquire+0x1d5/0x580 [ 24.891029] ? lock_acquire+0x1d5/0x580 [ 24.891034] ? remove_wait_queue+0x81/0x350 [ 24.891040] ? __lock_acquire+0x664/0x3e00 [ 24.891047] ? lock_release+0xa40/0xa40 [ 24.891056] ? lock_acquire+0x1d5/0x580 [ 24.891061] ? lock_acquire+0x1d5/0x580 [ 24.891067] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.891074] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.891080] ? remove_wait_queue+0x81/0x350 [ 24.891086] remove_wait_queue+0x81/0x350 [ 24.891093] ? add_wait_queue+0x290/0x290 [ 24.891099] ? rcutorture_record_progress+0x10/0x10 [ 24.891108] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.891114] ? __kernel_text_address+0xd/0x40 [ 24.891122] ? clear_tfile_check_list+0x370/0x370 [ 24.891130] ? check_noncircular+0x20/0x20 [ 24.891138] ? locks_remove_file+0x3fa/0x5a0 [ 24.891146] ep_free+0x13f/0x320 [ 24.891152] ? ep_remove+0x800/0x800 [ 24.891158] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.891165] ? ep_free+0x320/0x320 [ 24.891171] ep_eventpoll_release+0x44/0x60 [ 24.891177] __fput+0x327/0x7e0 [ 24.891185] ? fput+0x140/0x140 [ 24.891191] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.891200] ____fput+0x15/0x20 [ 24.891206] task_work_run+0x199/0x270 [ 24.891213] ? task_work_cancel+0x210/0x210 [ 24.891219] ? _raw_spin_unlock+0x22/0x30 [ 24.891225] ? switch_task_namespaces+0x87/0xc0 [ 24.891232] do_exit+0x9bb/0x1ad0 [ 24.891239] ? binder_ioctl+0x551/0x1417 [ 24.891245] ? mm_update_next_owner+0x930/0x930 [ 24.891252] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.891260] ? avc_ss_reset+0x110/0x110 [ 24.891265] ? mutex_unlock+0xd/0x10 [ 24.891271] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 24.891289] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.891293] ? up_read+0x1a/0x40 [ 24.891300] ? rcu_note_context_switch+0x710/0x710 [ 24.891304] ? __fd_install+0x288/0x740 [ 24.891313] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.891318] ? do_vfs_ioctl+0x486/0x1520 [ 24.891323] ? _cond_resched+0x14/0x30 [ 24.891330] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.891337] ? selinux_capable+0x40/0x40 [ 24.891343] ? __alloc_fd+0x750/0x750 [ 24.891351] do_group_exit+0x149/0x400 [ 24.891358] ? SyS_exit+0x30/0x30 [ 24.891364] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.891370] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.891377] SyS_exit_group+0x1d/0x20 [ 24.891384] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.891387] RIP: 0033:0x4429f8 [ 24.891390] RSP: 002b:00007fff9b606188 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.891395] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.891399] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.891402] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.891405] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.891408] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.911474] Dumping ftrace buffer: [ 24.911477] (ftrace buffer empty) [ 24.911479] Kernel Offset: disabled [ 26.035586] Rebooting in 86400 seconds..