[....] Starting enhanced syslogd: rsyslogd[ 13.346395] audit: type=1400 audit(1515983001.299:5): avc: denied { syslog } for pid=3493 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 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: [ 19.204057] audit: type=1400 audit(1515983007.156:6): avc: denied { map } for pid=3633 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.246' (ECDSA) to the list of known hosts. executing program [ 41.168532] audit: type=1400 audit(1515983029.121:7): avc: denied { map } for pid=3650 comm="syzkaller308270" path="/root/syzkaller308270549" 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 [ 41.173642] ================================================================== [ 41.173656] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 41.173659] Read of size 8 at addr ffff8801bcabd370 by task syzkaller308270/3650 [ 41.173660] [ 41.173667] CPU: 0 PID: 3650 Comm: syzkaller308270 Not tainted 4.15.0-rc7+ #262 [ 41.173669] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.173671] Call Trace: [ 41.173682] dump_stack+0x194/0x257 [ 41.173687] ? arch_local_irq_restore+0x53/0x53 [ 41.173694] ? show_regs_print_info+0x18/0x18 [ 41.173697] ? print_irqtrace_events+0x270/0x270 [ 41.173701] ? __lock_acquire+0x664/0x3e00 [ 41.173705] ? __lock_acquire+0x3d4d/0x3e00 [ 41.173712] print_address_description+0x73/0x250 [ 41.173716] ? __lock_acquire+0x3d4d/0x3e00 [ 41.173720] kasan_report+0x25b/0x340 [ 41.173725] __asan_report_load8_noabort+0x14/0x20 [ 41.173728] __lock_acquire+0x3d4d/0x3e00 [ 41.173732] ? __lock_acquire+0x664/0x3e00 [ 41.173735] ? lock_downgrade+0x980/0x980 [ 41.173738] ? lock_downgrade+0x980/0x980 [ 41.173746] ? remove_wait_queue+0x81/0x350 [ 41.173752] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 41.173756] ? __lock_acquire+0x664/0x3e00 [ 41.173760] ? check_noncircular+0x20/0x20 [ 41.173767] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 41.173772] ? lock_acquire+0x1d5/0x580 [ 41.173775] ? lock_acquire+0x1d5/0x580 [ 41.173781] ? ep_free+0xf4/0x320 [ 41.173786] ? lock_release+0xa40/0xa40 [ 41.173792] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 41.173795] ? print_irqtrace_events+0x270/0x270 [ 41.173803] ? rcu_note_context_switch+0x710/0x710 [ 41.173808] ? __might_sleep+0x95/0x190 [ 41.173811] ? ep_free+0xf4/0x320 [ 41.173817] ? __mutex_lock+0x16f/0x1a80 [ 41.173820] ? ep_free+0xf4/0x320 [ 41.173825] ? print_irqtrace_events+0x270/0x270 [ 41.173827] ? ep_free+0xf4/0x320 [ 41.173833] lock_acquire+0x1d5/0x580 [ 41.173836] ? lock_acquire+0x1d5/0x580 [ 41.173839] ? remove_wait_queue+0x81/0x350 [ 41.173843] ? __lock_acquire+0x664/0x3e00 [ 41.173847] ? lock_release+0xa40/0xa40 [ 41.173853] ? lock_acquire+0x1d5/0x580 [ 41.173856] ? lock_acquire+0x1d5/0x580 [ 41.173860] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 41.173865] _raw_spin_lock_irqsave+0x96/0xc0 [ 41.173869] ? remove_wait_queue+0x81/0x350 [ 41.173873] remove_wait_queue+0x81/0x350 [ 41.173878] ? add_wait_queue+0x290/0x290 [ 41.173881] ? rcutorture_record_progress+0x10/0x10 [ 41.173888] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 41.173894] ? __kernel_text_address+0xd/0x40 [ 41.173899] ? clear_tfile_check_list+0x370/0x370 [ 41.173904] ? check_noncircular+0x20/0x20 [ 41.173911] ? locks_remove_file+0x3fa/0x5a0 [ 41.173917] ep_free+0x13f/0x320 [ 41.173921] ? ep_remove+0x800/0x800 [ 41.173924] ? fsnotify_first_mark+0x2b0/0x2b0 [ 41.173929] ? ep_free+0x320/0x320 [ 41.173933] ep_eventpoll_release+0x44/0x60 [ 41.173940] __fput+0x327/0x7e0 [ 41.173945] ? fput+0x140/0x140 [ 41.173950] ? _raw_spin_unlock_irq+0x27/0x70 [ 41.173955] ____fput+0x15/0x20 [ 41.173959] task_work_run+0x199/0x270 [ 41.173964] ? task_work_cancel+0x210/0x210 [ 41.173968] ? _raw_spin_unlock+0x22/0x30 [ 41.173972] ? switch_task_namespaces+0x87/0xc0 [ 41.173980] do_exit+0x9bb/0x1ad0 [ 41.173987] ? binder_ioctl+0x4a1/0x1417 [ 41.173991] ? mm_update_next_owner+0x930/0x930 [ 41.173996] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 41.174007] ? avc_ss_reset+0x110/0x110 [ 41.174011] ? mutex_unlock+0xd/0x10 [ 41.174015] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 41.174027] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 41.174030] ? up_read+0x1a/0x40 [ 41.174035] ? rcu_note_context_switch+0x710/0x710 [ 41.174039] ? __fd_install+0x288/0x740 [ 41.174045] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 41.174049] ? do_vfs_ioctl+0x486/0x1520 [ 41.174052] ? _cond_resched+0x14/0x30 [ 41.174057] ? ioctl_preallocate+0x2b0/0x2b0 [ 41.174062] ? selinux_capable+0x40/0x40 [ 41.174066] ? __alloc_fd+0x750/0x750 [ 41.174071] do_group_exit+0x149/0x400 [ 41.174075] ? SyS_exit+0x30/0x30 [ 41.174079] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 41.174085] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 41.174090] SyS_exit_group+0x1d/0x20 [ 41.174095] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 41.174098] RIP: 0033:0x4429f8 [ 41.174101] RSP: 002b:00007ffce89c2e88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 41.174105] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 41.174107] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 41.174110] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 41.174112] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 41.174114] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 41.174119] [ 41.174121] Allocated by task 3650: [ 41.174125] save_stack+0x43/0xd0 [ 41.174128] kasan_kmalloc+0xad/0xe0 [ 41.174132] kmem_cache_alloc_trace+0x136/0x750 [ 41.174135] binder_get_thread+0x1cf/0x870 [ 41.174138] binder_poll+0x8c/0x390 [ 41.174141] ep_item_poll.isra.10+0xec/0x320 [ 41.174144] ep_insert+0x6a3/0x1b10 [ 41.174147] SyS_epoll_ctl+0x12e4/0x1ab0 [ 41.174151] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 41.174152] [ 41.174153] Freed by task 3650: [ 41.174156] save_stack+0x43/0xd0 [ 41.174159] kasan_slab_free+0x71/0xc0 [ 41.174161] kfree+0xd6/0x260 [ 41.174165] binder_thread_dec_tmpref+0x27f/0x310 [ 41.174168] binder_thread_release+0x27d/0x540 [ 41.174172] binder_ioctl+0xc02/0x1417 [ 41.174174] do_vfs_ioctl+0x1b1/0x1520 [ 41.174177] SyS_ioctl+0x8f/0xc0 [ 41.174181] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 41.174181] [ 41.174184] The buggy address belongs to the object at ffff8801bcabd2c0 [ 41.174184] which belongs to the cache kmalloc-512 of size 512 [ 41.174187] The buggy address is located 176 bytes inside of [ 41.174187] 512-byte region [ffff8801bcabd2c0, ffff8801bcabd4c0) [ 41.174188] The buggy address belongs to the page: [ 41.174191] page:ffffea0006f2af40 count:1 mapcount:0 mapping:ffff8801bcabd040 index:0x0 [ 41.174195] flags: 0x2fffc0000000100(slab) [ 41.174201] raw: 02fffc0000000100 ffff8801bcabd040 0000000000000000 0000000100000006 [ 41.174205] raw: ffffea0006ef13a0 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 41.174207] page dumped because: kasan: bad access detected [ 41.174208] [ 41.174209] Memory state around the buggy address: [ 41.174212] ffff8801bcabd200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 41.174214] ffff8801bcabd280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 41.174217] >ffff8801bcabd300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.174219] ^ [ 41.174221] ffff8801bcabd380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.174224] ffff8801bcabd400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.174225] ================================================================== [ 41.174226] Disabling lock debugging due to kernel taint [ 41.174229] Kernel panic - not syncing: panic_on_warn set ... [ 41.174229] [ 41.174233] CPU: 0 PID: 3650 Comm: syzkaller308270 Tainted: G B 4.15.0-rc7+ #262 [ 41.174235] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.174236] Call Trace: [ 41.174240] dump_stack+0x194/0x257 [ 41.174244] ? arch_local_irq_restore+0x53/0x53 [ 41.174248] ? kasan_end_report+0x32/0x50 [ 41.174251] ? lock_downgrade+0x980/0x980 [ 41.174258] ? vsnprintf+0x1ed/0x1900 [ 41.174262] ? __lock_acquire+0x3c70/0x3e00 [ 41.174266] panic+0x1e4/0x41c [ 41.174269] ? refcount_error_report+0x214/0x214 [ 41.174273] ? add_taint+0x40/0x50 [ 41.174276] ? add_taint+0x1c/0x50 [ 41.174280] ? __lock_acquire+0x3d4d/0x3e00 [ 41.174284] kasan_end_report+0x50/0x50 [ 41.174287] kasan_report+0x144/0x340 [ 41.174292] __asan_report_load8_noabort+0x14/0x20 [ 41.174295] __lock_acquire+0x3d4d/0x3e00 [ 41.174299] ? __lock_acquire+0x664/0x3e00 [ 41.174302] ? lock_downgrade+0x980/0x980 [ 41.174306] ? lock_downgrade+0x980/0x980 [ 41.174310] ? remove_wait_queue+0x81/0x350 [ 41.174315] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 41.174319] ? __lock_acquire+0x664/0x3e00 [ 41.174322] ? check_noncircular+0x20/0x20 [ 41.174329] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 41.174333] ? lock_acquire+0x1d5/0x580 [ 41.174336] ? lock_acquire+0x1d5/0x580 [ 41.174339] ? ep_free+0xf4/0x320 [ 41.174344] ? lock_release+0xa40/0xa40 [ 41.174348] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 41.174352] ? print_irqtrace_events+0x270/0x270 [ 41.174356] ? rcu_note_context_switch+0x710/0x710 [ 41.174360] ? __might_sleep+0x95/0x190 [ 41.174363] ? ep_free+0xf4/0x320 [ 41.174367] ? __mutex_lock+0x16f/0x1a80 [ 41.174370] ? ep_free+0xf4/0x320 [ 41.174374] ? print_irqtrace_events+0x270/0x270 [ 41.174377] ? ep_free+0xf4/0x320 [ 41.174382] lock_acquire+0x1d5/0x580 [ 41.174385] ? lock_acquire+0x1d5/0x580 [ 41.174388] ? remove_wait_queue+0x81/0x350 [ 41.174392] ? __lock_acquire+0x664/0x3e00 [ 41.174396] ? lock_release+0xa40/0xa40 [ 41.174401] ? lock_acquire+0x1d5/0x580 [ 41.174404] ? lock_acquire+0x1d5/0x580 [ 41.174408] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 41.174413] _raw_spin_lock_irqsave+0x96/0xc0 [ 41.174416] ? remove_wait_queue+0x81/0x350 [ 41.174420] remove_wait_queue+0x81/0x350 [ 41.174425] ? add_wait_queue+0x290/0x290 [ 41.174428] ? rcutorture_record_progress+0x10/0x10 [ 41.174434] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 41.174438] ? __kernel_text_address+0xd/0x40 [ 41.174443] ? clear_tfile_check_list+0x370/0x370 [ 41.174447] ? check_noncircular+0x20/0x20 [ 41.174452] ? locks_remove_file+0x3fa/0x5a0 [ 41.174457] ep_free+0x13f/0x320 [ 41.174461] ? ep_remove+0x800/0x800 [ 41.174464] ? fsnotify_first_mark+0x2b0/0x2b0 [ 41.174468] ? ep_free+0x320/0x320 [ 41.174472] ep_eventpoll_release+0x44/0x60 [ 41.174476] __fput+0x327/0x7e0 [ 41.174481] ? fput+0x140/0x140 [ 41.174485] ? _raw_spin_unlock_irq+0x27/0x70 [ 41.174490] ____fput+0x15/0x20 [ 41.174494] task_work_run+0x199/0x270 [ 41.174498] ? task_work_cancel+0x210/0x210 [ 41.174502] ? _raw_spin_unlock+0x22/0x30 [ 41.174506] ? switch_task_namespaces+0x87/0xc0 [ 41.174510] do_exit+0x9bb/0x1ad0 [ 41.174515] ? binder_ioctl+0x4a1/0x1417 [ 41.174519] ? mm_update_next_owner+0x930/0x930 [ 41.174524] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 41.174528] ? avc_ss_reset+0x110/0x110 [ 41.174532] ? mutex_unlock+0xd/0x10 [ 41.174535] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 41.174545] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 41.174548] ? up_read+0x1a/0x40 [ 41.174552] ? rcu_note_context_switch+0x710/0x710 [ 41.174555] ? __fd_install+0x288/0x740 [ 41.174561] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 41.174564] ? do_vfs_ioctl+0x486/0x1520 [ 41.174567] ? _cond_resched+0x14/0x30 [ 41.174571] ? ioctl_preallocate+0x2b0/0x2b0 [ 41.174575] ? selinux_capable+0x40/0x40 [ 41.174583] ? __alloc_fd+0x750/0x750 [ 41.174588] do_group_exit+0x149/0x400 [ 41.174592] ? SyS_exit+0x30/0x30 [ 41.174596] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 41.174600] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 41.174604] SyS_exit_group+0x1d/0x20 [ 41.174609] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 41.174611] RIP: 0033:0x4429f8 [ 41.174613] RSP: 002b:00007ffce89c2e88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 41.174616] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 41.174618] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 41.174620] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 41.174622] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 41.174624] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 41.194783] Dumping ftrace buffer: [ 41.194787] (ftrace buffer empty) [ 41.194789] Kernel Offset: disabled [ 42.319928] Rebooting in 86400 seconds..