uvm_fault(0xfffffd806f6671f0, 0x0, 0, 1) -> e fatal page fault in supervisor mode trap type 6 code 0 rip ffffffff82460e28 cs 8 rflags 10207 cr2 0 cpl 0 rsp ffff80002a2ec050 gsbase 0xffff8000299ddff0 kgsbase 0x0 panic: trap type 6, code=0, pc=ffffffff82460e28 Starting stack trace... panic(ffffffff833e5807) at panic+0x1d0 sys/kern/subr_prf.c:229 kerntrap(ffff80002a2ebfa0) at kerntrap+0x30b alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b dt_ioctl_record_stop(ffff800001704000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:593 dtclose(11e5f,81,2000,ffff800036fe62d8) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff800036fe62d8) at dtclose+0x109 sys/dev/dt/dt_dev.c:239 spec_close(ffff80002a2ec150) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd806c88aa80,81,fffffd80097fd5b0,ffff800036fe62d8) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806d1ffca0,ffff800036fe62d8) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806d1ffca0,ffff800036fe62d8) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806d1ffca0,ffff800036fe62d8) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd806d1ffca0,ffff800036fe62d8) at closef+0x192 sys/kern/kern_descrip.c:1264 fdfree(ffff800036fe62d8) at fdfree+0x116 sys/kern/kern_descrip.c:1195 exit1(ffff800036fe62d8,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff800036fe62d8,ffff80002a2ec4c0,ffff80002a2ec410) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a2ec4c0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a2ec4c0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72e1ede681a0, count: 242 End of stack trace. WARNING: SPL NOT LOWERED ON SYSCALL 83 -2114630160 EXIT 0 4 Stopped at savectx+0xae: movl $0,%gs:0x688 TID PID UID PRFLAGS PFLAGS CPU COMMAND 311811 26913 0 0 0 0 syz-executor *124744 78259 0 0 0 1 syz-executor savectx() at savectx+0xae end of kernel end trace frame: 0x7646e3ec6e30, 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(0xfffffd806f6671f0, 0x0, 0, 1) -> e ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x7646e3ec6e30, count: -1 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80003c495090 rbx 0 rdx 0 rcx 0xffff8000fffee018 rax 0x3c r8 0xffff80003c494fc0 r9 0x1 r10 0x1f0cafd737a3f734 r11 0x8f0f1c3be21f1124 r12 0 r13 0 r14 0xffff8000fffee018 r15 0 rip 0xffffffff828923ee savectx+0xae cs 0x8 rflags 0x46 rsp 0xffff80003c495010 ss 0x10 savectx+0xae: movl $0,%gs:0x688 ddb{1}> show proc PROC (syz-executor) tid=124744 pid=78259 tcnt=3 stat=onproc flags process=0 proc=0 runpri=86, usrpri=86, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800036fe62d8,0xffff8000fffeed20 process=0xffff8000ffff1350 user=0xffff80003c490000, vmspace=0xfffffd806bcfe9b0 estcpu=36, cpticks=10, pctcpu=0.0, user=10, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 26913 311811 85612 0 7 0 syz-executor 26913 426306 85612 0 2 0x4000000 syz-executor 51937 124716 64590 0 2 0x101004 sh 64590 365914 45968 0 3 0x10008a sigsusp sh *78259 124744 92531 0 7 0 syz-executor 78259 495643 92531 0 3 0x4000080 sbwait syz-executor 78259 408839 92531 0 3 0x4000080 fsleep syz-executor 9862 372058 50168 0 3 0x80 nanoslp syz-executor 9862 66881 50168 0 3 0x4000080 pipewr syz-executor 9862 146350 50168 0 3 0x4000080 fsleep syz-executor 45968 38059 61883 0 3 0x82 wait syz-executor 39509 364419 38801 0 3 0x3000 suspend syz-executor 39509 316455 38801 0 2 0x4081000 syz-executor 38801 434328 61883 0 3 0x82 nanoslp syz-executor 50168 381214 61883 0 3 0x82 nanoslp syz-executor 92531 170709 61883 0 3 0x82 nanoslp syz-executor 47865 80690 61883 0 3 0x82 nanoslp syz-executor 85612 495413 61883 0 3 0x82 nanoslp syz-executor 97143 342669 1 0 3 0x100083 ttyopn getty 66825 96436 0 0 3 0x14280 nfsidl nfsio 57216 346014 0 0 3 0x14280 nfsidl nfsio 56159 307444 0 0 3 0x14280 nfsidl nfsio 78783 393364 0 0 3 0x14280 nfsidl nfsio 97799 194587 0 0 3 0x14280 nfsidl nfsio 24762 522670 0 0 3 0x14280 nfsidl nfsio 79642 496046 0 0 3 0x14280 nfsidl nfsio 55682 284118 0 0 3 0x14280 nfsidl nfsio 37094 411805 0 0 3 0x14280 nfsidl nfsio 36553 36347 0 0 3 0x14280 nfsidl nfsio 12327 153279 0 0 3 0x14280 nfsidl nfsio 3753 352902 0 0 3 0x14280 nfsidl nfsio 49234 330147 0 0 3 0x14280 nfsidl nfsio 34772 32204 0 0 3 0x14280 nfsidl nfsio 56705 83535 0 0 3 0x14280 nfsidl nfsio 66426 179404 0 0 3 0x14280 nfsidl nfsio 76442 511864 0 0 3 0x14280 nfsidl nfsio 9580 359475 0 0 3 0x14280 nfsidl nfsio 8870 213143 0 0 3 0x14280 nfsidl nfsio 75436 392641 0 0 3 0x14280 nfsidl nfsio 17341 193627 61883 0 3 0x82 nanoslp syz-executor 49112 435401 61883 0 2 0x2 syz-executor 61883 207330 40997 0 2 0x3 syz-executor 40997 228831 76787 0 3 0x10008a sigsusp ksh 76787 28667 79690 0 3 0x98 kqread sshd-session 79690 391955 11623 0 3 0x92 kqread sshd-session 11623 199009 1 0 3 0x88 kqread sshd 22453 3614 78727 74 3 0x1100092 bpf pflogd 78727 441224 1 0 3 0x80 sbwait pflogd 68488 170923 50719 73 3 0x1100090 kqread syslogd 50719 203949 1 0 3 0x100082 sbwait syslogd 25744 97306 1 0 3 0x100080 kqread resolvd 27190 105648 57820 77 3 0x100092 kqread dhcpleased 71475 520089 57820 77 3 0x100092 kqread dhcpleased 57820 61908 1 0 3 0x80 kqread dhcpleased 93991 498247 0 0 3 0x14200 bored smr 75075 393805 0 0 2 0x14200 zerothread 34292 270357 0 0 3 0x14200 aiodoned aiodoned 60598 376508 0 0 3 0x14200 syncer update 42023 423831 0 0 3 0x14200 cleaner cleaner 5124 51353 0 0 3 0x14200 reaper reaper 75321 286346 0 0 3 0x14200 pgdaemon pagedaemon 14772 128300 0 0 3 0x14200 bored viomb 20799 404678 0 0 3 0x40014200 acpi0 acpi0 42559 198037 0 0 3 0x40014200 idle1 96233 481844 0 0 3 0x14200 bored softnet1 7424 137925 0 0 3 0x14200 netlock softnet0 97322 165773 0 0 2 0x40014200 systqmp 58972 422339 0 0 3 0x14200 bored systq 24399 19294 0 0 3 0x14200 tmoslp softclockmp 93475 334056 0 0 3 0x40014200 tmoslp softclock 70222 45156 0 0 3 0x40014200 idle0 1 230950 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks Process 26913 (syz-executor) thread 0xffff800036fe7a30 (426306) Process 51937 (sh) thread 0xffff800036fe6fd0 (124716) Process 39509 (syz-executor) thread 0xffff800036fe7268 (316455) Process 49112 (syz-executor) thread 0xffff80003c416a88 (435401) ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11142 12248K 14577K 166960K 21023 0 pcb 19 20K 26K 166960K 1955 0 rtable 252 15K 17K 166960K 2630 0 pf 46 20K 84K 166960K 763 0 ifaddr 40 10K 11K 166960K 438 0 ifgroup 66 2K 3K 166960K 817 0 sysctl 4 1K 9K 166960K 39 0 counters 74 37K 38K 166960K 1006 0 ioctlops 0 0K 5K 166960K 3041 0 iov 0 0K 40K 166960K 735 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1541 97K 97K 166960K 7338 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 17K 166960K 97 0 VM map 2 1K 1K 166960K 2 0 sem 15 0K 1K 166960K 457 0 dirhash 12 2K 3K 166960K 120 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 240K 166960K 6555 0 sigio 0 0K 0K 166960K 270 0 proc 73 115K 164K 166960K 1757 0 subproc 72 4K 4K 166960K 248 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 1012 0 in_multi 78 5K 7K 166960K 569 0 ether_multi 1 0K 0K 166960K 70 0 mrt 1 0K 0K 166960K 60 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 253 1129K 1129K 166960K 253 0 exec 1 0K 1K 166960K 2329 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 9 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 253 169K 190K 166960K 61430 0 UVM aobj 154 52K 52K 166960K 212 0 pinsyscall 43 86K 103K 166960K 8181 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 583 0 NDP 16 0K 2K 166960K 327 0 temp 94 8688K 8944K 166960K 335672 0 kqueue 13 20K 34K 166960K 1383 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 588 0 584 4 3 1 2 0 8 0 rtentry 176 949 0 861 6 0 6 6 0 8 0 unpcb 144 5394 0 5375 39 38 1 9 0 8 0 syncache 336 21 0 21 7 7 0 1 0 8 0 tcpqe 32 18 0 18 5 5 0 1 0 8 0 tcpcb 736 2205 0 2201 41 39 2 7 0 8 1 arp 136 262 0 243 2 0 2 2 0 8 0 inpcb 328 8307 0 8297 69 67 2 13 0 8 1 nd6 152 94 0 77 2 0 2 2 0 8 0 pkpcb 40 39 0 39 12 12 0 1 0 8 0 kcovpl 48 27 0 19 1 0 1 1 0 8 0 mppekey 1024 3 0 3 3 3 0 1 0 8 0 ppxss 1192 374 0 374 3 2 1 1 0 8 1 pppxif 1504 50 0 50 8 8 0 1 0 8 0 pfstscr 40 6 0 6 1 1 0 1 0 8 0 pffrag 232 115 0 104 1 0 1 1 0 482 0 pffrnode 88 86 0 77 1 0 1 1 0 8 0 pffrent 40 249 0 237 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 3 0 3 2 2 0 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfstitem 24 3 0 0 1 0 1 1 0 8 0 pfstkey 128 6 0 4 1 0 1 1 0 8 0 pfstate 448 5 0 3 1 0 1 1 0 8 0 pfrule 1360 4 0 2 1 0 1 1 0 8 0 rttmr 136 7 0 7 4 4 0 1 0 8 0 art_heap8 4096 5 0 1 5 1 4 4 0 8 0 art_heap4 256 3180 0 2833 72 45 27 43 0 8 0 art_table 40 3185 0 2834 8 2 6 7 0 8 0 art_node 32 944 0 866 3 0 3 3 0 8 0 sysvmsgpl 40 13 0 8 2 1 1 1 0 8 0 semupl 112 4 0 4 3 3 0 1 0 8 0 semapl 112 379 0 366 1 0 1 1 0 8 0 shmpl 112 138 0 10 4 0 4 4 0 8 0 dirhash 1024 90 0 73 3 0 3 3 0 8 0 dino2pl 256 13827 0 12263 99 0 99 99 0 8 0 ffsino 296 13827 0 12263 121 0 121 121 0 8 0 nchpl 144 22812 0 22191 65 40 25 65 0 8 0 rtmask 32 53 0 53 10 10 0 1 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 86847 0 86844 13 12 1 2 0 8 0 percpumem 16 518 0 466 1 0 1 1 0 8 0 vcpupl 3968 26 0 3 3 0 3 3 0 8 0 vmpool 848 68 0 45 3 0 3 3 0 8 0 kstatmem 264 536 0 502 4 1 3 3 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 31 0 31 11 11 0 1 0 8 0 scxspl 216 209298 0 209298 25 23 2 8 1 8 2 plimitpl 152 1580 0 1562 1 0 1 1 0 8 0 sigapl 424 6811 0 6743 10 2 8 8 0 8 0 knotepl 120 920 0 0 24 0 24 24 0 8 0 kqueuepl 224 2794 0 2784 26 24 2 6 0 8 1 pipepl 344 1181 0 1151 29 26 3 9 0 8 0 fdescpl 528 6743 0 6711 3 0 3 3 0 8 0 filepl 160 51137 0 50899 50 36 14 24 0 8 0 lockfpl 104 2347 0 2344 4 3 1 2 0 8 0 lockfspl 48 783 0 780 1 0 1 1 0 8 0 sessionpl 144 61 0 52 1 0 1 1 0 8 0 pgrppl 48 209 0 192 1 0 1 1 0 8 0 ucredpl 104 8120 0 8106 1 0 1 1 0 8 0 zombiepl 144 7935 0 7932 2 1 1 1 0 8 0 processpl 1232 6811 0 6743 7 1 6 6 0 8 0 procpl 664 17699 0 17625 9 1 8 8 0 8 0 sosppl 176 49 0 49 10 10 0 1 0 8 0 sockpl 752 14624 0 14591 127 123 4 24 0 8 0 mcl64k 65536 7 0 0 1 0 1 1 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 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 130 0 0 16 0 16 16 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 92 0 0 7 0 7 7 0 8 0 mtagpl 96 15 0 0 1 0 1 1 0 8 0 mbufpl 256 3327 0 0 198 0 198 198 0 8 0 bufpl 280 88416 0 82280 439 0 439 439 0 8 0 anonpl 32 15791 0 0 126 0 126 126 0 246 0 amapchunkpl 152 221308 0 220741 83 57 26 34 0 158 0 amappl16 200 26989 0 26851 198 188 10 39 0 8 0 amappl15 192 4 0 4 2 2 0 1 0 8 0 amappl14 184 6 0 6 1 1 0 1 0 8 0 amappl13 176 659 0 657 1 0 1 1 0 8 0 amappl12 168 7264 0 7222 3 0 3 3 0 8 0 amappl11 160 6 0 5 2 1 1 1 0 8 0 amappl10 152 65 0 51 1 0 1 1 0 8 0 amappl9 144 247 0 246 2 1 1 1 0 8 0 amappl8 136 43 0 40 1 0 1 1 0 8 0 amappl7 128 161 0 159 1 0 1 1 0 8 0 amappl6 120 548 0 533 1 0 1 1 0 8 0 amappl5 112 94 0 83 1 0 1 1 0 8 0 amappl4 104 633 0 602 1 0 1 1 0 8 0 amappl3 96 38021 0 37926 4 1 3 3 0 8 0 amappl2 88 6936 0 6857 2 0 2 2 0 8 0 amappl1 80 41425 0 40828 16 1 15 15 0 8 0 amappl 88 59277 0 59103 5 0 5 5 0 92 0 uvmvnodes 80 270 0 0 6 0 6 6 0 8 0 dma65536 65536 4 0 4 4 4 0 1 0 8 0 dma32768 32768 1 0 1 1 1 0 1 0 8 0 dma16384 16384 2 0 2 2 2 0 1 0 8 0 dma8192 8192 2 0 2 2 2 0 1 0 8 0 dma4096 4096 2 0 2 2 2 0 1 0 8 0 dma2048 2048 1 0 1 1 1 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 8 0 8 3 3 0 1 0 8 0 dma128 128 264 0 264 8 8 0 1 0 8 0 dma64 64 8 0 8 3 3 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 211 0 58 3 0 3 3 0 8 0 uaddrrnd 24 6743 0 6711 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6743 0 6711 1 0 1 1 0 8 0 vmmpekpl 168 50927 0 50850 4 0 4 4 0 8 0 vmmpepl 168 432508 0 430449 181 77 104 120 0 357 0 vmsppl 488 6742 0 6711 7 2 5 5 0 8 0 rwobjpl 80 112009 0 110521 53 15 38 42 0 8 0 pdppl 4096 13629 0 13535 179 83 96 97 0 8 2 pvpl 32 27433 0 0 220 1 219 219 0 265 0 pmappl 256 6810 0 6756 4 0 4 4 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 668 0 205 14 0 14 14 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff83834ff0) 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(ffffffff838ebc00) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff838ebc00) at __mp_lock+0x199 sys/kern/kern_lock.c:173 scsi_xs_put(fffffd806c02c7f0) at scsi_xs_put+0x51 scsi_iopool_put sys/scsi/scsi_base.c:270 [inline] scsi_xs_put(fffffd806c02c7f0) at scsi_xs_put+0x51 scsi_io_put sys/scsi/scsi_base.c:499 [inline] scsi_xs_put(fffffd806c02c7f0) at scsi_xs_put+0x51 sys/scsi/scsi_base.c:787 scsi_done(fffffd806c02c7f0) at scsi_done+0x40 sys/scsi/scsi_base.c:1496 vioscsi_vq_done(ffff8000000a4268) at vioscsi_vq_done+0xe1 sys/dev/pv/vioscsi.c:-1 intr_handler(ffff80003c425330,ffff8000002a3480) at intr_handler+0x125 sys/arch/amd64/amd64/intr.c:564 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f end of kernel end trace frame: 0x754f2da23bd0, count: 6 ddb{0}> trace x86_ipi_db(ffffffff83834ff0) 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(ffffffff838ebc00) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff838ebc00) at __mp_lock+0x199 sys/kern/kern_lock.c:173 scsi_xs_put(fffffd806c02c7f0) at scsi_xs_put+0x51 scsi_iopool_put sys/scsi/scsi_base.c:270 [inline] scsi_xs_put(fffffd806c02c7f0) at scsi_xs_put+0x51 scsi_io_put sys/scsi/scsi_base.c:499 [inline] scsi_xs_put(fffffd806c02c7f0) at scsi_xs_put+0x51 sys/scsi/scsi_base.c:787 scsi_done(fffffd806c02c7f0) at scsi_done+0x40 sys/scsi/scsi_base.c:1496 vioscsi_vq_done(ffff8000000a4268) at vioscsi_vq_done+0xe1 sys/dev/pv/vioscsi.c:-1 intr_handler(ffff80003c425330,ffff8000002a3480) at intr_handler+0x125 sys/arch/amd64/amd64/intr.c:564 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f end of kernel end trace frame: 0x754f2da23bd0, count: -9 ddb{0}> machine ddbcpu 1 Stopped at savectx+0xae: movl $0,%gs:0x688 savectx() at savectx+0xae end of kernel end trace frame: 0x7646e3ec6e30, count: 14 ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x7646e3ec6e30, count: -1