[....] Starting enhanced syslogd: rsyslogd[ 11.021849] audit: type=1400 audit(1513864794.726:5): avc: denied { syslog } for pid=3007 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: [ 18.345356] audit: type=1400 audit(1513864802.050:6): avc: denied { map } for pid=3146 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 'ci-upstream-mmots-kasan-gce-9,10.128.0.18' (ECDSA) to the list of known hosts. net.ipv6.conf.syz1.accept_dad = 0 net.ipv6.conf.syz7.accept_dad = 0 net.ipv6.conf.syz5.accept_dad = 0 [ 61.654780] audit: type=1400 audit(1513864845.359:7): avc: denied { map } for pid=3163 comm="syzkaller507111" path="/root/syzkaller507111160" 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 net.ipv6.conf.syz3.accept_dad = 0 net.ipv6.conf.syz4.accept_dad = 0 net.ipv6.conf.syz6.accept_dad = 0 net.ipv6.conf.syz2.accept_dad = 0 net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz7.router_solicitations = 0 net.ipv6.conf.syz1.router_solicitations = 0 net.ipv6.conf.syz3.router_solicitations = 0 net.ipv6.conf.syz4.router_solicitations = 0 net.ipv6.conf.syz5.router_solicitations = 0 net.ipv6.conf.syz2.router_solicitations = 0 net.ipv6.conf.syz0.router_solicitations = 0 net.ipv6.conf.syz6.router_solicitations = 0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 62.267006] kvm: KVM_SET_TSS_ADDR need to be called before entering vcpu executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 72.370647] ================================================================== [ 72.379260] BUG: KASAN: use-after-free in __schedule+0xda3/0x2060 [ 72.385464] Read of size 8 at addr ffff8801d15d9b18 by task syzkaller507111/11171 [ 72.393046] [ 72.394644] CPU: 0 PID: 11171 Comm: syzkaller507111 Not tainted 4.15.0-rc4-mm1+ #47 [ 72.402408] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 72.411727] Call Trace: [ 72.414282] dump_stack+0x194/0x257 [ 72.417879] ? arch_local_irq_restore+0x53/0x53 [ 72.422518] ? show_regs_print_info+0x18/0x18 [ 72.426985] ? __schedule+0xda3/0x2060 [ 72.430841] print_address_description+0x73/0x250 [ 72.435653] ? __schedule+0xda3/0x2060 [ 72.439507] kasan_report+0x23b/0x360 [ 72.443280] __asan_report_load8_noabort+0x14/0x20 [ 72.448175] __schedule+0xda3/0x2060 [ 72.451859] ? __sched_text_start+0x8/0x8 [ 72.455985] ? trace_hardirqs_on+0xd/0x10 [ 72.460102] ? __call_srcu+0x7ee/0x1020 [ 72.464044] ? do_raw_spin_trylock+0x190/0x190 [ 72.468593] ? do_raw_spin_trylock+0x190/0x190 [ 72.473151] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 72.479011] ? __debug_object_init+0x235/0x1040 [ 72.483656] preempt_schedule_common+0x22/0x60 [ 72.488205] _cond_resched+0x1d/0x30 [ 72.491887] wait_for_completion+0xa5/0x770 [ 72.496179] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 72.501163] ? wait_for_completion_interruptible+0x7e0/0x7e0 [ 72.506931] ? __lockdep_init_map+0xe4/0x650 [ 72.511313] ? __init_waitqueue_head+0x97/0x140 [ 72.515951] ? init_wait_entry+0x1b0/0x1b0 [ 72.520175] __synchronize_srcu+0x1ad/0x260 [ 72.524463] ? call_srcu+0x10/0x10 [ 72.527969] ? trace_raw_output_rcu_utilization+0xb0/0xb0 [ 72.533477] ? irq_matrix_allocated+0x80/0x80 [ 72.537950] ? synchronize_srcu+0x3c5/0x570 [ 72.542240] synchronize_srcu+0x1a3/0x570 [ 72.546356] ? synchronize_srcu+0x1a3/0x570 [ 72.550646] ? lock_downgrade+0x980/0x980 [ 72.554762] ? synchronize_srcu_expedited+0x20/0x20 [ 72.559747] ? lock_release+0xa40/0xa40 [ 72.563690] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 72.568503] ? do_raw_spin_trylock+0x190/0x190 [ 72.573062] kvm_page_track_unregister_notifier+0x186/0x270 [ 72.578741] ? kvm_slot_page_track_remove_page+0x60/0x60 [ 72.584160] ? kvfree+0x36/0x60 [ 72.587404] ? rcu_read_lock_sched_held+0x108/0x120 [ 72.592393] kvm_mmu_uninit_vm+0x1c/0x20 [ 72.596421] kvm_arch_destroy_vm+0x73b/0x980 [ 72.600803] ? kvm_arch_sync_events+0x30/0x30 [ 72.605265] ? mmdrop+0x18/0x30 [ 72.608513] ? mmu_notifier_unregister+0x43c/0x5c0 [ 72.613416] ? kvm_put_kvm+0x47a/0xde0 [ 72.617273] ? __mmu_notifier_invalidate_range_end+0x360/0x360 [ 72.623211] ? __free_pages+0x107/0x150 [ 72.627151] ? free_unref_page+0x9e0/0x9e0 [ 72.631354] ? quarantine_put+0xeb/0x190 [ 72.635382] ? kfree+0xf0/0x260 [ 72.638628] ? kvm_put_kvm+0x614/0xde0 [ 72.642484] ? free_pages+0x51/0x90 [ 72.646078] kvm_put_kvm+0x695/0xde0 [ 72.649764] ? kvm_clear_guest+0xb0/0xb0 [ 72.653797] ? kvm_irqfd_release+0xd1/0x120 [ 72.658084] ? lock_downgrade+0x980/0x980 [ 72.662211] ? _raw_spin_unlock_irq+0x27/0x70 [ 72.666679] ? kvm_irqfd_release+0xdd/0x120 [ 72.670965] ? kvm_irqfd_release+0xdd/0x120 [ 72.675255] ? kvm_put_kvm+0xde0/0xde0 [ 72.679107] kvm_vm_release+0x42/0x50 [ 72.682873] __fput+0x327/0x7e0 [ 72.686122] ? fput+0x140/0x140 [ 72.689369] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 72.695217] ? _raw_spin_unlock_irq+0x27/0x70 [ 72.699682] ____fput+0x15/0x20 [ 72.702936] task_work_run+0x199/0x270 [ 72.706793] ? task_work_cancel+0x210/0x210 [ 72.711083] ? _raw_spin_unlock+0x22/0x30 [ 72.715202] ? switch_task_namespaces+0x87/0xc0 [ 72.719841] do_exit+0x9bb/0x1ad0 [ 72.723260] ? blk_init_request_from_bio+0x440/0x440 [ 72.728341] ? mm_update_next_owner+0x930/0x930 [ 72.732974] ? zap_page_range+0x3e5/0x5f0 [ 72.737102] ? find_held_lock+0x35/0x1d0 [ 72.741135] ? SyS_madvise+0x9f4/0x13d0 [ 72.745074] ? lock_downgrade+0x980/0x980 [ 72.749190] ? blk_lld_busy+0x60/0x60 [ 72.752960] ? vmacache_find+0x5f/0x280 [ 72.756901] ? vmacache_update+0xfe/0x130 [ 72.761017] ? find_vma+0x30/0x150 [ 72.764528] ? up_read+0x1a/0x40 [ 72.767863] ? SyS_madvise+0x654/0x13d0 [ 72.771814] ? madvise_free_pte_range+0x1ea0/0x1ea0 [ 72.776804] ? syscall_return_slowpath+0x2ad/0x550 [ 72.781702] ? entry_SYSCALL_64_fastpath+0x5/0x96 [ 72.786512] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 72.791498] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 72.796223] SyS_exit+0x22/0x30 [ 72.799469] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 72.804194] RIP: 0033:0x402fce [ 72.807352] RSP: 002b:00007f7b6dfccde0 EFLAGS: 00000246 ORIG_RAX: 000000000000003c [ 72.815025] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000402fce [ 72.822264] RDX: 000000000000003c RSI: 00000000007fb000 RDI: 0000000000000000 [ 72.829501] RBP: 0000000000000000 R08: 00007f7b6dfcd700 R09: 00007f7b6dfcd700 [ 72.836740] R10: 00007f7b6dfcd700 R11: 0000000000000246 R12: 0000000000000000 [ 72.843976] R13: 00007ffd2457074f R14: 00007f7b6dfcd9c0 R15: 0000000000000000 [ 72.851229] [ 72.852824] Allocated by task 11121: [ 72.856507] save_stack+0x43/0xd0 [ 72.859928] kasan_kmalloc+0xad/0xe0 [ 72.863608] kasan_slab_alloc+0x12/0x20 [ 72.867556] kmem_cache_alloc+0x12e/0x760 [ 72.871670] vmx_create_vcpu+0xc4/0x2f20 [ 72.875698] kvm_arch_vcpu_create+0x12c/0x1a0 [ 72.880176] kvm_vm_ioctl+0x48b/0x1c60 [ 72.884036] do_vfs_ioctl+0x1b1/0x1520 [ 72.887889] SyS_ioctl+0x8f/0xc0 [ 72.891222] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 72.895940] [ 72.897533] Freed by task 11171: [ 72.900865] save_stack+0x43/0xd0 [ 72.904284] kasan_slab_free+0x71/0xc0 [ 72.908144] kmem_cache_free+0x83/0x2a0 [ 72.912092] vmx_free_vcpu+0x1ee/0x260 [ 72.915945] kvm_arch_destroy_vm+0x4a2/0x980 [ 72.920319] kvm_put_kvm+0x695/0xde0 [ 72.923998] kvm_vm_release+0x42/0x50 [ 72.927776] __fput+0x327/0x7e0 [ 72.931021] ____fput+0x15/0x20 [ 72.934267] task_work_run+0x199/0x270 [ 72.938120] do_exit+0x9bb/0x1ad0 [ 72.941539] SyS_exit+0x22/0x30 [ 72.944784] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 72.949504] [ 72.951101] The buggy address belongs to the object at ffff8801d15d9b00 [ 72.951101] which belongs to the cache kvm_vcpu of size 23872 [ 72.963654] The buggy address is located 24 bytes inside of [ 72.963654] 23872-byte region [ffff8801d15d9b00, ffff8801d15df840) [ 72.975583] The buggy address belongs to the page: [ 72.980481] page:ffffea0007457600 count:1 mapcount:0 mapping:ffff8801d15d9b00 index:0x0 compound_mapcount: 0 [ 72.990415] flags: 0x2fffc0000008100(slab|head) [ 72.995051] raw: 02fffc0000008100 ffff8801d15d9b00 0000000000000000 0000000100000001 [ 73.002899] raw: ffffea0007476c20 ffffea0007479c20 ffff8801d6459c00 0000000000000000 [ 73.010753] page dumped because: kasan: bad access detected [ 73.016427] [ 73.018022] Memory state around the buggy address: [ 73.022919] ffff8801d15d9a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 73.030247] ffff8801d15d9a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 73.037587] >ffff8801d15d9b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 73.044913] ^ [ 73.049028] ffff8801d15d9b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 73.056361] ffff8801d15d9c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 73.063684] ================================================================== [ 73.071011] Kernel panic - not syncing: panic_on_warn set ... [ 73.071011] [ 73.078887] CPU: 0 PID: 11171 Comm: syzkaller507111 Tainted: G B 4.15.0-rc4-mm1+ #47 [ 73.087951] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 73.097283] Call Trace: [ 73.099842] dump_stack+0x194/0x257 [ 73.103440] ? arch_local_irq_restore+0x53/0x53 [ 73.108082] ? kasan_end_report+0x32/0x50 [ 73.112198] ? lock_downgrade+0x980/0x980 [ 73.116314] ? vsnprintf+0x1ed/0x1900 [ 73.120092] ? __schedule+0xcf0/0x2060 [ 73.123947] panic+0x1e4/0x41c [ 73.127108] ? refcount_error_report+0x214/0x214 [ 73.131834] ? print_shadow_for_address+0xdc/0x1a0 [ 73.136731] ? add_taint+0x1c/0x50 [ 73.140240] ? __schedule+0xda3/0x2060 [ 73.144094] kasan_end_report+0x50/0x50 [ 73.148037] kasan_report+0x148/0x360 [ 73.151807] __asan_report_load8_noabort+0x14/0x20 [ 73.156705] __schedule+0xda3/0x2060 [ 73.160400] ? __sched_text_start+0x8/0x8 [ 73.164518] ? trace_hardirqs_on+0xd/0x10 [ 73.168636] ? __call_srcu+0x7ee/0x1020 [ 73.172578] ? do_raw_spin_trylock+0x190/0x190 [ 73.177129] ? do_raw_spin_trylock+0x190/0x190 [ 73.181691] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 73.187544] ? __debug_object_init+0x235/0x1040 [ 73.192189] preempt_schedule_common+0x22/0x60 [ 73.196740] _cond_resched+0x1d/0x30 [ 73.200420] wait_for_completion+0xa5/0x770 [ 73.204710] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 73.209702] ? wait_for_completion_interruptible+0x7e0/0x7e0 [ 73.215470] ? __lockdep_init_map+0xe4/0x650 [ 73.219852] ? __init_waitqueue_head+0x97/0x140 [ 73.224491] ? init_wait_entry+0x1b0/0x1b0 [ 73.228700] __synchronize_srcu+0x1ad/0x260 [ 73.232989] ? call_srcu+0x10/0x10 [ 73.236502] ? trace_raw_output_rcu_utilization+0xb0/0xb0 [ 73.242011] ? irq_matrix_allocated+0x80/0x80 [ 73.246475] ? synchronize_srcu+0x3c5/0x570 [ 73.250768] synchronize_srcu+0x1a3/0x570 [ 73.254881] ? synchronize_srcu+0x1a3/0x570 [ 73.259172] ? lock_downgrade+0x980/0x980 [ 73.263286] ? synchronize_srcu_expedited+0x20/0x20 [ 73.268269] ? lock_release+0xa40/0xa40 [ 73.272210] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 73.277024] ? do_raw_spin_trylock+0x190/0x190 [ 73.281587] kvm_page_track_unregister_notifier+0x186/0x270 [ 73.287276] ? kvm_slot_page_track_remove_page+0x60/0x60 [ 73.292702] ? kvfree+0x36/0x60 [ 73.295956] ? rcu_read_lock_sched_held+0x108/0x120 [ 73.300945] kvm_mmu_uninit_vm+0x1c/0x20 [ 73.304974] kvm_arch_destroy_vm+0x73b/0x980 [ 73.309353] ? kvm_arch_sync_events+0x30/0x30 [ 73.313820] ? mmdrop+0x18/0x30 [ 73.317068] ? mmu_notifier_unregister+0x43c/0x5c0 [ 73.321963] ? kvm_put_kvm+0x47a/0xde0 [ 73.325825] ? __mmu_notifier_invalidate_range_end+0x360/0x360 [ 73.331766] ? __free_pages+0x107/0x150 [ 73.335709] ? free_unref_page+0x9e0/0x9e0 [ 73.339913] ? quarantine_put+0xeb/0x190 [ 73.343939] ? kfree+0xf0/0x260 [ 73.347198] ? kvm_put_kvm+0x614/0xde0 [ 73.351067] ? free_pages+0x51/0x90 [ 73.354663] kvm_put_kvm+0x695/0xde0 [ 73.358358] ? kvm_clear_guest+0xb0/0xb0 [ 73.362404] ? kvm_irqfd_release+0xd1/0x120 [ 73.366695] ? lock_downgrade+0x980/0x980 [ 73.370823] ? _raw_spin_unlock_irq+0x27/0x70 [ 73.375293] ? kvm_irqfd_release+0xdd/0x120 [ 73.379580] ? kvm_irqfd_release+0xdd/0x120 [ 73.383875] ? kvm_put_kvm+0xde0/0xde0 [ 73.387729] kvm_vm_release+0x42/0x50 [ 73.391500] __fput+0x327/0x7e0 [ 73.394751] ? fput+0x140/0x140 [ 73.397999] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 73.403852] ? _raw_spin_unlock_irq+0x27/0x70 [ 73.408321] ____fput+0x15/0x20 [ 73.411577] task_work_run+0x199/0x270 [ 73.415435] ? task_work_cancel+0x210/0x210 [ 73.419724] ? _raw_spin_unlock+0x22/0x30 [ 73.423839] ? switch_task_namespaces+0x87/0xc0 [ 73.428480] do_exit+0x9bb/0x1ad0 [ 73.431899] ? blk_init_request_from_bio+0x440/0x440 [ 73.436976] ? mm_update_next_owner+0x930/0x930 [ 73.441611] ? zap_page_range+0x3e5/0x5f0 [ 73.445734] ? find_held_lock+0x35/0x1d0 [ 73.449768] ? SyS_madvise+0x9f4/0x13d0 [ 73.453710] ? lock_downgrade+0x980/0x980 [ 73.457828] ? blk_lld_busy+0x60/0x60 [ 73.461600] ? vmacache_find+0x5f/0x280 [ 73.465542] ? vmacache_update+0xfe/0x130 [ 73.469659] ? find_vma+0x30/0x150 [ 73.473170] ? up_read+0x1a/0x40 [ 73.476505] ? SyS_madvise+0x654/0x13d0 [ 73.480458] ? madvise_free_pte_range+0x1ea0/0x1ea0 [ 73.485447] ? syscall_return_slowpath+0x2ad/0x550 [ 73.490348] ? entry_SYSCALL_64_fastpath+0x5/0x96 [ 73.495163] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 73.500146] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 73.504884] SyS_exit+0x22/0x30 [ 73.508135] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 73.512859] RIP: 0033:0x402fce [ 73.516016] RSP: 002b:00007f7b6dfccde0 EFLAGS: 00000246 ORIG_RAX: 000000000000003c [ 73.523694] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000402fce [ 73.530932] RDX: 000000000000003c RSI: 00000000007fb000 RDI: 0000000000000000 [ 73.538171] RBP: 0000000000000000 R08: 00007f7b6dfcd700 R09: 00007f7b6dfcd700 [ 73.545417] R10: 00007f7b6dfcd700 R11: 0000000000000246 R12: 0000000000000000 [ 73.552653] R13: 00007ffd2457074f R14: 00007f7b6dfcd9c0 R15: 0000000000000000 [ 73.559903] [ 73.559906] ====================================================== [ 73.559908] WARNING: possible circular locking dependency detected [ 73.559910] 4.15.0-rc4-mm1+ #47 Not tainted [ 73.559912] ------------------------------------------------------ [ 73.559914] syzkaller507111/11171 is trying to acquire lock: [ 73.559915] ((console_sem).lock){..-.}, at: [<0000000095967648>] down_trylock+0x13/0x70 [ 73.559921] [ 73.559923] but task is already holding lock: [ 73.559923] (report_lock){....}, at: [<00000000a1f14232>] kasan_report+0x6b/0x360 [ 73.559928] [ 73.559930] which lock already depends on the new lock. [ 73.559931] [ 73.559932] [ 73.559934] the existing dependency chain (in reverse order) is: [ 73.559935] [ 73.559936] -> #3 (report_lock){....}: [ 73.559942] _raw_spin_lock_irqsave+0x96/0xc0 [ 73.559943] kasan_report+0x6b/0x360 [ 73.559945] __asan_report_load8_noabort+0x14/0x20 [ 73.559947] __schedule+0xda3/0x2060 [ 73.559949] preempt_schedule_common+0x22/0x60 [ 73.559950] _cond_resched+0x1d/0x30 [ 73.559952] wait_for_completion+0xa5/0x770 [ 73.559954] __synchronize_srcu+0x1ad/0x260 [ 73.559956] synchronize_srcu+0x1a3/0x570 [ 73.559958] kvm_page_track_unregister_notifier+0x186/0x270 [ 73.559959] kvm_mmu_uninit_vm+0x1c/0x20 [ 73.559961] kvm_arch_destroy_vm+0x73b/0x980 [ 73.559963] kvm_put_kvm+0x695/0xde0 [ 73.559964] kvm_vm_release+0x42/0x50 [ 73.559966] __fput+0x327/0x7e0 [ 73.559967] ____fput+0x15/0x20 [ 73.559969] task_work_run+0x199/0x270 [ 73.559971] do_exit+0x9bb/0x1ad0 [ 73.559972] SyS_exit+0x22/0x30 [ 73.559974] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 73.559975] [ 73.559976] -> #2 (&rq->lock){-.-.}: [ 73.559981] _raw_spin_lock+0x2a/0x40 [ 73.559982] task_fork_fair+0x7a/0x690 [ 73.559984] sched_fork+0x435/0xc00 [ 73.559986] copy_process.part.37+0x1758/0x4b60 [ 73.559988] _do_fork+0x1f7/0xf70 [ 73.559989] kernel_thread+0x34/0x40 [ 73.559991] rest_init+0x22/0xf0 [ 73.559992] start_kernel+0x7f1/0x819 [ 73.559994] x86_64_start_reservations+0x2a/0x2c [ 73.559996] x86_64_start_kernel+0x77/0x7a [ 73.559998] secondary_startup_64+0xa5/0xb0 [ 73.559998] [ 73.559999] -> #1 (&p->pi_lock){-.-.}: [ 73.560005] _raw_spin_lock_irqsave+0x96/0xc0 [ 73.560006] try_to_wake_up+0xbc/0x1600 [ 73.560008] wake_up_process+0x10/0x20 [ 73.560010] __up.isra.0+0x1cc/0x2c0 [ 73.560011] up+0x13b/0x1d0 [ 73.560013] __up_console_sem+0xb2/0x1a0 [ 73.560014] console_unlock+0x538/0xd70 [ 73.560016] vprintk_emit+0x4ad/0x590 [ 73.560018] vprintk_default+0x28/0x30 [ 73.560019] vprintk_func+0x57/0xc0 [ 73.560021] printk+0xaa/0xca [ 73.560022] regdb_fw_cb+0x1d7/0x220 [ 73.560024] request_firmware_work_func+0x151/0x2c0 [ 73.560026] process_one_work+0xbbf/0x1af0 [ 73.560028] worker_thread+0x223/0x1990 [ 73.560029] kthread+0x33c/0x400 [ 73.560031] ret_from_fork+0x24/0x30 [ 73.560032] [ 73.560033] -> #0 ((console_sem).lock){..-.}: [ 73.560038] lock_acquire+0x1d5/0x580 [ 73.560040] _raw_spin_lock_irqsave+0x96/0xc0 [ 73.560041] down_trylock+0x13/0x70 [ 73.560043] __down_trylock_console_sem+0xa2/0x1e0 [ 73.560045] console_trylock+0x15/0x100 [ 73.560047] vprintk_emit+0x49b/0x590 [ 73.560048] vprintk_default+0x28/0x30 [ 73.560050] vprintk_func+0x57/0xc0 [ 73.560051] printk+0xaa/0xca [ 73.560053] kasan_report+0x7b/0x360 [ 73.560055] __asan_report_load8_noabort+0x14/0x20 [ 73.560056] __schedule+0xda3/0x2060 [ 73.560058] preempt_schedule_common+0x22/0x60 [ 73.560060] _cond_resched+0x1d/0x30 [ 73.560062] wait_for_completion+0xa5/0x770 [ 73.560063] __synchronize_srcu+0x1ad/0x260 [ 73.560065] synchronize_srcu+0x1a3/0x570 [ 73.560067] kvm_page_track_unregister_notifier+0x186/0x270 [ 73.560069] kvm_mmu_uninit_vm+0x1c/0x20 [ 73.560071] kvm_arch_destroy_vm+0x73b/0x980 [ 73.560072] kvm_put_kvm+0x695/0xde0 [ 73.560074] kvm_vm_release+0x42/0x50 [ 73.560075] __fput+0x327/0x7e0 [ 73.560077] ____fput+0x15/0x20 [ 73.560078] task_work_run+0x199/0x270 [ 73.560080] do_exit+0x9bb/0x1ad0 [ 73.560081] SyS_exit+0x22/0x30 [ 73.560083] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 73.560084] [ 73.560086] other info that might help us debug this: [ 73.560087] [ 73.560088] Chain exists of: [ 73.560089] (console_sem).lock --> &rq->lock --> report_lock [ 73.560096] [ 73.560097] Possible unsafe locking scenario: [ 73.560098] [ 73.560100] CPU0 CPU1 [ 73.560102] ---- ---- [ 73.560103] lock(report_lock); [ 73.560106] lock(&rq->lock); [ 73.560110] lock(report_lock); [ 73.560113] lock((console_sem).lock); [ 73.560116] [ 73.560117] *** DEADLOCK *** [ 73.560118] [ 73.560120] 2 locks held by syzkaller507111/11171: [ 73.560121] #0: (&rq->lock){-.-.}, at: [<00000000a9a42f20>] __schedule+0x24e/0x2060 [ 73.560126] #1: (report_lock){....}, at: [<00000000a1f14232>] kasan_report+0x6b/0x360 [ 73.560132] [ 73.560133] stack backtrace: [ 73.560136] CPU: 0 PID: 11171 Comm: syzkaller507111 Not tainted 4.15.0-rc4-mm1+ #47 [ 73.560139] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 73.560140] Call Trace: [ 73.560142] dump_stack+0x194/0x257 [ 73.560144] ? arch_local_irq_restore+0x53/0x53 [ 73.560146] print_circular_bug.isra.37+0x2cd/0x2dc [ 73.560147] ? save_trace+0xe0/0x2b0 [ 73.560149] __lock_acquire+0x30a8/0x3e00 [ 73.560151] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 73.560153] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 73.560155] ? print_lockdep_cache.isra.31+0x109/0x109 [ 73.560157] ? save_stack_trace+0x1a/0x20 [ 73.560158] ? save_trace+0xe0/0x2b0 [ 73.560160] ? __lock_acquire+0x36c0/0x3e00 [ 73.560162] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 73.560163] ? __lock_is_held+0xb6/0x140 [ 73.560165] ? __lock_is_held+0xb6/0x140 [ 73.560166] lock_acquire+0x1d5/0x580 [ 73.560168] ? lock_acquire+0x1d5/0x580 [ 73.560170] ? down_trylock+0x13/0x70 [ 73.560171] ? find_held_lock+0x35/0x1d0 [ 73.560173] ? lock_release+0xa40/0xa40 [ 73.560174] ? vprintk_emit+0x379/0x590 [ 73.560176] ? lock_downgrade+0x980/0x980 [ 73.560178] ? kvm_sched_clock_read+0x25/0x40 [ 73.560179] ? sched_clock+0x31/0x40 [ 73.560181] ? sched_clock_cpu+0x1b/0x170 [ 73.560182] ? vprintk_emit+0x49b/0x590 [ 73.560184] _raw_spin_lock_irqsave+0x96/0xc0 [ 73.560186] ? down_trylock+0x13/0x70 [ 73.560187] down_trylock+0x13/0x70 [ 73.560189] ? vprintk_emit+0x49b/0x590 [ 73.560191] __down_trylock_console_sem+0xa2/0x1e0 [ 73.560192] console_trylock+0x15/0x100 [ 73.560194] vprintk_emit+0x49b/0x590 [ 73.560195] vprintk_default+0x28/0x30 [ 73.560197] vprintk_func+0x57/0xc0 [ 73.560198] printk+0xaa/0xca [ 73.560200] ? show_regs_print_info+0x18/0x18 [ 73.560201] ? __schedule+0xda3/0x2060 [ 73.560203] kasan_report+0x7b/0x360 [ 73.560205] __asan_report_load8_noabort+0x14/0x20 [ 73.560206] __schedule+0xda3/0x2060 [ 73.560208] ? __sched_text_start+0x8/0x8 [ 73.560210] ? trace_hardirqs_on+0xd/0x10 [ 73.560211] ? __call_srcu+0x7ee/0x1020 [ 73.560213] ? do_raw_spin_trylock+0x190/0x190 [ 73.560215] ? do_raw_spin_trylock+0x190/0x190 [ 73.560217] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 73.560219] ? __debug_object_init+0x235/0x1040 [ 73.560220] preempt_schedule_common+0x22/0x60 [ 73.560222] _cond_resched+0x1d/0x30 [ 73.560224] wait_for_completion+0xa5/0x770 [ 73.560225] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 73.560228] ? wait_for_completion_interruptible+0x7e0/0x7e0 [ 73.560229] ? __lockdep_init_map+0xe4/0x650 [ 73.560231] ? __init_waitqueue_head+0x97/0x140 [ 73.560233] ? init_wait_entry+0x1b0/0x1b0 [ 73.560234] __synchronize_srcu+0x1ad/0x260 [ 73.560236] ? call_srcu+0x10/0x10 [ 73.560238] ? trace_raw_output_rcu_utilization+0xb0/0xb0 [ 73.560240] ? irq_matrix_allocated+0x80/0x80 [ 73.560241] ? synchronize_srcu+0x3c5/0x570 [ 73.560243] synchronize_srcu+0x1a3/0x570 [ 73.560245] ? synchronize_srcu+0x1a3/0x570 [ 73.560246] ? lock_downgrade+0x980/0x980 [ 73.560248] ? synchronize_srcu_expedited+0x20/0x20 [ 73.560250] ? lock_release+0xa40/0xa40 [ 73.560252] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 73.560253] ? do_raw_spin_trylock+0x190/0x190 [ 73.560255] kvm_page_track_unregister_notifier+0x186/0x270 [ 73.560257] ? kvm_slot_page_track_remove_page+0x60/0x60 [ 73.560259] ? kvfree+0x36/0x60 [ 73.560261] ? rcu_read_lock_sched_held+0x108/0x120 [ 73.560262] kvm_mmu_uninit_vm+0x1c/0x20 [ 73.560264] kvm_arch_destroy_vm+0x73b/0x980 [ 73.560266] ? kvm_arch_sync_events+0x30/0x30 [ 73.560267] ? mmdrop+0x18/0x30 [ 73.560269] ? mmu_notifier_unregister+0x43c/0x5c0 [ 73.560271] ? kvm_put_kvm+0x47a/0xde0 [ 73.560273] ? __mmu_notifier_invalidate_range_end+0x360/0x360 [ 73.560275] ? __free_pages+0x107/0x150 [ 73.560276] ? free_unref_page+0x9e0/0x9e0 [ 73.560278] ? quarantine_put+0xeb/0x190 [ 73.560279] ? kfree+0xf0/0x260 [ 73.560281] ? kvm_put_kvm+0x614/0xde0 [ 73.560282] ? free_pages+0x51/0x90 [ 73.560284] kvm_put_kvm+0x695/0xde0 [ 73.560286] ? kvm_clear_guest+0xb0/0xb0 [ 73.560287] ? kvm_irqfd_release+0xd1/0x120 [ 73.560289] ? lock_downgrade+0x980/0x980 [ 73.560291] ? _raw_spin_unlock_irq+0x27/0x70 [ 73.560292] ? kvm_irqfd_release+0xdd/0x120 [ 73.560294] ? kvm_irqfd_release+0xdd/0x120 [ 73.560296] ? kvm_put_kvm+0xde0/0xde0 [ 73.560297] kvm_vm_release+0x42/0x50 [ 73.560299] __fput+0x327/0x7e0 [ 73.560300] ? fput+0x140/0x140 [ 73.560302] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 73.560304] ? _raw_spin_unlock_irq+0x27/0x70 [ 73.560305] ____fput+0x15/0x20 [ 73.560307] task_work_run+0x199/0x270 [ 73.560309] ? task_work_cancel+0x210/0x210 [ 73.560310] ? _raw_spin_unlock+0x22/0x30 [ 73.560312] ? switch_task_namespaces+0x87/0xc0 [ 73.560314] do_exit+0x9bb/0x1ad0 [ 73.560315] ? blk_init_request_from_bio+0x440/0x440 [ 73.560317] ? mm_update_next_owner+0x930/0x930 [ 73.560319] ? zap_page_range+0x3e5/0x5f0 [ 73.560320] ? find_held_lock+0x35/0x1d0 [ 73.560322] ? SyS_madvise+0x9f4/0x13d0 [ 73.560324] ? lock_downgrade+0x980/0x980 [ 73.560325] ? blk_lld_busy+0x60/0x60 [ 73.560327] ? vmacache_find+0x5f/0x280 [ 73.560328] ? vmacache_update+0xfe/0x130 [ 73.560330] ? find_vma+0x30/0x150 [ 73.560331] ? up_read+0x1a/0x40 [ 73.560333] ? SyS_madvise+0x654/0x13d0 [ 73.560335] ? madvise_free_pte_range+0x1ea0/0x1ea0 [ 73.560337] ? syscall_return_slowpath+0x2ad/0x550 [ 73.560339] ? entry_SYSCALL_64_fastpath+0x5/0x96 [ 73.560341] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 73.560342] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 73.560344] SyS_exit+0x22/ [ 73.560351] Lost 9 message(s)! [ 74.632292] Shutting down cpus with NMI [ 75.686202] Dumping ftrace buffer: [ 75.689710] (ftrace buffer empty) [ 75.693384] Kernel Offset: disabled [ 75.696978] Rebooting in 86400 seconds..