[?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. [ 13.334201] audit: type=1400 audit(1513853433.722:6): avc: denied { map } for pid=3137 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 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added 'ci-upstream-mmots-kasan-gce-0,10.128.0.22' (ECDSA) to the list of known hosts. net.ipv6.conf.syz7.accept_dad = 0 net.ipv6.conf.syz3.accept_dad = 0 net.ipv6.conf.syz1.accept_dad = 0 net.ipv6.conf.syz5.accept_dad = 0 syzkaller login: [ 26.429155] audit: type=1400 audit(1513853446.817:7): avc: denied { map } for pid=3153 comm="syzkaller940820" path="/root/syzkaller940820988" 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.syz7.router_solicitations = 0 net.ipv6.conf.syz1.router_solicitations = 0 net.ipv6.conf.syz6.accept_dad = 0 net.ipv6.conf.syz3.router_solicitations = 0 net.ipv6.conf.syz4.accept_dad = 0 net.ipv6.conf.syz5.router_solicitations = 0 net.ipv6.conf.syz2.accept_dad = 0 net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz2.router_solicitations = 0 net.ipv6.conf.syz6.router_solicitations = 0 net.ipv6.conf.syz0.router_solicitations = 0 net.ipv6.conf.syz4.router_solicitations = 0 executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 27.029020] 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 [ 33.564067] ================================================================== [ 33.572552] BUG: KASAN: use-after-free in __schedule+0xda3/0x2060 [ 33.578760] Read of size 8 at addr ffff8801be539718 by task syzkaller940820/8273 [ 33.586255] [ 33.587867] CPU: 1 PID: 8273 Comm: syzkaller940820 Not tainted 4.15.0-rc4-mm1+ #47 [ 33.595540] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.604860] Call Trace: [ 33.607414] dump_stack+0x194/0x257 [ 33.611018] ? arch_local_irq_restore+0x53/0x53 [ 33.615652] ? show_regs_print_info+0x18/0x18 [ 33.620119] ? __schedule+0xda3/0x2060 [ 33.623980] print_address_description+0x73/0x250 [ 33.628789] ? __schedule+0xda3/0x2060 [ 33.632645] kasan_report+0x23b/0x360 [ 33.636417] __asan_report_load8_noabort+0x14/0x20 [ 33.641312] __schedule+0xda3/0x2060 [ 33.644998] ? __sched_text_start+0x8/0x8 [ 33.649117] ? trace_hardirqs_on+0xd/0x10 [ 33.653237] ? __call_srcu+0x7ee/0x1020 [ 33.657180] ? do_raw_spin_trylock+0x190/0x190 [ 33.661737] ? do_raw_spin_trylock+0x190/0x190 [ 33.666297] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 33.672150] ? __debug_object_init+0x235/0x1040 [ 33.676797] preempt_schedule_common+0x22/0x60 [ 33.681354] _cond_resched+0x1d/0x30 [ 33.685035] wait_for_completion+0xa5/0x770 [ 33.689325] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.694310] ? wait_for_completion_interruptible+0x7e0/0x7e0 [ 33.700090] ? __lockdep_init_map+0xe4/0x650 [ 33.704471] ? __init_waitqueue_head+0x97/0x140 [ 33.709107] ? init_wait_entry+0x1b0/0x1b0 [ 33.713329] __synchronize_srcu+0x1ad/0x260 [ 33.717618] ? call_srcu+0x10/0x10 [ 33.721129] ? trace_raw_output_rcu_utilization+0xb0/0xb0 [ 33.726653] ? irq_matrix_allocated+0x80/0x80 [ 33.731217] ? synchronize_srcu+0x3c5/0x570 [ 33.735509] synchronize_srcu+0x1a3/0x570 [ 33.739623] ? synchronize_srcu+0x1a3/0x570 [ 33.743912] ? lock_downgrade+0x980/0x980 [ 33.748028] ? synchronize_srcu_expedited+0x20/0x20 [ 33.753013] ? lock_release+0xa40/0xa40 [ 33.756956] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 33.761766] ? do_raw_spin_trylock+0x190/0x190 [ 33.766935] kvm_page_track_unregister_notifier+0x186/0x270 [ 33.772617] ? kvm_slot_page_track_remove_page+0x60/0x60 [ 33.778037] ? kvfree+0x36/0x60 [ 33.781284] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.786275] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.790302] kvm_arch_destroy_vm+0x73b/0x980 [ 33.794682] ? kvm_arch_sync_events+0x30/0x30 [ 33.799144] ? mmdrop+0x18/0x30 [ 33.802393] ? mmu_notifier_unregister+0x43c/0x5c0 [ 33.807288] ? kvm_put_kvm+0x47a/0xde0 [ 33.811148] ? __mmu_notifier_invalidate_range_end+0x360/0x360 [ 33.817088] ? __free_pages+0x107/0x150 [ 33.821032] ? free_unref_page+0x9e0/0x9e0 [ 33.825235] ? quarantine_put+0xeb/0x190 [ 33.829261] ? kfree+0xf0/0x260 [ 33.832508] ? kvm_put_kvm+0x614/0xde0 [ 33.836365] ? free_pages+0x51/0x90 [ 33.839977] kvm_put_kvm+0x695/0xde0 [ 33.843666] ? kvm_clear_guest+0xb0/0xb0 [ 33.847697] ? kvm_irqfd_release+0xd1/0x120 [ 33.851987] ? lock_downgrade+0x980/0x980 [ 33.856121] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.860589] ? kvm_irqfd_release+0xdd/0x120 [ 33.864890] ? kvm_irqfd_release+0xdd/0x120 [ 33.869184] ? kvm_put_kvm+0xde0/0xde0 [ 33.873038] kvm_vm_release+0x42/0x50 [ 33.876807] __fput+0x327/0x7e0 [ 33.880058] ? fput+0x140/0x140 [ 33.883308] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 33.889160] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.893630] ____fput+0x15/0x20 [ 33.896878] task_work_run+0x199/0x270 [ 33.900736] ? task_work_cancel+0x210/0x210 [ 33.905030] ? _raw_spin_unlock+0x22/0x30 [ 33.909147] ? switch_task_namespaces+0x87/0xc0 [ 33.913876] do_exit+0x9bb/0x1ad0 [ 33.917307] ? mm_update_next_owner+0x930/0x930 [ 33.921945] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.927118] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.932278] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.937437] ? _cond_resched+0x14/0x30 [ 33.941298] ? check_noncircular+0x20/0x20 [ 33.945506] ? check_noncircular+0x20/0x20 [ 33.949714] ? vm_normal_page_pmd+0x2c0/0x2c0 [ 33.954176] ? check_noncircular+0x20/0x20 [ 33.958378] ? check_noncircular+0x20/0x20 [ 33.962585] ? check_noncircular+0x20/0x20 [ 33.966792] ? find_held_lock+0x35/0x1d0 [ 33.970830] ? get_signal+0x7ae/0x16c0 [ 33.974694] ? lock_downgrade+0x980/0x980 [ 33.978825] do_group_exit+0x149/0x400 [ 33.982682] ? do_raw_spin_trylock+0x190/0x190 [ 33.987231] ? SyS_exit+0x30/0x30 [ 33.990652] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.995116] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.000105] get_signal+0x73f/0x16c0 [ 34.003799] ? ptrace_notify+0x130/0x130 [ 34.007827] ? tlb_flush_mmu_free+0xeb/0x160 [ 34.012211] ? blk_flush_plug_list+0x7e4/0xaf0 [ 34.016759] ? tlb_finish_mmu+0x10f/0x190 [ 34.020874] ? check_noncircular+0x20/0x20 [ 34.025084] ? tlb_gather_mmu+0x70/0x70 [ 34.029032] ? blk_init_request_from_bio+0x440/0x440 [ 34.034112] do_signal+0x94/0x1ee0 [ 34.037631] ? find_held_lock+0x35/0x1d0 [ 34.041662] ? setup_sigcontext+0x7d0/0x7d0 [ 34.045953] ? SyS_madvise+0x9f4/0x13d0 [ 34.049899] ? lock_downgrade+0x980/0x980 [ 34.054017] ? blk_lld_busy+0x60/0x60 [ 34.057790] ? vmacache_update+0xfe/0x130 [ 34.061915] ? find_vma+0x30/0x150 [ 34.065434] ? exit_to_usermode_loop+0x8c/0x2f0 [ 34.070075] exit_to_usermode_loop+0x258/0x2f0 [ 34.074632] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 34.080138] ? madvise_free_pte_range+0x1ea0/0x1ea0 [ 34.085128] syscall_return_slowpath+0x490/0x550 [ 34.089859] ? prepare_exit_to_usermode+0x340/0x340 [ 34.095625] ? entry_SYSCALL_64_fastpath+0x69/0x96 [ 34.100531] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.105524] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 34.110258] entry_SYSCALL_64_fastpath+0x94/0x96 [ 34.114979] RIP: 0033:0x44d2f7 [ 34.118137] RSP: 002b:00007f03146d3d18 EFLAGS: 00000206 ORIG_RAX: 000000000000001c [ 34.125811] RAX: 0000000000000000 RBX: 00007f03146d4700 RCX: 000000000044d2f7 [ 34.133049] RDX: 0000000000000004 RSI: 00000000007fb000 RDI: 00007f0313ed4000 [ 34.140286] RBP: 0000000000000000 R08: 00007f03146d4700 R09: 00007f03146d4700 [ 34.147527] R10: 00007f03146d4700 R11: 0000000000000206 R12: 0000000000000000 [ 34.154764] R13: 00007ffe7791824f R14: 00007f03146d49c0 R15: 0000000000000000 [ 34.162015] [ 34.163612] Allocated by task 8272: [ 34.167212] save_stack+0x43/0xd0 [ 34.170631] kasan_kmalloc+0xad/0xe0 [ 34.174310] kasan_slab_alloc+0x12/0x20 [ 34.178257] kmem_cache_alloc+0x12e/0x760 [ 34.182372] vmx_create_vcpu+0xc4/0x2f20 [ 34.186400] kvm_arch_vcpu_create+0x12c/0x1a0 [ 34.190871] kvm_vm_ioctl+0x48b/0x1c60 [ 34.194723] do_vfs_ioctl+0x1b1/0x1520 [ 34.198575] SyS_ioctl+0x8f/0xc0 [ 34.201908] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 34.206626] [ 34.208220] Freed by task 8273: [ 34.211480] save_stack+0x43/0xd0 [ 34.214900] kasan_slab_free+0x71/0xc0 [ 34.218752] kmem_cache_free+0x83/0x2a0 [ 34.222693] vmx_free_vcpu+0x1ee/0x260 [ 34.226548] kvm_arch_destroy_vm+0x4a2/0x980 [ 34.230922] kvm_put_kvm+0x695/0xde0 [ 34.234601] kvm_vm_release+0x42/0x50 [ 34.238368] __fput+0x327/0x7e0 [ 34.241615] ____fput+0x15/0x20 [ 34.244863] task_work_run+0x199/0x270 [ 34.248726] do_exit+0x9bb/0x1ad0 [ 34.252151] do_group_exit+0x149/0x400 [ 34.256005] get_signal+0x73f/0x16c0 [ 34.259712] do_signal+0x94/0x1ee0 [ 34.263233] exit_to_usermode_loop+0x258/0x2f0 [ 34.267781] syscall_return_slowpath+0x490/0x550 [ 34.272506] entry_SYSCALL_64_fastpath+0x94/0x96 [ 34.277222] [ 34.278817] The buggy address belongs to the object at ffff8801be539700 [ 34.278817] which belongs to the cache kvm_vcpu of size 23872 [ 34.291352] The buggy address is located 24 bytes inside of [ 34.291352] 23872-byte region [ffff8801be539700, ffff8801be53f440) [ 34.303291] The buggy address belongs to the page: [ 34.308187] page:ffffea0006f94e00 count:1 mapcount:0 mapping:ffff8801be539700 index:0x0 compound_mapcount: 0 [ 34.318124] flags: 0x2fffc0000008100(slab|head) [ 34.322771] raw: 02fffc0000008100 ffff8801be539700 0000000000000000 0000000100000001 [ 34.330643] raw: ffffea0006f91e20 ffff8801d6da4f48 ffff8801d6d90840 0000000000000000 [ 34.338494] page dumped because: kasan: bad access detected [ 34.344175] [ 34.345771] Memory state around the buggy address: [ 34.350674] ffff8801be539600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.358090] ffff8801be539680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.365417] >ffff8801be539700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.372742] ^ [ 34.376863] ffff8801be539780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.384190] ffff8801be539800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.391511] ================================================================== [ 34.398844] Kernel panic - not syncing: panic_on_warn set ... [ 34.398844] [ 34.406177] CPU: 1 PID: 8273 Comm: syzkaller940820 Tainted: G B 4.15.0-rc4-mm1+ #47 [ 34.415151] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.424472] Call Trace: [ 34.427031] dump_stack+0x194/0x257 [ 34.430627] ? arch_local_irq_restore+0x53/0x53 [ 34.435265] ? kasan_end_report+0x32/0x50 [ 34.439382] ? lock_downgrade+0x980/0x980 [ 34.443496] ? vsnprintf+0x1ed/0x1900 [ 34.447267] ? __schedule+0xcf0/0x2060 [ 34.451123] panic+0x1e4/0x41c [ 34.454294] ? refcount_error_report+0x214/0x214 [ 34.459032] ? print_shadow_for_address+0xdc/0x1a0 [ 34.463928] ? add_taint+0x1c/0x50 [ 34.467439] ? __schedule+0xda3/0x2060 [ 34.471295] kasan_end_report+0x50/0x50 [ 34.475238] kasan_report+0x148/0x360 [ 34.479009] __asan_report_load8_noabort+0x14/0x20 [ 34.483915] __schedule+0xda3/0x2060 [ 34.487601] ? __sched_text_start+0x8/0x8 [ 34.491717] ? trace_hardirqs_on+0xd/0x10 [ 34.495835] ? __call_srcu+0x7ee/0x1020 [ 34.499776] ? do_raw_spin_trylock+0x190/0x190 [ 34.504324] ? do_raw_spin_trylock+0x190/0x190 [ 34.508882] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 34.514734] ? __debug_object_init+0x235/0x1040 [ 34.519380] preempt_schedule_common+0x22/0x60 [ 34.523929] _cond_resched+0x1d/0x30 [ 34.527610] wait_for_completion+0xa5/0x770 [ 34.531898] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.536884] ? wait_for_completion_interruptible+0x7e0/0x7e0 [ 34.542654] ? __lockdep_init_map+0xe4/0x650 [ 34.547033] ? __init_waitqueue_head+0x97/0x140 [ 34.551673] ? init_wait_entry+0x1b0/0x1b0 [ 34.555885] __synchronize_srcu+0x1ad/0x260 [ 34.560174] ? call_srcu+0x10/0x10 [ 34.563682] ? trace_raw_output_rcu_utilization+0xb0/0xb0 [ 34.569200] ? irq_matrix_allocated+0x80/0x80 [ 34.573663] ? synchronize_srcu+0x3c5/0x570 [ 34.577956] synchronize_srcu+0x1a3/0x570 [ 34.582070] ? synchronize_srcu+0x1a3/0x570 [ 34.586359] ? lock_downgrade+0x980/0x980 [ 34.590477] ? synchronize_srcu_expedited+0x20/0x20 [ 34.595462] ? lock_release+0xa40/0xa40 [ 34.599418] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 34.604231] ? do_raw_spin_trylock+0x190/0x190 [ 34.608793] kvm_page_track_unregister_notifier+0x186/0x270 [ 34.614474] ? kvm_slot_page_track_remove_page+0x60/0x60 [ 34.619894] ? kvfree+0x36/0x60 [ 34.623140] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.628128] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.632159] kvm_arch_destroy_vm+0x73b/0x980 [ 34.636540] ? kvm_arch_sync_events+0x30/0x30 [ 34.641003] ? mmdrop+0x18/0x30 [ 34.644251] ? mmu_notifier_unregister+0x43c/0x5c0 [ 34.649148] ? kvm_put_kvm+0x47a/0xde0 [ 34.653007] ? __mmu_notifier_invalidate_range_end+0x360/0x360 [ 34.658956] ? __free_pages+0x107/0x150 [ 34.662911] ? free_unref_page+0x9e0/0x9e0 [ 34.667115] ? quarantine_put+0xeb/0x190 [ 34.671141] ? kfree+0xf0/0x260 [ 34.674388] ? kvm_put_kvm+0x614/0xde0 [ 34.678253] ? free_pages+0x51/0x90 [ 34.681849] kvm_put_kvm+0x695/0xde0 [ 34.685537] ? kvm_clear_guest+0xb0/0xb0 [ 34.689569] ? kvm_irqfd_release+0xd1/0x120 [ 34.693862] ? lock_downgrade+0x980/0x980 [ 34.698000] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.702469] ? kvm_irqfd_release+0xdd/0x120 [ 34.706759] ? kvm_irqfd_release+0xdd/0x120 [ 34.711052] ? kvm_put_kvm+0xde0/0xde0 [ 34.714915] kvm_vm_release+0x42/0x50 [ 34.718686] __fput+0x327/0x7e0 [ 34.721938] ? fput+0x140/0x140 [ 34.725188] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 34.731040] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.735508] ____fput+0x15/0x20 [ 34.738759] task_work_run+0x199/0x270 [ 34.742616] ? task_work_cancel+0x210/0x210 [ 34.746907] ? _raw_spin_unlock+0x22/0x30 [ 34.751036] ? switch_task_namespaces+0x87/0xc0 [ 34.755695] do_exit+0x9bb/0x1ad0 [ 34.759120] ? mm_update_next_owner+0x930/0x930 [ 34.763758] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 34.768919] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 34.774077] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 34.779234] ? _cond_resched+0x14/0x30 [ 34.783096] ? check_noncircular+0x20/0x20 [ 34.787306] ? check_noncircular+0x20/0x20 [ 34.791516] ? vm_normal_page_pmd+0x2c0/0x2c0 [ 34.795979] ? check_noncircular+0x20/0x20 [ 34.800180] ? check_noncircular+0x20/0x20 [ 34.804385] ? check_noncircular+0x20/0x20 [ 34.808593] ? find_held_lock+0x35/0x1d0 [ 34.812631] ? get_signal+0x7ae/0x16c0 [ 34.816494] ? lock_downgrade+0x980/0x980 [ 34.820615] do_group_exit+0x149/0x400 [ 34.824472] ? do_raw_spin_trylock+0x190/0x190 [ 34.829027] ? SyS_exit+0x30/0x30 [ 34.832450] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.836913] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.841900] get_signal+0x73f/0x16c0 [ 34.845591] ? ptrace_notify+0x130/0x130 [ 34.849620] ? tlb_flush_mmu_free+0xeb/0x160 [ 34.854002] ? blk_flush_plug_list+0x7e4/0xaf0 [ 34.858552] ? tlb_finish_mmu+0x10f/0x190 [ 34.862666] ? check_noncircular+0x20/0x20 [ 34.866877] ? tlb_gather_mmu+0x70/0x70 [ 34.870821] ? blk_init_request_from_bio+0x440/0x440 [ 34.875899] do_signal+0x94/0x1ee0 [ 34.879414] ? find_held_lock+0x35/0x1d0 [ 34.883450] ? setup_sigcontext+0x7d0/0x7d0 [ 34.887742] ? SyS_madvise+0x9f4/0x13d0 [ 34.891774] ? lock_downgrade+0x980/0x980 [ 34.895894] ? blk_lld_busy+0x60/0x60 [ 34.899687] ? vmacache_update+0xfe/0x130 [ 34.903806] ? find_vma+0x30/0x150 [ 34.907321] ? exit_to_usermode_loop+0x8c/0x2f0 [ 34.911965] exit_to_usermode_loop+0x258/0x2f0 [ 34.916520] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 34.922028] ? madvise_free_pte_range+0x1ea0/0x1ea0 [ 34.927032] syscall_return_slowpath+0x490/0x550 [ 34.931758] ? prepare_exit_to_usermode+0x340/0x340 [ 34.936758] ? entry_SYSCALL_64_fastpath+0x69/0x96 [ 34.941663] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.946651] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 34.951381] entry_SYSCALL_64_fastpath+0x94/0x96 [ 34.956107] RIP: 0033:0x44d2f7 [ 34.959265] RSP: 002b:00007f03146d3d18 EFLAGS: 00000206 ORIG_RAX: 000000000000001c [ 34.966940] RAX: 0000000000000000 RBX: 00007f03146d4700 RCX: 000000000044d2f7 [ 34.974178] RDX: 0000000000000004 RSI: 00000000007fb000 RDI: 00007f0313ed4000 [ 34.981418] RBP: 0000000000000000 R08: 00007f03146d4700 R09: 00007f03146d4700 [ 34.988656] R10: 00007f03146d4700 R11: 0000000000000206 R12: 0000000000000000 [ 34.995894] R13: 00007ffe7791824f R14: 00007f03146d49c0 R15: 0000000000000000 [ 35.003149] [ 35.003152] ====================================================== [ 35.003154] WARNING: possible circular locking dependency detected [ 35.003156] 4.15.0-rc4-mm1+ #47 Not tainted [ 35.003158] ------------------------------------------------------ [ 35.003160] syzkaller940820/8273 is trying to acquire lock: [ 35.003161] ((console_sem).lock){..-.}, at: [<000000001c55e02f>] down_trylock+0x13/0x70 [ 35.003167] [ 35.003168] but task is already holding lock: [ 35.003169] (report_lock){....}, at: [<000000009b7c4b4e>] kasan_report+0x6b/0x360 [ 35.003175] [ 35.003176] which lock already depends on the new lock. [ 35.003177] [ 35.003178] [ 35.003181] the existing dependency chain (in reverse order) is: [ 35.003181] [ 35.003182] -> #3 (report_lock){....}: [ 35.003188] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.003190] kasan_report+0x6b/0x360 [ 35.003192] __asan_report_load8_noabort+0x14/0x20 [ 35.003193] __schedule+0xda3/0x2060 [ 35.003195] preempt_schedule_common+0x22/0x60 [ 35.003197] _cond_resched+0x1d/0x30 [ 35.003198] wait_for_completion+0xa5/0x770 [ 35.003200] __synchronize_srcu+0x1ad/0x260 [ 35.003202] synchronize_srcu+0x1a3/0x570 [ 35.003204] kvm_page_track_unregister_notifier+0x186/0x270 [ 35.003206] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.003208] kvm_arch_destroy_vm+0x73b/0x980 [ 35.003209] kvm_put_kvm+0x695/0xde0 [ 35.003211] kvm_vm_release+0x42/0x50 [ 35.003212] __fput+0x327/0x7e0 [ 35.003214] ____fput+0x15/0x20 [ 35.003215] task_work_run+0x199/0x270 [ 35.003217] do_exit+0x9bb/0x1ad0 [ 35.003219] do_group_exit+0x149/0x400 [ 35.003220] get_signal+0x73f/0x16c0 [ 35.003222] do_signal+0x94/0x1ee0 [ 35.003224] exit_to_usermode_loop+0x258/0x2f0 [ 35.003225] syscall_return_slowpath+0x490/0x550 [ 35.003227] entry_SYSCALL_64_fastpath+0x94/0x96 [ 35.003228] [ 35.003229] -> #2 (&rq->lock){-.-.}: [ 35.003234] _raw_spin_lock+0x2a/0x40 [ 35.003236] task_fork_fair+0x7a/0x690 [ 35.003238] sched_fork+0x435/0xc00 [ 35.003239] copy_process.part.37+0x1758/0x4b60 [ 35.003241] _do_fork+0x1f7/0xf70 [ 35.003243] kernel_thread+0x34/0x40 [ 35.003244] rest_init+0x22/0xf0 [ 35.003246] start_kernel+0x7f1/0x819 [ 35.003248] x86_64_start_reservations+0x2a/0x2c [ 35.003249] x86_64_start_kernel+0x77/0x7a [ 35.003251] secondary_startup_64+0xa5/0xb0 [ 35.003252] [ 35.003253] -> #1 (&p->pi_lock){-.-.}: [ 35.003258] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.003260] try_to_wake_up+0xbc/0x1600 [ 35.003262] wake_up_process+0x10/0x20 [ 35.003263] __up.isra.0+0x1cc/0x2c0 [ 35.003265] up+0x13b/0x1d0 [ 35.003266] __up_console_sem+0xb2/0x1a0 [ 35.003268] console_unlock+0x538/0xd70 [ 35.003270] vprintk_emit+0x4ad/0x590 [ 35.003271] dev_vprintk_emit+0x183/0x510 [ 35.003273] dev_printk_emit+0xc0/0xf0 [ 35.003275] __dev_printk+0xa7/0x120 [ 35.003276] dev_warn+0x10b/0x170 [ 35.003278] _request_firmware+0x1021/0x1960 [ 35.003280] request_firmware_work_func+0xe3/0x2c0 [ 35.003282] process_one_work+0xbbf/0x1af0 [ 35.003284] worker_thread+0x223/0x1990 [ 35.003285] kthread+0x33c/0x400 [ 35.003287] ret_from_fork+0x24/0x30 [ 35.003288] [ 35.003289] -> #0 ((console_sem).lock){..-.}: [ 35.003294] lock_acquire+0x1d5/0x580 [ 35.003296] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.003298] down_trylock+0x13/0x70 [ 35.003300] __down_trylock_console_sem+0xa2/0x1e0 [ 35.003302] console_trylock+0x15/0x100 [ 35.003303] vprintk_emit+0x49b/0x590 [ 35.003305] vprintk_default+0x28/0x30 [ 35.003307] vprintk_func+0x57/0xc0 [ 35.003308] printk+0xaa/0xca [ 35.003310] kasan_report+0x7b/0x360 [ 35.003312] __asan_report_load8_noabort+0x14/0x20 [ 35.003313] __schedule+0xda3/0x2060 [ 35.003315] preempt_schedule_common+0x22/0x60 [ 35.003317] _cond_resched+0x1d/0x30 [ 35.003318] wait_for_completion+0xa5/0x770 [ 35.003320] __synchronize_srcu+0x1ad/0x260 [ 35.003322] synchronize_srcu+0x1a3/0x570 [ 35.003324] kvm_page_track_unregister_notifier+0x186/0x270 [ 35.003326] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.003328] kvm_arch_destroy_vm+0x73b/0x980 [ 35.003329] kvm_put_kvm+0x695/0xde0 [ 35.003331] kvm_vm_release+0x42/0x50 [ 35.003332] __fput+0x327/0x7e0 [ 35.003334] ____fput+0x15/0x20 [ 35.003335] task_work_run+0x199/0x270 [ 35.003337] do_exit+0x9bb/0x1ad0 [ 35.003339] do_group_exit+0x149/0x400 [ 35.003340] get_signal+0x73f/0x16c0 [ 35.003342] do_signal+0x94/0x1ee0 [ 35.003344] exit_to_usermode_loop+0x258/0x2f0 [ 35.003345] syscall_return_slowpath+0x490/0x550 [ 35.003347] entry_SYSCALL_64_fastpath+0x94/0x96 [ 35.003348] [ 35.003350] other info that might help us debug this: [ 35.003351] [ 35.003352] Chain exists of: [ 35.003353] (console_sem).lock --> &rq->lock --> report_lock [ 35.003360] [ 35.003361] Possible unsafe locking scenario: [ 35.003362] [ 35.003364] CPU0 CPU1 [ 35.003366] ---- ---- [ 35.003367] lock(report_lock); [ 35.003370] lock(&rq->lock); [ 35.003374] lock(report_lock); [ 35.003377] lock((console_sem).lock); [ 35.003380] [ 35.003381] *** DEADLOCK *** [ 35.003382] [ 35.003384] 2 locks held by syzkaller940820/8273: [ 35.003385] #0: (&rq->lock){-.-.}, at: [<00000000e0c85b1b>] __schedule+0x24e/0x2060 [ 35.003390] #1: (report_lock){....}, at: [<000000009b7c4b4e>] kasan_report+0x6b/0x360 [ 35.003396] [ 35.003397] stack backtrace: [ 35.003400] CPU: 1 PID: 8273 Comm: syzkaller940820 Not tainted 4.15.0-rc4-mm1+ #47 [ 35.003403] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.003405] Call Trace: [ 35.003406] dump_stack+0x194/0x257 [ 35.003408] ? arch_local_irq_restore+0x53/0x53 [ 35.003410] print_circular_bug.isra.37+0x2cd/0x2dc [ 35.003411] ? save_trace+0xe0/0x2b0 [ 35.003413] __lock_acquire+0x30a8/0x3e00 [ 35.003415] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.003417] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.003419] ? print_lockdep_cache.isra.31+0x109/0x109 [ 35.003420] ? save_stack_trace+0x1a/0x20 [ 35.003422] ? save_trace+0xe0/0x2b0 [ 35.003424] ? __lock_acquire+0x36c0/0x3e00 [ 35.003426] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.003427] ? __lock_is_held+0xb6/0x140 [ 35.003429] ? __lock_is_held+0xb6/0x140 [ 35.003430] lock_acquire+0x1d5/0x580 [ 35.003432] ? lock_acquire+0x1d5/0x580 [ 35.003433] ? down_trylock+0x13/0x70 [ 35.003435] ? find_held_lock+0x35/0x1d0 [ 35.003437] ? lock_release+0xa40/0xa40 [ 35.003438] ? vprintk_emit+0x379/0x590 [ 35.003440] ? lock_downgrade+0x980/0x980 [ 35.003442] ? kvm_sched_clock_read+0x25/0x40 [ 35.003443] ? sched_clock+0x31/0x40 [ 35.003445] ? sched_clock_cpu+0x1b/0x170 [ 35.003447] ? vprintk_emit+0x49b/0x590 [ 35.003448] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.003450] ? down_trylock+0x13/0x70 [ 35.003452] down_trylock+0x13/0x70 [ 35.003453] ? vprintk_emit+0x49b/0x590 [ 35.003455] __down_trylock_console_sem+0xa2/0x1e0 [ 35.003457] console_trylock+0x15/0x100 [ 35.003458] vprintk_emit+0x49b/0x590 [ 35.003460] vprintk_default+0x28/0x30 [ 35.003461] vprintk_func+0x57/0xc0 [ 35.003463] printk+0xaa/0xca [ 35.003464] ? show_regs_print_info+0x18/0x18 [ 35.003466] ? __schedule+0xda3/0x2060 [ 35.003467] kasan_report+0x7b/0x360 [ 35.003469] __asan_report_load8_noabort+0x14/0x20 [ 35.003471] __schedule+0xda3/0x2060 [ 35.003472] ? __sched_text_start+0x8/0x8 [ 35.003474] ? trace_hardirqs_on+0xd/0x10 [ 35.003476] ? __call_srcu+0x7ee/0x1020 [ 35.003477] ? do_raw_spin_trylock+0x190/0x190 [ 35.003479] ? do_raw_spin_trylock+0x190/0x190 [ 35.003481] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.003483] ? __debug_object_init+0x235/0x1040 [ 35.003485] preempt_schedule_common+0x22/0x60 [ 35.003486] _cond_resched+0x1d/0x30 [ 35.003488] wait_for_completion+0xa5/0x770 [ 35.003490] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.003492] ? wait_for_completion_interruptible+0x7e0/0x7e0 [ 35.003494] ? __lockdep_init_map+0xe4/0x650 [ 35.003496] ? __init_waitqueue_head+0x97/0x140 [ 35.003497] ? init_wait_entry+0x1b0/0x1b0 [ 35.003499] __synchronize_srcu+0x1ad/0x260 [ 35.003500] ? call_srcu+0x10/0x10 [ 35.003502] ? trace_raw_output_rcu_utilization+0xb0/0xb0 [ 35.003504] ? irq_matrix_allocated+0x80/0x80 [ 35.003506] ? synchronize_srcu+0x3c5/0x570 [ 35.003508] synchronize_srcu+0x1a3/0x570 [ 35.003510] ? synchronize_srcu+0x1a3/0x570 [ 35.003511] ? lock_downgrade+0x980/0x980 [ 35.003513] ? synchronize_srcu_expedited+0x20/0x20 [ 35.003515] ? lock_release+0xa40/0xa40 [ 35.003517] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 35.003518] ? do_raw_spin_trylock+0x190/0x190 [ 35.003521] kvm_page_track_unregister_notifier+0x186/0x270 [ 35.003523] ? kvm_slot_page_track_remove_page+0x60/0x60 [ 35.003524] ? kvfree+0x36/0x60 [ 35.003526] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.003528] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.003529] kvm_arch_destroy_vm+0x73b/0x980 [ 35.003531] ? kvm_arch_sync_events+0x30/0x30 [ 35.003532] ? mmdrop+0x18/0x30 [ 35.003534] ? mmu_notifier_unregister+0x43c/0x5c0 [ 35.003536] ? kvm_put_kvm+0x47a/0xde0 [ 35.003538] ? __mmu_notifier_invalidate_range_end+0x360/0x360 [ 35.003540] ? __free_pages+0x107/0x150 [ 35.003541] ? free_unref_page+0x9e0/0x9e0 [ 35.003543] ? quarantine_put+0xeb/0x190 [ 35.003544] ? kfree+0xf0/0x260 [ 35.003546] ? kvm_put_kvm+0x614/0xde0 [ 35.003547] ? free_pages+0x51/0x90 [ 35.003549] kvm_put_kvm+0x695/0xde0 [ 35.003550] ? kvm_clear_guest+0xb0/0xb0 [ 35.003552] ? kvm_irqfd_release+0xd1/0x120 [ 35.003554] ? lock_downgrade+0x980/0x980 [ 35.003556] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.003557] ? kvm_irqfd_release+0xdd/0x120 [ 35.003559] ? kvm_irqfd_release+0xdd/0x120 [ 35.003560] ? kvm_put_kvm+0xde0/0xde0 [ 35.003562] kvm_vm_release+0x42/0x50 [ 35.003563] __fput+0x327/0x7e0 [ 35.003565] ? fput+0x140/0x140 [ 35.003567] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.003569] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.003570] ____fput+0x15/0x20 [ 35.003572] task_work_run+0x199/0x270 [ 35.003573] ? task_work_cancel+0x210/0x210 [ 35.003575] ? _raw_spin_unlock+0x22/0x30 [ 35.003577] ? switch_task_namespaces+0x87/0xc0 [ 35.003578] do_exit+0x9bb/0x1ad0 [ 35.003580] ? mm_update_next_owner+0x930/0x930 [ 35.003582] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.003584] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.003586] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.003588] ? _cond_resched+0x14/0x30 [ 35.003589] ? check_noncircular+0x20/0x20 [ 35.003590] ? check_nonci [ 35.003594] Lost 46 message(s)! [ 36.078221] Shutting down cpus with NMI [ 37.131698] Dumping ftrace buffer: [ 37.135206] (ftrace buffer empty) [ 37.138900] Kernel Offset: disabled [ 37.142494] Rebooting in 86400 seconds..