[....] Starting enhanced syslogd: rsyslogd[ 11.640067] audit: type=1400 audit(1514550822.675:5): avc: denied { syslog } for pid=2996 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 OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 16.169164] audit: type=1400 audit(1514550827.204:6): avc: denied { map } for pid=3137 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.215' (ECDSA) to the list of known hosts. executing program [ 24.032827] audit: type=1400 audit(1514550835.068:7): avc: denied { map } for pid=3152 comm="syzkaller743211" path="/root/syzkaller743211052" 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.040866] ================================================================== [ 24.040887] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 24.040896] Read of size 8 at addr ffff8801c962aaf0 by task syzkaller743211/3152 [ 24.040897] [ 24.040905] CPU: 0 PID: 3152 Comm: syzkaller743211 Not tainted 4.15.0-rc5+ #240 [ 24.040909] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.040911] Call Trace: [ 24.040921] dump_stack+0x194/0x257 [ 24.040929] ? arch_local_irq_restore+0x53/0x53 [ 24.040940] ? show_regs_print_info+0x18/0x18 [ 24.040945] ? print_irqtrace_events+0x270/0x270 [ 24.040956] ? __lock_acquire+0x664/0x3e00 [ 24.040968] ? __lock_acquire+0x3d4d/0x3e00 [ 24.040977] print_address_description+0x73/0x250 [ 24.040987] ? __lock_acquire+0x3d4d/0x3e00 [ 24.040993] kasan_report+0x25b/0x340 [ 24.041004] __asan_report_load8_noabort+0x14/0x20 [ 24.041010] __lock_acquire+0x3d4d/0x3e00 [ 24.041016] ? __lock_acquire+0x664/0x3e00 [ 24.041021] ? lock_downgrade+0x980/0x980 [ 24.041026] ? lock_downgrade+0x980/0x980 [ 24.041036] ? remove_wait_queue+0x81/0x350 [ 24.041045] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.041051] ? __lock_acquire+0x664/0x3e00 [ 24.041061] ? check_noncircular+0x20/0x20 [ 24.041081] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.041091] ? lock_acquire+0x1d5/0x580 [ 24.041096] ? lock_acquire+0x1d5/0x580 [ 24.041108] ? ep_free+0xf4/0x320 [ 24.041117] ? lock_release+0xa40/0xa40 [ 24.041124] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.041130] ? print_irqtrace_events+0x270/0x270 [ 24.041139] ? rcu_note_context_switch+0x710/0x710 [ 24.041146] ? __might_sleep+0x95/0x190 [ 24.041151] ? ep_free+0xf4/0x320 [ 24.041159] ? __mutex_lock+0x16f/0x1a80 [ 24.041166] ? ep_free+0xf4/0x320 [ 24.041173] ? print_irqtrace_events+0x270/0x270 [ 24.041181] ? ep_free+0xf4/0x320 [ 24.041190] lock_acquire+0x1d5/0x580 [ 24.041200] ? lock_acquire+0x1d5/0x580 [ 24.041211] ? remove_wait_queue+0x81/0x350 [ 24.041217] ? __lock_acquire+0x664/0x3e00 [ 24.041229] ? lock_release+0xa40/0xa40 [ 24.041238] ? lock_acquire+0x1d5/0x580 [ 24.041243] ? lock_acquire+0x1d5/0x580 [ 24.041248] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.041258] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.041263] ? remove_wait_queue+0x81/0x350 [ 24.041269] remove_wait_queue+0x81/0x350 [ 24.041277] ? add_wait_queue+0x290/0x290 [ 24.041286] ? rcutorture_record_progress+0x10/0x10 [ 24.041303] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.041314] ? __kernel_text_address+0xd/0x40 [ 24.041322] ? clear_tfile_check_list+0x370/0x370 [ 24.041329] ? check_noncircular+0x20/0x20 [ 24.041338] ? locks_remove_file+0x3fa/0x5a0 [ 24.041347] ep_free+0x13f/0x320 [ 24.041353] ? ep_remove+0x800/0x800 [ 24.041361] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.041368] ? ep_free+0x320/0x320 [ 24.041374] ep_eventpoll_release+0x44/0x60 [ 24.041381] __fput+0x327/0x7e0 [ 24.041391] ? fput+0x140/0x140 [ 24.041398] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.041406] ____fput+0x15/0x20 [ 24.041413] task_work_run+0x199/0x270 [ 24.041420] ? task_work_cancel+0x210/0x210 [ 24.041426] ? _raw_spin_unlock+0x22/0x30 [ 24.041432] ? switch_task_namespaces+0x87/0xc0 [ 24.041443] do_exit+0x9bb/0x1ad0 [ 24.041453] ? binder_ioctl+0x511/0x1417 [ 24.041459] ? mm_update_next_owner+0x930/0x930 [ 24.041467] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 24.041477] ? avc_ss_reset+0x110/0x110 [ 24.041482] ? mutex_unlock+0xd/0x10 [ 24.041488] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 24.041507] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.041512] ? up_read+0x1a/0x40 [ 24.041518] ? rcu_note_context_switch+0x710/0x710 [ 24.041524] ? __fd_install+0x288/0x740 [ 24.041533] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 24.041540] ? do_vfs_ioctl+0x486/0x1520 [ 24.041546] ? _cond_resched+0x14/0x30 [ 24.041555] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.041562] ? selinux_capable+0x40/0x40 [ 24.041569] ? __alloc_fd+0x750/0x750 [ 24.041577] do_group_exit+0x149/0x400 [ 24.041584] ? SyS_exit+0x30/0x30 [ 24.041590] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.041599] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.041607] SyS_exit_group+0x1d/0x20 [ 24.041613] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 24.041618] RIP: 0033:0x4429f8 [ 24.041622] RSP: 002b:00007fff55ae4db8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.041628] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.041631] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.041635] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.041638] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.041641] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.041649] [ 24.041652] Allocated by task 3152: [ 24.041659] save_stack+0x43/0xd0 [ 24.041663] kasan_kmalloc+0xad/0xe0 [ 24.041670] kmem_cache_alloc_trace+0x136/0x750 [ 24.041675] binder_get_thread+0x1cf/0x870 [ 24.041679] binder_poll+0x8c/0x390 [ 24.041684] ep_item_poll.isra.10+0xec/0x320 [ 24.041688] ep_insert+0x6a3/0x1b10 [ 24.041693] SyS_epoll_ctl+0x12e4/0x1ab0 [ 24.041698] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 24.041699] [ 24.041701] Freed by task 3152: [ 24.041705] save_stack+0x43/0xd0 [ 24.041710] kasan_slab_free+0x71/0xc0 [ 24.041713] kfree+0xd6/0x260 [ 24.041718] binder_thread_dec_tmpref+0x27f/0x310 [ 24.041723] binder_thread_release+0x27d/0x540 [ 24.041728] binder_ioctl+0xc02/0x1417 [ 24.041732] do_vfs_ioctl+0x1b1/0x1520 [ 24.041737] SyS_ioctl+0x8f/0xc0 [ 24.041743] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 24.041744] [ 24.041748] The buggy address belongs to the object at ffff8801c962aa40 [ 24.041748] which belongs to the cache kmalloc-512 of size 512 [ 24.041753] The buggy address is located 176 bytes inside of [ 24.041753] 512-byte region [ffff8801c962aa40, ffff8801c962ac40) [ 24.041754] The buggy address belongs to the page: [ 24.041760] page:00000000dbc1c9ee count:1 mapcount:0 mapping:00000000348f3e6d index:0x0 [ 24.041766] flags: 0x2fffc0000000100(slab) [ 24.041775] raw: 02fffc0000000100 ffff8801c962a040 0000000000000000 0000000100000006 [ 24.041782] raw: ffffea00072499a0 ffffea0007284520 ffff8801db000940 0000000000000000 [ 24.041784] page dumped because: kasan: bad access detected [ 24.041785] [ 24.041787] Memory state around the buggy address: [ 24.041792] ffff8801c962a980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.041796] ffff8801c962aa00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 24.041800] >ffff8801c962aa80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.041803] ^ [ 24.041807] ffff8801c962ab00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.041811] ffff8801c962ab80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.041813] ================================================================== [ 24.041815] Disabling lock debugging due to kernel taint [ 24.041818] Kernel panic - not syncing: panic_on_warn set ... [ 24.041818] [ 24.041824] CPU: 0 PID: 3152 Comm: syzkaller743211 Tainted: G B 4.15.0-rc5+ #240 [ 24.041827] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.041829] Call Trace: [ 24.041835] dump_stack+0x194/0x257 [ 24.041841] ? arch_local_irq_restore+0x53/0x53 [ 24.041847] ? kasan_end_report+0x32/0x50 [ 24.041853] ? lock_downgrade+0x980/0x980 [ 24.041859] ? vsnprintf+0x1ed/0x1900 [ 24.041865] ? __lock_acquire+0x3cd0/0x3e00 [ 24.041870] panic+0x1e4/0x41c [ 24.041876] ? refcount_error_report+0x214/0x214 [ 24.041883] ? add_taint+0x40/0x50 [ 24.041888] ? add_taint+0x1c/0x50 [ 24.041894] ? __lock_acquire+0x3d4d/0x3e00 [ 24.041900] kasan_end_report+0x50/0x50 [ 24.041906] kasan_report+0x144/0x340 [ 24.041913] __asan_report_load8_noabort+0x14/0x20 [ 24.041918] __lock_acquire+0x3d4d/0x3e00 [ 24.041924] ? __lock_acquire+0x664/0x3e00 [ 24.041930] ? lock_downgrade+0x980/0x980 [ 24.041935] ? lock_downgrade+0x980/0x980 [ 24.041942] ? remove_wait_queue+0x81/0x350 [ 24.041950] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.041957] ? __lock_acquire+0x664/0x3e00 [ 24.041962] ? check_noncircular+0x20/0x20 [ 24.041973] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.041980] ? lock_acquire+0x1d5/0x580 [ 24.041986] ? lock_acquire+0x1d5/0x580 [ 24.041990] ? ep_free+0xf4/0x320 [ 24.041998] ? lock_release+0xa40/0xa40 [ 24.042004] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.042010] ? print_irqtrace_events+0x270/0x270 [ 24.042016] ? rcu_note_context_switch+0x710/0x710 [ 24.042023] ? __might_sleep+0x95/0x190 [ 24.042028] ? ep_free+0xf4/0x320 [ 24.042033] ? __mutex_lock+0x16f/0x1a80 [ 24.042038] ? ep_free+0xf4/0x320 [ 24.042044] ? print_irqtrace_events+0x270/0x270 [ 24.042049] ? ep_free+0xf4/0x320 [ 24.042057] lock_acquire+0x1d5/0x580 [ 24.042062] ? lock_acquire+0x1d5/0x580 [ 24.042067] ? remove_wait_queue+0x81/0x350 [ 24.042073] ? __lock_acquire+0x664/0x3e00 [ 24.042080] ? lock_release+0xa40/0xa40 [ 24.042089] ? lock_acquire+0x1d5/0x580 [ 24.042094] ? lock_acquire+0x1d5/0x580 [ 24.042099] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.042107] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.042112] ? remove_wait_queue+0x81/0x350 [ 24.042118] remove_wait_queue+0x81/0x350 [ 24.042126] ? add_wait_queue+0x290/0x290 [ 24.042131] ? rcutorture_record_progress+0x10/0x10 [ 24.042140] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.042147] ? __kernel_text_address+0xd/0x40 [ 24.042154] ? clear_tfile_check_list+0x370/0x370 [ 24.042161] ? check_noncircular+0x20/0x20 [ 24.042168] ? locks_remove_file+0x3fa/0x5a0 [ 24.042177] ep_free+0x13f/0x320 [ 24.042182] ? ep_remove+0x800/0x800 [ 24.042188] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.042195] ? ep_free+0x320/0x320 [ 24.042200] ep_eventpoll_release+0x44/0x60 [ 24.042206] __fput+0x327/0x7e0 [ 24.042213] ? fput+0x140/0x140 [ 24.042220] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.042227] ____fput+0x15/0x20 [ 24.042233] task_work_run+0x199/0x270 [ 24.042241] ? task_work_cancel+0x210/0x210 [ 24.042247] ? _raw_spin_unlock+0x22/0x30 [ 24.042252] ? switch_task_namespaces+0x87/0xc0 [ 24.042260] do_exit+0x9bb/0x1ad0 [ 24.042267] ? binder_ioctl+0x511/0x1417 [ 24.042273] ? mm_update_next_owner+0x930/0x930 [ 24.042280] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 24.042293] ? avc_ss_reset+0x110/0x110 [ 24.042298] ? mutex_unlock+0xd/0x10 [ 24.042303] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 24.042321] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.042326] ? up_read+0x1a/0x40 [ 24.042332] ? rcu_note_context_switch+0x710/0x710 [ 24.042338] ? __fd_install+0x288/0x740 [ 24.042346] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 24.042352] ? do_vfs_ioctl+0x486/0x1520 [ 24.042358] ? _cond_resched+0x14/0x30 [ 24.042366] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.042372] ? selinux_capable+0x40/0x40 [ 24.042379] ? __alloc_fd+0x750/0x750 [ 24.042387] do_group_exit+0x149/0x400 [ 24.042393] ? SyS_exit+0x30/0x30 [ 24.042400] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.042406] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.042413] SyS_exit_group+0x1d/0x20 [ 24.042419] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 24.042423] RIP: 0033:0x4429f8 [ 24.042426] RSP: 002b:00007fff55ae4db8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.042432] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.042435] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.042438] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.042441] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.042445] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.059148] Dumping ftrace buffer: [ 24.059152] (ftrace buffer empty) [ 24.059155] Kernel Offset: disabled [ 25.183355] Rebooting in 86400 seconds..