[....] Starting enhanced syslogd: rsyslogd[ 13.411733] audit: type=1400 audit(1515611181.605:5): avc: denied { syslog } for pid=3346 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.607827] audit: type=1400 audit(1515611186.801:6): avc: denied { map } for pid=3487 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.244' (ECDSA) to the list of known hosts. executing program [ 24.834106] audit: type=1400 audit(1515611193.027:7): avc: denied { map } for pid=3501 comm="syzkaller111212" path="/root/syzkaller111212499" 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.866381] ================================================================== [ 24.873806] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 24.880450] Read of size 8 at addr ffff8801c87ef330 by task syzkaller111212/3501 [ 24.887957] [ 24.889560] CPU: 1 PID: 3501 Comm: syzkaller111212 Not tainted 4.15.0-rc7+ #256 [ 24.896982] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.906315] Call Trace: [ 24.908874] dump_stack+0x194/0x257 [ 24.912470] ? arch_local_irq_restore+0x53/0x53 [ 24.917109] ? show_regs_print_info+0x18/0x18 [ 24.921573] ? print_irqtrace_events+0x270/0x270 [ 24.927003] ? __lock_acquire+0x664/0x3e00 [ 24.931215] ? __lock_acquire+0x3d4d/0x3e00 [ 24.935525] print_address_description+0x73/0x250 [ 24.940338] ? __lock_acquire+0x3d4d/0x3e00 [ 24.944632] kasan_report+0x25b/0x340 [ 24.948402] __asan_report_load8_noabort+0x14/0x20 [ 24.953299] __lock_acquire+0x3d4d/0x3e00 [ 24.957415] ? __lock_acquire+0x664/0x3e00 [ 24.961624] ? lock_downgrade+0x980/0x980 [ 24.965749] ? lock_downgrade+0x980/0x980 [ 24.969867] ? remove_wait_queue+0x81/0x350 [ 24.974167] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.979331] ? __lock_acquire+0x664/0x3e00 [ 24.983533] ? check_noncircular+0x20/0x20 [ 24.987742] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.992900] ? lock_acquire+0x1d5/0x580 [ 24.996842] ? lock_acquire+0x1d5/0x580 [ 25.000796] ? ep_free+0xf4/0x320 [ 25.004234] ? lock_release+0xa40/0xa40 [ 25.008180] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.014057] ? print_irqtrace_events+0x270/0x270 [ 25.018787] ? rcu_note_context_switch+0x710/0x710 [ 25.023695] ? __might_sleep+0x95/0x190 [ 25.027642] ? ep_free+0xf4/0x320 [ 25.031063] ? __mutex_lock+0x16f/0x1a80 [ 25.035090] ? ep_free+0xf4/0x320 [ 25.038515] ? print_irqtrace_events+0x270/0x270 [ 25.043244] ? ep_free+0xf4/0x320 [ 25.046674] lock_acquire+0x1d5/0x580 [ 25.050441] ? lock_acquire+0x1d5/0x580 [ 25.054382] ? remove_wait_queue+0x81/0x350 [ 25.058671] ? __lock_acquire+0x664/0x3e00 [ 25.062880] ? lock_release+0xa40/0xa40 [ 25.066823] ? lock_acquire+0x1d5/0x580 [ 25.070783] ? lock_acquire+0x1d5/0x580 [ 25.074726] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.080148] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.084624] ? remove_wait_queue+0x81/0x350 [ 25.088912] remove_wait_queue+0x81/0x350 [ 25.093045] ? add_wait_queue+0x290/0x290 [ 25.097166] ? rcutorture_record_progress+0x10/0x10 [ 25.102153] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.107398] ? __kernel_text_address+0xd/0x40 [ 25.111861] ? clear_tfile_check_list+0x370/0x370 [ 25.116682] ? check_noncircular+0x20/0x20 [ 25.120893] ? locks_remove_file+0x3fa/0x5a0 [ 25.125273] ep_free+0x13f/0x320 [ 25.128608] ? ep_remove+0x800/0x800 [ 25.132289] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.136840] ? ep_free+0x320/0x320 [ 25.140347] ep_eventpoll_release+0x44/0x60 [ 25.144639] __fput+0x327/0x7e0 [ 25.147905] ? fput+0x140/0x140 [ 25.151156] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.155636] ____fput+0x15/0x20 [ 25.158886] task_work_run+0x199/0x270 [ 25.162742] ? task_work_cancel+0x210/0x210 [ 25.167036] ? _raw_spin_unlock+0x22/0x30 [ 25.171154] ? switch_task_namespaces+0x87/0xc0 [ 25.175793] do_exit+0x9bb/0x1ad0 [ 25.179218] ? binder_ioctl+0x481/0x1417 [ 25.183256] ? mm_update_next_owner+0x930/0x930 [ 25.187899] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.193492] ? avc_ss_reset+0x110/0x110 [ 25.197431] ? mutex_unlock+0xd/0x10 [ 25.201120] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 25.205251] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.211103] ? up_read+0x1a/0x40 [ 25.214442] ? rcu_note_context_switch+0x710/0x710 [ 25.219342] ? __fd_install+0x288/0x740 [ 25.223290] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.228898] ? do_vfs_ioctl+0x486/0x1520 [ 25.232927] ? _cond_resched+0x14/0x30 [ 25.236785] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.241169] ? selinux_capable+0x40/0x40 [ 25.245201] ? __alloc_fd+0x750/0x750 [ 25.248972] do_group_exit+0x149/0x400 [ 25.252830] ? SyS_exit+0x30/0x30 [ 25.256251] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.261236] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.265959] SyS_exit_group+0x1d/0x20 [ 25.269739] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.274463] RIP: 0033:0x4429f8 [ 25.277621] RSP: 002b:00007ffc883c6ea8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.285295] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 25.292543] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.299780] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.307020] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 25.314261] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 25.321506] [ 25.323101] Allocated by task 3501: [ 25.326701] save_stack+0x43/0xd0 [ 25.330122] kasan_kmalloc+0xad/0xe0 [ 25.333801] kmem_cache_alloc_trace+0x136/0x750 [ 25.338450] binder_get_thread+0x1cf/0x870 [ 25.342671] binder_poll+0x8c/0x390 [ 25.346281] ep_item_poll.isra.10+0xec/0x320 [ 25.350657] ep_insert+0x6a3/0x1b10 [ 25.354249] SyS_epoll_ctl+0x12e4/0x1ab0 [ 25.358286] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.363007] [ 25.364606] Freed by task 3501: [ 25.367853] save_stack+0x43/0xd0 [ 25.371272] kasan_slab_free+0x71/0xc0 [ 25.375123] kfree+0xd6/0x260 [ 25.378204] binder_thread_dec_tmpref+0x27f/0x310 [ 25.383041] binder_thread_release+0x27d/0x540 [ 25.387603] binder_ioctl+0xc02/0x1417 [ 25.391461] do_vfs_ioctl+0x1b1/0x1520 [ 25.395316] SyS_ioctl+0x8f/0xc0 [ 25.398653] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.403381] [ 25.404976] The buggy address belongs to the object at ffff8801c87ef280 [ 25.404976] which belongs to the cache kmalloc-512 of size 512 [ 25.417611] The buggy address is located 176 bytes inside of [ 25.417611] 512-byte region [ffff8801c87ef280, ffff8801c87ef480) [ 25.429455] The buggy address belongs to the page: [ 25.434357] page:ffffea000721fbc0 count:1 mapcount:0 mapping:ffff8801c87ef000 index:0x0 [ 25.442476] flags: 0x2fffc0000000100(slab) [ 25.446681] raw: 02fffc0000000100 ffff8801c87ef000 0000000000000000 0000000100000006 [ 25.454530] raw: ffffea0007398020 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 25.462379] page dumped because: kasan: bad access detected [ 25.468149] [ 25.469747] Memory state around the buggy address: [ 25.474664] ffff8801c87ef200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.482104] ffff8801c87ef280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.489443] >ffff8801c87ef300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.496901] ^ [ 25.501807] ffff8801c87ef380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.509231] ffff8801c87ef400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.516554] ================================================================== [ 25.523879] Disabling lock debugging due to kernel taint [ 25.529293] Kernel panic - not syncing: panic_on_warn set ... [ 25.529293] [ 25.536623] CPU: 1 PID: 3501 Comm: syzkaller111212 Tainted: G B 4.15.0-rc7+ #256 [ 25.545346] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.554676] Call Trace: [ 25.557246] dump_stack+0x194/0x257 [ 25.560854] ? arch_local_irq_restore+0x53/0x53 [ 25.565494] ? kasan_end_report+0x32/0x50 [ 25.569612] ? lock_downgrade+0x980/0x980 [ 25.573728] ? vsnprintf+0x1ed/0x1900 [ 25.577506] ? __lock_acquire+0x3cb0/0x3e00 [ 25.581794] panic+0x1e4/0x41c [ 25.584956] ? refcount_error_report+0x214/0x214 [ 25.589694] ? add_taint+0x40/0x50 [ 25.593200] ? add_taint+0x1c/0x50 [ 25.596708] ? __lock_acquire+0x3d4d/0x3e00 [ 25.600998] kasan_end_report+0x50/0x50 [ 25.604944] kasan_report+0x144/0x340 [ 25.608711] __asan_report_load8_noabort+0x14/0x20 [ 25.613607] __lock_acquire+0x3d4d/0x3e00 [ 25.617743] ? __lock_acquire+0x664/0x3e00 [ 25.621946] ? lock_downgrade+0x980/0x980 [ 25.626078] ? lock_downgrade+0x980/0x980 [ 25.630219] ? remove_wait_queue+0x81/0x350 [ 25.634514] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.639673] ? __lock_acquire+0x664/0x3e00 [ 25.643875] ? check_noncircular+0x20/0x20 [ 25.648081] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.653335] ? lock_acquire+0x1d5/0x580 [ 25.657278] ? lock_acquire+0x1d5/0x580 [ 25.661222] ? ep_free+0xf4/0x320 [ 25.664645] ? lock_release+0xa40/0xa40 [ 25.668588] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.674532] ? print_irqtrace_events+0x270/0x270 [ 25.679273] ? rcu_note_context_switch+0x710/0x710 [ 25.684179] ? __might_sleep+0x95/0x190 [ 25.688125] ? ep_free+0xf4/0x320 [ 25.691546] ? __mutex_lock+0x16f/0x1a80 [ 25.695576] ? ep_free+0xf4/0x320 [ 25.699007] ? print_irqtrace_events+0x270/0x270 [ 25.703735] ? ep_free+0xf4/0x320 [ 25.707167] lock_acquire+0x1d5/0x580 [ 25.710935] ? lock_acquire+0x1d5/0x580 [ 25.714878] ? remove_wait_queue+0x81/0x350 [ 25.719166] ? __lock_acquire+0x664/0x3e00 [ 25.723370] ? lock_release+0xa40/0xa40 [ 25.727323] ? lock_acquire+0x1d5/0x580 [ 25.731263] ? lock_acquire+0x1d5/0x580 [ 25.735207] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.740627] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.745098] ? remove_wait_queue+0x81/0x350 [ 25.749392] remove_wait_queue+0x81/0x350 [ 25.753510] ? add_wait_queue+0x290/0x290 [ 25.757625] ? rcutorture_record_progress+0x10/0x10 [ 25.762624] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.767882] ? __kernel_text_address+0xd/0x40 [ 25.772352] ? clear_tfile_check_list+0x370/0x370 [ 25.777172] ? check_noncircular+0x20/0x20 [ 25.781377] ? locks_remove_file+0x3fa/0x5a0 [ 25.785768] ep_free+0x13f/0x320 [ 25.789102] ? ep_remove+0x800/0x800 [ 25.792791] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.797344] ? ep_free+0x320/0x320 [ 25.800853] ep_eventpoll_release+0x44/0x60 [ 25.805152] __fput+0x327/0x7e0 [ 25.808405] ? fput+0x140/0x140 [ 25.811663] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.816134] ____fput+0x15/0x20 [ 25.819383] task_work_run+0x199/0x270 [ 25.823240] ? task_work_cancel+0x210/0x210 [ 25.827538] ? _raw_spin_unlock+0x22/0x30 [ 25.831654] ? switch_task_namespaces+0x87/0xc0 [ 25.836306] do_exit+0x9bb/0x1ad0 [ 25.839746] ? binder_ioctl+0x481/0x1417 [ 25.843785] ? mm_update_next_owner+0x930/0x930 [ 25.848425] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.854025] ? avc_ss_reset+0x110/0x110 [ 25.857969] ? mutex_unlock+0xd/0x10 [ 25.861653] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 25.865792] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.871645] ? up_read+0x1a/0x40 [ 25.874982] ? rcu_note_context_switch+0x710/0x710 [ 25.879881] ? __fd_install+0x288/0x740 [ 25.883835] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.889427] ? do_vfs_ioctl+0x486/0x1520 [ 25.893456] ? _cond_resched+0x14/0x30 [ 25.897310] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.901686] ? selinux_capable+0x40/0x40 [ 25.905720] ? __alloc_fd+0x750/0x750 [ 25.909495] do_group_exit+0x149/0x400 [ 25.913361] ? SyS_exit+0x30/0x30 [ 25.916784] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.921776] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.926516] SyS_exit_group+0x1d/0x20 [ 25.930288] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.935023] RIP: 0033:0x4429f8 [ 25.938183] RSP: 002b:00007ffc883c6ea8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.945856] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 25.953102] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.960342] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.967581] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 25.974821] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 25.982603] Dumping ftrace buffer: [ 25.986119] (ftrace buffer empty) [ 25.989797] Kernel Offset: disabled [ 25.993391] Rebooting in 86400 seconds..