panic: kernel diagnostic assertion "__mp_lock_held(&sched_lock, curcpu()) == 0" failed: file "/syzkaller/managers/setuid/kernel/sys/kern/kern_lock.c", line 63 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 453051 21768 32767 0x10 0 0 syz-executor.0 *376998 98509 32767 0x1810 0x4080080 1 syz-executor.3 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff825a1086) at panic+0x177 sys/kern/subr_prf.c:202 __assert(ffffffff82613da6,ffffffff82617104,3f,ffffffff8264968f) at __assert+0x25 sys/kern/subr_prf.c:161 _kernel_lock() at _kernel_lock+0xb2 sys/kern/kern_lock.c:63 single_thread_check_locked(ffff80002964e548,1,c) at single_thread_check_locked+0x1f6 sys/kern/kern_sig.c:2037 single_thread_check(ffff80002964e548,1) at single_thread_check+0x4b sys/kern/kern_sig.c:2057 sleep_finish(ffff80002e4d9010,1) at sleep_finish+0x75 sleep_signal_check sys/kern/kern_synch.c:464 [inline] sleep_finish(ffff80002e4d9010,1) at sleep_finish+0x75 sys/kern/kern_synch.c:400 rwsleep(ffff80002964e548,ffffffff8296a1a0,120,ffffffff82595f34,0) at rwsleep+0xd5 sys/kern/kern_synch.c:314 futex_wait(da8049f7e50,1,0,2) at futex_wait+0x13c sys/kern/sys_futex.c:260 sys_futex(ffff80002964e548,ffff80002e4d91a0,ffff80002e4d9200) at sys_futex+0xf8 sys/kern/sys_futex.c:111 syscall(ffff80002e4d9270) at syscall+0x484 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e4d9270) at syscall+0x484 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xda85e56e710, count: 3 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: kernel diagnostic assertion "__mp_lock_held(&sched_lock, curcpu()) == 0" failed: file "/syzkaller/managers/setuid/kernel/sys/kern/kern_lock.c", line 63 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff825a1086) at panic+0x177 sys/kern/subr_prf.c:202 __assert(ffffffff82613da6,ffffffff82617104,3f,ffffffff8264968f) at __assert+0x25 sys/kern/subr_prf.c:161 _kernel_lock() at _kernel_lock+0xb2 sys/kern/kern_lock.c:63 single_thread_check_locked(ffff80002964e548,1,c) at single_thread_check_locked+0x1f6 sys/kern/kern_sig.c:2037 single_thread_check(ffff80002964e548,1) at single_thread_check+0x4b sys/kern/kern_sig.c:2057 sleep_finish(ffff80002e4d9010,1) at sleep_finish+0x75 sleep_signal_check sys/kern/kern_synch.c:464 [inline] sleep_finish(ffff80002e4d9010,1) at sleep_finish+0x75 sys/kern/kern_synch.c:400 rwsleep(ffff80002964e548,ffffffff8296a1a0,120,ffffffff82595f34,0) at rwsleep+0xd5 sys/kern/kern_synch.c:314 futex_wait(da8049f7e50,1,0,2) at futex_wait+0x13c sys/kern/sys_futex.c:260 sys_futex(ffff80002964e548,ffff80002e4d91a0,ffff80002e4d9200) at sys_futex+0xf8 sys/kern/sys_futex.c:111 syscall(ffff80002e4d9270) at syscall+0x484 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e4d9270) at syscall+0x484 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xda85e56e710, count: -12 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002e4d8dd0 rbx 0xffff800020de9bb7 rdx 0 rcx 0 rax 0xffff80002964e548 r8 0x101010101010101 r9 0x8080808080808080 r10 0x6b26e8ebebbd16bb r11 0x66265f6667107957 r12 0xffff800020de99b8 r13 0 r14 0 r15 0x1 rip 0xffffffff813e2898 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002e4d8dc0 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.3) pid=376998 stat=onproc flags process=1810 proc=4080080 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff80002964e7e8,0xffff80002964f7b8 process=0xffff8000fffe9908 user=0xffff80002e4d4000, vmspace=0xfffffd806867e8b8 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 21768 453051 15333 32767 7 0x10 syz-executor.0 34782 417409 85579 32767 2 0x10 syz-executor.5 98509 182123 62459 32767 3 0x3810 suspend syz-executor.3 *98509 376998 62459 32767 7 0x4081890 syz-executor.3 98509 299443 62459 32767 2 0x4081810 syz-executor.3 62028 261545 12159 32767 2 0x10 syz-executor.4 62028 227002 12159 32767 3 0x4000090 fsleep syz-executor.4 62028 324978 12159 32767 3 0x4000090 fsleep syz-executor.4 13809 76619 44725 32767 2 0x10 syz-executor.2 13809 239642 44725 32767 3 0x4000090 kqsel syz-executor.2 13809 381592 44725 32767 2 0x4000010 syz-executor.2 13809 92461 44725 32767 2 0x4000010 syz-executor.2 13809 267795 44725 32767 2 0x4000010 syz-executor.2 13809 270492 44725 32767 3 0x4000090 fsleep syz-executor.2 30422 269321 39272 32767 2 0x10 syz-executor.6 30422 29323 39272 32767 2 0x4000010 syz-executor.6 80714 155439 36496 32767 2 0x10 syz-executor.1 80714 242470 36496 32767 3 0x4000090 fsleep syz-executor.1 80714 81511 36496 32767 3 0x4000090 fsleep syz-executor.1 80714 196047 36496 32767 3 0x4000090 fsleep syz-executor.1 54985 497341 26077 32767 3 0x90 nanoslp syz-executor.7 54985 297317 26077 32767 3 0x4000090 piperd syz-executor.7 54985 234849 26077 32767 3 0x4000090 fsleep syz-executor.7 7940 295314 0 0 3 0x14200 bored sosplice 39272 385659 53141 32767 3 0x90 nanoslp syz-executor.6 62459 335688 84680 32767 3 0x90 nanoslp syz-executor.3 26077 358409 79758 32767 3 0x90 nanoslp syz-executor.7 79758 511596 23753 0 3 0x82 wait syz-executor.7 85579 278950 8374 32767 3 0x90 nanoslp syz-executor.5 12159 12178 93936 32767 3 0x90 nanoslp syz-executor.4 53141 4134 23753 0 3 0x82 wait syz-executor.6 93936 192970 23753 0 3 0x82 wait syz-executor.4 8374 373395 23753 0 3 0x82 wait syz-executor.5 84680 427193 23753 0 3 0x82 wait syz-executor.3 36496 81978 79830 32767 3 0x90 nanoslp syz-executor.1 44725 3146 58098 32767 3 0x90 nanoslp syz-executor.2 58098 243116 23753 0 3 0x82 wait syz-executor.2 15333 204703 10448 32767 3 0x90 nanoslp syz-executor.0 79830 44396 23753 0 3 0x82 wait syz-executor.1 10448 3433 23753 0 3 0x82 wait syz-executor.0 23753 54954 35319 0 3 0x82 thrsleep syz-fuzzer 23753 74169 35319 0 3 0x4000082 nanoslp syz-fuzzer 23753 331381 35319 0 3 0x4000082 thrsleep syz-fuzzer 23753 509117 35319 0 3 0x4000082 nanoslp syz-fuzzer 23753 197287 35319 0 3 0x4000082 kqread syz-fuzzer 23753 21159 35319 0 3 0x4000082 thrsleep syz-fuzzer 23753 419136 35319 0 3 0x4000082 thrsleep syz-fuzzer 23753 288082 35319 0 3 0x4000082 thrsleep syz-fuzzer 23753 224762 35319 0 3 0x4000082 thrsleep syz-fuzzer 35319 374199 84648 0 3 0x10008a sigsusp ksh 84648 269914 15228 0 3 0x9a kqread sshd 37051 500156 1 0 3 0x100083 ttyin getty 15228 198751 1 0 3 0x88 kqread sshd 96157 410670 524 73 3 0x1100090 kqread syslogd 524 239476 1 0 3 0x100082 netio syslogd 71939 467659 1 0 3 0x100080 kqread resolvd 92850 290341 44640 77 3 0x100092 kqread dhcpleased 32412 225592 44640 77 3 0x100092 kqread dhcpleased 44640 418850 1 0 3 0x80 kqread dhcpleased 90729 482417 0 0 3 0x14200 bored smr 66321 376664 0 0 2 0x14200 zerothread 80884 320016 0 0 3 0x14200 aiodoned aiodoned 67781 181375 0 0 3 0x14200 syncer update 2164 232753 0 0 3 0x14200 cleaner cleaner 75681 481517 0 0 3 0x14200 reaper reaper 44250 455359 0 0 3 0x14200 pgdaemon pagedaemon 37082 145849 0 0 3 0x14200 bored viomb 12348 451999 0 0 3 0x40014200 acpi0 acpi0 11478 274389 0 0 3 0x40014200 idle1 3089 445259 0 0 3 0x14200 bored softnet 7494 518967 0 0 3 0x14200 bored softnet 26383 485718 0 0 3 0x14200 bored softnet 87903 365761 0 0 3 0x14200 bored softnet 42085 416422 0 0 3 0x14200 bored systqmp 45941 111817 0 0 3 0x14200 bored systq 88402 103826 0 0 3 0x40014200 bored softclock 78564 56643 0 0 3 0x40014200 idle0 1 134373 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 1: exclusive sched_lock &sched_lock r = 0 (0xffffffff82a153e0) #0 witness_lock+0x44d #1 __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 #2 mi_switch+0x3d4 sys/kern/sched_bsd.c:419 #3 single_thread_check_locked+0x17f sys/kern/kern_sig.c:2045 #4 single_thread_check+0x4b sys/kern/kern_sig.c:2057 #5 sleep_finish+0x75 sleep_signal_check sys/kern/kern_synch.c:464 [inline] #5 sleep_finish+0x75 sys/kern/kern_synch.c:400 #6 rwsleep+0xd5 sys/kern/kern_synch.c:314 #7 futex_wait+0x13c sys/kern/sys_futex.c:260 #8 sys_futex+0xf8 sys/kern/sys_futex.c:111 #9 syscall+0x484 mi_syscall sys/sys/syscall_mi.h:102 [inline] #9 syscall+0x484 sys/arch/amd64/amd64/trap.c:585 #10 Xsyscall+0x128 Process 21768 (syz-executor.0) thread 0xffff80002964e7e8 (453051) exclusive rwlock uobjlk r = 0 (0xfffffd806e5d3550) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 uvm_fault_lower_lookup+0x46 sys/uvm/uvm_fault.c:1126 #3 uvm_fault_lower+0x5f sys/uvm/uvm_fault.c:1227 #4 uvm_fault+0x238 #5 upageflttrap+0x82 sys/arch/amd64/amd64/trap.c:181 #6 usertrap+0x1aa sys/arch/amd64/amd64/trap.c:403 #7 recall_trap+0x8 shared rwlock vmmaplk r = 0 (0xfffffd806867e030) #0 witness_lock+0x44d #1 uvmfault_lookup+0xd9 sys/uvm/uvm_fault.c:1771 #2 uvm_fault_check+0x3a sys/uvm/uvm_fault.c:673 #3 uvm_fault+0xf2 sys/uvm/uvm_fault.c:601 #4 upageflttrap+0x82 sys/arch/amd64/amd64/trap.c:181 #5 usertrap+0x1aa sys/arch/amd64/amd64/trap.c:403 #6 recall_trap+0x8 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10196 6410K 6420K 78643K 11287 0 pcb 13 16K 18K 78643K 19 0 rtable 242 6K 7K 78643K 678 0 ifaddr 81 16K 16K 78643K 82 0 sysctl 3 1K 1K 78643K 3 0 counters 56 35K 35K 78643K 56 0 ioctlops 0 0K 2K 78643K 38 0 iov 0 0K 24K 78643K 1076 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1270 79K 79K 78643K 1694 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 32 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 609 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 26 97K 121K 78643K 2733 0 sigio 0 0K 0K 78643K 13 0 proc 56 78K 115K 78643K 629 0 subproc 104 6K 6K 78643K 104 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1802 0 in_multi 99 6K 6K 78643K 141 0 ether_multi 1 0K 0K 78643K 16 0 mrt 2 0K 0K 78643K 2 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 175 784K 784K 78643K 175 0 exec 0 0K 2K 78643K 990 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 267 84K 91K 78643K 18314 0 UVM aobj 131 4K 4K 78643K 142 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 58 0 NDP 11 0K 2K 78643K 27 0 temp 124 4722K 4802K 78643K 9390 0 kqueue 16 24K 24K 78643K 269 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 156 0 153 2 1 1 2 0 8 0 rtentry 112 116 0 2 4 0 4 4 0 8 0 unpcb 136 2963 0 2950 22 19 3 8 0 8 2 syncache 296 20 0 20 5 5 0 1 0 8 0 tcpqe 32 59 0 59 4 4 0 1 0 8 0 tcpcb 736 3369 0 3351 62 52 10 27 0 8 7 arp 120 21 0 0 1 0 1 1 0 8 0 inpcb 320 4524 0 4499 45 37 8 18 0 8 4 nd6 48 26 0 1 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 457 0 2 29 0 29 29 0 8 0 art_table 32 458 0 2 4 0 4 4 0 8 0 art_node 16 115 0 11 1 0 1 1 0 8 0 semapl 112 607 0 597 1 0 1 1 0 8 0 shmpl 112 139 0 11 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 5073 0 3627 91 0 91 91 0 8 0 ffsino 272 5073 0 3627 97 0 97 97 0 8 0 nchpl 144 8981 0 7307 63 0 63 63 0 8 0 uvmvnodes 80 5186 0 0 106 0 106 106 0 8 0 vnodes 224 5186 0 0 306 0 306 306 0 8 0 namei 1024 30934 0 30934 2 1 1 2 0 8 1 percpumem 16 40 0 0 1 0 1 1 0 8 0 kstatmem 264 22 0 0 2 0 2 2 0 8 0 scxspl 216 26863 0 26863 17 14 3 8 0 8 3 plimitpl 152 798 0 774 2 1 1 2 0 8 0 sigapl 424 3012 0 2957 7 0 7 7 0 8 0 futexpl 64 25678 0 25670 1 0 1 1 0 8 0 knotepl 120 491 0 0 14 0 14 14 0 8 0 kqueuepl 224 899 0 887 19 18 1 7 0 8 0 pipepl 336 867 0 838 29 24 5 9 0 8 2 fdescpl 496 2994 0 2957 7 2 5 6 0 8 0 filepl 152 23498 0 23253 50 35 15 23 0 8 5 lockfpl 104 323 0 321 1 0 1 1 0 8 0 lockfspl 48 101 0 99 1 0 1 1 0 8 0 sessionpl 144 23 0 7 1 0 1 1 0 8 0 pgrppl 48 126 0 110 1 0 1 1 0 8 0 ucredpl 104 3184 0 3166 1 0 1 1 0 8 0 zombiepl 144 2957 0 2957 2 1 1 1 0 8 1 processpl 1064 3012 0 2957 5 1 4 5 0 8 0 procpl 672 8638 0 8560 12 4 8 9 0 8 1 sosppl 168 30 0 29 3 2 1 1 0 8 0 sockpl 480 7761 0 7732 158 145 13 30 0 8 8 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 15 0 0 2 0 2 2 0 8 0 mcl12k 12288 13 0 0 2 0 2 2 0 8 0 mcl9k 9216 11 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 191 0 0 22 0 22 22 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 471 0 0 27 0 27 27 0 8 0 bufpl 288 8925 0 2594 453 0 453 453 0 8 0 anonpl 24 587431 0 574765 124 23 101 102 0 186 17 amapchunkpl 152 51347 0 50707 37 11 26 31 0 158 1 amappl16 200 8876 0 8517 47 19 28 32 0 8 8 amappl15 192 339 0 337 1 0 1 1 0 8 0 amappl14 184 370 0 364 1 0 1 1 0 8 0 amappl13 176 93 0 90 2 1 1 1 0 8 0 amappl12 168 5 0 3 1 0 1 1 0 8 0 amappl11 160 1058 0 1036 1 0 1 1 0 8 0 amappl10 152 690 0 681 1 0 1 1 0 8 0 amappl9 144 834 0 829 1 0 1 1 0 8 0 amappl8 136 664 0 586 4 1 3 3 0 8 0 amappl7 128 115 0 103 1 0 1 1 0 8 0 amappl6 120 541 0 523 2 1 1 2 0 8 0 amappl5 112 2458 0 2438 1 0 1 1 0 8 0 amappl4 104 2753 0 2714 2 0 2 2 0 8 0 amappl3 96 8750 0 8692 2 0 2 2 0 8 0 amappl2 88 3374 0 3309 3 1 2 3 0 8 0 amappl1 80 74696 0 73961 22 6 16 19 0 8 0 amappl 88 17768 0 17593 6 1 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 141 0 11 3 0 3 3 0 8 0 uaddrrnd 24 2994 0 2957 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2994 0 2957 1 0 1 1 0 8 0 vmmpekpl 168 31522 0 31481 3 0 3 3 0 8 0 vmmpepl 168 295380 0 292533 160 25 135 137 0 357 11 vmsppl 368 2993 0 2957 4 0 4 4 0 8 0 rwobjpl 56 80647 0 73942 96 1 95 95 0 8 0 pdppl 4096 5995 0 5914 149 68 81 95 0 8 0 pvpl 32 1202571 0 1184674 274 96 178 240 0 265 27 pmappl 248 2993 0 2957 4 1 3 3 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 983 0 147 25 0 25 25 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82988ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82a151d8) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82a151d8) at __mp_lock+0x122 sys/kern/kern_lock.c:147 wakeup_n(ffffffff82ba36d4,ffffffff) at wakeup_n+0x37 uvm_pmr_getpages(1,0,0,1,0,1,393bffc64de8d545,0) at uvm_pmr_getpages+0xeef sys/uvm/uvm_pmemrange.c:1207 uvm_pagealloc(fffffd80689fcb18,a000,0,3) at uvm_pagealloc+0x1a4 sys/uvm/uvm_page.c:910 pmap_get_ptp(fffffd80689fcaa8,5179c11f000) at pmap_get_ptp+0x18d sys/arch/amd64/amd64/pmap.c:1183 pmap_enter(fffffd80689fcaa8,5179c11f000,68795000,5,20) at pmap_enter+0x2ac uvm_fault_lower_lookup(ffff80002e4d34c0,ffff80002e4d34f8,ffff80002e4d3440) at uvm_fault_lower_lookup+0x2a7 sys/uvm/uvm_fault.c:1192 uvm_fault_lower(ffff80002e4d34c0,ffff80002e4d34f8,ffff80002e4d3440,0) at uvm_fault_lower+0x5f sys/uvm/uvm_fault.c:1227 uvm_fault(fffffd806867e018,5179c11e000,0,4) at uvm_fault+0x238 upageflttrap(ffff80002e4d3630,5179c11e62a) at upageflttrap+0x82 sys/arch/amd64/amd64/trap.c:181 usertrap(ffff80002e4d3630) at usertrap+0x1aa sys/arch/amd64/amd64/trap.c:403 end trace frame: 0xffff80002e4d36b0, count: 0 ddb{0}> trace x86_ipi_db(ffffffff82988ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82a151d8) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82a151d8) at __mp_lock+0x122 sys/kern/kern_lock.c:147 wakeup_n(ffffffff82ba36d4,ffffffff) at wakeup_n+0x37 uvm_pmr_getpages(1,0,0,1,0,1,393bffc64de8d545,0) at uvm_pmr_getpages+0xeef sys/uvm/uvm_pmemrange.c:1207 uvm_pagealloc(fffffd80689fcb18,a000,0,3) at uvm_pagealloc+0x1a4 sys/uvm/uvm_page.c:910 pmap_get_ptp(fffffd80689fcaa8,5179c11f000) at pmap_get_ptp+0x18d sys/arch/amd64/amd64/pmap.c:1183 pmap_enter(fffffd80689fcaa8,5179c11f000,68795000,5,20) at pmap_enter+0x2ac uvm_fault_lower_lookup(ffff80002e4d34c0,ffff80002e4d34f8,ffff80002e4d3440) at uvm_fault_lower_lookup+0x2a7 sys/uvm/uvm_fault.c:1192 uvm_fault_lower(ffff80002e4d34c0,ffff80002e4d34f8,ffff80002e4d3440,0) at uvm_fault_lower+0x5f sys/uvm/uvm_fault.c:1227 uvm_fault(fffffd806867e018,5179c11e000,0,4) at uvm_fault+0x238 upageflttrap(ffff80002e4d3630,5179c11e62a) at upageflttrap+0x82 sys/arch/amd64/amd64/trap.c:181 usertrap(ffff80002e4d3630) at usertrap+0x1aa sys/arch/amd64/amd64/trap.c:403 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7ffffcd1b0, count: -15 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff825a1086) at panic+0x177 sys/kern/subr_prf.c:202 __assert(ffffffff82613da6,ffffffff82617104,3f,ffffffff8264968f) at __assert+0x25 sys/kern/subr_prf.c:161 _kernel_lock() at _kernel_lock+0xb2 sys/kern/kern_lock.c:63 single_thread_check_locked(ffff80002964e548,1,c) at single_thread_check_locked+0x1f6 sys/kern/kern_sig.c:2037 single_thread_check(ffff80002964e548,1) at single_thread_check+0x4b sys/kern/kern_sig.c:2057 sleep_finish(ffff80002e4d9010,1) at sleep_finish+0x75 sleep_signal_check sys/kern/kern_synch.c:464 [inline] sleep_finish(ffff80002e4d9010,1) at sleep_finish+0x75 sys/kern/kern_synch.c:400 rwsleep(ffff80002964e548,ffffffff8296a1a0,120,ffffffff82595f34,0) at rwsleep+0xd5 sys/kern/kern_synch.c:314 futex_wait(da8049f7e50,1,0,2) at futex_wait+0x13c sys/kern/sys_futex.c:260 sys_futex(ffff80002964e548,ffff80002e4d91a0,ffff80002e4d9200) at sys_futex+0xf8 sys/kern/sys_futex.c:111 syscall(ffff80002e4d9270) at syscall+0x484 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e4d9270) at syscall+0x484 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xda85e56e710, count: 3 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff825a1086) at panic+0x177 sys/kern/subr_prf.c:202 __assert(ffffffff82613da6,ffffffff82617104,3f,ffffffff8264968f) at __assert+0x25 sys/kern/subr_prf.c:161 _kernel_lock() at _kernel_lock+0xb2 sys/kern/kern_lock.c:63 single_thread_check_locked(ffff80002964e548,1,c) at single_thread_check_locked+0x1f6 sys/kern/kern_sig.c:2037 single_thread_check(ffff80002964e548,1) at single_thread_check+0x4b sys/kern/kern_sig.c:2057 sleep_finish(ffff80002e4d9010,1) at sleep_finish+0x75 sleep_signal_check sys/kern/kern_synch.c:464 [inline] sleep_finish(ffff80002e4d9010,1) at sleep_finish+0x75 sys/kern/kern_synch.c:400 rwsleep(ffff80002964e548,ffffffff8296a1a0,120,ffffffff82595f34,0) at rwsleep+0xd5 sys/kern/kern_synch.c:314 futex_wait(da8049f7e50,1,0,2) at futex_wait+0x13c sys/kern/sys_futex.c:260 sys_futex(ffff80002964e548,ffff80002e4d91a0,ffff80002e4d9200) at sys_futex+0xf8 sys/kern/sys_futex.c:111 syscall(ffff80002e4d9270) at syscall+0x484 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e4d9270) at syscall+0x484 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xda85e56e710, count: -12