[....] Starting enhanced syslogd: rsyslogd[ 13.611192] audit: type=1400 audit(1515935474.305:5): avc: denied { syslog } for pid=3516 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: [ 17.934157] audit: type=1400 audit(1515935478.628:6): avc: denied { map } for pid=3654 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.228' (ECDSA) to the list of known hosts. executing program [ 29.419147] audit: type=1400 audit(1515935490.113:7): avc: denied { map } for pid=3669 comm="syzkaller716769" path="/root/syzkaller716769757" 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 [ 29.423919] ================================================================== [ 29.423935] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 29.423939] Read of size 8 at addr ffff8801d97e5870 by task syzkaller716769/3669 [ 29.423941] [ 29.423947] CPU: 1 PID: 3669 Comm: syzkaller716769 Not tainted 4.15.0-rc7+ #261 [ 29.423950] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.423953] Call Trace: [ 29.423963] dump_stack+0x194/0x257 [ 29.423971] ? arch_local_irq_restore+0x53/0x53 [ 29.423978] ? show_regs_print_info+0x18/0x18 [ 29.423984] ? print_irqtrace_events+0x270/0x270 [ 29.423990] ? __lock_acquire+0x664/0x3e00 [ 29.423997] ? __lock_acquire+0x3d4d/0x3e00 [ 29.424015] print_address_description+0x73/0x250 [ 29.424022] ? __lock_acquire+0x3d4d/0x3e00 [ 29.424028] kasan_report+0x25b/0x340 [ 29.424036] __asan_report_load8_noabort+0x14/0x20 [ 29.424042] __lock_acquire+0x3d4d/0x3e00 [ 29.424048] ? __lock_acquire+0x664/0x3e00 [ 29.424053] ? lock_downgrade+0x980/0x980 [ 29.424058] ? lock_downgrade+0x980/0x980 [ 29.424068] ? remove_wait_queue+0x81/0x350 [ 29.424077] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.424084] ? __lock_acquire+0x664/0x3e00 [ 29.424089] ? check_noncircular+0x20/0x20 [ 29.424102] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.424109] ? lock_acquire+0x1d5/0x580 [ 29.424115] ? lock_acquire+0x1d5/0x580 [ 29.424122] ? ep_free+0xf4/0x320 [ 29.424131] ? lock_release+0xa40/0xa40 [ 29.424138] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.424144] ? print_irqtrace_events+0x270/0x270 [ 29.424152] ? rcu_note_context_switch+0x710/0x710 [ 29.424160] ? __might_sleep+0x95/0x190 [ 29.424166] ? ep_free+0xf4/0x320 [ 29.424173] ? __mutex_lock+0x16f/0x1a80 [ 29.424178] ? ep_free+0xf4/0x320 [ 29.424185] ? print_irqtrace_events+0x270/0x270 [ 29.424190] ? ep_free+0xf4/0x320 [ 29.424199] lock_acquire+0x1d5/0x580 [ 29.424204] ? lock_acquire+0x1d5/0x580 [ 29.424210] ? remove_wait_queue+0x81/0x350 [ 29.424216] ? __lock_acquire+0x664/0x3e00 [ 29.424223] ? lock_release+0xa40/0xa40 [ 29.424233] ? lock_acquire+0x1d5/0x580 [ 29.424238] ? lock_acquire+0x1d5/0x580 [ 29.424244] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 29.424254] _raw_spin_lock_irqsave+0x96/0xc0 [ 29.424259] ? remove_wait_queue+0x81/0x350 [ 29.424266] remove_wait_queue+0x81/0x350 [ 29.424274] ? add_wait_queue+0x290/0x290 [ 29.424279] ? rcutorture_record_progress+0x10/0x10 [ 29.424290] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 29.424298] ? __kernel_text_address+0xd/0x40 [ 29.424306] ? clear_tfile_check_list+0x370/0x370 [ 29.424314] ? check_noncircular+0x20/0x20 [ 29.424324] ? locks_remove_file+0x3fa/0x5a0 [ 29.424333] ep_free+0x13f/0x320 [ 29.424339] ? ep_remove+0x800/0x800 [ 29.424345] ? fsnotify_first_mark+0x2b0/0x2b0 [ 29.424353] ? ep_free+0x320/0x320 [ 29.424359] ep_eventpoll_release+0x44/0x60 [ 29.424367] __fput+0x327/0x7e0 [ 29.424375] ? fput+0x140/0x140 [ 29.424382] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.424391] ____fput+0x15/0x20 [ 29.424397] task_work_run+0x199/0x270 [ 29.424405] ? task_work_cancel+0x210/0x210 [ 29.424412] ? _raw_spin_unlock+0x22/0x30 [ 29.424418] ? switch_task_namespaces+0x87/0xc0 [ 29.424427] do_exit+0x9bb/0x1ad0 [ 29.424436] ? binder_ioctl+0x571/0x1417 [ 29.424443] ? mm_update_next_owner+0x930/0x930 [ 29.424451] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 29.424461] ? avc_ss_reset+0x110/0x110 [ 29.424466] ? mutex_unlock+0xd/0x10 [ 29.424472] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 29.424492] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.424497] ? up_read+0x1a/0x40 [ 29.424504] ? rcu_note_context_switch+0x710/0x710 [ 29.424509] ? __fd_install+0x288/0x740 [ 29.424518] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 29.424524] ? do_vfs_ioctl+0x486/0x1520 [ 29.424529] ? _cond_resched+0x14/0x30 [ 29.424537] ? ioctl_preallocate+0x2b0/0x2b0 [ 29.424545] ? selinux_capable+0x40/0x40 [ 29.424551] ? __alloc_fd+0x750/0x750 [ 29.424560] do_group_exit+0x149/0x400 [ 29.424566] ? SyS_exit+0x30/0x30 [ 29.424573] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.424581] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.424589] SyS_exit_group+0x1d/0x20 [ 29.424596] entry_SYSCALL_64_fastpath+0x23/0x9a [ 29.424601] RIP: 0033:0x442a08 [ 29.424604] RSP: 002b:00007fffceeb9f28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 29.424611] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000442a08 [ 29.424614] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 29.424617] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 29.424621] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a50 [ 29.424624] R13: 0000000000401ae0 R14: 0000000000000000 R15: 0000000000000000 [ 29.424633] [ 29.424635] Allocated by task 3669: [ 29.424641] save_stack+0x43/0xd0 [ 29.424646] kasan_kmalloc+0xad/0xe0 [ 29.424651] kmem_cache_alloc_trace+0x136/0x750 [ 29.424656] binder_get_thread+0x1cf/0x870 [ 29.424661] binder_poll+0x8c/0x390 [ 29.424666] ep_item_poll.isra.10+0xec/0x320 [ 29.424671] ep_insert+0x6a3/0x1b10 [ 29.424676] SyS_epoll_ctl+0x12e4/0x1ab0 [ 29.424682] entry_SYSCALL_64_fastpath+0x23/0x9a [ 29.424683] [ 29.424685] Freed by task 3669: [ 29.424690] save_stack+0x43/0xd0 [ 29.424694] kasan_slab_free+0x71/0xc0 [ 29.424698] kfree+0xd6/0x260 [ 29.424704] binder_thread_dec_tmpref+0x27f/0x310 [ 29.424709] binder_thread_release+0x27d/0x540 [ 29.424715] binder_ioctl+0xc02/0x1417 [ 29.424719] do_vfs_ioctl+0x1b1/0x1520 [ 29.424723] SyS_ioctl+0x8f/0xc0 [ 29.424729] entry_SYSCALL_64_fastpath+0x23/0x9a [ 29.424730] [ 29.424734] The buggy address belongs to the object at ffff8801d97e57c0 [ 29.424734] which belongs to the cache kmalloc-512 of size 512 [ 29.424739] The buggy address is located 176 bytes inside of [ 29.424739] 512-byte region [ffff8801d97e57c0, ffff8801d97e59c0) [ 29.424741] The buggy address belongs to the page: [ 29.424746] page:ffffea000765f940 count:1 mapcount:0 mapping:ffff8801d97e5040 index:0x0 [ 29.424751] flags: 0x2fffc0000000100(slab) [ 29.424760] raw: 02fffc0000000100 ffff8801d97e5040 0000000000000000 0000000100000006 [ 29.424767] raw: ffffea0007641060 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 29.424769] page dumped because: kasan: bad access detected [ 29.424770] [ 29.424771] Memory state around the buggy address: [ 29.424776] ffff8801d97e5700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.424780] ffff8801d97e5780: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 29.424785] >ffff8801d97e5800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.424787] ^ [ 29.424791] ffff8801d97e5880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.424795] ffff8801d97e5900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.424797] ================================================================== [ 29.424799] Disabling lock debugging due to kernel taint [ 29.424802] Kernel panic - not syncing: panic_on_warn set ... [ 29.424802] [ 29.424808] CPU: 1 PID: 3669 Comm: syzkaller716769 Tainted: G B 4.15.0-rc7+ #261 [ 29.424811] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.424812] Call Trace: [ 29.424819] dump_stack+0x194/0x257 [ 29.424826] ? arch_local_irq_restore+0x53/0x53 [ 29.424831] ? kasan_end_report+0x32/0x50 [ 29.424838] ? lock_downgrade+0x980/0x980 [ 29.424844] ? vsnprintf+0x1ed/0x1900 [ 29.424851] ? __lock_acquire+0x3cb0/0x3e00 [ 29.424856] panic+0x1e4/0x41c [ 29.424862] ? refcount_error_report+0x214/0x214 [ 29.424869] ? add_taint+0x40/0x50 [ 29.424874] ? add_taint+0x1c/0x50 [ 29.424881] ? __lock_acquire+0x3d4d/0x3e00 [ 29.424887] kasan_end_report+0x50/0x50 [ 29.424893] kasan_report+0x144/0x340 [ 29.424900] __asan_report_load8_noabort+0x14/0x20 [ 29.424906] __lock_acquire+0x3d4d/0x3e00 [ 29.424912] ? __lock_acquire+0x664/0x3e00 [ 29.424917] ? lock_downgrade+0x980/0x980 [ 29.424922] ? lock_downgrade+0x980/0x980 [ 29.424930] ? remove_wait_queue+0x81/0x350 [ 29.424939] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.424945] ? __lock_acquire+0x664/0x3e00 [ 29.424950] ? check_noncircular+0x20/0x20 [ 29.424963] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.424970] ? lock_acquire+0x1d5/0x580 [ 29.424975] ? lock_acquire+0x1d5/0x580 [ 29.424980] ? ep_free+0xf4/0x320 [ 29.424989] ? lock_release+0xa40/0xa40 [ 29.424995] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.425001] ? print_irqtrace_events+0x270/0x270 [ 29.425012] ? rcu_note_context_switch+0x710/0x710 [ 29.425019] ? __might_sleep+0x95/0x190 [ 29.425025] ? ep_free+0xf4/0x320 [ 29.425031] ? __mutex_lock+0x16f/0x1a80 [ 29.425035] ? ep_free+0xf4/0x320 [ 29.425042] ? print_irqtrace_events+0x270/0x270 [ 29.425047] ? ep_free+0xf4/0x320 [ 29.425055] lock_acquire+0x1d5/0x580 [ 29.425061] ? lock_acquire+0x1d5/0x580 [ 29.425066] ? remove_wait_queue+0x81/0x350 [ 29.425072] ? __lock_acquire+0x664/0x3e00 [ 29.425079] ? lock_release+0xa40/0xa40 [ 29.425088] ? lock_acquire+0x1d5/0x580 [ 29.425093] ? lock_acquire+0x1d5/0x580 [ 29.425100] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 29.425107] _raw_spin_lock_irqsave+0x96/0xc0 [ 29.425113] ? remove_wait_queue+0x81/0x350 [ 29.425119] remove_wait_queue+0x81/0x350 [ 29.425127] ? add_wait_queue+0x290/0x290 [ 29.425133] ? rcutorture_record_progress+0x10/0x10 [ 29.425142] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 29.425149] ? __kernel_text_address+0xd/0x40 [ 29.425157] ? clear_tfile_check_list+0x370/0x370 [ 29.425164] ? check_noncircular+0x20/0x20 [ 29.425172] ? locks_remove_file+0x3fa/0x5a0 [ 29.425182] ep_free+0x13f/0x320 [ 29.425188] ? ep_remove+0x800/0x800 [ 29.425193] ? fsnotify_first_mark+0x2b0/0x2b0 [ 29.425201] ? ep_free+0x320/0x320 [ 29.425207] ep_eventpoll_release+0x44/0x60 [ 29.425212] __fput+0x327/0x7e0 [ 29.425221] ? fput+0x140/0x140 [ 29.425228] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.425236] ____fput+0x15/0x20 [ 29.425242] task_work_run+0x199/0x270 [ 29.425250] ? task_work_cancel+0x210/0x210 [ 29.425256] ? _raw_spin_unlock+0x22/0x30 [ 29.425262] ? switch_task_namespaces+0x87/0xc0 [ 29.425270] do_exit+0x9bb/0x1ad0 [ 29.425277] ? binder_ioctl+0x571/0x1417 [ 29.425283] ? mm_update_next_owner+0x930/0x930 [ 29.425292] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 29.425300] ? avc_ss_reset+0x110/0x110 [ 29.425306] ? mutex_unlock+0xd/0x10 [ 29.425311] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 29.425329] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.425334] ? up_read+0x1a/0x40 [ 29.425341] ? rcu_note_context_switch+0x710/0x710 [ 29.425346] ? __fd_install+0x288/0x740 [ 29.425355] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 29.425360] ? do_vfs_ioctl+0x486/0x1520 [ 29.425365] ? _cond_resched+0x14/0x30 [ 29.425373] ? ioctl_preallocate+0x2b0/0x2b0 [ 29.425380] ? selinux_capable+0x40/0x40 [ 29.425386] ? __alloc_fd+0x750/0x750 [ 29.425394] do_group_exit+0x149/0x400 [ 29.425401] ? SyS_exit+0x30/0x30 [ 29.425407] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.425414] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.425421] SyS_exit_group+0x1d/0x20 [ 29.425428] entry_SYSCALL_64_fastpath+0x23/0x9a [ 29.425432] RIP: 0033:0x442a08 [ 29.425435] RSP: 002b:00007fffceeb9f28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 29.425440] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000442a08 [ 29.425443] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 29.425447] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 29.425450] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a50 [ 29.425453] R13: 0000000000401ae0 R14: 0000000000000000 R15: 0000000000000000 [ 29.445452] Dumping ftrace buffer: [ 29.445456] (ftrace buffer empty) [ 29.445459] Kernel Offset: disabled [ 30.571572] Rebooting in 86400 seconds..