[....] Starting enhanced syslogd: rsyslogd[ 11.596679] audit: type=1400 audit(1515538446.040:5): avc: denied { syslog } for pid=3339 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.987930] audit: type=1400 audit(1515538450.431:6): avc: denied { map } for pid=3476 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.7' (ECDSA) to the list of known hosts. executing program [ 22.206258] audit: type=1400 audit(1515538456.650:7): avc: denied { map } for pid=3490 comm="syzkaller910904" path="/root/syzkaller910904048" 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.211098] ================================================================== [ 22.211112] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 22.211118] Read of size 8 at addr ffff8801c7fd73b0 by task syzkaller910904/3490 [ 22.211119] [ 22.211126] CPU: 1 PID: 3490 Comm: syzkaller910904 Not tainted 4.15.0-rc7+ #255 [ 22.211130] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.211132] Call Trace: [ 22.211141] dump_stack+0x194/0x257 [ 22.211149] ? arch_local_irq_restore+0x53/0x53 [ 22.211156] ? show_regs_print_info+0x18/0x18 [ 22.211162] ? print_irqtrace_events+0x270/0x270 [ 22.211168] ? __lock_acquire+0x664/0x3e00 [ 22.211174] ? __lock_acquire+0x3d4d/0x3e00 [ 22.211183] print_address_description+0x73/0x250 [ 22.211189] ? __lock_acquire+0x3d4d/0x3e00 [ 22.211195] kasan_report+0x25b/0x340 [ 22.211204] __asan_report_load8_noabort+0x14/0x20 [ 22.211209] __lock_acquire+0x3d4d/0x3e00 [ 22.211215] ? __lock_acquire+0x664/0x3e00 [ 22.211221] ? lock_downgrade+0x980/0x980 [ 22.211226] ? lock_downgrade+0x980/0x980 [ 22.211235] ? remove_wait_queue+0x81/0x350 [ 22.211248] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.211255] ? __lock_acquire+0x664/0x3e00 [ 22.211260] ? check_noncircular+0x20/0x20 [ 22.211272] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.211279] ? lock_acquire+0x1d5/0x580 [ 22.211285] ? lock_acquire+0x1d5/0x580 [ 22.211291] ? ep_free+0xf4/0x320 [ 22.211299] ? lock_release+0xa40/0xa40 [ 22.211306] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.211312] ? print_irqtrace_events+0x270/0x270 [ 22.211321] ? rcu_note_context_switch+0x710/0x710 [ 22.211329] ? __might_sleep+0x95/0x190 [ 22.211335] ? ep_free+0xf4/0x320 [ 22.211342] ? __mutex_lock+0x16f/0x1a80 [ 22.211346] ? ep_free+0xf4/0x320 [ 22.211353] ? print_irqtrace_events+0x270/0x270 [ 22.211358] ? ep_free+0xf4/0x320 [ 22.211366] lock_acquire+0x1d5/0x580 [ 22.211372] ? lock_acquire+0x1d5/0x580 [ 22.211377] ? remove_wait_queue+0x81/0x350 [ 22.211383] ? __lock_acquire+0x664/0x3e00 [ 22.211391] ? lock_release+0xa40/0xa40 [ 22.211400] ? lock_acquire+0x1d5/0x580 [ 22.211405] ? lock_acquire+0x1d5/0x580 [ 22.211411] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.211420] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.211425] ? remove_wait_queue+0x81/0x350 [ 22.211432] remove_wait_queue+0x81/0x350 [ 22.211439] ? add_wait_queue+0x290/0x290 [ 22.211445] ? rcutorture_record_progress+0x10/0x10 [ 22.211455] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.211464] ? __kernel_text_address+0xd/0x40 [ 22.211472] ? clear_tfile_check_list+0x370/0x370 [ 22.211480] ? check_noncircular+0x20/0x20 [ 22.211488] ? locks_remove_file+0x3fa/0x5a0 [ 22.211498] ep_free+0x13f/0x320 [ 22.211504] ? ep_remove+0x800/0x800 [ 22.211510] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.211518] ? ep_free+0x320/0x320 [ 22.211524] ep_eventpoll_release+0x44/0x60 [ 22.211531] __fput+0x327/0x7e0 [ 22.211540] ? fput+0x140/0x140 [ 22.211547] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.211555] ____fput+0x15/0x20 [ 22.211562] task_work_run+0x199/0x270 [ 22.211569] ? task_work_cancel+0x210/0x210 [ 22.211576] ? _raw_spin_unlock+0x22/0x30 [ 22.211582] ? switch_task_namespaces+0x87/0xc0 [ 22.211592] do_exit+0x9bb/0x1ad0 [ 22.211600] ? binder_ioctl+0x481/0x1417 [ 22.211606] ? mm_update_next_owner+0x930/0x930 [ 22.211614] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.211624] ? avc_ss_reset+0x110/0x110 [ 22.211629] ? mutex_unlock+0xd/0x10 [ 22.211635] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 22.211654] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.211659] ? up_read+0x1a/0x40 [ 22.211665] ? rcu_note_context_switch+0x710/0x710 [ 22.211671] ? __fd_install+0x288/0x740 [ 22.211680] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.211685] ? do_vfs_ioctl+0x486/0x1520 [ 22.211690] ? _cond_resched+0x14/0x30 [ 22.211698] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.211705] ? selinux_capable+0x40/0x40 [ 22.211711] ? __alloc_fd+0x750/0x750 [ 22.211719] do_group_exit+0x149/0x400 [ 22.211726] ? SyS_exit+0x30/0x30 [ 22.211733] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.211740] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.211747] SyS_exit_group+0x1d/0x20 [ 22.211754] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.211758] RIP: 0033:0x442a08 [ 22.211762] RSP: 002b:00007ffd7305e748 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.211768] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000442a08 [ 22.211771] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.211775] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.211778] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a50 [ 22.211781] R13: 0000000000401ae0 R14: 0000000000000000 R15: 0000000000000000 [ 22.211789] [ 22.211792] Allocated by task 3490: [ 22.211798] save_stack+0x43/0xd0 [ 22.211802] kasan_kmalloc+0xad/0xe0 [ 22.211807] kmem_cache_alloc_trace+0x136/0x750 [ 22.211812] binder_get_thread+0x1cf/0x870 [ 22.211816] binder_poll+0x8c/0x390 [ 22.211821] ep_item_poll.isra.10+0xec/0x320 [ 22.211826] ep_insert+0x6a3/0x1b10 [ 22.211831] SyS_epoll_ctl+0x12e4/0x1ab0 [ 22.211836] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.211838] [ 22.211840] Freed by task 3490: [ 22.211844] save_stack+0x43/0xd0 [ 22.211849] kasan_slab_free+0x71/0xc0 [ 22.211853] kfree+0xd6/0x260 [ 22.211858] binder_thread_dec_tmpref+0x27f/0x310 [ 22.211862] binder_thread_release+0x27d/0x540 [ 22.211866] binder_ioctl+0xc02/0x1417 [ 22.211871] do_vfs_ioctl+0x1b1/0x1520 [ 22.211875] SyS_ioctl+0x8f/0xc0 [ 22.211880] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.211881] [ 22.211885] The buggy address belongs to the object at ffff8801c7fd7300 [ 22.211885] which belongs to the cache kmalloc-512 of size 512 [ 22.211890] The buggy address is located 176 bytes inside of [ 22.211890] 512-byte region [ffff8801c7fd7300, ffff8801c7fd7500) [ 22.211891] The buggy address belongs to the page: [ 22.211897] page:ffffea00071ff5c0 count:1 mapcount:0 mapping:ffff8801c7fd7080 index:0xffff8801c7fd7800 [ 22.211902] flags: 0x2fffc0000000100(slab) [ 22.211911] raw: 02fffc0000000100 ffff8801c7fd7080 ffff8801c7fd7800 0000000100000005 [ 22.211917] raw: ffffea00071fab60 ffff8801dac01738 ffff8801dac00940 0000000000000000 [ 22.211919] page dumped because: kasan: bad access detected [ 22.211921] [ 22.211922] Memory state around the buggy address: [ 22.211927] ffff8801c7fd7280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.211931] ffff8801c7fd7300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.211935] >ffff8801c7fd7380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.211937] ^ [ 22.211942] ffff8801c7fd7400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.211946] ffff8801c7fd7480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.211948] ================================================================== [ 22.211949] Disabling lock debugging due to kernel taint [ 22.211952] Kernel panic - not syncing: panic_on_warn set ... [ 22.211952] [ 22.211958] CPU: 1 PID: 3490 Comm: syzkaller910904 Tainted: G B 4.15.0-rc7+ #255 [ 22.211960] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.211962] Call Trace: [ 22.211968] dump_stack+0x194/0x257 [ 22.211975] ? arch_local_irq_restore+0x53/0x53 [ 22.211980] ? kasan_end_report+0x32/0x50 [ 22.211986] ? lock_downgrade+0x980/0x980 [ 22.211993] ? vsnprintf+0x1ed/0x1900 [ 22.211999] ? __lock_acquire+0x3cb0/0x3e00 [ 22.212007] panic+0x1e4/0x41c [ 22.212013] ? refcount_error_report+0x214/0x214 [ 22.212021] ? add_taint+0x40/0x50 [ 22.212026] ? add_taint+0x1c/0x50 [ 22.212032] ? __lock_acquire+0x3d4d/0x3e00 [ 22.212038] kasan_end_report+0x50/0x50 [ 22.212044] kasan_report+0x144/0x340 [ 22.212052] __asan_report_load8_noabort+0x14/0x20 [ 22.212057] __lock_acquire+0x3d4d/0x3e00 [ 22.212063] ? __lock_acquire+0x664/0x3e00 [ 22.212068] ? lock_downgrade+0x980/0x980 [ 22.212073] ? lock_downgrade+0x980/0x980 [ 22.212080] ? remove_wait_queue+0x81/0x350 [ 22.212089] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.212095] ? __lock_acquire+0x664/0x3e00 [ 22.212101] ? check_noncircular+0x20/0x20 [ 22.212112] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.212119] ? lock_acquire+0x1d5/0x580 [ 22.212124] ? lock_acquire+0x1d5/0x580 [ 22.212130] ? ep_free+0xf4/0x320 [ 22.212138] ? lock_release+0xa40/0xa40 [ 22.212144] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.212150] ? print_irqtrace_events+0x270/0x270 [ 22.212156] ? rcu_note_context_switch+0x710/0x710 [ 22.212163] ? __might_sleep+0x95/0x190 [ 22.212169] ? ep_free+0xf4/0x320 [ 22.212174] ? __mutex_lock+0x16f/0x1a80 [ 22.212179] ? ep_free+0xf4/0x320 [ 22.212186] ? print_irqtrace_events+0x270/0x270 [ 22.212191] ? ep_free+0xf4/0x320 [ 22.212199] lock_acquire+0x1d5/0x580 [ 22.212204] ? lock_acquire+0x1d5/0x580 [ 22.212210] ? remove_wait_queue+0x81/0x350 [ 22.212216] ? __lock_acquire+0x664/0x3e00 [ 22.212223] ? lock_release+0xa40/0xa40 [ 22.212232] ? lock_acquire+0x1d5/0x580 [ 22.212237] ? lock_acquire+0x1d5/0x580 [ 22.212247] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.212255] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.212260] ? remove_wait_queue+0x81/0x350 [ 22.212267] remove_wait_queue+0x81/0x350 [ 22.212274] ? add_wait_queue+0x290/0x290 [ 22.212280] ? rcutorture_record_progress+0x10/0x10 [ 22.212290] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.212296] ? __kernel_text_address+0xd/0x40 [ 22.212304] ? clear_tfile_check_list+0x370/0x370 [ 22.212311] ? check_noncircular+0x20/0x20 [ 22.212319] ? locks_remove_file+0x3fa/0x5a0 [ 22.212328] ep_free+0x13f/0x320 [ 22.212334] ? ep_remove+0x800/0x800 [ 22.212339] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.212347] ? ep_free+0x320/0x320 [ 22.212353] ep_eventpoll_release+0x44/0x60 [ 22.212359] __fput+0x327/0x7e0 [ 22.212367] ? fput+0x140/0x140 [ 22.212374] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.212382] ____fput+0x15/0x20 [ 22.212388] task_work_run+0x199/0x270 [ 22.212395] ? task_work_cancel+0x210/0x210 [ 22.212401] ? _raw_spin_unlock+0x22/0x30 [ 22.212407] ? switch_task_namespaces+0x87/0xc0 [ 22.212414] do_exit+0x9bb/0x1ad0 [ 22.212421] ? binder_ioctl+0x481/0x1417 [ 22.212427] ? mm_update_next_owner+0x930/0x930 [ 22.212435] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.212443] ? avc_ss_reset+0x110/0x110 [ 22.212448] ? mutex_unlock+0xd/0x10 [ 22.212454] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 22.212471] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.212476] ? up_read+0x1a/0x40 [ 22.212483] ? rcu_note_context_switch+0x710/0x710 [ 22.212487] ? __fd_install+0x288/0x740 [ 22.212496] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.212501] ? do_vfs_ioctl+0x486/0x1520 [ 22.212506] ? _cond_resched+0x14/0x30 [ 22.212513] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.212520] ? selinux_capable+0x40/0x40 [ 22.212527] ? __alloc_fd+0x750/0x750 [ 22.212534] do_group_exit+0x149/0x400 [ 22.212541] ? SyS_exit+0x30/0x30 [ 22.212547] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.212554] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.212561] SyS_exit_group+0x1d/0x20 [ 22.212567] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.212571] RIP: 0033:0x442a08 [ 22.212574] RSP: 002b:00007ffd7305e748 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.212579] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000442a08 [ 22.212582] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.212586] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.212589] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a50 [ 22.212592] R13: 0000000000401ae0 R14: 0000000000000000 R15: 0000000000000000 [ 22.232590] Dumping ftrace buffer: [ 22.232594] (ftrace buffer empty) [ 22.232596] Kernel Offset: disabled [ 23.356706] Rebooting in 86400 seconds..