[....] Starting enhanced syslogd: rsyslogd[ 10.455869] audit: type=1400 audit(1514490816.456: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 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: [ 12.902971] audit: type=1400 audit(1514490818.903:6): avc: denied { map } for pid=3134 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.214' (ECDSA) to the list of known hosts. executing program [ 34.997498] audit: type=1400 audit(1514490840.998:7): avc: denied { map } for pid=3153 comm="syzkaller261029" path="/root/syzkaller261029933" 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 [ 35.001945] ================================================================== [ 35.001957] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 35.001961] Read of size 8 at addr ffff8801ca7a7d38 by task syzkaller261029/3153 [ 35.001962] [ 35.001967] CPU: 0 PID: 3153 Comm: syzkaller261029 Not tainted 4.15.0-rc4-next-20171221+ #78 [ 35.001970] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.001971] Call Trace: [ 35.001978] dump_stack+0x194/0x257 [ 35.001982] ? arch_local_irq_restore+0x53/0x53 [ 35.001989] ? show_regs_print_info+0x18/0x18 [ 35.001992] ? print_irqtrace_events+0x270/0x270 [ 35.001996] ? __lock_acquire+0x664/0x3e00 [ 35.002003] ? __lock_acquire+0x3d4d/0x3e00 [ 35.002010] print_address_description+0x73/0x250 [ 35.002014] ? __lock_acquire+0x3d4d/0x3e00 [ 35.002018] kasan_report+0x25b/0x340 [ 35.002023] __asan_report_load8_noabort+0x14/0x20 [ 35.002027] __lock_acquire+0x3d4d/0x3e00 [ 35.002030] ? __lock_acquire+0x664/0x3e00 [ 35.002034] ? lock_downgrade+0x980/0x980 [ 35.002037] ? lock_downgrade+0x980/0x980 [ 35.002043] ? remove_wait_queue+0x81/0x350 [ 35.002049] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.002053] ? __lock_acquire+0x664/0x3e00 [ 35.002056] ? check_noncircular+0x20/0x20 [ 35.002064] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.002069] ? lock_acquire+0x1d5/0x580 [ 35.002072] ? lock_acquire+0x1d5/0x580 [ 35.002077] ? ep_free+0xf4/0x320 [ 35.002082] ? lock_release+0xa40/0xa40 [ 35.002087] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.002091] ? print_irqtrace_events+0x270/0x270 [ 35.002096] ? rcu_note_context_switch+0x710/0x710 [ 35.002101] ? __might_sleep+0x95/0x190 [ 35.002105] ? ep_free+0xf4/0x320 [ 35.002111] ? __mutex_lock+0x16f/0x1a80 [ 35.002114] ? ep_free+0xf4/0x320 [ 35.002118] ? print_irqtrace_events+0x270/0x270 [ 35.002121] ? ep_free+0xf4/0x320 [ 35.002126] lock_acquire+0x1d5/0x580 [ 35.002129] ? lock_acquire+0x1d5/0x580 [ 35.002133] ? remove_wait_queue+0x81/0x350 [ 35.002137] ? __lock_acquire+0x664/0x3e00 [ 35.002141] ? lock_release+0xa40/0xa40 [ 35.002147] ? lock_acquire+0x1d5/0x580 [ 35.002150] ? lock_acquire+0x1d5/0x580 [ 35.002154] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 35.002159] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.002163] ? remove_wait_queue+0x81/0x350 [ 35.002167] remove_wait_queue+0x81/0x350 [ 35.002171] ? add_wait_queue+0x290/0x290 [ 35.002175] ? rcutorture_record_progress+0x10/0x10 [ 35.002181] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 35.002187] ? __kernel_text_address+0xd/0x40 [ 35.002192] ? clear_tfile_check_list+0x370/0x370 [ 35.002197] ? check_noncircular+0x20/0x20 [ 35.002204] ? locks_remove_file+0x3fa/0x5a0 [ 35.002210] ep_free+0x13f/0x320 [ 35.002213] ? ep_remove+0x800/0x800 [ 35.002217] ? fsnotify_first_mark+0x2b0/0x2b0 [ 35.002221] ? ep_free+0x320/0x320 [ 35.002225] ep_eventpoll_release+0x44/0x60 [ 35.002230] __fput+0x327/0x7e0 [ 35.002236] ? fput+0x140/0x140 [ 35.002240] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.002245] ____fput+0x15/0x20 [ 35.002249] task_work_run+0x199/0x270 [ 35.002254] ? task_work_cancel+0x210/0x210 [ 35.002257] ? _raw_spin_unlock+0x22/0x30 [ 35.002261] ? switch_task_namespaces+0x87/0xc0 [ 35.002267] do_exit+0x9bb/0x1ad0 [ 35.002273] ? binder_ioctl+0x491/0x1417 [ 35.002276] ? mm_update_next_owner+0x930/0x930 [ 35.002281] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 35.002287] ? avc_ss_reset+0x110/0x110 [ 35.002291] ? mutex_unlock+0xd/0x10 [ 35.002295] ? SyS_epoll_ctl+0x30a/0x1a80 [ 35.002307] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.002310] ? up_read+0x1a/0x40 [ 35.002314] ? rcu_note_context_switch+0x710/0x710 [ 35.002317] ? __fd_install+0x288/0x740 [ 35.002323] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 35.002327] ? do_vfs_ioctl+0x486/0x1520 [ 35.002330] ? _cond_resched+0x14/0x30 [ 35.002335] ? ioctl_preallocate+0x2b0/0x2b0 [ 35.002340] ? selinux_capable+0x40/0x40 [ 35.002343] ? __alloc_fd+0x750/0x750 [ 35.002349] do_group_exit+0x149/0x400 [ 35.002353] ? SyS_exit+0x30/0x30 [ 35.002357] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.002362] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.002367] SyS_exit_group+0x1d/0x20 [ 35.002371] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 35.002374] RIP: 0033:0x4429f8 [ 35.002376] RSP: 002b:00007ffeb8e2da58 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.002381] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 35.002383] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.002385] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.002387] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 35.002389] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 35.002394] [ 35.002396] Allocated by task 3153: [ 35.002400] save_stack+0x43/0xd0 [ 35.002403] kasan_kmalloc+0xad/0xe0 [ 35.002406] kmem_cache_alloc_trace+0x136/0x750 [ 35.002409] binder_get_thread+0x1cf/0x870 [ 35.002411] binder_poll+0x8c/0x390 [ 35.002414] ep_item_poll.isra.10+0xf2/0x320 [ 35.002417] ep_insert+0x6a2/0x1ac0 [ 35.002420] SyS_epoll_ctl+0x12bf/0x1a80 [ 35.002423] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 35.002424] [ 35.002425] Freed by task 3153: [ 35.002428] save_stack+0x43/0xd0 [ 35.002431] kasan_slab_free+0x71/0xc0 [ 35.002433] kfree+0xd6/0x260 [ 35.002436] binder_thread_dec_tmpref+0x27f/0x310 [ 35.002439] binder_thread_release+0x27d/0x540 [ 35.002441] binder_ioctl+0xc02/0x1417 [ 35.002444] do_vfs_ioctl+0x1b1/0x1520 [ 35.002446] SyS_ioctl+0x8f/0xc0 [ 35.002449] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 35.002450] [ 35.002453] The buggy address belongs to the object at ffff8801ca7a7c80 [ 35.002453] which belongs to the cache kmalloc-512 of size 512 [ 35.002456] The buggy address is located 184 bytes inside of [ 35.002456] 512-byte region [ffff8801ca7a7c80, ffff8801ca7a7e80) [ 35.002457] The buggy address belongs to the page: [ 35.002461] page:000000005db911d8 count:1 mapcount:0 mapping:000000009717d45e index:0x0 [ 35.002464] flags: 0x2fffc0000000100(slab) [ 35.002470] raw: 02fffc0000000100 ffff8801ca7a7000 0000000000000000 0000000100000006 [ 35.002474] raw: ffffea0007257220 ffffea00072600a0 ffff8801dac00940 0000000000000000 [ 35.002476] page dumped because: kasan: bad access detected [ 35.002477] [ 35.002478] Memory state around the buggy address: [ 35.002480] ffff8801ca7a7c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.002483] ffff8801ca7a7c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.002486] >ffff8801ca7a7d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.002487] ^ [ 35.002490] ffff8801ca7a7d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.002492] ffff8801ca7a7e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.002493] ================================================================== [ 35.002495] Disabling lock debugging due to kernel taint [ 35.002497] Kernel panic - not syncing: panic_on_warn set ... [ 35.002497] [ 35.002501] CPU: 0 PID: 3153 Comm: syzkaller261029 Tainted: G B 4.15.0-rc4-next-20171221+ #78 [ 35.002503] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.002503] Call Trace: [ 35.002507] dump_stack+0x194/0x257 [ 35.002511] ? arch_local_irq_restore+0x53/0x53 [ 35.002514] ? kasan_end_report+0x32/0x50 [ 35.002518] ? lock_downgrade+0x980/0x980 [ 35.002522] ? vsnprintf+0x1ed/0x1900 [ 35.002525] ? __lock_acquire+0x3d30/0x3e00 [ 35.002529] panic+0x1e4/0x41c [ 35.002532] ? refcount_error_report+0x214/0x214 [ 35.002537] ? add_taint+0x40/0x50 [ 35.002540] ? add_taint+0x1c/0x50 [ 35.002544] ? __lock_acquire+0x3d4d/0x3e00 [ 35.002547] kasan_end_report+0x50/0x50 [ 35.002551] kasan_report+0x144/0x340 [ 35.002556] __asan_report_load8_noabort+0x14/0x20 [ 35.002559] __lock_acquire+0x3d4d/0x3e00 [ 35.002562] ? __lock_acquire+0x664/0x3e00 [ 35.002566] ? lock_downgrade+0x980/0x980 [ 35.002569] ? lock_downgrade+0x980/0x980 [ 35.002573] ? remove_wait_queue+0x81/0x350 [ 35.002578] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.002582] ? __lock_acquire+0x664/0x3e00 [ 35.002585] ? check_noncircular+0x20/0x20 [ 35.002592] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.002596] ? lock_acquire+0x1d5/0x580 [ 35.002600] ? lock_acquire+0x1d5/0x580 [ 35.002603] ? ep_free+0xf4/0x320 [ 35.002608] ? lock_release+0xa40/0xa40 [ 35.002611] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.002615] ? print_irqtrace_events+0x270/0x270 [ 35.002619] ? rcu_note_context_switch+0x710/0x710 [ 35.002623] ? __might_sleep+0x95/0x190 [ 35.002627] ? ep_free+0xf4/0x320 [ 35.002630] ? __mutex_lock+0x16f/0x1a80 [ 35.002633] ? ep_free+0xf4/0x320 [ 35.002637] ? print_irqtrace_events+0x270/0x270 [ 35.002640] ? ep_free+0xf4/0x320 [ 35.002645] lock_acquire+0x1d5/0x580 [ 35.002648] ? lock_acquire+0x1d5/0x580 [ 35.002652] ? remove_wait_queue+0x81/0x350 [ 35.002655] ? __lock_acquire+0x664/0x3e00 [ 35.002659] ? lock_release+0xa40/0xa40 [ 35.002665] ? lock_acquire+0x1d5/0x580 [ 35.002668] ? lock_acquire+0x1d5/0x580 [ 35.002671] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 35.002676] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.002679] ? remove_wait_queue+0x81/0x350 [ 35.002683] remove_wait_queue+0x81/0x350 [ 35.002687] ? add_wait_queue+0x290/0x290 [ 35.002691] ? rcutorture_record_progress+0x10/0x10 [ 35.002696] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 35.002701] ? __kernel_text_address+0xd/0x40 [ 35.002705] ? clear_tfile_check_list+0x370/0x370 [ 35.002710] ? check_noncircular+0x20/0x20 [ 35.002714] ? locks_remove_file+0x3fa/0x5a0 [ 35.002719] ep_free+0x13f/0x320 [ 35.002723] ? ep_remove+0x800/0x800 [ 35.002726] ? fsnotify_first_mark+0x2b0/0x2b0 [ 35.002730] ? ep_free+0x320/0x320 [ 35.002734] ep_eventpoll_release+0x44/0x60 [ 35.002737] __fput+0x327/0x7e0 [ 35.002742] ? fput+0x140/0x140 [ 35.002746] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.002751] ____fput+0x15/0x20 [ 35.002754] task_work_run+0x199/0x270 [ 35.002759] ? task_work_cancel+0x210/0x210 [ 35.002763] ? _raw_spin_unlock+0x22/0x30 [ 35.002766] ? switch_task_namespaces+0x87/0xc0 [ 35.002770] do_exit+0x9bb/0x1ad0 [ 35.002775] ? binder_ioctl+0x491/0x1417 [ 35.002778] ? mm_update_next_owner+0x930/0x930 [ 35.002783] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 35.002787] ? avc_ss_reset+0x110/0x110 [ 35.002791] ? mutex_unlock+0xd/0x10 [ 35.002795] ? SyS_epoll_ctl+0x30a/0x1a80 [ 35.002814] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.002817] ? up_read+0x1a/0x40 [ 35.002821] ? rcu_note_context_switch+0x710/0x710 [ 35.002824] ? __fd_install+0x288/0x740 [ 35.002829] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 35.002832] ? do_vfs_ioctl+0x486/0x1520 [ 35.002835] ? _cond_resched+0x14/0x30 [ 35.002839] ? ioctl_preallocate+0x2b0/0x2b0 [ 35.002844] ? selinux_capable+0x40/0x40 [ 35.002847] ? __alloc_fd+0x750/0x750 [ 35.002852] do_group_exit+0x149/0x400 [ 35.002856] ? SyS_exit+0x30/0x30 [ 35.002860] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.002864] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.002868] SyS_exit_group+0x1d/0x20 [ 35.002872] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 35.002874] RIP: 0033:0x4429f8 [ 35.002876] RSP: 002b:00007ffeb8e2da58 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.002880] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 35.002882] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.002884] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.002886] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 35.002888] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 35.023405] Dumping ftrace buffer: [ 35.023408] (ftrace buffer empty) [ 35.023410] Kernel Offset: disabled [ 36.148408] Rebooting in 86400 seconds..