[?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. [ 18.674870] audit: type=1400 audit(1517531658.933:6): avc: denied { map } for pid=4158 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 '10.128.0.5' (ECDSA) to the list of known hosts. executing program executing program syzkaller login: [ 34.477617] audit: type=1400 audit(1517531674.736:7): avc: denied { map } for pid=4175 comm="syzkaller746568" path="/root/syzkaller746568825" 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 36.737205] [ 36.738859] ============================================ [ 36.744282] WARNING: possible recursive locking detected [ 36.749698] 4.15.0+ #291 Not tainted [ 36.753386] -------------------------------------------- [ 36.758802] syzkaller746568/4446 is trying to acquire lock: [ 36.764479] (&mm->mmap_sem){++++}, at: [<000000006212449e>] get_user_pages_unlocked+0x218/0x4f0 [ 36.773381] [ 36.773381] but task is already holding lock: [ 36.779316] (&mm->mmap_sem){++++}, at: [<000000009bfdb3c4>] get_user_pages_unlocked+0xff/0x4f0 [ 36.788128] [ 36.788128] other info that might help us debug this: [ 36.794771] Possible unsafe locking scenario: [ 36.794771] [ 36.800795] CPU0 [ 36.803345] ---- [ 36.805893] lock(&mm->mmap_sem); [ 36.809399] lock(&mm->mmap_sem); [ 36.812909] [ 36.812909] *** DEADLOCK *** [ 36.812909] [ 36.818934] May be due to missing lock nesting notation [ 36.818934] [ 36.825827] 3 locks held by syzkaller746568/4446: [ 36.830636] #0: (&vcpu->mutex){+.+.}, at: [<00000000d22fa6cb>] vcpu_load+0x1c/0x70 [ 36.838608] #1: (&kvm->srcu){....}, at: [<000000007ac6ea14>] kvm_arch_vcpu_ioctl_run+0x1b11/0x5bf0 [ 36.847856] #2: (&mm->mmap_sem){++++}, at: [<000000009bfdb3c4>] get_user_pages_unlocked+0xff/0x4f0 [ 36.857106] [ 36.857106] stack backtrace: [ 36.861580] CPU: 0 PID: 4446 Comm: syzkaller746568 Not tainted 4.15.0+ #291 [ 36.868646] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.877969] Call Trace: [ 36.880539] dump_stack+0x194/0x257 [ 36.884139] ? arch_local_irq_restore+0x53/0x53 [ 36.888783] __lock_acquire+0xe8f/0x3e00 [ 36.892815] ? _raw_spin_unlock+0x22/0x30 [ 36.896937] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.902106] ? check_noncircular+0x20/0x20 [ 36.906318] ? find_held_lock+0x35/0x1d0 [ 36.910358] ? handle_mm_fault+0x2a0/0x930 [ 36.914565] ? lock_downgrade+0x980/0x980 [ 36.918686] ? handle_mm_fault+0x476/0x930 [ 36.922889] ? check_noncircular+0x20/0x20 [ 36.927328] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 36.933445] ? find_vma+0x30/0x150 [ 36.936957] ? __get_user_pages+0x5b3/0x15f0 [ 36.941337] lock_acquire+0x1d5/0x580 [ 36.945106] ? lock_acquire+0x1d5/0x580 [ 36.949053] ? get_user_pages_unlocked+0x218/0x4f0 [ 36.953950] ? follow_page_mask+0x17f0/0x17f0 [ 36.958420] ? lock_release+0xa40/0xa40 [ 36.962366] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 36.968222] ? rcu_note_context_switch+0x710/0x710 [ 36.973122] ? __might_sleep+0x95/0x190 [ 36.977068] down_read+0x96/0x150 [ 36.980490] ? get_user_pages_unlocked+0x218/0x4f0 [ 36.985392] ? __down_interruptible+0x6b0/0x6b0 [ 36.990035] ? __lock_is_held+0xb6/0x140 [ 36.994070] get_user_pages_unlocked+0x218/0x4f0 [ 36.998801] ? get_user_pages+0xc0/0xc0 [ 37.002749] ? __might_sleep+0x95/0x190 [ 37.006699] __gfn_to_pfn_memslot+0x386/0xf80 [ 37.011165] ? print_irqtrace_events+0x270/0x270 [ 37.015893] ? kvm_get_pfn+0x210/0x210 [ 37.019753] ? __lock_is_held+0xb6/0x140 [ 37.023787] ? kvm_vcpu_gfn_to_memslot+0x43a/0x6b0 [ 37.028687] ? kvm_largepages_enabled+0x20/0x20 [ 37.033325] ? check_noncircular+0x20/0x20 [ 37.037530] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 37.042689] ? noop_count+0x40/0x40 [ 37.046457] ? trace_hardirqs_off+0x10/0x10 [ 37.050751] ? mark_held_locks+0xaf/0x100 [ 37.054872] ? fast_page_fault+0x696/0xde0 [ 37.059084] try_async_pf+0x13b/0xc40 [ 37.062858] ? kvm_can_do_async_pf+0x290/0x290 [ 37.067413] ? kvm_mmu_clear_dirty_pt_masked+0xa0/0xa0 [ 37.072660] ? print_irqtrace_events+0x270/0x270 [ 37.077390] ? mtrr_lookup_start.constprop.9+0xa4/0x3b0 [ 37.082722] ? kvm_mtrr_check_gfn_range_consistency+0x3aa/0x4c0 [ 37.088754] ? kvm_vcpu_mtrr_init+0x120/0x120 [ 37.093223] ? mapping_level+0xf1/0x3d0 [ 37.097171] tdp_page_fault+0x40a/0xa70 [ 37.101117] ? ept_page_fault+0x21c0/0x21c0 [ 37.105411] ? kvm_mmu_slot_gfn_write_protect+0xc0/0xc0 [ 37.110748] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 37.115921] ? check_noncircular+0x20/0x20 [ 37.120129] ? check_noncircular+0x20/0x20 [ 37.124331] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 37.129491] ? __lock_is_held+0xb6/0x140 [ 37.133523] kvm_mmu_page_fault+0x10d/0x2f0 [ 37.137816] handle_ept_violation+0x198/0x550 [ 37.142284] ? __fill_rsb+0x15/0x40 [ 37.145879] ? __fill_rsb+0x25/0x40 [ 37.149476] ? handle_ept_misconfig+0x520/0x520 [ 37.154121] ? __lock_is_held+0xb6/0x140 [ 37.158152] ? handle_ept_misconfig+0x520/0x520 [ 37.162791] vmx_handle_exit+0x25d/0x1ce0 [ 37.166911] ? vmx_set_msr+0x17e0/0x17e0 [ 37.170944] ? handle_vmfunc+0x850/0x850 [ 37.174977] ? kvm_arch_vcpu_ioctl_run+0x1ac5/0x5bf0 [ 37.180053] kvm_arch_vcpu_ioctl_run+0x1c69/0x5bf0 [ 37.184961] ? mark_held_locks+0xaf/0x100 [ 37.189085] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 37.194163] ? kvm_arch_vcpu_runnable+0x560/0x560 [ 37.198977] ? debug_stats_show+0xd0/0xd0 [ 37.203103] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 37.208091] ? debug_object_free+0x2f1/0x5a0 [ 37.212470] ? lockdep_init_map+0x9/0x10 [ 37.216502] ? debug_object_destroy+0x2b0/0x2b0 [ 37.221142] ? __wait_rcu_gp+0x230/0x340 [ 37.225172] ? synchronize_sched.part.64+0xac/0x100 [ 37.230156] ? call_rcu_bh+0x20/0x20 [ 37.233842] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 37.239702] ? put_pid+0x183/0x1f0 [ 37.243220] ? task_active_pid_ns+0xd0/0xd0 [ 37.247523] ? __might_sleep+0x95/0x190 [ 37.251471] kvm_vcpu_ioctl+0x64c/0x1010 [ 37.255501] ? kvm_vcpu_ioctl+0x64c/0x1010 [ 37.259707] ? trace_event_raw_event_kvm_age_page+0x340/0x340 [ 37.265565] ? find_held_lock+0x35/0x1d0 [ 37.269602] ? __fget+0x333/0x570 [ 37.273031] ? lock_downgrade+0x980/0x980 [ 37.277150] ? lock_release+0xa40/0xa40 [ 37.281097] ? __lock_is_held+0xb6/0x140 [ 37.285130] ? __fget+0x35c/0x570 [ 37.288555] ? iterate_fd+0x3f0/0x3f0 [ 37.292329] ? retint_kernel+0x10/0x10 [ 37.296185] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 37.301171] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 37.305899] ? trace_event_raw_event_kvm_age_page+0x340/0x340 [ 37.311759] do_vfs_ioctl+0x1b1/0x1520 [ 37.315626] ? ioctl_preallocate+0x2b0/0x2b0 [ 37.320009] ? selinux_capable+0x40/0x40 [ 37.324049] ? SyS_futex+0x269/0x390 [ 37.327733] ? security_file_ioctl+0x89/0xb0 [ 37.332116] SyS_ioctl+0x8f/0xc0 [ 37.335459] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 37.340184] RIP: 0033:0x448fc9 [ 37.343347] RSP: 002b:00007ff4b260ada8 EFLAGS: 00000297 ORIG_RAX: 0000000000000010 [ 37.351027] RAX: ffffffffffffffda RBX: 00007ff4b260b700 RCX: 0000000000448fc9 [ 37.358271] RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000008 [ 37.365514] RBP: 00007fffca7f9900 R08: 0000000000000000 R09: 0000000000000000 [ 37.373203] R10: 0000000000000000 R11: 0000000000000297 R12: 0000000000000000 [ 37.380450] R13: 00007fffca7f985f R14: 00007ff4b260b9c0 R15: 000000000000000d [ 37.387916] WARNING: CPU: 0 PID: 4446 at mm/gup.c:498 __get_user_pages+0x10a7/0x15f0 [ 37.395774] Kernel panic - not syncing: panic_on_warn set ... [ 37.395774] [ 37.403106] CPU: 0 PID: 4446 Comm: syzkaller746568 Not tainted 4.15.0+ #291 [ 37.410175] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.419497] Call Trace: [ 37.422061] dump_stack+0x194/0x257 [ 37.425778] ? arch_local_irq_restore+0x53/0x53 [ 37.430421] ? vsnprintf+0x1ed/0x1900 [ 37.434196] panic+0x1e4/0x41c [ 37.437357] ? refcount_error_report+0x214/0x214 [ 37.442084] ? show_regs_print_info+0x18/0x18 [ 37.446555] ? __warn+0x1c1/0x200 [ 37.449989] ? __get_user_pages+0x10a7/0x15f0 [ 37.454458] __warn+0x1dc/0x200 [ 37.457709] ? __get_user_pages+0x10a7/0x15f0 [ 37.462190] report_bug+0x211/0x2d0 [ 37.465799] fixup_bug.part.11+0x37/0x80 [ 37.469836] do_error_trap+0x2d7/0x3e0 [ 37.473698] ? math_error+0x400/0x400 [ 37.477474] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.482296] do_invalid_op+0x1b/0x20 [ 37.485980] invalid_op+0x22/0x40 [ 37.489410] RIP: 0010:__get_user_pages+0x10a7/0x15f0 [ 37.494479] RSP: 0018:ffff8801ccb7ea78 EFLAGS: 00010293 [ 37.499813] RAX: ffff8801cd3525c0 RBX: 000000000000000c RCX: ffffffff819b51d7 [ 37.507056] RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffed003996fd48 [ 37.514299] RBP: ffff8801ccb7ec80 R08: 0000000000000000 R09: 1ffff1003996fc74 [ 37.521540] R10: ffff8801ccb7e368 R11: ffff8801cc69b4e8 R12: 0000000000000800 [ 37.528780] R13: ffff8801ccb7ec58 R14: ffff8801b0050eb0 R15: dffffc0000000000 [ 37.536037] ? __get_user_pages+0x10a7/0x15f0 [ 37.540547] ? __get_user_pages+0x10a7/0x15f0 [ 37.545023] ? follow_page_mask+0x17f0/0x17f0 [ 37.549492] ? lock_release+0xa40/0xa40 [ 37.553440] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 37.559297] ? rcu_note_context_switch+0x710/0x710 [ 37.564289] ? __might_sleep+0x95/0x190 [ 37.568237] ? down_read+0x96/0x150 [ 37.571834] ? get_user_pages_unlocked+0x218/0x4f0 [ 37.576736] ? __down_interruptible+0x6b0/0x6b0 [ 37.581379] ? __lock_is_held+0xb6/0x140 [ 37.585421] get_user_pages_unlocked+0x244/0x4f0 [ 37.590157] ? get_user_pages+0xc0/0xc0 [ 37.594106] ? __might_sleep+0x95/0x190 [ 37.598060] __gfn_to_pfn_memslot+0x386/0xf80 [ 37.602529] ? print_irqtrace_events+0x270/0x270 [ 37.607265] ? kvm_get_pfn+0x210/0x210 [ 37.611132] ? __lock_is_held+0xb6/0x140 [ 37.615176] ? kvm_vcpu_gfn_to_memslot+0x43a/0x6b0 [ 37.620084] ? kvm_largepages_enabled+0x20/0x20 [ 37.624730] ? check_noncircular+0x20/0x20 [ 37.628940] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 37.634111] ? noop_count+0x40/0x40 [ 37.637710] ? trace_hardirqs_off+0x10/0x10 [ 37.642106] ? mark_held_locks+0xaf/0x100 [ 37.646228] ? fast_page_fault+0x696/0xde0 [ 37.650437] try_async_pf+0x13b/0xc40 [ 37.654212] ? kvm_can_do_async_pf+0x290/0x290 [ 37.658771] ? kvm_mmu_clear_dirty_pt_masked+0xa0/0xa0 [ 37.664025] ? print_irqtrace_events+0x270/0x270 [ 37.668762] ? mtrr_lookup_start.constprop.9+0xa4/0x3b0 [ 37.674100] ? kvm_mtrr_check_gfn_range_consistency+0x3aa/0x4c0 [ 37.680133] ? kvm_vcpu_mtrr_init+0x120/0x120 [ 37.684601] ? mapping_level+0xf1/0x3d0 [ 37.688548] tdp_page_fault+0x40a/0xa70 [ 37.692497] ? ept_page_fault+0x21c0/0x21c0 [ 37.696937] ? kvm_mmu_slot_gfn_write_protect+0xc0/0xc0 [ 37.702301] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 37.707462] ? check_noncircular+0x20/0x20 [ 37.711674] ? check_noncircular+0x20/0x20 [ 37.715880] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 37.721170] ? __lock_is_held+0xb6/0x140 [ 37.725209] kvm_mmu_page_fault+0x10d/0x2f0 [ 37.729505] handle_ept_violation+0x198/0x550 [ 37.733975] ? __fill_rsb+0x15/0x40 [ 37.737575] ? __fill_rsb+0x25/0x40 [ 37.741177] ? handle_ept_misconfig+0x520/0x520 [ 37.745820] ? __lock_is_held+0xb6/0x140 [ 37.749859] ? handle_ept_misconfig+0x520/0x520 [ 37.754502] vmx_handle_exit+0x25d/0x1ce0 [ 37.758621] ? vmx_set_msr+0x17e0/0x17e0 [ 37.762766] ? handle_vmfunc+0x850/0x850 [ 37.766802] ? kvm_arch_vcpu_ioctl_run+0x1ac5/0x5bf0 [ 37.771881] kvm_arch_vcpu_ioctl_run+0x1c69/0x5bf0 [ 37.776784] ? mark_held_locks+0xaf/0x100 [ 37.780905] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 37.786005] ? kvm_arch_vcpu_runnable+0x560/0x560 [ 37.790844] ? debug_stats_show+0xd0/0xd0 [ 37.794963] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 37.799970] ? debug_object_free+0x2f1/0x5a0 [ 37.804357] ? lockdep_init_map+0x9/0x10 [ 37.808392] ? debug_object_destroy+0x2b0/0x2b0 [ 37.813044] ? __wait_rcu_gp+0x230/0x340 [ 37.817085] ? synchronize_sched.part.64+0xac/0x100 [ 37.822076] ? call_rcu_bh+0x20/0x20 [ 37.825765] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 37.831621] ? put_pid+0x183/0x1f0 [ 37.835135] ? task_active_pid_ns+0xd0/0xd0 [ 37.839432] ? __might_sleep+0x95/0x190 [ 37.843385] kvm_vcpu_ioctl+0x64c/0x1010 [ 37.847426] ? kvm_vcpu_ioctl+0x64c/0x1010 [ 37.851643] ? trace_event_raw_event_kvm_age_page+0x340/0x340 [ 37.857506] ? find_held_lock+0x35/0x1d0 [ 37.861544] ? __fget+0x333/0x570 [ 37.864970] ? lock_downgrade+0x980/0x980 [ 37.869101] ? lock_release+0xa40/0xa40 [ 37.873047] ? __lock_is_held+0xb6/0x140 [ 37.877087] ? __fget+0x35c/0x570 [ 37.880516] ? iterate_fd+0x3f0/0x3f0 [ 37.884290] ? retint_kernel+0x10/0x10 [ 37.888150] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 37.893137] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 37.897880] ? trace_event_raw_event_kvm_age_page+0x340/0x340 [ 37.903760] do_vfs_ioctl+0x1b1/0x1520 [ 37.907624] ? ioctl_preallocate+0x2b0/0x2b0 [ 37.912008] ? selinux_capable+0x40/0x40 [ 37.916053] ? SyS_futex+0x269/0x390 [ 37.919744] ? security_file_ioctl+0x89/0xb0 [ 37.924126] SyS_ioctl+0x8f/0xc0 [ 37.927468] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 37.932194] RIP: 0033:0x448fc9 [ 37.935353] RSP: 002b:00007ff4b260ada8 EFLAGS: 00000297 ORIG_RAX: 0000000000000010 [ 37.943035] RAX: ffffffffffffffda RBX: 00007ff4b260b700 RCX: 0000000000448fc9 [ 37.952763] RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000008 [ 37.960175] RBP: 00007fffca7f9900 R08: 0000000000000000 R09: 0000000000000000 [ 37.967415] R10: 0000000000000000 R11: 0000000000000297 R12: 0000000000000000 [ 37.975362] R13: 00007fffca7f985f R14: 00007ff4b260b9c0 R15: 000000000000000d [ 37.983125] Dumping ftrace buffer: [ 37.986641] (ftrace buffer empty) [ 37.990445] Kernel Offset: disabled [ 37.994041] Rebooting in 86400 seconds..