[....] Starting enhanced syslogd: rsyslogd[ 9.811040] audit: type=1400 audit(1514426551.448:5): avc: denied { syslog } for pid=2989 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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] 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: [ 11.883579] audit: type=1400 audit(1514426553.521:6): avc: denied { map } for pid=3128 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.48' (ECDSA) to the list of known hosts. executing program [ 26.986372] audit: type=1400 audit(1514426568.624:7): avc: denied { map } for pid=3145 comm="syzkaller353210" path="/root/syzkaller353210822" 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 [ 26.990602] ================================================================== [ 26.990612] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 26.990616] Read of size 8 at addr ffff8801c9b50ab8 by task syzkaller353210/3145 [ 26.990616] [ 26.990621] CPU: 0 PID: 3145 Comm: syzkaller353210 Not tainted 4.15.0-rc4-next-20171221+ #78 [ 26.990624] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.990625] Call Trace: [ 26.990631] dump_stack+0x194/0x257 [ 26.990636] ? arch_local_irq_restore+0x53/0x53 [ 26.990642] ? show_regs_print_info+0x18/0x18 [ 26.990646] ? print_irqtrace_events+0x270/0x270 [ 26.990650] ? __lock_acquire+0x664/0x3e00 [ 26.990654] ? __lock_acquire+0x3d4d/0x3e00 [ 26.990659] print_address_description+0x73/0x250 [ 26.990663] ? __lock_acquire+0x3d4d/0x3e00 [ 26.990667] kasan_report+0x25b/0x340 [ 26.990672] __asan_report_load8_noabort+0x14/0x20 [ 26.990676] __lock_acquire+0x3d4d/0x3e00 [ 26.990679] ? __lock_acquire+0x664/0x3e00 [ 26.990683] ? lock_downgrade+0x980/0x980 [ 26.990686] ? lock_downgrade+0x980/0x980 [ 26.990692] ? remove_wait_queue+0x81/0x350 [ 26.990697] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.990701] ? __lock_acquire+0x664/0x3e00 [ 26.990705] ? check_noncircular+0x20/0x20 [ 26.990712] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.990717] ? lock_acquire+0x1d5/0x580 [ 26.990720] ? lock_acquire+0x1d5/0x580 [ 26.990725] ? ep_free+0xf4/0x320 [ 26.990730] ? lock_release+0xa40/0xa40 [ 26.990736] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.990740] ? print_irqtrace_events+0x270/0x270 [ 26.990745] ? rcu_note_context_switch+0x710/0x710 [ 26.990749] ? __might_sleep+0x95/0x190 [ 26.990753] ? ep_free+0xf4/0x320 [ 26.990758] ? __mutex_lock+0x16f/0x1a80 [ 26.990761] ? ep_free+0xf4/0x320 [ 26.990766] ? print_irqtrace_events+0x270/0x270 [ 26.990768] ? ep_free+0xf4/0x320 [ 26.990774] lock_acquire+0x1d5/0x580 [ 26.990777] ? lock_acquire+0x1d5/0x580 [ 26.990780] ? remove_wait_queue+0x81/0x350 [ 26.990784] ? __lock_acquire+0x664/0x3e00 [ 26.990789] ? lock_release+0xa40/0xa40 [ 26.990794] ? lock_acquire+0x1d5/0x580 [ 26.990797] ? lock_acquire+0x1d5/0x580 [ 26.990801] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 26.990806] _raw_spin_lock_irqsave+0x96/0xc0 [ 26.990810] ? remove_wait_queue+0x81/0x350 [ 26.990814] remove_wait_queue+0x81/0x350 [ 26.990818] ? add_wait_queue+0x290/0x290 [ 26.990822] ? rcutorture_record_progress+0x10/0x10 [ 26.990828] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 26.990834] ? __kernel_text_address+0xd/0x40 [ 26.990839] ? clear_tfile_check_list+0x370/0x370 [ 26.990844] ? check_noncircular+0x20/0x20 [ 26.990850] ? locks_remove_file+0x3fa/0x5a0 [ 26.990855] ep_free+0x13f/0x320 [ 26.990859] ? ep_remove+0x800/0x800 [ 26.990862] ? fsnotify_first_mark+0x2b0/0x2b0 [ 26.990867] ? ep_free+0x320/0x320 [ 26.990871] ep_eventpoll_release+0x44/0x60 [ 26.990876] __fput+0x327/0x7e0 [ 26.990881] ? fput+0x140/0x140 [ 26.990885] ? _raw_spin_unlock_irq+0x27/0x70 [ 26.990890] ____fput+0x15/0x20 [ 26.990894] task_work_run+0x199/0x270 [ 26.990899] ? task_work_cancel+0x210/0x210 [ 26.990902] ? _raw_spin_unlock+0x22/0x30 [ 26.990906] ? switch_task_namespaces+0x87/0xc0 [ 26.990911] do_exit+0x9bb/0x1ad0 [ 26.990917] ? binder_ioctl+0x491/0x1417 [ 26.990921] ? mm_update_next_owner+0x930/0x930 [ 26.990926] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 26.990932] ? avc_ss_reset+0x110/0x110 [ 26.990936] ? mutex_unlock+0xd/0x10 [ 26.990939] ? SyS_epoll_ctl+0x30a/0x1a80 [ 26.990951] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.990954] ? up_read+0x1a/0x40 [ 26.990958] ? rcu_note_context_switch+0x710/0x710 [ 26.990962] ? __fd_install+0x288/0x740 [ 26.990967] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 26.990971] ? do_vfs_ioctl+0x486/0x1520 [ 26.990974] ? _cond_resched+0x14/0x30 [ 26.990979] ? ioctl_preallocate+0x2b0/0x2b0 [ 26.990984] ? selinux_capable+0x40/0x40 [ 26.990988] ? __alloc_fd+0x750/0x750 [ 26.990993] do_group_exit+0x149/0x400 [ 26.990997] ? SyS_exit+0x30/0x30 [ 26.991005] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.991011] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.991015] SyS_exit_group+0x1d/0x20 [ 26.991019] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.991023] RIP: 0033:0x4429f8 [ 26.991025] RSP: 002b:00007ffd44520008 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 26.991029] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 26.991031] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 26.991033] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 26.991035] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 26.991037] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 26.991043] [ 26.991044] Allocated by task 3145: [ 26.991048] save_stack+0x43/0xd0 [ 26.991051] kasan_kmalloc+0xad/0xe0 [ 26.991055] kmem_cache_alloc_trace+0x136/0x750 [ 26.991057] binder_get_thread+0x1cf/0x870 [ 26.991060] binder_poll+0x8c/0x390 [ 26.991063] ep_item_poll.isra.10+0xf2/0x320 [ 26.991065] ep_insert+0x6a2/0x1ac0 [ 26.991069] SyS_epoll_ctl+0x12bf/0x1a80 [ 26.991072] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.991072] [ 26.991074] Freed by task 3145: [ 26.991076] save_stack+0x43/0xd0 [ 26.991079] kasan_slab_free+0x71/0xc0 [ 26.991082] kfree+0xd6/0x260 [ 26.991085] binder_thread_dec_tmpref+0x27f/0x310 [ 26.991087] binder_thread_release+0x27d/0x540 [ 26.991090] binder_ioctl+0xc02/0x1417 [ 26.991092] do_vfs_ioctl+0x1b1/0x1520 [ 26.991095] SyS_ioctl+0x8f/0xc0 [ 26.991098] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.991099] [ 26.991102] The buggy address belongs to the object at ffff8801c9b50a00 [ 26.991102] which belongs to the cache kmalloc-512 of size 512 [ 26.991105] The buggy address is located 184 bytes inside of [ 26.991105] 512-byte region [ffff8801c9b50a00, ffff8801c9b50c00) [ 26.991106] The buggy address belongs to the page: [ 26.991109] page:000000003944f7a5 count:1 mapcount:0 mapping:00000000eba08cb6 index:0x0 [ 26.991113] flags: 0x2fffc0000000100(slab) [ 26.991118] raw: 02fffc0000000100 ffff8801c9b50000 0000000000000000 0000000100000006 [ 26.991123] raw: ffffea000726d560 ffffea000722f7e0 ffff8801dac00940 0000000000000000 [ 26.991124] page dumped because: kasan: bad access detected [ 26.991125] [ 26.991126] Memory state around the buggy address: [ 26.991129] ffff8801c9b50980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.991131] ffff8801c9b50a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.991134] >ffff8801c9b50a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.991135] ^ [ 26.991138] ffff8801c9b50b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.991140] ffff8801c9b50b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.991141] ================================================================== [ 26.991142] Disabling lock debugging due to kernel taint [ 26.991145] Kernel panic - not syncing: panic_on_warn set ... [ 26.991145] [ 26.991148] CPU: 0 PID: 3145 Comm: syzkaller353210 Tainted: G B 4.15.0-rc4-next-20171221+ #78 [ 26.991150] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.991151] Call Trace: [ 26.991155] dump_stack+0x194/0x257 [ 26.991159] ? arch_local_irq_restore+0x53/0x53 [ 26.991162] ? kasan_end_report+0x32/0x50 [ 26.991166] ? lock_downgrade+0x980/0x980 [ 26.991169] ? vsnprintf+0x1ed/0x1900 [ 26.991173] ? __lock_acquire+0x3d30/0x3e00 [ 26.991177] panic+0x1e4/0x41c [ 26.991180] ? refcount_error_report+0x214/0x214 [ 26.991185] ? add_taint+0x40/0x50 [ 26.991188] ? add_taint+0x1c/0x50 [ 26.991192] ? __lock_acquire+0x3d4d/0x3e00 [ 26.991195] kasan_end_report+0x50/0x50 [ 26.991199] kasan_report+0x144/0x340 [ 26.991204] __asan_report_load8_noabort+0x14/0x20 [ 26.991207] __lock_acquire+0x3d4d/0x3e00 [ 26.991211] ? __lock_acquire+0x664/0x3e00 [ 26.991214] ? lock_downgrade+0x980/0x980 [ 26.991217] ? lock_downgrade+0x980/0x980 [ 26.991221] ? remove_wait_queue+0x81/0x350 [ 26.991227] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.991230] ? __lock_acquire+0x664/0x3e00 [ 26.991233] ? check_noncircular+0x20/0x20 [ 26.991240] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.991244] ? lock_acquire+0x1d5/0x580 [ 26.991248] ? lock_acquire+0x1d5/0x580 [ 26.991251] ? ep_free+0xf4/0x320 [ 26.991255] ? lock_release+0xa40/0xa40 [ 26.991259] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.991263] ? print_irqtrace_events+0x270/0x270 [ 26.991267] ? rcu_note_context_switch+0x710/0x710 [ 26.991271] ? __might_sleep+0x95/0x190 [ 26.991274] ? ep_free+0xf4/0x320 [ 26.991278] ? __mutex_lock+0x16f/0x1a80 [ 26.991281] ? ep_free+0xf4/0x320 [ 26.991285] ? print_irqtrace_events+0x270/0x270 [ 26.991288] ? ep_free+0xf4/0x320 [ 26.991293] lock_acquire+0x1d5/0x580 [ 26.991296] ? lock_acquire+0x1d5/0x580 [ 26.991299] ? remove_wait_queue+0x81/0x350 [ 26.991303] ? __lock_acquire+0x664/0x3e00 [ 26.991307] ? lock_release+0xa40/0xa40 [ 26.991312] ? lock_acquire+0x1d5/0x580 [ 26.991315] ? lock_acquire+0x1d5/0x580 [ 26.991319] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 26.991323] _raw_spin_lock_irqsave+0x96/0xc0 [ 26.991326] ? remove_wait_queue+0x81/0x350 [ 26.991330] remove_wait_queue+0x81/0x350 [ 26.991335] ? add_wait_queue+0x290/0x290 [ 26.991338] ? rcutorture_record_progress+0x10/0x10 [ 26.991344] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 26.991348] ? __kernel_text_address+0xd/0x40 [ 26.991352] ? clear_tfile_check_list+0x370/0x370 [ 26.991357] ? check_noncircular+0x20/0x20 [ 26.991361] ? locks_remove_file+0x3fa/0x5a0 [ 26.991367] ep_free+0x13f/0x320 [ 26.991370] ? ep_remove+0x800/0x800 [ 26.991373] ? fsnotify_first_mark+0x2b0/0x2b0 [ 26.991378] ? ep_free+0x320/0x320 [ 26.991381] ep_eventpoll_release+0x44/0x60 [ 26.991385] __fput+0x327/0x7e0 [ 26.991389] ? fput+0x140/0x140 [ 26.991393] ? _raw_spin_unlock_irq+0x27/0x70 [ 26.991398] ____fput+0x15/0x20 [ 26.991402] task_work_run+0x199/0x270 [ 26.991406] ? task_work_cancel+0x210/0x210 [ 26.991410] ? _raw_spin_unlock+0x22/0x30 [ 26.991413] ? switch_task_namespaces+0x87/0xc0 [ 26.991418] do_exit+0x9bb/0x1ad0 [ 26.991422] ? binder_ioctl+0x491/0x1417 [ 26.991425] ? mm_update_next_owner+0x930/0x930 [ 26.991430] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 26.991434] ? avc_ss_reset+0x110/0x110 [ 26.991438] ? mutex_unlock+0xd/0x10 [ 26.991441] ? SyS_epoll_ctl+0x30a/0x1a80 [ 26.991452] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.991455] ? up_read+0x1a/0x40 [ 26.991477] ? rcu_note_context_switch+0x710/0x710 [ 26.991480] ? __fd_install+0x288/0x740 [ 26.991485] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 26.991488] ? do_vfs_ioctl+0x486/0x1520 [ 26.991491] ? _cond_resched+0x14/0x30 [ 26.991496] ? ioctl_preallocate+0x2b0/0x2b0 [ 26.991502] ? selinux_capable+0x40/0x40 [ 26.991506] ? __alloc_fd+0x750/0x750 [ 26.991511] do_group_exit+0x149/0x400 [ 26.991515] ? SyS_exit+0x30/0x30 [ 26.991519] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.991523] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.991528] SyS_exit_group+0x1d/0x20 [ 26.991531] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.991534] RIP: 0033:0x4429f8 [ 26.991536] RSP: 002b:00007ffd44520008 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 26.991539] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 26.991541] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 26.991543] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 26.991545] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 26.991547] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 27.012254] Dumping ftrace buffer: [ 27.012257] (ftrace buffer empty) [ 27.012259] Kernel Offset: disabled [ 28.136348] Rebooting in 86400 seconds..