[....] Starting enhanced syslogd: rsyslogd[ 11.419305] audit: type=1400 audit(1513781069.603:5): avc: denied { syslog } for pid=2999 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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] 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: [ 17.029244] audit: type=1400 audit(1513781075.212:6): avc: denied { map } for pid=3138 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-next-kasan-gce-3,10.128.0.28' (ECDSA) to the list of known hosts. net.ipv6.conf.syz5.accept_dad = 0 net.ipv6.conf.syz1.accept_dad = 0 net.ipv6.conf.syz6.accept_dad = 0 [ 29.530831] audit: type=1400 audit(1513781087.714:7): avc: denied { map } for pid=3154 comm="syzkaller812198" path="/root/syzkaller812198107" 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.accept_dad = 0 net.ipv6.conf.syz3.accept_dad = 0 net.ipv6.conf.syz4.accept_dad = 0 net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz1.router_solicitations = 0 net.ipv6.conf.syz2.accept_dad = 0 net.ipv6.conf.syz6.router_solicitations = 0 net.ipv6.conf.syz3.router_solicitations = 0 net.ipv6.conf.syz5.router_solicitations = 0 net.ipv6.conf.syz4.router_solicitations = 0 net.ipv6.conf.syz7.router_solicitations = 0 net.ipv6.conf.syz2.router_solicitations = 0 net.ipv6.conf.syz0.router_solicitations = 0 executing program executing program executing program executing program executing program executing program executing program executing program [ 30.101035] 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 [ 30.881888] ================================================================== [ 30.890003] BUG: KASAN: use-after-free in __schedule+0xda3/0x2060 [ 30.896216] Read of size 8 at addr ffff8801d6399498 by task syzkaller812198/3983 [ 30.903713] [ 30.905309] CPU: 0 PID: 3983 Comm: syzkaller812198 Not tainted 4.15.0-rc4-next-20171220+ #77 [ 30.913849] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.923168] Call Trace: [ 30.925720] dump_stack+0x194/0x257 [ 30.929311] ? arch_local_irq_restore+0x53/0x53 [ 30.933945] ? show_regs_print_info+0x18/0x18 [ 30.938407] ? __schedule+0xda3/0x2060 [ 30.942262] print_address_description+0x73/0x250 [ 30.947069] ? __schedule+0xda3/0x2060 [ 30.950921] kasan_report+0x25b/0x340 [ 30.954690] __asan_report_load8_noabort+0x14/0x20 [ 30.959585] __schedule+0xda3/0x2060 [ 30.963268] ? __sched_text_start+0x8/0x8 [ 30.967382] ? trace_hardirqs_on+0xd/0x10 [ 30.971496] ? __call_srcu+0x7ee/0x1020 [ 30.975434] ? do_raw_spin_trylock+0x190/0x190 [ 30.979979] ? do_raw_spin_trylock+0x190/0x190 [ 30.984532] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 30.990380] ? __debug_object_init+0x235/0x1040 [ 30.995018] preempt_schedule_common+0x22/0x60 [ 30.999576] _cond_resched+0x1d/0x30 [ 31.003255] wait_for_completion+0xa5/0x770 [ 31.007541] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.012524] ? wait_for_completion_interruptible+0x7e0/0x7e0 [ 31.018287] ? __lockdep_init_map+0xe4/0x650 [ 31.022663] ? __init_waitqueue_head+0x97/0x140 [ 31.027298] ? init_wait_entry+0x1b0/0x1b0 [ 31.031502] __synchronize_srcu+0x1ad/0x260 [ 31.035788] ? call_srcu+0x10/0x10 [ 31.039292] ? trace_raw_output_rcu_utilization+0xb0/0xb0 [ 31.044798] ? irq_matrix_allocated+0x80/0x80 [ 31.049259] ? synchronize_srcu+0x3c5/0x570 [ 31.053547] synchronize_srcu+0x1a3/0x570 [ 31.057657] ? synchronize_srcu+0x1a3/0x570 [ 31.061947] ? lock_downgrade+0x980/0x980 [ 31.066058] ? synchronize_srcu_expedited+0x20/0x20 [ 31.071037] ? lock_release+0xa40/0xa40 [ 31.074975] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 31.079786] ? do_raw_spin_trylock+0x190/0x190 [ 31.084340] kvm_page_track_unregister_notifier+0x186/0x270 [ 31.090016] ? kvm_slot_page_track_remove_page+0x60/0x60 [ 31.095442] ? kvfree+0x36/0x60 [ 31.098686] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.103668] kvm_mmu_uninit_vm+0x1c/0x20 [ 31.107694] kvm_arch_destroy_vm+0x73b/0x980 [ 31.112068] ? kvm_arch_sync_events+0x30/0x30 [ 31.116528] ? mmdrop+0x18/0x30 [ 31.119773] ? mmu_notifier_unregister+0x437/0x5c0 [ 31.124665] ? kvm_put_kvm+0x47a/0xde0 [ 31.128521] ? mmu_notifier_unregister_no_release+0x3e0/0x3e0 [ 31.134370] ? __free_pages+0x107/0x150 [ 31.138310] ? free_unref_page+0x9e0/0x9e0 [ 31.142509] ? quarantine_put+0xeb/0x190 [ 31.146534] ? kfree+0xf0/0x260 [ 31.149778] ? kvm_put_kvm+0x614/0xde0 [ 31.153634] ? free_pages+0x51/0x90 [ 31.157225] kvm_put_kvm+0x695/0xde0 [ 31.160907] ? kvm_clear_guest+0xb0/0xb0 [ 31.164935] ? kvm_irqfd_release+0xd1/0x120 [ 31.169231] ? lock_downgrade+0x980/0x980 [ 31.173352] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.177821] ? kvm_irqfd_release+0xdd/0x120 [ 31.182106] ? kvm_irqfd_release+0xdd/0x120 [ 31.186401] ? kvm_put_kvm+0xde0/0xde0 [ 31.190251] kvm_vm_release+0x42/0x50 [ 31.194019] __fput+0x327/0x7e0 [ 31.197268] ? fput+0x140/0x140 [ 31.200533] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 31.206381] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.210842] ____fput+0x15/0x20 [ 31.214086] task_work_run+0x199/0x270 [ 31.217939] ? task_work_cancel+0x210/0x210 [ 31.222224] ? _raw_spin_unlock+0x22/0x30 [ 31.226337] ? switch_task_namespaces+0x87/0xc0 [ 31.230976] do_exit+0x9bb/0x1ad0 [ 31.234396] ? mm_update_next_owner+0x930/0x930 [ 31.239033] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.244194] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.249359] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.254512] ? _cond_resched+0x14/0x30 [ 31.258372] ? check_noncircular+0x20/0x20 [ 31.262578] ? check_noncircular+0x20/0x20 [ 31.266786] ? vm_normal_page_pmd+0x2c0/0x2c0 [ 31.271251] ? check_noncircular+0x20/0x20 [ 31.275467] ? check_noncircular+0x20/0x20 [ 31.279671] ? check_noncircular+0x20/0x20 [ 31.283875] ? find_held_lock+0x35/0x1d0 [ 31.287905] ? get_signal+0x7ae/0x16c0 [ 31.291759] ? lock_downgrade+0x980/0x980 [ 31.295883] do_group_exit+0x149/0x400 [ 31.299741] ? do_raw_spin_trylock+0x190/0x190 [ 31.304291] ? SyS_exit+0x30/0x30 [ 31.307710] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.312173] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.317157] get_signal+0x73f/0x16c0 [ 31.320839] ? ptrace_notify+0x130/0x130 [ 31.324864] ? tlb_flush_mmu_free+0xeb/0x160 [ 31.329242] ? blk_flush_plug_list+0x7e4/0xaf0 [ 31.333790] ? tlb_finish_mmu+0x10f/0x190 [ 31.337904] ? check_noncircular+0x20/0x20 [ 31.342101] ? tlb_gather_mmu+0x70/0x70 [ 31.346040] ? blk_init_request_from_bio+0x440/0x440 [ 31.351113] do_signal+0x94/0x1ee0 [ 31.354620] ? find_held_lock+0x35/0x1d0 [ 31.358651] ? setup_sigcontext+0x7d0/0x7d0 [ 31.362943] ? SyS_madvise+0x9f4/0x13d0 [ 31.366883] ? lock_downgrade+0x980/0x980 [ 31.371001] ? blk_lld_busy+0x60/0x60 [ 31.374773] ? vmacache_update+0xfe/0x130 [ 31.378887] ? find_vma+0x30/0x150 [ 31.382398] ? exit_to_usermode_loop+0x8c/0x2f0 [ 31.387033] exit_to_usermode_loop+0x258/0x2f0 [ 31.391580] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 31.397082] ? madvise_free_pte_range+0x1ea0/0x1ea0 [ 31.402063] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 31.407567] syscall_return_slowpath+0x490/0x550 [ 31.412285] ? prepare_exit_to_usermode+0x340/0x340 [ 31.417268] ? entry_SYSCALL_64_fastpath+0x69/0x96 [ 31.422162] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.427142] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.431868] entry_SYSCALL_64_fastpath+0x94/0x96 [ 31.436589] RIP: 0033:0x44d2f7 [ 31.439746] RSP: 002b:00007f95a2d25d18 EFLAGS: 00000206 ORIG_RAX: 000000000000001c [ 31.447418] RAX: 0000000000000000 RBX: 00007f95a2d26700 RCX: 000000000044d2f7 [ 31.454651] RDX: 0000000000000004 RSI: 00000000007fb000 RDI: 00007f95a2526000 [ 31.461886] RBP: 0000000000000000 R08: 00007f95a2d26700 R09: 00007f95a2d26700 [ 31.469123] R10: 00007f95a2d26700 R11: 0000000000000206 R12: 0000000000000000 [ 31.476358] R13: 00007ffe3ec3bbef R14: 00007f95a2d269c0 R15: 0000000000000000 [ 31.483599] [ 31.485192] Allocated by task 3963: [ 31.488788] save_stack+0x43/0xd0 [ 31.492205] kasan_kmalloc+0xad/0xe0 [ 31.495883] kasan_slab_alloc+0x12/0x20 [ 31.499820] kmem_cache_alloc+0x12e/0x760 [ 31.503932] vmx_create_vcpu+0xc4/0x2f20 [ 31.507960] kvm_arch_vcpu_create+0x12c/0x1a0 [ 31.512421] kvm_vm_ioctl+0x48b/0x1c60 [ 31.516273] do_vfs_ioctl+0x1b1/0x1520 [ 31.520122] SyS_ioctl+0x8f/0xc0 [ 31.523455] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 31.528172] [ 31.529766] Freed by task 3983: [ 31.533012] save_stack+0x43/0xd0 [ 31.536429] kasan_slab_free+0x71/0xc0 [ 31.540279] kmem_cache_free+0x83/0x2a0 [ 31.544216] vmx_free_vcpu+0x1ee/0x260 [ 31.548066] kvm_arch_destroy_vm+0x4a2/0x980 [ 31.552440] kvm_put_kvm+0x695/0xde0 [ 31.556119] kvm_vm_release+0x42/0x50 [ 31.559882] __fput+0x327/0x7e0 [ 31.563122] ____fput+0x15/0x20 [ 31.566368] task_work_run+0x199/0x270 [ 31.570216] do_exit+0x9bb/0x1ad0 [ 31.573635] do_group_exit+0x149/0x400 [ 31.577486] get_signal+0x73f/0x16c0 [ 31.581164] do_signal+0x94/0x1ee0 [ 31.584667] exit_to_usermode_loop+0x258/0x2f0 [ 31.589210] syscall_return_slowpath+0x490/0x550 [ 31.593932] entry_SYSCALL_64_fastpath+0x94/0x96 [ 31.598648] [ 31.600241] The buggy address belongs to the object at ffff8801d6399480 [ 31.600241] which belongs to the cache kvm_vcpu of size 23872 [ 31.612775] The buggy address is located 24 bytes inside of [ 31.612775] 23872-byte region [ffff8801d6399480, ffff8801d639f1c0) [ 31.624700] The buggy address belongs to the page: [ 31.629593] page:00000000d3a18ac4 count:1 mapcount:0 mapping:000000008a906087 index:0x0 compound_mapcount: 0 [ 31.639528] flags: 0x2fffc0000008100(slab|head) [ 31.644164] raw: 02fffc0000008100 ffff8801d6399480 0000000000000000 0000000100000001 [ 31.652011] raw: ffffea000761e420 ffffea0007552020 ffff8801d643e6c0 0000000000000000 [ 31.659855] page dumped because: kasan: bad access detected [ 31.665527] [ 31.667206] Memory state around the buggy address: [ 31.672108] ffff8801d6399380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.679431] ffff8801d6399400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.686753] >ffff8801d6399480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.694077] ^ [ 31.698198] ffff8801d6399500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.705521] ffff8801d6399580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.712844] ================================================================== [ 31.720166] Kernel panic - not syncing: panic_on_warn set ... [ 31.720166] [ 31.727510] CPU: 0 PID: 3983 Comm: syzkaller812198 Tainted: G B 4.15.0-rc4-next-20171220+ #77 [ 31.737356] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.746676] Call Trace: [ 31.749236] dump_stack+0x194/0x257 [ 31.752832] ? arch_local_irq_restore+0x53/0x53 [ 31.757465] ? kasan_end_report+0x32/0x50 [ 31.761590] ? lock_downgrade+0x980/0x980 [ 31.765703] ? vsnprintf+0x1ed/0x1900 [ 31.769479] ? __schedule+0xcf0/0x2060 [ 31.773334] panic+0x1e4/0x41c [ 31.776493] ? refcount_error_report+0x214/0x214 [ 31.781216] ? print_shadow_for_address+0xdc/0x1a0 [ 31.786110] ? add_taint+0x1c/0x50 [ 31.789617] ? __schedule+0xda3/0x2060 [ 31.793472] kasan_end_report+0x50/0x50 [ 31.797409] kasan_report+0x144/0x340 [ 31.801178] __asan_report_load8_noabort+0x14/0x20 [ 31.806070] __schedule+0xda3/0x2060 [ 31.809754] ? __sched_text_start+0x8/0x8 [ 31.813870] ? trace_hardirqs_on+0xd/0x10 [ 31.820494] ? __call_srcu+0x7ee/0x1020 [ 31.824447] ? do_raw_spin_trylock+0x190/0x190 [ 31.829006] ? do_raw_spin_trylock+0x190/0x190 [ 31.833572] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 31.839428] ? __debug_object_init+0x235/0x1040 [ 31.844074] preempt_schedule_common+0x22/0x60 [ 31.848629] _cond_resched+0x1d/0x30 [ 31.852313] wait_for_completion+0xa5/0x770 [ 31.856605] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.861590] ? wait_for_completion_interruptible+0x7e0/0x7e0 [ 31.867360] ? __lockdep_init_map+0xe4/0x650 [ 31.871744] ? __init_waitqueue_head+0x97/0x140 [ 31.876381] ? init_wait_entry+0x1b0/0x1b0 [ 31.880592] __synchronize_srcu+0x1ad/0x260 [ 31.884880] ? call_srcu+0x10/0x10 [ 31.888390] ? trace_raw_output_rcu_utilization+0xb0/0xb0 [ 31.893900] ? irq_matrix_allocated+0x80/0x80 [ 31.898364] ? synchronize_srcu+0x3c5/0x570 [ 31.902658] synchronize_srcu+0x1a3/0x570 [ 31.906774] ? synchronize_srcu+0x1a3/0x570 [ 31.911061] ? lock_downgrade+0x980/0x980 [ 31.915176] ? synchronize_srcu_expedited+0x20/0x20 [ 31.920161] ? lock_release+0xa40/0xa40 [ 31.924102] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 31.928915] ? do_raw_spin_trylock+0x190/0x190 [ 31.933477] kvm_page_track_unregister_notifier+0x186/0x270 [ 31.939159] ? kvm_slot_page_track_remove_page+0x60/0x60 [ 31.944579] ? kvfree+0x36/0x60 [ 31.947827] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.952928] kvm_mmu_uninit_vm+0x1c/0x20 [ 31.956959] kvm_arch_destroy_vm+0x73b/0x980 [ 31.961338] ? kvm_arch_sync_events+0x30/0x30 [ 31.965803] ? mmdrop+0x18/0x30 [ 31.969054] ? mmu_notifier_unregister+0x437/0x5c0 [ 31.973952] ? kvm_put_kvm+0x47a/0xde0 [ 31.977811] ? mmu_notifier_unregister_no_release+0x3e0/0x3e0 [ 31.983665] ? __free_pages+0x107/0x150 [ 31.987607] ? free_unref_page+0x9e0/0x9e0 [ 31.991813] ? quarantine_put+0xeb/0x190 [ 31.995843] ? kfree+0xf0/0x260 [ 31.999090] ? kvm_put_kvm+0x614/0xde0 [ 32.002947] ? free_pages+0x51/0x90 [ 32.006544] kvm_put_kvm+0x695/0xde0 [ 32.010232] ? kvm_clear_guest+0xb0/0xb0 [ 32.014265] ? kvm_irqfd_release+0xd1/0x120 [ 32.018556] ? lock_downgrade+0x980/0x980 [ 32.022683] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.027152] ? kvm_irqfd_release+0xdd/0x120 [ 32.031441] ? kvm_irqfd_release+0xdd/0x120 [ 32.035736] ? kvm_put_kvm+0xde0/0xde0 [ 32.039591] kvm_vm_release+0x42/0x50 [ 32.043360] __fput+0x327/0x7e0 [ 32.046612] ? fput+0x140/0x140 [ 32.049871] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 32.055727] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.060195] ____fput+0x15/0x20 [ 32.063444] task_work_run+0x199/0x270 [ 32.067303] ? task_work_cancel+0x210/0x210 [ 32.071592] ? _raw_spin_unlock+0x22/0x30 [ 32.075708] ? switch_task_namespaces+0x87/0xc0 [ 32.080354] do_exit+0x9bb/0x1ad0 [ 32.083780] ? mm_update_next_owner+0x930/0x930 [ 32.088417] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.093579] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.098742] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.103903] ? _cond_resched+0x14/0x30 [ 32.107766] ? check_noncircular+0x20/0x20 [ 32.111976] ? check_noncircular+0x20/0x20 [ 32.116181] ? vm_normal_page_pmd+0x2c0/0x2c0 [ 32.120644] ? check_noncircular+0x20/0x20 [ 32.124846] ? check_noncircular+0x20/0x20 [ 32.129052] ? check_noncircular+0x20/0x20 [ 32.133261] ? find_held_lock+0x35/0x1d0 [ 32.137307] ? get_signal+0x7ae/0x16c0 [ 32.141164] ? lock_downgrade+0x980/0x980 [ 32.145299] do_group_exit+0x149/0x400 [ 32.149155] ? do_raw_spin_trylock+0x190/0x190 [ 32.153705] ? SyS_exit+0x30/0x30 [ 32.157132] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.161595] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.166581] get_signal+0x73f/0x16c0 [ 32.170270] ? ptrace_notify+0x130/0x130 [ 32.174299] ? tlb_flush_mmu_free+0xeb/0x160 [ 32.178681] ? blk_flush_plug_list+0x7e4/0xaf0 [ 32.183230] ? tlb_finish_mmu+0x10f/0x190 [ 32.187348] ? check_noncircular+0x20/0x20 [ 32.191551] ? tlb_gather_mmu+0x70/0x70 [ 32.195493] ? blk_init_request_from_bio+0x440/0x440 [ 32.200569] do_signal+0x94/0x1ee0 [ 32.204080] ? find_held_lock+0x35/0x1d0 [ 32.208110] ? setup_sigcontext+0x7d0/0x7d0 [ 32.212402] ? SyS_madvise+0x9f4/0x13d0 [ 32.216354] ? lock_downgrade+0x980/0x980 [ 32.220471] ? blk_lld_busy+0x60/0x60 [ 32.224244] ? vmacache_update+0xfe/0x130 [ 32.228361] ? find_vma+0x30/0x150 [ 32.231874] ? exit_to_usermode_loop+0x8c/0x2f0 [ 32.236516] exit_to_usermode_loop+0x258/0x2f0 [ 32.241068] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 32.246572] ? madvise_free_pte_range+0x1ea0/0x1ea0 [ 32.251556] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 32.257064] syscall_return_slowpath+0x490/0x550 [ 32.261788] ? prepare_exit_to_usermode+0x340/0x340 [ 32.266772] ? entry_SYSCALL_64_fastpath+0x69/0x96 [ 32.271671] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.276654] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.281380] entry_SYSCALL_64_fastpath+0x94/0x96 [ 32.286103] RIP: 0033:0x44d2f7 [ 32.289265] RSP: 002b:00007f95a2d25d18 EFLAGS: 00000206 ORIG_RAX: 000000000000001c [ 32.296944] RAX: 0000000000000000 RBX: 00007f95a2d26700 RCX: 000000000044d2f7 [ 32.304192] RDX: 0000000000000004 RSI: 00000000007fb000 RDI: 00007f95a2526000 [ 32.311432] RBP: 0000000000000000 R08: 00007f95a2d26700 R09: 00007f95a2d26700 [ 32.318669] R10: 00007f95a2d26700 R11: 0000000000000206 R12: 0000000000000000 [ 32.325906] R13: 00007ffe3ec3bbef R14: 00007f95a2d269c0 R15: 0000000000000000 [ 32.333158] [ 32.333161] ====================================================== [ 32.333163] WARNING: possible circular locking dependency detected [ 32.333165] 4.15.0-rc4-next-20171220+ #77 Not tainted [ 32.333168] ------------------------------------------------------ [ 32.333170] syzkaller812198/3983 is trying to acquire lock: [ 32.333171] ((console_sem).lock){..-.}, at: [<000000001a3b9580>] down_trylock+0x13/0x70 [ 32.333176] [ 32.333178] but task is already holding lock: [ 32.333179] (report_lock){....}, at: [<00000000e2295cc9>] kasan_report+0x6b/0x340 [ 32.333184] [ 32.333186] which lock already depends on the new lock. [ 32.333187] [ 32.333188] [ 32.333190] the existing dependency chain (in reverse order) is: [ 32.333191] [ 32.333192] -> #3 (report_lock){....}: [ 32.333197] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.333199] kasan_report+0x6b/0x340 [ 32.333201] __asan_report_load8_noabort+0x14/0x20 [ 32.333202] __schedule+0xda3/0x2060 [ 32.333204] preempt_schedule_common+0x22/0x60 [ 32.333206] _cond_resched+0x1d/0x30 [ 32.333208] wait_for_completion+0xa5/0x770 [ 32.333209] __synchronize_srcu+0x1ad/0x260 [ 32.333211] synchronize_srcu+0x1a3/0x570 [ 32.333214] kvm_page_track_unregister_notifier+0x186/0x270 [ 32.333215] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.333217] kvm_arch_destroy_vm+0x73b/0x980 [ 32.333219] kvm_put_kvm+0x695/0xde0 [ 32.333220] kvm_vm_release+0x42/0x50 [ 32.333222] __fput+0x327/0x7e0 [ 32.333223] ____fput+0x15/0x20 [ 32.333225] task_work_run+0x199/0x270 [ 32.333226] do_exit+0x9bb/0x1ad0 [ 32.333228] do_group_exit+0x149/0x400 [ 32.333229] get_signal+0x73f/0x16c0 [ 32.333231] do_signal+0x94/0x1ee0 [ 32.333233] exit_to_usermode_loop+0x258/0x2f0 [ 32.333235] syscall_return_slowpath+0x490/0x550 [ 32.333237] entry_SYSCALL_64_fastpath+0x94/0x96 [ 32.333237] [ 32.333238] -> #2 (&rq->lock){-.-.}: [ 32.333244] _raw_spin_lock+0x2a/0x40 [ 32.333245] task_fork_fair+0x7a/0x690 [ 32.333247] sched_fork+0x435/0xc00 [ 32.333249] copy_process.part.37+0x1758/0x4b60 [ 32.333250] _do_fork+0x1f7/0xf70 [ 32.333252] kernel_thread+0x34/0x40 [ 32.333253] rest_init+0x22/0xf0 [ 32.333255] start_kernel+0x7f1/0x819 [ 32.333257] x86_64_start_reservations+0x2a/0x2c [ 32.333259] x86_64_start_kernel+0x77/0x7a [ 32.333260] secondary_startup_64+0xa5/0xb0 [ 32.333261] [ 32.333262] -> #1 (&p->pi_lock){-.-.}: [ 32.333268] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.333269] try_to_wake_up+0xbc/0x1600 [ 32.333271] wake_up_process+0x10/0x20 [ 32.333272] __up.isra.0+0x1cc/0x2c0 [ 32.333274] up+0x13b/0x1d0 [ 32.333275] __up_console_sem+0xb2/0x1a0 [ 32.333277] console_unlock+0x538/0xd70 [ 32.333279] vprintk_emit+0x4ad/0x590 [ 32.333280] dev_vprintk_emit+0x183/0x510 [ 32.333282] dev_printk_emit+0xc0/0xf0 [ 32.333284] __dev_printk+0xa7/0x120 [ 32.333285] dev_warn+0x10b/0x170 [ 32.333287] _request_firmware+0x1021/0x1960 [ 32.333289] request_firmware_work_func+0xe3/0x2c0 [ 32.333291] process_one_work+0xbbf/0x1af0 [ 32.333292] worker_thread+0x223/0x1990 [ 32.333294] kthread+0x33c/0x400 [ 32.333295] ret_from_fork+0x24/0x30 [ 32.333296] [ 32.333297] -> #0 ((console_sem).lock){..-.}: [ 32.333303] lock_acquire+0x1d5/0x580 [ 32.333304] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.333306] down_trylock+0x13/0x70 [ 32.333308] __down_trylock_console_sem+0xa2/0x1e0 [ 32.333310] console_trylock+0x15/0x100 [ 32.333311] vprintk_emit+0x49b/0x590 [ 32.333313] vprintk_default+0x28/0x30 [ 32.333314] vprintk_func+0x57/0xc0 [ 32.333316] printk+0xaa/0xca [ 32.333317] kasan_report+0x7b/0x340 [ 32.333319] __asan_report_load8_noabort+0x14/0x20 [ 32.333321] __schedule+0xda3/0x2060 [ 32.333323] preempt_schedule_common+0x22/0x60 [ 32.333324] _cond_resched+0x1d/0x30 [ 32.333326] wait_for_completion+0xa5/0x770 [ 32.333328] __synchronize_srcu+0x1ad/0x260 [ 32.333329] synchronize_srcu+0x1a3/0x570 [ 32.333332] kvm_page_track_unregister_notifier+0x186/0x270 [ 32.333333] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.333335] kvm_arch_destroy_vm+0x73b/0x980 [ 32.333337] kvm_put_kvm+0x695/0xde0 [ 32.333338] kvm_vm_release+0x42/0x50 [ 32.333340] __fput+0x327/0x7e0 [ 32.333341] ____fput+0x15/0x20 [ 32.333343] task_work_run+0x199/0x270 [ 32.333344] do_exit+0x9bb/0x1ad0 [ 32.333346] do_group_exit+0x149/0x400 [ 32.333348] get_signal+0x73f/0x16c0 [ 32.333349] do_signal+0x94/0x1ee0 [ 32.333351] exit_to_usermode_loop+0x258/0x2f0 [ 32.333353] syscall_return_slowpath+0x490/0x550 [ 32.333355] entry_SYSCALL_64_fastpath+0x94/0x96 [ 32.333356] [ 32.333357] other info that might help us debug this: [ 32.333358] [ 32.333359] Chain exists of: [ 32.333360] (console_sem).lock --> &rq->lock --> report_lock [ 32.333367] [ 32.333369] Possible unsafe locking scenario: [ 32.333369] [ 32.333371] CPU0 CPU1 [ 32.333373] ---- ---- [ 32.333374] lock(report_lock); [ 32.333377] lock(&rq->lock); [ 32.333381] lock(report_lock); [ 32.333384] lock((console_sem).lock); [ 32.333387] [ 32.333388] *** DEADLOCK *** [ 32.333389] [ 32.333391] 2 locks held by syzkaller812198/3983: [ 32.333392] #0: (&rq->lock){-.-.}, at: [<0000000043fc2e48>] __schedule+0x24e/0x2060 [ 32.333397] #1: (report_lock){....}, at: [<00000000e2295cc9>] kasan_report+0x6b/0x340 [ 32.333403] [ 32.333404] stack backtrace: [ 32.333407] CPU: 0 PID: 3983 Comm: syzkaller812198 Not tainted 4.15.0-rc4-next-20171220+ #77 [ 32.333411] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.333412] Call Trace: [ 32.333413] dump_stack+0x194/0x257 [ 32.333415] ? arch_local_irq_restore+0x53/0x53 [ 32.333417] print_circular_bug.isra.37+0x2cd/0x2dc [ 32.333419] ? save_trace+0xe0/0x2b0 [ 32.333420] __lock_acquire+0x30a8/0x3e00 [ 32.333422] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.333424] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.333426] ? print_lockdep_cache.isra.31+0x109/0x109 [ 32.333428] ? save_stack_trace+0x1a/0x20 [ 32.333429] ? save_trace+0xe0/0x2b0 [ 32.333431] ? __lock_acquire+0x36c0/0x3e00 [ 32.333433] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.333434] ? __lock_is_held+0xb6/0x140 [ 32.333436] ? __lock_is_held+0xb6/0x140 [ 32.333438] lock_acquire+0x1d5/0x580 [ 32.333439] ? lock_acquire+0x1d5/0x580 [ 32.333441] ? down_trylock+0x13/0x70 [ 32.333442] ? find_held_lock+0x35/0x1d0 [ 32.333444] ? lock_release+0xa40/0xa40 [ 32.333445] ? vprintk_emit+0x379/0x590 [ 32.333447] ? lock_downgrade+0x980/0x980 [ 32.333449] ? kvm_sched_clock_read+0x25/0x40 [ 32.333450] ? sched_clock+0x31/0x40 [ 32.333452] ? sched_clock_cpu+0x1b/0x170 [ 32.333454] ? vprintk_emit+0x49b/0x590 [ 32.333455] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.333457] ? down_trylock+0x13/0x70 [ 32.333458] down_trylock+0x13/0x70 [ 32.333460] ? vprintk_emit+0x49b/0x590 [ 32.333462] __down_trylock_console_sem+0xa2/0x1e0 [ 32.333463] console_trylock+0x15/0x100 [ 32.333465] vprintk_emit+0x49b/0x590 [ 32.333466] vprintk_default+0x28/0x30 [ 32.333468] vprintk_func+0x57/0xc0 [ 32.333469] printk+0xaa/0xca [ 32.333471] ? show_regs_print_info+0x18/0x18 [ 32.333472] ? __schedule+0xda3/0x2060 [ 32.333474] kasan_report+0x7b/0x340 [ 32.333476] __asan_report_load8_noabort+0x14/0x20 [ 32.333477] __schedule+0xda3/0x2060 [ 32.333479] ? __sched_text_start+0x8/0x8 [ 32.333481] ? trace_hardirqs_on+0xd/0x10 [ 32.333482] ? __call_srcu+0x7ee/0x1020 [ 32.333484] ? do_raw_spin_trylock+0x190/0x190 [ 32.333486] ? do_raw_spin_trylock+0x190/0x190 [ 32.333488] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 32.333490] ? __debug_object_init+0x235/0x1040 [ 32.333491] preempt_schedule_common+0x22/0x60 [ 32.333493] _cond_resched+0x1d/0x30 [ 32.333495] wait_for_completion+0xa5/0x770 [ 32.333496] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.333498] ? wait_for_completion_interruptible+0x7e0/0x7e0 [ 32.333500] ? __lockdep_init_map+0xe4/0x650 [ 32.333502] ? __init_waitqueue_head+0x97/0x140 [ 32.333504] ? init_wait_entry+0x1b0/0x1b0 [ 32.333505] __synchronize_srcu+0x1ad/0x260 [ 32.333507] ? call_srcu+0x10/0x10 [ 32.333509] ? trace_raw_output_rcu_utilization+0xb0/0xb0 [ 32.333510] ? irq_matrix_allocated+0x80/0x80 [ 32.333512] ? synchronize_srcu+0x3c5/0x570 [ 32.333514] synchronize_srcu+0x1a3/0x570 [ 32.333515] ? synchronize_srcu+0x1a3/0x570 [ 32.333517] ? lock_downgrade+0x980/0x980 [ 32.333519] ? synchronize_srcu_expedited+0x20/0x20 [ 32.333521] ? lock_release+0xa40/0xa40 [ 32.333522] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 32.333524] ? do_raw_spin_trylock+0x190/0x190 [ 32.333526] kvm_page_track_unregister_notifier+0x186/0x270 [ 32.333528] ? kvm_slot_page_track_remove_page+0x60/0x60 [ 32.333530] ? kvfree+0x36/0x60 [ 32.333531] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.333533] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.333535] kvm_arch_destroy_vm+0x73b/0x980 [ 32.333537] ? kvm_arch_sync_events+0x30/0x30 [ 32.333538] ? mmdrop+0x18/0x30 [ 32.333540] ? mmu_notifier_unregister+0x437/0x5c0 [ 32.333541] ? kvm_put_kvm+0x47a/0xde0 [ 32.333543] ? mmu_notifier_unregister_no_release+0x3e0/0x3e0 [ 32.333545] ? __free_pages+0x107/0x150 [ 32.333547] ? free_unref_page+0x9e0/0x9e0 [ 32.333548] ? quarantine_put+0xeb/0x190 [ 32.333550] ? kfree+0xf0/0x260 [ 32.333551] ? kvm_put_kvm+0x614/0xde0 [ 32.333553] ? free_pages+0x51/0x90 [ 32.333554] kvm_put_kvm+0x695/0xde0 [ 32.333556] ? kvm_clear_guest+0xb0/0xb0 [ 32.333558] ? kvm_irqfd_release+0xd1/0x120 [ 32.333559] ? lock_downgrade+0x980/0x980 [ 32.333561] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.333563] ? kvm_irqfd_release+0xdd/0x120 [ 32.333564] ? kvm_irqfd_release+0xdd/0x120 [ 32.333566] ? kvm_put_kvm+0xde0/0xde0 [ 32.333567] kvm_vm_release+0x42/0x50 [ 32.333569] __fput+0x327/0x7e0 [ 32.333570] ? fput+0x140/0x140 [ 32.333572] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 32.333574] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.333575] ____fput+0x15/0x20 [ 32.333577] task_work_run+0x199/0x270 [ 32.333579] ? task_work_cancel+0x210/0x210 [ 32.333580] ? _raw_spin_unlock+0x22/0x30 [ 32.333582] ? switch_task_namespaces+0x87/0xc0 [ 32.333584] do_exit+0x9bb/0x1ad0 [ 32.333585] ? mm_update_next_owner+0x930/0x930 [ 32.333587] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.333589] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.333591] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.333593] ? _cond_resched+0x14/0x30 [ 32.333594] ? check_noncircular+0x20/0x [ 32.333597] Lost 48 message(s)! [ 33.404089] Shutting down cpus with NMI [ 34.455986] Dumping ftrace buffer: [ 34.459495] (ftrace buffer empty) [ 34.463170] Kernel Offset: disabled [ 34.466763] Rebooting in 86400 seconds..