[....] Starting enhanced syslogd: rsyslogd[ 11.082917] audit: type=1400 audit(1514403081.984: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: [ 15.899648] audit: type=1400 audit(1514403086.801: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.247' (ECDSA) to the list of known hosts. executing program [ 22.107227] audit: type=1400 audit(1514403093.009:7): avc: denied { map } for pid=3148 comm="syzkaller866338" path="/root/syzkaller866338599" 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 [ 22.114297] ================================================================== [ 22.114313] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 22.114319] Read of size 8 at addr ffff8801c8c8baf0 by task syzkaller866338/3148 [ 22.114320] [ 22.114328] CPU: 0 PID: 3148 Comm: syzkaller866338 Not tainted 4.15.0-rc5+ #238 [ 22.114331] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.114334] Call Trace: [ 22.114342] dump_stack+0x194/0x257 [ 22.114350] ? arch_local_irq_restore+0x53/0x53 [ 22.114357] ? show_regs_print_info+0x18/0x18 [ 22.114366] ? __lock_acquire+0x3d4d/0x3e00 [ 22.114373] print_address_description+0x73/0x250 [ 22.114379] ? __lock_acquire+0x3d4d/0x3e00 [ 22.114385] kasan_report+0x25b/0x340 [ 22.114393] __asan_report_load8_noabort+0x14/0x20 [ 22.114398] __lock_acquire+0x3d4d/0x3e00 [ 22.114405] ? print_irqtrace_events+0x270/0x270 [ 22.114412] ? unwind_get_return_address+0x61/0xa0 [ 22.114426] ? remove_wait_queue+0x81/0x350 [ 22.114435] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.114441] ? __lock_acquire+0x664/0x3e00 [ 22.114448] ? print_irqtrace_events+0x270/0x270 [ 22.114454] ? __lock_acquire+0x664/0x3e00 [ 22.114464] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.114473] ? __lock_acquire+0x664/0x3e00 [ 22.114479] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.114484] ? __lock_acquire+0x664/0x3e00 [ 22.114490] ? check_noncircular+0x20/0x20 [ 22.114498] ? check_noncircular+0x20/0x20 [ 22.114505] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.114510] ? __lock_acquire+0x664/0x3e00 [ 22.114516] ? check_noncircular+0x20/0x20 [ 22.114529] lock_acquire+0x1d5/0x580 [ 22.114534] ? lock_acquire+0x1d5/0x580 [ 22.114540] ? remove_wait_queue+0x81/0x350 [ 22.114548] ? lock_release+0xa40/0xa40 [ 22.114553] ? print_irqtrace_events+0x270/0x270 [ 22.114559] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.114567] ? lock_acquire+0x1d5/0x580 [ 22.114573] ? lock_acquire+0x1d5/0x580 [ 22.114579] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.114588] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.114594] ? remove_wait_queue+0x81/0x350 [ 22.114600] remove_wait_queue+0x81/0x350 [ 22.114605] ? eventpoll_release_file+0xba/0x140 [ 22.114612] ? add_wait_queue+0x290/0x290 [ 22.114619] ? rcutorture_record_progress+0x10/0x10 [ 22.114625] ? mutex_lock_io_nested+0x1900/0x1900 [ 22.114634] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.114640] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.114647] ? clear_tfile_check_list+0x370/0x370 [ 22.114654] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.114662] ? rcutorture_record_progress+0x10/0x10 [ 22.114671] ? is_bpf_text_address+0xa4/0x120 [ 22.114678] ep_remove+0xcd/0x800 [ 22.114684] ? unwind_get_return_address+0x61/0xa0 [ 22.114691] ? ep_destroy_wakeup_source+0x240/0x240 [ 22.114697] ? check_noncircular+0x20/0x20 [ 22.114703] ? check_noncircular+0x20/0x20 [ 22.114714] ? fsnotify+0x7b3/0x1140 [ 22.114726] eventpoll_release_file+0xc5/0x140 [ 22.114734] __fput+0x5f1/0x7e0 [ 22.114742] ? fput+0x140/0x140 [ 22.114748] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.114756] ____fput+0x15/0x20 [ 22.114764] task_work_run+0x199/0x270 [ 22.114772] ? task_work_cancel+0x210/0x210 [ 22.114778] ? _raw_spin_unlock+0x22/0x30 [ 22.114784] ? switch_task_namespaces+0x87/0xc0 [ 22.114793] do_exit+0x9bb/0x1ad0 [ 22.114801] ? binder_ioctl+0x4a1/0x1417 [ 22.114807] ? mm_update_next_owner+0x930/0x930 [ 22.114815] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 22.114825] ? avc_ss_reset+0x110/0x110 [ 22.114830] ? mutex_unlock+0xd/0x10 [ 22.114836] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 22.114854] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.114859] ? up_read+0x1a/0x40 [ 22.114866] ? rcu_note_context_switch+0x710/0x710 [ 22.114875] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 22.114881] ? do_vfs_ioctl+0x486/0x1520 [ 22.114887] ? _cond_resched+0x14/0x30 [ 22.114896] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.114903] ? selinux_capable+0x40/0x40 [ 22.114909] ? putname+0xf3/0x130 [ 22.114917] do_group_exit+0x149/0x400 [ 22.114923] ? SyS_exit+0x30/0x30 [ 22.114930] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.114938] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.114945] SyS_exit_group+0x1d/0x20 [ 22.114951] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.114957] RIP: 0033:0x4429f8 [ 22.114960] RSP: 002b:00007ffc481775e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.114966] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.114969] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.114973] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.114976] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.114980] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.114988] [ 22.114990] Allocated by task 3148: [ 22.114996] save_stack+0x43/0xd0 [ 22.115004] kasan_kmalloc+0xad/0xe0 [ 22.115010] kmem_cache_alloc_trace+0x136/0x750 [ 22.115015] binder_get_thread+0x1cf/0x870 [ 22.115020] binder_poll+0x8c/0x390 [ 22.115024] ep_item_poll.isra.10+0xec/0x320 [ 22.115028] ep_insert+0x6a3/0x1b10 [ 22.115033] SyS_epoll_ctl+0x12e4/0x1ab0 [ 22.115038] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.115039] [ 22.115041] Freed by task 3148: [ 22.115046] save_stack+0x43/0xd0 [ 22.115050] kasan_slab_free+0x71/0xc0 [ 22.115054] kfree+0xd6/0x260 [ 22.115059] binder_thread_dec_tmpref+0x27f/0x310 [ 22.115064] binder_thread_release+0x27d/0x540 [ 22.115068] binder_ioctl+0xc02/0x1417 [ 22.115073] do_vfs_ioctl+0x1b1/0x1520 [ 22.115078] SyS_ioctl+0x8f/0xc0 [ 22.115083] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.115084] [ 22.115088] The buggy address belongs to the object at ffff8801c8c8ba40 [ 22.115088] which belongs to the cache kmalloc-512 of size 512 [ 22.115093] The buggy address is located 176 bytes inside of [ 22.115093] 512-byte region [ffff8801c8c8ba40, ffff8801c8c8bc40) [ 22.115095] The buggy address belongs to the page: [ 22.115101] page:0000000080c90514 count:1 mapcount:0 mapping:0000000067c29953 index:0x0 [ 22.115106] flags: 0x2fffc0000000100(slab) [ 22.115114] raw: 02fffc0000000100 ffff8801c8c8b040 0000000000000000 0000000100000006 [ 22.115121] raw: ffffea00072620a0 ffffea000727b720 ffff8801db000940 0000000000000000 [ 22.115123] page dumped because: kasan: bad access detected [ 22.115125] [ 22.115126] Memory state around the buggy address: [ 22.115131] ffff8801c8c8b980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 22.115135] ffff8801c8c8ba00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 22.115139] >ffff8801c8c8ba80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.115142] ^ [ 22.115146] ffff8801c8c8bb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.115150] ffff8801c8c8bb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.115152] ================================================================== [ 22.115154] Disabling lock debugging due to kernel taint [ 22.115157] Kernel panic - not syncing: panic_on_warn set ... [ 22.115157] [ 22.115163] CPU: 0 PID: 3148 Comm: syzkaller866338 Tainted: G B 4.15.0-rc5+ #238 [ 22.115166] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.115167] Call Trace: [ 22.115173] dump_stack+0x194/0x257 [ 22.115180] ? arch_local_irq_restore+0x53/0x53 [ 22.115185] ? kasan_end_report+0x32/0x50 [ 22.115191] ? lock_downgrade+0x980/0x980 [ 22.115197] ? vsnprintf+0x1ed/0x1900 [ 22.115203] ? __lock_acquire+0x3cd0/0x3e00 [ 22.115208] panic+0x1e4/0x41c [ 22.115214] ? refcount_error_report+0x214/0x214 [ 22.115221] ? add_taint+0x40/0x50 [ 22.115226] ? add_taint+0x1c/0x50 [ 22.115233] ? __lock_acquire+0x3d4d/0x3e00 [ 22.115238] kasan_end_report+0x50/0x50 [ 22.115244] kasan_report+0x144/0x340 [ 22.115251] __asan_report_load8_noabort+0x14/0x20 [ 22.115257] __lock_acquire+0x3d4d/0x3e00 [ 22.115263] ? print_irqtrace_events+0x270/0x270 [ 22.115269] ? unwind_get_return_address+0x61/0xa0 [ 22.115276] ? remove_wait_queue+0x81/0x350 [ 22.115284] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.115291] ? __lock_acquire+0x664/0x3e00 [ 22.115297] ? print_irqtrace_events+0x270/0x270 [ 22.115303] ? __lock_acquire+0x664/0x3e00 [ 22.115313] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.115321] ? __lock_acquire+0x664/0x3e00 [ 22.115328] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.115332] ? __lock_acquire+0x664/0x3e00 [ 22.115338] ? check_noncircular+0x20/0x20 [ 22.115346] ? check_noncircular+0x20/0x20 [ 22.115353] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.115358] ? __lock_acquire+0x664/0x3e00 [ 22.115364] ? check_noncircular+0x20/0x20 [ 22.115375] lock_acquire+0x1d5/0x580 [ 22.115381] ? lock_acquire+0x1d5/0x580 [ 22.115387] ? remove_wait_queue+0x81/0x350 [ 22.115395] ? lock_release+0xa40/0xa40 [ 22.115400] ? print_irqtrace_events+0x270/0x270 [ 22.115405] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.115413] ? lock_acquire+0x1d5/0x580 [ 22.115419] ? lock_acquire+0x1d5/0x580 [ 22.115446] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.115453] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.115458] ? remove_wait_queue+0x81/0x350 [ 22.115464] remove_wait_queue+0x81/0x350 [ 22.115469] ? eventpoll_release_file+0xba/0x140 [ 22.115477] ? add_wait_queue+0x290/0x290 [ 22.115482] ? rcutorture_record_progress+0x10/0x10 [ 22.115487] ? mutex_lock_io_nested+0x1900/0x1900 [ 22.115496] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.115502] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.115509] ? clear_tfile_check_list+0x370/0x370 [ 22.115516] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.115524] ? rcutorture_record_progress+0x10/0x10 [ 22.115532] ? is_bpf_text_address+0xa4/0x120 [ 22.115538] ep_remove+0xcd/0x800 [ 22.115545] ? unwind_get_return_address+0x61/0xa0 [ 22.115551] ? ep_destroy_wakeup_source+0x240/0x240 [ 22.115556] ? check_noncircular+0x20/0x20 [ 22.115563] ? check_noncircular+0x20/0x20 [ 22.115573] ? fsnotify+0x7b3/0x1140 [ 22.115584] eventpoll_release_file+0xc5/0x140 [ 22.115591] __fput+0x5f1/0x7e0 [ 22.115598] ? fput+0x140/0x140 [ 22.115604] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.115612] ____fput+0x15/0x20 [ 22.115618] task_work_run+0x199/0x270 [ 22.115625] ? task_work_cancel+0x210/0x210 [ 22.115631] ? _raw_spin_unlock+0x22/0x30 [ 22.115637] ? switch_task_namespaces+0x87/0xc0 [ 22.115644] do_exit+0x9bb/0x1ad0 [ 22.115651] ? binder_ioctl+0x4a1/0x1417 [ 22.115657] ? mm_update_next_owner+0x930/0x930 [ 22.115665] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 22.115674] ? avc_ss_reset+0x110/0x110 [ 22.115679] ? mutex_unlock+0xd/0x10 [ 22.115684] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 22.115701] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.115706] ? up_read+0x1a/0x40 [ 22.115712] ? rcu_note_context_switch+0x710/0x710 [ 22.115721] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 22.115727] ? do_vfs_ioctl+0x486/0x1520 [ 22.115732] ? _cond_resched+0x14/0x30 [ 22.115741] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.115747] ? selinux_capable+0x40/0x40 [ 22.115753] ? putname+0xf3/0x130 [ 22.115761] do_group_exit+0x149/0x400 [ 22.115768] ? SyS_exit+0x30/0x30 [ 22.115774] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.115780] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.115788] SyS_exit_group+0x1d/0x20 [ 22.115794] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.115797] RIP: 0033:0x4429f8 [ 22.115800] RSP: 002b:00007ffc481775e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.115806] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.115809] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.115812] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.115816] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.115819] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.133871] Dumping ftrace buffer: [ 22.133874] (ftrace buffer empty) [ 22.133877] Kernel Offset: disabled [ 23.275343] Rebooting in 86400 seconds..