[....] Starting enhanced syslogd: rsyslogd[ 11.070771] audit: type=1400 audit(1514568540.683:5): avc: denied { syslog } for pid=2999 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: [ 16.333712] audit: type=1400 audit(1514568545.946: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.0.18' (ECDSA) to the list of known hosts. executing program [ 35.974372] audit: type=1400 audit(1514568565.587:7): avc: denied { map } for pid=3155 comm="syzkaller728242" path="/root/syzkaller728242712" 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.978344] ================================================================== [ 35.978358] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 35.978362] Read of size 8 at addr ffff8801ca3fed78 by task syzkaller728242/3155 [ 35.978363] [ 35.978369] CPU: 0 PID: 3155 Comm: syzkaller728242 Not tainted 4.15.0-rc4-next-20171221+ #78 [ 35.978372] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.978373] Call Trace: [ 35.978381] dump_stack+0x194/0x257 [ 35.978386] ? arch_local_irq_restore+0x53/0x53 [ 35.978394] ? show_regs_print_info+0x18/0x18 [ 35.978397] ? print_irqtrace_events+0x270/0x270 [ 35.978401] ? __lock_acquire+0x664/0x3e00 [ 35.978405] ? __lock_acquire+0x3d4d/0x3e00 [ 35.978412] print_address_description+0x73/0x250 [ 35.978416] ? __lock_acquire+0x3d4d/0x3e00 [ 35.978420] kasan_report+0x25b/0x340 [ 35.978425] __asan_report_load8_noabort+0x14/0x20 [ 35.978429] __lock_acquire+0x3d4d/0x3e00 [ 35.978433] ? __lock_acquire+0x664/0x3e00 [ 35.978436] ? lock_downgrade+0x980/0x980 [ 35.978440] ? lock_downgrade+0x980/0x980 [ 35.978446] ? remove_wait_queue+0x81/0x350 [ 35.978452] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.978456] ? __lock_acquire+0x664/0x3e00 [ 35.978459] ? check_noncircular+0x20/0x20 [ 35.978467] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.978472] ? lock_acquire+0x1d5/0x580 [ 35.978475] ? lock_acquire+0x1d5/0x580 [ 35.978481] ? ep_free+0xf4/0x320 [ 35.978487] ? lock_release+0xa40/0xa40 [ 35.978493] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.978497] ? print_irqtrace_events+0x270/0x270 [ 35.978503] ? rcu_note_context_switch+0x710/0x710 [ 35.978508] ? __might_sleep+0x95/0x190 [ 35.978511] ? ep_free+0xf4/0x320 [ 35.978519] ? __mutex_lock+0x16f/0x1a80 [ 35.978522] ? ep_free+0xf4/0x320 [ 35.978526] ? print_irqtrace_events+0x270/0x270 [ 35.978529] ? ep_free+0xf4/0x320 [ 35.978534] lock_acquire+0x1d5/0x580 [ 35.978537] ? lock_acquire+0x1d5/0x580 [ 35.978541] ? remove_wait_queue+0x81/0x350 [ 35.978544] ? __lock_acquire+0x664/0x3e00 [ 35.978549] ? lock_release+0xa40/0xa40 [ 35.978555] ? lock_acquire+0x1d5/0x580 [ 35.978558] ? lock_acquire+0x1d5/0x580 [ 35.978562] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 35.978567] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.978571] ? remove_wait_queue+0x81/0x350 [ 35.978575] remove_wait_queue+0x81/0x350 [ 35.978580] ? add_wait_queue+0x290/0x290 [ 35.978584] ? rcutorture_record_progress+0x10/0x10 [ 35.978590] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 35.978596] ? __kernel_text_address+0xd/0x40 [ 35.978601] ? clear_tfile_check_list+0x370/0x370 [ 35.978605] ? check_noncircular+0x20/0x20 [ 35.978611] ? locks_remove_file+0x3fa/0x5a0 [ 35.978617] ep_free+0x13f/0x320 [ 35.978621] ? ep_remove+0x800/0x800 [ 35.978624] ? fsnotify_first_mark+0x2b0/0x2b0 [ 35.978629] ? ep_free+0x320/0x320 [ 35.978632] ep_eventpoll_release+0x44/0x60 [ 35.978637] __fput+0x327/0x7e0 [ 35.978643] ? fput+0x140/0x140 [ 35.978647] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.978652] ____fput+0x15/0x20 [ 35.978656] task_work_run+0x199/0x270 [ 35.978661] ? task_work_cancel+0x210/0x210 [ 35.978664] ? _raw_spin_unlock+0x22/0x30 [ 35.978668] ? switch_task_namespaces+0x87/0xc0 [ 35.978674] do_exit+0x9bb/0x1ad0 [ 35.978680] ? binder_ioctl+0x491/0x1417 [ 35.978684] ? mm_update_next_owner+0x930/0x930 [ 35.978689] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 35.978696] ? avc_ss_reset+0x110/0x110 [ 35.978700] ? mutex_unlock+0xd/0x10 [ 35.978703] ? SyS_epoll_ctl+0x30a/0x1a80 [ 35.978715] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.978718] ? up_read+0x1a/0x40 [ 35.978723] ? rcu_note_context_switch+0x710/0x710 [ 35.978726] ? __fd_install+0x288/0x740 [ 35.978732] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 35.978736] ? do_vfs_ioctl+0x486/0x1520 [ 35.978739] ? _cond_resched+0x14/0x30 [ 35.978744] ? ioctl_preallocate+0x2b0/0x2b0 [ 35.978748] ? selinux_capable+0x40/0x40 [ 35.978752] ? __alloc_fd+0x750/0x750 [ 35.978758] do_group_exit+0x149/0x400 [ 35.978762] ? SyS_exit+0x30/0x30 [ 35.978766] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.978772] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.978776] SyS_exit_group+0x1d/0x20 [ 35.978780] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 35.978784] RIP: 0033:0x4429f8 [ 35.978786] RSP: 002b:00007ffc8109b4b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.978790] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 35.978792] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.978795] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.978796] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 35.978798] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 35.978804] [ 35.978806] Allocated by task 3155: [ 35.978810] save_stack+0x43/0xd0 [ 35.978813] kasan_kmalloc+0xad/0xe0 [ 35.978816] kmem_cache_alloc_trace+0x136/0x750 [ 35.978819] binder_get_thread+0x1cf/0x870 [ 35.978822] binder_poll+0x8c/0x390 [ 35.978825] ep_item_poll.isra.10+0xf2/0x320 [ 35.978827] ep_insert+0x6a2/0x1ac0 [ 35.978830] SyS_epoll_ctl+0x12bf/0x1a80 [ 35.978833] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 35.978834] [ 35.978835] Freed by task 3155: [ 35.978838] save_stack+0x43/0xd0 [ 35.978841] kasan_slab_free+0x71/0xc0 [ 35.978843] kfree+0xd6/0x260 [ 35.978846] binder_thread_dec_tmpref+0x27f/0x310 [ 35.978849] binder_thread_release+0x27d/0x540 [ 35.978851] binder_ioctl+0xc02/0x1417 [ 35.978854] do_vfs_ioctl+0x1b1/0x1520 [ 35.978856] SyS_ioctl+0x8f/0xc0 [ 35.978859] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 35.978860] [ 35.978863] The buggy address belongs to the object at ffff8801ca3fecc0 [ 35.978863] which belongs to the cache kmalloc-512 of size 512 [ 35.978866] The buggy address is located 184 bytes inside of [ 35.978866] 512-byte region [ffff8801ca3fecc0, ffff8801ca3feec0) [ 35.978867] The buggy address belongs to the page: [ 35.978871] page:00000000d60c829b count:1 mapcount:0 mapping:00000000e0f5b2b7 index:0x0 [ 35.978875] flags: 0x2fffc0000000100(slab) [ 35.978881] raw: 02fffc0000000100 ffff8801ca3fe040 0000000000000000 0000000100000006 [ 35.978885] raw: ffffea0007272aa0 ffffea000729a120 ffff8801dac00940 0000000000000000 [ 35.978887] page dumped because: kasan: bad access detected [ 35.978887] [ 35.978888] Memory state around the buggy address: [ 35.978891] ffff8801ca3fec00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 35.978894] ffff8801ca3fec80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.978896] >ffff8801ca3fed00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.978898] ^ [ 35.978900] ffff8801ca3fed80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.978903] ffff8801ca3fee00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.978904] ================================================================== [ 35.978905] Disabling lock debugging due to kernel taint [ 35.978908] Kernel panic - not syncing: panic_on_warn set ... [ 35.978908] [ 35.978912] CPU: 0 PID: 3155 Comm: syzkaller728242 Tainted: G B 4.15.0-rc4-next-20171221+ #78 [ 35.978914] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.978915] Call Trace: [ 35.978918] dump_stack+0x194/0x257 [ 35.978923] ? arch_local_irq_restore+0x53/0x53 [ 35.978926] ? kasan_end_report+0x32/0x50 [ 35.978930] ? lock_downgrade+0x980/0x980 [ 35.978933] ? vsnprintf+0x1ed/0x1900 [ 35.978937] ? __lock_acquire+0x3d30/0x3e00 [ 35.978941] panic+0x1e4/0x41c [ 35.978944] ? refcount_error_report+0x214/0x214 [ 35.978949] ? add_taint+0x40/0x50 [ 35.978952] ? add_taint+0x1c/0x50 [ 35.978956] ? __lock_acquire+0x3d4d/0x3e00 [ 35.978959] kasan_end_report+0x50/0x50 [ 35.978963] kasan_report+0x144/0x340 [ 35.978967] __asan_report_load8_noabort+0x14/0x20 [ 35.978971] __lock_acquire+0x3d4d/0x3e00 [ 35.978974] ? __lock_acquire+0x664/0x3e00 [ 35.978978] ? lock_downgrade+0x980/0x980 [ 35.978981] ? lock_downgrade+0x980/0x980 [ 35.978985] ? remove_wait_queue+0x81/0x350 [ 35.978990] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.978994] ? __lock_acquire+0x664/0x3e00 [ 35.978997] ? check_noncircular+0x20/0x20 [ 35.979004] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.979008] ? lock_acquire+0x1d5/0x580 [ 35.979015] ? lock_acquire+0x1d5/0x580 [ 35.979018] ? ep_free+0xf4/0x320 [ 35.979023] ? lock_release+0xa40/0xa40 [ 35.979027] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.979030] ? print_irqtrace_events+0x270/0x270 [ 35.979034] ? rcu_note_context_switch+0x710/0x710 [ 35.979039] ? __might_sleep+0x95/0x190 [ 35.979042] ? ep_free+0xf4/0x320 [ 35.979046] ? __mutex_lock+0x16f/0x1a80 [ 35.979049] ? ep_free+0xf4/0x320 [ 35.979053] ? print_irqtrace_events+0x270/0x270 [ 35.979056] ? ep_free+0xf4/0x320 [ 35.979060] lock_acquire+0x1d5/0x580 [ 35.979064] ? lock_acquire+0x1d5/0x580 [ 35.979067] ? remove_wait_queue+0x81/0x350 [ 35.979071] ? __lock_acquire+0x664/0x3e00 [ 35.979075] ? lock_release+0xa40/0xa40 [ 35.979080] ? lock_acquire+0x1d5/0x580 [ 35.979083] ? lock_acquire+0x1d5/0x580 [ 35.979087] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 35.979091] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.979095] ? remove_wait_queue+0x81/0x350 [ 35.979099] remove_wait_queue+0x81/0x350 [ 35.979103] ? add_wait_queue+0x290/0x290 [ 35.979107] ? rcutorture_record_progress+0x10/0x10 [ 35.979112] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 35.979116] ? __kernel_text_address+0xd/0x40 [ 35.979121] ? clear_tfile_check_list+0x370/0x370 [ 35.979125] ? check_noncircular+0x20/0x20 [ 35.979130] ? locks_remove_file+0x3fa/0x5a0 [ 35.979135] ep_free+0x13f/0x320 [ 35.979139] ? ep_remove+0x800/0x800 [ 35.979142] ? fsnotify_first_mark+0x2b0/0x2b0 [ 35.979146] ? ep_free+0x320/0x320 [ 35.979150] ep_eventpoll_release+0x44/0x60 [ 35.979153] __fput+0x327/0x7e0 [ 35.979158] ? fput+0x140/0x140 [ 35.979162] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.979171] ____fput+0x15/0x20 [ 35.979175] task_work_run+0x199/0x270 [ 35.979179] ? task_work_cancel+0x210/0x210 [ 35.979183] ? _raw_spin_unlock+0x22/0x30 [ 35.979187] ? switch_task_namespaces+0x87/0xc0 [ 35.979191] do_exit+0x9bb/0x1ad0 [ 35.979195] ? binder_ioctl+0x491/0x1417 [ 35.979199] ? mm_update_next_owner+0x930/0x930 [ 35.979203] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 35.979208] ? avc_ss_reset+0x110/0x110 [ 35.979212] ? mutex_unlock+0xd/0x10 [ 35.979215] ? SyS_epoll_ctl+0x30a/0x1a80 [ 35.979225] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.979228] ? up_read+0x1a/0x40 [ 35.979232] ? rcu_note_context_switch+0x710/0x710 [ 35.979235] ? __fd_install+0x288/0x740 [ 35.979240] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 35.979243] ? do_vfs_ioctl+0x486/0x1520 [ 35.979246] ? _cond_resched+0x14/0x30 [ 35.979251] ? ioctl_preallocate+0x2b0/0x2b0 [ 35.979255] ? selinux_capable+0x40/0x40 [ 35.979259] ? __alloc_fd+0x750/0x750 [ 35.979264] do_group_exit+0x149/0x400 [ 35.979268] ? SyS_exit+0x30/0x30 [ 35.979272] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.979276] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.979281] SyS_exit_group+0x1d/0x20 [ 35.979284] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 35.979287] RIP: 0033:0x4429f8 [ 35.979289] RSP: 002b:00007ffc8109b4b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.979292] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 35.979294] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.979296] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.979298] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 35.979300] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 36.000278] Dumping ftrace buffer: [ 36.000282] (ftrace buffer empty) [ 36.000284] Kernel Offset: disabled [ 37.128351] Rebooting in 86400 seconds..