uvm_fault(0xfffffd800b027b70, 0x0, 0, 1) -> e fatal page fault in supervisor mode trap type 6 code 0 rip ffffffff81df6168 cs 8 rflags 10207 cr2 0 cpl 0 rsp ffff800036c0f980 gsbase 0xffff8000299edff0 kgsbase 0x0 panic: trap type 6, code=0, pc=ffffffff81df6168 Starting stack trace... panic(ffffffff833a4e21) at panic+0x1d0 sys/kern/subr_prf.c:229 kerntrap(ffff800036c0f8d0) at kerntrap+0x30b alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b dt_ioctl_record_stop(ffff8000015e7000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:586 dtclose(11e5f,81,2000,ffff80002a35eab0) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a35eab0) at dtclose+0x109 sys/dev/dt/dt_dev.c:232 spec_close(ffff800036c0fa80) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd806390b2e0,81,fffffd80097fb208,ffff80002a35eab0) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd805c2aa480,ffff80002a35eab0) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd805c2aa480,ffff80002a35eab0) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd805c2aa480,ffff80002a35eab0) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd805c2aa480,ffff80002a35eab0) at closef+0x192 sys/kern/kern_descrip.c:1264 fdfree(ffff80002a35eab0) at fdfree+0x116 sys/kern/kern_descrip.c:1195 exit1(ffff80002a35eab0,b,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff80002a35eab0,ffff800036c0fdf0,ffff800036c0fd40) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff800036c0fdf0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800036c0fdf0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x745342ba9630, count: 242 End of stack trace. WARNING: SPL NOT LOWERED ON SYSCALL 74 2116612096 EXIT 0 4 Stopped at savectx+0xae: movl $0,%gs:0x688 TID PID UID PRFLAGS PFLAGS CPU COMMAND *397957 2551 0 0 0 1 syz-executor 155036 760 0 0x14000 0x200 0 reaper savectx() at savectx+0xae end of kernel end trace frame: 0x71b08b91c470, count: 14 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: uvm_fault(0xfffffd800b027b70, 0x0, 0, 1) -> e ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x71b08b91c470, count: -1 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80002a3ed050 rbx 0 rdx 0 rcx 0xffff80002a35e2e8 rax 0x3b r8 0xffff80002a3ecf80 r9 0x1 r10 0xc755f42a5b005c4f r11 0xb72f41ba964778bb r12 0 r13 0 r14 0xffff80002a35e2e8 r15 0 rip 0xffffffff811e13ee savectx+0xae cs 0x8 rflags 0x46 rsp 0xffff80002a3ecfd0 ss 0x10 savectx+0xae: movl $0,%gs:0x688 ddb{1}> show proc PROC (syz-executor) tid=397957 pid=2551 tcnt=2 stat=onproc flags process=0 proc=0 runpri=86, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a35f278,0xffff80002a35eac0 process=0xffff80002a2a75b0 user=0xffff80002a3e8000, vmspace=0xfffffd806b65fd78 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND * 2551 397957 64032 0 7 0 syz-executor 2551 205391 64032 0 3 0x4000080 fsleep syz-executor 49823 194042 29087 0 3 0x80 fsleep syz-executor 49823 417020 29087 0 3 0x4000080 ttyretype syz-executor 74974 231243 1180 0 3 0x2 biowait syz-executor 42538 421523 92634 0 3 0x80 fsleep syz-executor 42538 348416 92634 0 3 0x4000080 pipewr syz-executor 20477 74396 55178 0 3 0x80 fsleep syz-executor 20477 473501 55178 0 3 0x4000080 kqread syz-executor 99776 60328 56429 0 3 0x80 fsleep syz-executor 99776 340182 56429 0 3 0x4000080 sbwait syz-executor 29087 399116 1180 0 3 0x82 nanoslp syz-executor 40366 317488 1180 0 3 0x82 nanoslp syz-executor 68700 204038 1180 0 3 0x2 biowait syz-executor 36581 437101 1 0 3 0x100083 ttyin getty 63550 313057 0 0 3 0x14200 bored sosplice 56429 362986 1180 0 3 0x82 nanoslp syz-executor 92634 478124 1180 0 3 0x82 nanoslp syz-executor 64032 450569 1180 0 3 0x82 nanoslp syz-executor 55178 395950 1180 0 3 0x82 nanoslp syz-executor 1180 466184 33123 0 3 0x82 kqread syz-executor 33123 53830 99860 0 3 0x10008a sigsusp ksh 99860 330118 55018 0 3 0x98 kqread sshd-session 55018 469725 37696 0 3 0x92 kqread sshd-session 37696 477890 1 0 3 0x88 kqread sshd 10432 110625 83659 74 3 0x1100092 bpf pflogd 83659 445272 1 0 3 0x80 sbwait pflogd 28586 306601 46395 73 3 0x1100090 kqread syslogd 46395 461382 1 0 3 0x100082 sbwait syslogd 74716 277052 1 0 3 0x100080 kqread resolvd 75253 305889 7261 77 3 0x100092 kqread dhcpleased 28986 387191 7261 77 3 0x100092 kqread dhcpleased 7261 84525 1 0 3 0x80 kqread dhcpleased 57378 437606 0 0 3 0x14200 bored smr 37159 451049 0 0 2 0x14200 zerothread 96767 357120 0 0 3 0x14200 aiodoned aiodoned 21563 50120 0 0 3 0x14200 syncer update 23261 303351 0 0 3 0x14200 cleaner cleaner 760 155036 0 0 7 0x14200 reaper 40364 192604 0 0 3 0x14200 pgdaemon pagedaemon 36290 198491 0 0 3 0x14200 bored viomb 5476 497431 0 0 3 0x40014200 acpi0 acpi0 43727 498367 0 0 3 0x40014200 idle1 13665 150862 0 0 3 0x14200 bored softnet7 43757 399200 0 0 3 0x14200 bored softnet6 85412 100369 0 0 3 0x14200 bored softnet5 75648 273477 0 0 3 0x14200 bored softnet4 44940 76417 0 0 3 0x14200 bored softnet3 81281 133819 0 0 3 0x14200 bored softnet2 68780 444057 0 0 3 0x14200 bored softnet1 39274 276841 0 0 3 0x14200 bored softnet0 51624 411187 0 0 2 0x40014200 systqmp 30498 394970 0 0 3 0x14200 bored systq 12112 441126 0 0 3 0x14200 tmoslp softclockmp 9272 171692 0 0 3 0x40014200 tmoslp softclock 19434 477130 0 0 3 0x40014200 idle0 1 187911 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks CPU 0: exclusive mutex &uvm.fpageqlock r = 0 (0xffffffff839a4d28) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 mtx_enter_try+0x1ad sys/kern/kern_lock.c:311 #2 mtx_enter+0x62 sys/kern/kern_lock.c:261 #3 uvm_pmr_freepageq+0x15c sys/uvm/uvm_pmemrange.c:1371 #4 km_free+0x36b sys/uvm/uvm_km.c:827 #5 uvm_uarea_free+0x4f sys/uvm/uvm_glue.c:304 #6 reaper+0x1aa sys/kern/kern_exit.c:493 #7 proc_trampoline+0x10 Process 74974 (syz-executor) thread 0xffff80002a3ce2d8 (231243) Process 68700 (syz-executor) thread 0xffff800031c09ca8 (204038) ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10290 11351K 12640K 166960K 16880 0 pcb 18 16K 17K 166960K 841 0 rtable 222 14K 15K 166960K 859 0 pf 48 20K 67486K 166960K 496 0 ifaddr 44 9K 9K 166960K 246 0 ifgroup 70 2K 3K 166960K 442 0 sysctl 4 1K 9K 166960K 39 0 counters 74 37K 38K 166960K 484 0 ioctlops 0 0K 8K 166960K 2092 0 iov 0 0K 32K 166960K 274 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1526 96K 96K 166960K 5053 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 43 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 199 0 dirhash 12 2K 2K 166960K 90 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 240K 166960K 3639 0 sigio 0 0K 0K 166960K 61 0 proc 72 115K 180K 166960K 1073 0 subproc 72 4K 4K 166960K 130 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 591 0 in_multi 76 5K 7K 166960K 335 0 ether_multi 1 0K 0K 166960K 46 0 mrt 2 0K 0K 166960K 21 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 886 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 6 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 238 168K 191K 166960K 35294 0 UVM aobj 54 2K 2K 166960K 57 0 pinsyscall 41 82K 105K 166960K 4826 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 393 0 NDP 15 0K 2K 166960K 178 0 temp 79 8652K 8780K 166960K 196079 0 kqueue 14 22K 32K 166960K 732 0 SYN cache 2 8K 16K 166960K 3 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 307 0 304 1 0 1 1 0 8 0 rtentry 176 249 0 175 5 0 5 5 0 8 0 unpcb 144 2734 0 2714 18 17 1 6 0 8 0 syncache 336 7 0 7 2 2 0 1 0 8 0 tcpcb 736 1447 0 1443 24 23 1 7 0 8 0 arp 128 32 0 21 1 0 1 1 0 8 0 inpcb 328 4322 0 4312 47 40 7 12 0 8 6 nd6 144 43 0 27 1 0 1 1 0 8 0 pkpcb 40 35 0 35 5 5 0 1 0 8 0 kcovpl 48 14 0 6 1 0 1 1 0 8 0 mppekey 1024 3 0 3 1 1 0 1 0 8 0 ppxss 1192 167 0 167 6 5 1 1 0 8 1 pppxif 1504 14 0 14 8 7 1 1 0 8 1 pfstscr 40 5 0 4 3 2 1 1 0 8 0 pffrag 232 34 0 22 1 0 1 1 0 482 0 pffrnode 88 26 0 18 1 0 1 1 0 8 0 pffrent 40 50 0 38 1 0 1 1 0 8 0 pfosfp 40 1429 0 1429 5 5 0 5 0 8 0 pfosfpen 112 1429 0 1429 21 21 0 21 0 8 0 pfrktable 1344 6 0 5 1 0 1 1 0 8 0 pfanchor 1288 3 0 2 1 0 1 1 0 8 0 pftag 88 5 0 0 1 0 1 1 0 8 0 pfstitem 24 46 0 30 1 0 1 1 0 8 0 pfstkey 128 130 0 115 1 0 1 1 0 8 0 pfstate 384 88 0 73 3 1 2 2 0 8 0 pfrule 1344 46 0 40 2 1 1 2 0 8 0 rttmr 136 3 0 3 3 3 0 1 0 8 0 art_heap8 4096 5 0 0 5 0 5 5 0 8 0 art_heap4 256 1279 0 896 42 18 24 30 0 8 0 art_table 40 1284 0 896 6 1 5 5 0 8 0 art_node 32 248 0 185 1 0 1 1 0 8 0 sysvmsgpl 40 19 0 12 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 192 0 182 1 0 1 1 0 8 0 shmpl 112 54 0 3 2 0 2 2 0 8 0 dirhash 1024 69 0 52 3 0 3 3 0 8 0 dino2pl 256 8317 0 6795 98 2 96 96 0 8 0 ffsino 296 8317 0 6795 119 1 118 118 0 8 0 nchpl 144 13385 0 11682 64 0 64 64 0 8 0 rtmask 32 31 0 31 7 7 0 1 0 8 0 uvmvnodes 80 6005 0 0 123 0 123 123 0 8 0 vnodes 216 6005 0 0 334 0 334 334 0 8 0 namei 1024 46323 0 46322 6 5 1 2 0 8 0 percpumem 16 257 0 205 1 0 1 1 0 8 0 pfiaddrpl 120 1 0 1 1 1 0 1 0 8 0 kstatmem 264 308 0 270 3 0 3 3 0 8 0 acpiwqpl 32 2 0 2 1 0 1 1 1 8 1 scsiplug 72 11 0 11 6 5 1 1 0 8 1 scxspl 216 110121 0 110119 24 22 2 8 1 8 1 plimitpl 152 744 0 726 1 0 1 1 0 8 0 sigapl 424 3898 0 3845 7 0 7 7 0 8 0 knotepl 120 816 0 0 25 0 25 25 0 8 0 kqueuepl 224 1386 0 1375 15 13 2 5 0 8 1 pipepl 344 608 0 580 16 12 4 9 0 8 0 fdescpl 528 3851 0 3821 3 0 3 3 0 8 0 filepl 160 26709 0 26484 43 30 13 19 0 8 0 lockfpl 104 2213 0 2210 5 4 1 2 0 8 0 lockfspl 48 1025 0 1022 1 0 1 1 0 8 0 sessionpl 144 31 0 22 1 0 1 1 0 8 0 pgrppl 48 138 0 121 1 0 1 1 0 8 0 ucredpl 104 4520 0 4507 1 0 1 1 0 8 0 zombiepl 144 5096 0 5095 1 0 1 1 0 8 0 processpl 1248 3898 0 3845 5 0 5 5 0 8 0 procpl 664 9938 0 9880 11 4 7 7 0 8 0 sosppl 168 27 0 27 8 7 1 1 0 8 1 sockpl 752 7499 0 7466 77 67 10 20 0 8 6 mcl64k 65536 16 0 0 2 0 2 2 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 118 0 0 15 0 15 15 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 52 0 0 5 0 5 5 0 8 0 mtagpl 96 15 0 0 1 0 1 1 0 8 0 mbufpl 256 1203 0 0 74 0 74 74 0 8 0 bufpl 280 45807 0 39664 441 1 440 440 0 8 0 anonpl 32 20582 0 0 168 2 166 166 0 246 0 amapchunkpl 152 134241 0 133649 87 56 31 40 0 158 1 amappl16 200 14880 0 14655 143 119 24 45 0 8 8 amappl15 192 6 0 6 2 2 0 1 0 8 0 amappl14 184 131 0 118 1 0 1 1 0 8 0 amappl13 176 4 0 4 3 3 0 1 0 8 0 amappl12 168 4588 0 4558 4 2 2 3 0 8 0 amappl11 160 51 0 37 1 0 1 1 0 8 0 amappl10 152 38 0 38 1 1 0 1 0 8 0 amappl9 144 342 0 342 1 1 0 1 0 8 0 amappl8 136 25 0 22 1 0 1 1 0 8 0 amappl7 128 125 0 113 1 0 1 1 0 8 0 amappl6 120 243 0 238 1 0 1 1 0 8 0 amappl5 112 151 0 140 1 0 1 1 0 8 0 amappl4 104 329 0 307 1 0 1 1 0 8 0 amappl3 96 24839 0 24736 5 1 4 4 0 8 0 amappl2 88 743 0 678 2 0 2 2 0 8 0 amappl1 80 22427 0 21828 15 2 13 15 0 8 0 amappl 88 33884 0 33720 5 0 5 5 0 92 0 dma65536 65536 2 0 2 2 2 0 1 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 3 0 2 1 0 1 1 0 8 0 dma256 256 8 0 8 3 3 0 1 0 8 0 dma128 128 258 0 258 4 3 1 1 0 8 1 dma64 64 10 0 10 4 4 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 19 0 18 1 0 1 1 0 8 0 aobjpl 72 56 0 3 1 0 1 1 0 8 0 uaddrrnd 24 3851 0 3821 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3851 0 3821 1 0 1 1 0 8 0 vmmpekpl 168 30363 0 30306 3 0 3 3 0 8 0 vmmpepl 168 246446 0 244288 168 53 115 128 0 357 6 vmsppl 488 3850 0 3821 8 3 5 5 0 8 0 rwobjpl 80 68978 0 61792 173 18 155 159 0 8 1 pdppl 4096 7710 0 7642 122 50 72 86 0 8 4 pvpl 32 30668 0 0 248 1 247 247 0 265 0 pmappl 256 3850 0 3821 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 411 0 107 9 0 9 9 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff83837ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x4f sys/dev/kcov.c:159 msleep_nsec(ffffffff837b0a78,ffffffff837b0a40,4,ffffffff83383e73,ffffffffffffffff) at msleep_nsec+0x1f8 sys/kern/kern_synch.c:-1 reaper(ffff8000ffffc7d0) at reaper+0x13b sys/kern/kern_exit.c:477 end trace frame: 0x0, count: 9 ddb{0}> trace x86_ipi_db(ffffffff83837ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x4f sys/dev/kcov.c:159 msleep_nsec(ffffffff837b0a78,ffffffff837b0a40,4,ffffffff83383e73,ffffffffffffffff) at msleep_nsec+0x1f8 sys/kern/kern_synch.c:-1 reaper(ffff8000ffffc7d0) at reaper+0x13b sys/kern/kern_exit.c:477 end trace frame: 0x0, count: -6 ddb{0}> machine ddbcpu 1 Stopped at savectx+0xae: movl $0,%gs:0x688 savectx() at savectx+0xae end of kernel end trace frame: 0x71b08b91c470, count: 14 ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x71b08b91c470, count: -1