[....] Starting enhanced syslogd: rsyslogd[ 12.739083] audit: type=1400 audit(1515557682.717:5): avc: denied { syslog } for pid=3350 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.254604] audit: type=1400 audit(1515557688.233:6): avc: denied { map } for pid=3490 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.57' (ECDSA) to the list of known hosts. executing program [ 31.475571] audit: type=1400 audit(1515557701.454:7): avc: denied { map } for pid=3506 comm="syzkaller623028" path="/root/syzkaller623028108" 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 [ 31.480870] ================================================================== [ 31.480886] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 31.480890] Read of size 8 at addr ffff8801ceb8b678 by task syzkaller623028/3506 [ 31.480891] [ 31.480896] CPU: 1 PID: 3506 Comm: syzkaller623028 Not tainted 4.15.0-rc6-mm1+ #52 [ 31.480899] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.480901] Call Trace: [ 31.480911] dump_stack+0x194/0x257 [ 31.480916] ? arch_local_irq_restore+0x53/0x53 [ 31.480924] ? show_regs_print_info+0x18/0x18 [ 31.480928] ? __lock_acquire+0x664/0x3e00 [ 31.480949] ? __lock_acquire+0x3d4d/0x3e00 [ 31.480957] print_address_description+0x73/0x250 [ 31.480961] ? __lock_acquire+0x3d4d/0x3e00 [ 31.480966] kasan_report+0x23b/0x360 [ 31.480973] __asan_report_load8_noabort+0x14/0x20 [ 31.480976] __lock_acquire+0x3d4d/0x3e00 [ 31.480980] ? lock_downgrade+0x980/0x980 [ 31.480988] ? remove_wait_queue+0x81/0x350 [ 31.480994] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.480998] ? __lock_acquire+0x664/0x3e00 [ 31.481006] ? check_noncircular+0x20/0x20 [ 31.481015] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.481020] ? lock_acquire+0x1d5/0x580 [ 31.481024] ? lock_acquire+0x1d5/0x580 [ 31.481030] ? ep_free+0xf4/0x320 [ 31.481034] ? check_noncircular+0x20/0x20 [ 31.481038] ? lock_release+0xa40/0xa40 [ 31.481044] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 31.481048] ? print_irqtrace_events+0x270/0x270 [ 31.481055] ? rcu_note_context_switch+0x710/0x710 [ 31.481060] ? __might_sleep+0x95/0x190 [ 31.481063] ? ep_free+0xf4/0x320 [ 31.481071] ? __mutex_lock+0x16f/0x1a80 [ 31.481075] ? ep_free+0xf4/0x320 [ 31.481080] ? print_irqtrace_events+0x270/0x270 [ 31.481083] ? ep_free+0xf4/0x320 [ 31.481088] lock_acquire+0x1d5/0x580 [ 31.481091] ? lock_acquire+0x1d5/0x580 [ 31.481096] ? remove_wait_queue+0x81/0x350 [ 31.481100] ? __lock_acquire+0x664/0x3e00 [ 31.481105] ? lock_release+0xa40/0xa40 [ 31.481111] ? lock_acquire+0x1d5/0x580 [ 31.481114] ? lock_acquire+0x1d5/0x580 [ 31.481117] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 31.481123] _raw_spin_lock_irqsave+0x96/0xc0 [ 31.481126] ? remove_wait_queue+0x81/0x350 [ 31.481130] remove_wait_queue+0x81/0x350 [ 31.481135] ? rcutorture_record_progress+0x10/0x10 [ 31.481139] ? add_wait_queue+0x290/0x290 [ 31.481142] ? rcutorture_record_progress+0x10/0x10 [ 31.481148] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 31.481156] ? unwind_get_return_address+0x61/0xa0 [ 31.481161] ? clear_tfile_check_list+0x370/0x370 [ 31.481166] ? check_noncircular+0x20/0x20 [ 31.481171] ? locks_remove_file+0x3fa/0x5a0 [ 31.481176] ep_free+0x13f/0x320 [ 31.481180] ? ep_remove+0x800/0x800 [ 31.481186] ? fsnotify_first_mark+0x2b0/0x2b0 [ 31.481190] ? ep_free+0x320/0x320 [ 31.481199] ep_eventpoll_release+0x44/0x60 [ 31.481204] __fput+0x327/0x7e0 [ 31.481209] ? fput+0x140/0x140 [ 31.481212] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.481217] ____fput+0x15/0x20 [ 31.481222] task_work_run+0x199/0x270 [ 31.481227] ? task_work_cancel+0x210/0x210 [ 31.481233] ? _raw_spin_unlock+0x22/0x30 [ 31.481237] ? switch_task_namespaces+0x87/0xc0 [ 31.481245] do_exit+0x9bb/0x1ad0 [ 31.481253] ? binder_ioctl+0x481/0x1417 [ 31.481257] ? mm_update_next_owner+0x930/0x930 [ 31.481262] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 31.481271] ? avc_ss_reset+0x110/0x110 [ 31.481275] ? mutex_unlock+0xd/0x10 [ 31.481278] ? SyS_epoll_ctl+0x30a/0x1a80 [ 31.481290] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 31.481294] ? up_read+0x1a/0x40 [ 31.481299] ? rcu_note_context_switch+0x710/0x710 [ 31.481304] ? __fd_install+0x288/0x740 [ 31.481310] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 31.481315] ? do_vfs_ioctl+0x486/0x1520 [ 31.481318] ? _cond_resched+0x14/0x30 [ 31.481324] ? ioctl_preallocate+0x2b0/0x2b0 [ 31.481329] ? selinux_capable+0x40/0x40 [ 31.481333] ? __alloc_fd+0x750/0x750 [ 31.481339] do_group_exit+0x149/0x400 [ 31.481343] ? SyS_exit+0x30/0x30 [ 31.481347] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.481354] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.481359] SyS_exit_group+0x1d/0x20 [ 31.481362] entry_SYSCALL_64_fastpath+0x23/0x9a [ 31.481366] RIP: 0033:0x4429f8 [ 31.481369] RSP: 002b:00007fff1983a938 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 31.481373] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 31.481375] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 31.481377] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 31.481379] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 31.481381] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 31.481386] [ 31.481388] Allocated by task 3506: [ 31.481393] save_stack+0x43/0xd0 [ 31.481396] kasan_kmalloc+0xad/0xe0 [ 31.481399] kmem_cache_alloc_trace+0x136/0x750 [ 31.481402] binder_get_thread+0x1cf/0x870 [ 31.481405] binder_poll+0x8c/0x390 [ 31.481408] ep_item_poll.isra.10+0xf2/0x320 [ 31.481410] ep_insert+0x6a2/0x1ac0 [ 31.481413] SyS_epoll_ctl+0x12bf/0x1a80 [ 31.481416] entry_SYSCALL_64_fastpath+0x23/0x9a [ 31.481416] [ 31.481418] Freed by task 3506: [ 31.481421] save_stack+0x43/0xd0 [ 31.481424] __kasan_slab_free+0x11a/0x170 [ 31.481427] kasan_slab_free+0xe/0x10 [ 31.481430] kfree+0xd9/0x260 [ 31.481433] binder_thread_dec_tmpref+0x27f/0x310 [ 31.481435] binder_thread_release+0x27d/0x540 [ 31.481438] binder_ioctl+0xc02/0x1417 [ 31.481441] do_vfs_ioctl+0x1b1/0x1520 [ 31.481444] SyS_ioctl+0x8f/0xc0 [ 31.481447] entry_SYSCALL_64_fastpath+0x23/0x9a [ 31.481448] [ 31.481450] The buggy address belongs to the object at ffff8801ceb8b5c0 [ 31.481450] which belongs to the cache kmalloc-512 of size 512 [ 31.481453] The buggy address is located 184 bytes inside of [ 31.481453] 512-byte region [ffff8801ceb8b5c0, ffff8801ceb8b7c0) [ 31.481454] The buggy address belongs to the page: [ 31.481457] page:ffffea00073ae2c0 count:1 mapcount:0 mapping:ffff8801ceb8b0c0 index:0x0 [ 31.481461] flags: 0x2fffc0000000100(slab) [ 31.481471] raw: 02fffc0000000100 ffff8801ceb8b0c0 0000000000000000 0000000100000006 [ 31.481475] raw: ffffea00072a0720 ffffea00072331e0 ffff8801dac00940 0000000000000000 [ 31.481477] page dumped because: kasan: bad access detected [ 31.481477] [ 31.481478] Memory state around the buggy address: [ 31.481481] ffff8801ceb8b500: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 31.481484] ffff8801ceb8b580: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 31.481487] >ffff8801ceb8b600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.481488] ^ [ 31.481491] ffff8801ceb8b680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.481493] ffff8801ceb8b700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.481494] ================================================================== [ 31.481496] Disabling lock debugging due to kernel taint [ 31.481498] Kernel panic - not syncing: panic_on_warn set ... [ 31.481498] [ 31.481502] CPU: 1 PID: 3506 Comm: syzkaller623028 Tainted: G B 4.15.0-rc6-mm1+ #52 [ 31.481504] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.481505] Call Trace: [ 31.481509] dump_stack+0x194/0x257 [ 31.481514] ? arch_local_irq_restore+0x53/0x53 [ 31.481517] ? kasan_end_report+0x32/0x50 [ 31.481521] ? lock_downgrade+0x980/0x980 [ 31.481525] ? vsnprintf+0x1ed/0x1900 [ 31.481529] ? __lock_acquire+0x3c50/0x3e00 [ 31.481532] panic+0x1e4/0x41c [ 31.481536] ? refcount_error_report+0x214/0x214 [ 31.481540] ? add_taint+0x40/0x50 [ 31.481543] ? add_taint+0x1c/0x50 [ 31.481547] ? __lock_acquire+0x3d4d/0x3e00 [ 31.481551] kasan_end_report+0x50/0x50 [ 31.481556] kasan_report+0x148/0x360 [ 31.481561] __asan_report_load8_noabort+0x14/0x20 [ 31.481564] __lock_acquire+0x3d4d/0x3e00 [ 31.481568] ? lock_downgrade+0x980/0x980 [ 31.481573] ? remove_wait_queue+0x81/0x350 [ 31.481578] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.481582] ? __lock_acquire+0x664/0x3e00 [ 31.481585] ? check_noncircular+0x20/0x20 [ 31.481592] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.481596] ? lock_acquire+0x1d5/0x580 [ 31.481599] ? lock_acquire+0x1d5/0x580 [ 31.481602] ? ep_free+0xf4/0x320 [ 31.481606] ? check_noncircular+0x20/0x20 [ 31.481610] ? lock_release+0xa40/0xa40 [ 31.481614] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 31.481617] ? print_irqtrace_events+0x270/0x270 [ 31.481621] ? rcu_note_context_switch+0x710/0x710 [ 31.481626] ? __might_sleep+0x95/0x190 [ 31.481629] ? ep_free+0xf4/0x320 [ 31.481632] ? __mutex_lock+0x16f/0x1a80 [ 31.481635] ? ep_free+0xf4/0x320 [ 31.481639] ? print_irqtrace_events+0x270/0x270 [ 31.481641] ? ep_free+0xf4/0x320 [ 31.481646] lock_acquire+0x1d5/0x580 [ 31.481649] ? lock_acquire+0x1d5/0x580 [ 31.481653] ? remove_wait_queue+0x81/0x350 [ 31.481657] ? __lock_acquire+0x664/0x3e00 [ 31.481661] ? lock_release+0xa40/0xa40 [ 31.481667] ? lock_acquire+0x1d5/0x580 [ 31.481670] ? lock_acquire+0x1d5/0x580 [ 31.481673] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 31.481677] _raw_spin_lock_irqsave+0x96/0xc0 [ 31.481681] ? remove_wait_queue+0x81/0x350 [ 31.481685] remove_wait_queue+0x81/0x350 [ 31.481689] ? rcutorture_record_progress+0x10/0x10 [ 31.481693] ? add_wait_queue+0x290/0x290 [ 31.481696] ? rcutorture_record_progress+0x10/0x10 [ 31.481702] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 31.481706] ? unwind_get_return_address+0x61/0xa0 [ 31.481710] ? clear_tfile_check_list+0x370/0x370 [ 31.481714] ? check_noncircular+0x20/0x20 [ 31.481718] ? locks_remove_file+0x3fa/0x5a0 [ 31.481723] ep_free+0x13f/0x320 [ 31.481726] ? ep_remove+0x800/0x800 [ 31.481730] ? fsnotify_first_mark+0x2b0/0x2b0 [ 31.481734] ? ep_free+0x320/0x320 [ 31.481737] ep_eventpoll_release+0x44/0x60 [ 31.481740] __fput+0x327/0x7e0 [ 31.481745] ? fput+0x140/0x140 [ 31.481748] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.481753] ____fput+0x15/0x20 [ 31.481756] task_work_run+0x199/0x270 [ 31.481759] ? task_work_cancel+0x210/0x210 [ 31.481763] ? _raw_spin_unlock+0x22/0x30 [ 31.481767] ? switch_task_namespaces+0x87/0xc0 [ 31.481772] do_exit+0x9bb/0x1ad0 [ 31.481776] ? binder_ioctl+0x481/0x1417 [ 31.481780] ? mm_update_next_owner+0x930/0x930 [ 31.481784] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 31.481789] ? avc_ss_reset+0x110/0x110 [ 31.481793] ? mutex_unlock+0xd/0x10 [ 31.481796] ? SyS_epoll_ctl+0x30a/0x1a80 [ 31.481806] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 31.481809] ? up_read+0x1a/0x40 [ 31.481813] ? rcu_note_context_switch+0x710/0x710 [ 31.481817] ? __fd_install+0x288/0x740 [ 31.481822] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 31.481825] ? do_vfs_ioctl+0x486/0x1520 [ 31.481828] ? _cond_resched+0x14/0x30 [ 31.481833] ? ioctl_preallocate+0x2b0/0x2b0 [ 31.481837] ? selinux_capable+0x40/0x40 [ 31.481841] ? __alloc_fd+0x750/0x750 [ 31.481846] do_group_exit+0x149/0x400 [ 31.481850] ? SyS_exit+0x30/0x30 [ 31.481854] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.481858] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.481862] SyS_exit_group+0x1d/0x20 [ 31.481866] entry_SYSCALL_64_fastpath+0x23/0x9a [ 31.481868] RIP: 0033:0x4429f8 [ 31.481870] RSP: 002b:00007fff1983a938 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 31.481873] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 31.481875] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 31.481877] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 31.481879] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 31.481881] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 31.501486] Dumping ftrace buffer: [ 31.501489] (ftrace buffer empty) [ 31.501491] Kernel Offset: disabled [ 32.630919] Rebooting in 86400 seconds..