uvm_fault(0xfffffd806f622990, 0x0, 0, 1) -> e fatal page fault in supervisor mode trap type 6 code 0 rip ffffffff8268e228 cs 8 rflags 10207 cr2 0 cpl 0 rsp ffff80002a3349c0 gsbase 0xffff8000299ddff0 kgsbase 0x0 panic: trap type 6, code=0, pc=ffffffff8268e228 Starting stack trace... panic(ffffffff833e044d) at panic+0x1d0 sys/kern/subr_prf.c:229 kerntrap(ffff80002a334910) at kerntrap+0x30b alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b dt_ioctl_record_stop(ffff8000016fe000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:593 dtclose(11e5f,81,2000,ffff80003c45bcc0) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80003c45bcc0) at dtclose+0x109 sys/dev/dt/dt_dev.c:239 spec_close(ffff80002a334ac0) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd806dd11050,81,fffffd80097fd6e8,ffff80003c45bcc0) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd807c48e6f8,ffff80003c45bcc0) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd807c48e6f8,ffff80003c45bcc0) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd807c48e6f8,ffff80003c45bcc0) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd807c48e6f8,ffff80003c45bcc0) at closef+0x192 sys/kern/kern_descrip.c:1264 fdfree(ffff80003c45bcc0) at fdfree+0x116 sys/kern/kern_descrip.c:1195 exit1(ffff80003c45bcc0,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff80003c45bcc0,ffff80002a334e30,ffff80002a334d80) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a334e30) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a334e30) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x745278a55d10, count: 242 End of stack trace. WARNING: SPL NOT LOWERED ON SYSCALL 11 -1 EXIT 0 4 Stopped at savectx+0xae: movl $0,%gs:0x688 TID PID UID PRFLAGS PFLAGS CPU COMMAND 426024 20094 0 0 0 0 syz-executor *443210 43630 0 0x2 0 1 syz-executor savectx() at savectx+0xae end of kernel end trace frame: 0x745278a55d10, 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}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: uvm_fault(0xfffffd806f622990, 0x0, 0, 1) -> e ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x745278a55d10, count: -1 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80003c4c3b40 rbx 0 rdx 0 rcx 0xffff80003c45afc8 rax 0x33 r8 0xffff80003c4c3a70 r9 0x1 r10 0x6da887bcdde76d91 r11 0xf94e88408af30eb9 r12 0 r13 0 r14 0xffff80003c45afc8 r15 0 rip 0xffffffff82da23ee savectx+0xae cs 0x8 rflags 0x46 rsp 0xffff80003c4c3ac0 ss 0x10 savectx+0xae: movl $0,%gs:0x688 ddb{1}> show proc PROC (syz-executor) tid=443210 pid=43630 tcnt=1 stat=onproc flags process=2 proc=0 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000ffffdc90,0xffff80003c444800 process=0xffff80003c4104f0 user=0xffff80003c4be000, vmspace=0xfffffd80622647d0 estcpu=36, cpticks=191, pctcpu=0.36, user=7, sys=179, intr=4 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 52102 259676 93606 0 2 0 syz-executor 65720 324502 13881 0 2 0 syz-executor 65720 376913 13881 0 2 0x4000000 syz-executor 20094 426024 60555 0 7 0 syz-executor 20094 197488 60555 0 3 0x4000000 biowait syz-executor 79679 7862 884 0 3 0x80 nanoslp syz-executor 79679 21543 884 0 3 0x4000080 ttyout syz-executor 50325 139158 64917 0 3 0x80 nanoslp syz-executor 50325 306221 64917 0 3 0x4000080 lockf syz-executor 50325 9265 64917 0 3 0x4000080 fsleep syz-executor 8104 213528 78712 0 4 0x82000 syz-executor 8104 100839 78712 0 3 0x4082000 biowait syz-executor 8104 116177 78712 0 3 0x4082000 inode syz-executor 8104 385234 78712 0 3 0x4082000 inode syz-executor 8104 112903 78712 0 3 0x4002000 suspend syz-executor 91570 114427 0 0 3 0x14200 acct acct 93606 108637 45355 0 3 0x82 nanoslp syz-executor 78712 114141 45355 0 3 0x82 nanoslp syz-executor 884 374293 45355 0 2 0x2 syz-executor 13881 138749 45355 0 3 0x82 nanoslp syz-executor *43630 443210 45355 0 7 0x2 syz-executor 6106 404860 1 0 3 0x100083 ttyopn getty 64917 103311 45355 0 3 0x82 nanoslp syz-executor 29550 45626 45355 0 3 0x82 nanoslp syz-executor 60555 381581 45355 0 3 0x82 nanoslp syz-executor 70033 1780 0 0 3 0x14280 nfsidl nfsio 29071 433792 0 0 3 0x14280 nfsidl nfsio 57545 68923 0 0 3 0x14280 nfsidl nfsio 24165 466348 0 0 3 0x14280 nfsidl nfsio 60860 99416 0 0 3 0x14280 nfsidl nfsio 96641 46996 0 0 3 0x14280 nfsidl nfsio 41092 383972 0 0 3 0x14280 nfsidl nfsio 39735 190167 0 0 3 0x14280 nfsidl nfsio 87553 386177 0 0 3 0x14280 nfsidl nfsio 37096 490947 0 0 3 0x14280 nfsidl nfsio 46076 495282 0 0 3 0x14280 nfsidl nfsio 56000 518681 0 0 3 0x14280 nfsidl nfsio 35618 494273 0 0 3 0x14280 nfsidl nfsio 90276 490359 0 0 3 0x14280 nfsidl nfsio 5413 251999 0 0 3 0x14280 nfsidl nfsio 96897 181573 0 0 3 0x14280 nfsidl nfsio 54484 454989 0 0 3 0x14280 nfsidl nfsio 35491 409905 0 0 3 0x14280 nfsidl nfsio 2841 454155 0 0 3 0x14280 nfsidl nfsio 25940 465046 0 0 3 0x14280 nfsidl nfsio 45355 367901 45622 0 3 0x82 kqread syz-executor 45622 510136 26123 0 3 0x10008a sigsusp ksh 26123 155839 16431 0 3 0x98 kqread sshd-session 16431 338452 18491 0 3 0x92 kqread sshd-session 18491 59338 1 0 3 0x88 kqread sshd 66173 134277 70044 74 3 0x1100092 bpf pflogd 70044 435093 1 0 3 0x80 sbwait pflogd 78041 480246 56310 73 3 0x1100090 kqread syslogd 56310 515160 1 0 3 0x100082 sbwait syslogd 19547 257768 1 0 3 0x100080 kqread resolvd 42236 398122 0 0 3 0x14200 bored smr 66658 17912 0 0 2 0x14200 zerothread 66869 88644 0 0 3 0x14200 aiodoned aiodoned 63435 7881 0 0 3 0x14200 syncer update 95789 378605 0 0 3 0x14200 cleaner cleaner 90120 177741 0 0 3 0x14200 reaper reaper 79450 15231 0 0 3 0x14200 pgdaemon pagedaemon 93787 478428 0 0 3 0x14200 bored viomb 46671 283238 0 0 3 0x40014200 acpi0 acpi0 18375 199089 0 0 3 0x40014200 idle1 36769 127376 0 0 3 0x14200 bored softnet1 38108 513125 0 0 3 0x14200 netlock softnet0 52999 298437 0 0 2 0x40014200 systqmp 38240 405307 0 0 3 0x14200 bored systq 18374 517554 0 0 3 0x14200 tmoslp softclockmp 93378 452052 0 0 3 0x40014200 tmoslp softclock 40341 26483 0 0 3 0x40014200 idle0 1 27927 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks Process 20094 (syz-executor) thread 0xffff80003c445780 (197488) Process 8104 (syz-executor) thread 0xffff80003c444558 (100839) Process 8104 (syz-executor) thread 0xffff80003c4442c0 (385234) ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11121 12228K 14058K 166960K 17359 0 pcb 17 18K 33K 166960K 1224 0 rtable 243 20K 20K 166960K 1422 0 pf 42 19K 21K 166960K 521 0 ifaddr 40 8K 10K 166960K 373 0 ifgroup 60 2K 3K 166960K 670 0 sysctl 4 1K 9K 166960K 51 0 counters 74 37K 38K 166960K 1010 0 ioctlops 0 0K 4K 166960K 3073 0 iov 0 0K 28K 166960K 432 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1488 94K 94K 166960K 4950 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 528K 528K 166960K 46 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 350 0 dirhash 12 2K 3K 166960K 135 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 240K 166960K 5028 0 sigio 0 0K 0K 166960K 82 0 proc 67 83K 180K 166960K 1364 0 subproc 72 4K 4K 166960K 190 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 686 0 in_multi 70 5K 7K 166960K 524 0 ether_multi 1 0K 0K 166960K 79 0 mrt 1 0K 0K 166960K 36 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 1741 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 8 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 236 151K 194K 166960K 46114 0 UVM aobj 136 47K 49K 166960K 165 0 pinsyscall 37 74K 108K 166960K 6431 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 404 0 NDP 14 0K 2K 166960K 276 0 temp 151 8685K 8941K 166960K 262250 0 kqueue 7 12K 32K 166960K 1051 0 SYN cache 2 16K 16K 166960K 2 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 512 0 511 4 3 1 3 0 8 0 rtentry 176 383 0 305 6 1 5 6 0 8 0 unpcb 144 4020 0 4010 21 20 1 6 0 8 0 syncache 336 13 0 13 4 4 0 1 0 8 0 tcpcb 736 2110 0 2106 39 38 1 7 0 8 0 arp 136 54 0 40 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 3 0 3 1 1 0 1 0 8 0 inpcb 328 6349 0 6345 42 41 1 12 0 8 0 nd6 152 82 0 63 2 1 1 2 0 8 0 pkpcb 40 35 0 35 8 8 0 1 0 8 0 kcovpl 48 21 0 13 1 0 1 1 0 8 0 mppekey 1024 3 0 3 3 3 0 1 0 8 0 ppxss 1192 399 0 399 2 2 0 1 0 8 0 pppxif 1504 91 0 91 6 6 0 1 0 8 0 pfstscr 40 2 0 2 2 2 0 1 0 8 0 pffrag 232 110 0 98 2 0 2 2 0 482 0 pffrnode 88 56 0 45 1 0 1 1 0 8 0 pffrent 40 210 0 197 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 4 0 3 2 1 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 6 0 2 1 0 1 1 0 8 0 pfstkey 128 13 0 8 1 0 1 1 0 8 0 pfstate 448 7 0 5 1 0 1 1 0 8 0 pfrule 1360 7 0 3 2 1 1 1 0 8 0 rttmr 136 8 0 8 5 5 0 1 0 8 0 art_heap8 4096 8 0 2 7 1 6 7 0 8 0 art_heap4 256 1872 0 1513 36 11 25 30 0 8 2 art_table 40 1880 0 1515 5 0 5 5 0 8 0 art_node 32 381 0 313 1 0 1 1 0 8 0 sysvmsgpl 40 29 0 21 2 1 1 1 0 8 0 semapl 112 347 0 337 1 0 1 1 0 8 0 shmpl 112 123 0 11 4 0 4 4 0 8 0 dirhash 1024 101 0 84 3 0 3 3 0 8 0 dino2pl 256 11074 0 9533 98 1 97 97 0 8 0 ffsino 296 11074 0 9533 121 1 120 120 0 8 0 nchpl 144 17872 0 16133 65 0 65 65 0 8 0 rtmask 32 61 0 61 6 6 0 1 0 8 0 vnodes 216 6105 0 0 340 0 340 340 0 8 0 namei 1024 64405 0 64404 10 9 1 3 0 8 0 percpumem 16 520 0 468 1 0 1 1 0 8 0 vcpupl 3968 23 0 2 3 0 3 3 0 8 0 vmpool 848 36 0 15 3 0 3 3 0 8 0 kstatmem 264 464 0 430 3 0 3 3 0 8 0 acpiwqpl 32 2 0 2 1 0 1 1 1 8 1 scsiplug 72 27 0 27 7 7 0 1 0 8 0 scxspl 216 171396 0 171394 20 19 1 8 1 8 0 plimitpl 152 1166 0 1148 2 1 1 2 0 8 0 sigapl 424 5282 0 5216 9 1 8 8 0 8 0 knotepl 120 789 0 0 23 0 23 23 0 8 0 kqueuepl 224 2368 0 2362 26 25 1 9 0 8 0 pipepl 344 663 0 634 12 9 3 9 0 8 0 fdescpl 528 5225 0 5196 3 0 3 3 0 8 0 filepl 160 38533 0 38322 41 29 12 19 0 8 0 lockfpl 104 2493 0 2488 7 6 1 3 0 8 0 lockfspl 48 855 0 853 1 0 1 1 0 8 0 sessionpl 144 38 0 30 1 0 1 1 0 8 0 pgrppl 48 123 0 107 1 0 1 1 0 8 0 ucredpl 104 6025 0 6014 1 0 1 1 0 8 0 zombiepl 144 6627 0 6625 1 0 1 1 0 8 0 processpl 1232 5282 0 5216 6 0 6 6 0 8 0 procpl 664 13767 0 13692 8 0 8 8 0 8 0 sosppl 176 61 0 61 5 5 0 1 0 8 0 sockpl 752 11428 0 11413 84 81 3 21 0 8 1 mcl64k 65536 11 0 0 2 0 2 2 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 135 0 0 15 0 15 15 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 114 0 0 11 1 10 11 0 8 0 mtagpl 96 10 0 0 1 0 1 1 0 8 0 mbufpl 256 2181 0 0 134 0 134 134 0 8 0 bufpl 280 73979 0 67859 439 0 439 439 0 8 0 anonpl 32 24460 0 0 197 0 197 197 0 246 0 amapchunkpl 152 164320 0 163714 85 55 30 37 0 158 3 amappl16 200 21970 0 21777 161 145 16 61 0 8 0 amappl15 192 10 0 9 3 2 1 1 0 8 0 amappl14 184 49 0 49 2 2 0 1 0 8 0 amappl13 176 579 0 578 1 0 1 1 0 8 0 amappl12 168 5692 0 5655 3 0 3 3 0 8 0 amappl11 160 6 0 6 2 2 0 1 0 8 0 amappl10 152 140 0 131 1 0 1 1 0 8 0 amappl9 144 258 0 258 1 1 0 1 0 8 0 amappl8 136 31 0 28 1 0 1 1 0 8 0 amappl7 128 132 0 130 1 0 1 1 0 8 0 amappl6 120 443 0 432 1 0 1 1 0 8 0 amappl5 112 100 0 91 1 0 1 1 0 8 0 amappl4 104 505 0 481 1 0 1 1 0 8 0 amappl3 96 29514 0 29419 4 1 3 3 0 8 0 amappl2 88 5328 0 5267 2 0 2 2 0 8 0 amappl1 80 29658 0 29159 15 3 12 14 0 8 0 amappl 88 44402 0 44225 6 1 5 5 0 92 0 uvmvnodes 80 229 0 0 5 0 5 5 0 8 0 dma65536 65536 1 0 1 1 1 0 1 0 8 0 dma32768 32768 1 0 1 1 1 0 1 0 8 0 dma16384 16384 3 0 3 3 3 0 1 0 8 0 dma8192 8192 1 0 1 1 1 0 1 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 1 0 1 1 1 0 1 0 8 0 dma1024 1024 3 0 2 1 0 1 1 0 8 0 dma512 512 2 0 2 2 2 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 260 0 260 6 6 0 1 0 8 0 dma64 64 7 0 7 2 2 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 20 0 19 1 0 1 1 0 8 0 aobjpl 72 164 0 29 3 0 3 3 0 8 0 uaddrrnd 24 5225 0 5196 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5225 0 5196 1 0 1 1 0 8 0 vmmpekpl 168 36997 0 36924 4 0 4 4 0 8 0 vmmpepl 168 333527 0 331612 169 72 97 128 0 357 0 vmsppl 488 5224 0 5196 7 2 5 5 0 8 0 rwobjpl 80 87214 0 85866 62 25 37 48 0 8 0 pdppl 4096 10529 0 10443 161 75 86 90 0 8 0 pvpl 32 33618 0 0 271 1 270 270 0 265 0 pmappl 256 5260 0 5211 4 0 4 4 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 544 0 155 12 0 12 12 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff83891ff0) 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 __mp_lock(ffffffff8394ba00) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff8394ba00) at __mp_lock+0x192 sys/kern/kern_lock.c:173 softintr_dispatch(2) at softintr_dispatch+0x125 sys/kern/kern_softintr.c:83 dosoftint(2) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:862 Xsofttty() at Xsofttty+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x19 kd_curproc sys/dev/kcov.c:580 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x19 sys/dev/kcov.c:153 intr_handler(ffff8000347f29e0,ffff8000002a3480) at intr_handler+0xe9 sys/arch/amd64/amd64/intr.c:560 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f end of kernel end trace frame: 0x70c62ce03850, count: 5 ddb{0}> trace x86_ipi_db(ffffffff83891ff0) 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 __mp_lock(ffffffff8394ba00) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff8394ba00) at __mp_lock+0x192 sys/kern/kern_lock.c:173 softintr_dispatch(2) at softintr_dispatch+0x125 sys/kern/kern_softintr.c:83 dosoftint(2) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:862 Xsofttty() at Xsofttty+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x19 kd_curproc sys/dev/kcov.c:580 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x19 sys/dev/kcov.c:153 intr_handler(ffff8000347f29e0,ffff8000002a3480) at intr_handler+0xe9 sys/arch/amd64/amd64/intr.c:560 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f end of kernel end trace frame: 0x70c62ce03850, count: -10 ddb{0}> machine ddbcpu 1 Stopped at savectx+0xae: movl $0,%gs:0x688 savectx() at savectx+0xae end of kernel end trace frame: 0x745278a55d10, count: 14 ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x745278a55d10, count: -1