uvm_fault(0xfffffd806cb019a0, 0x0, 0, 1) -> e fatal page fault in supervisor mode trap type 6 code 0 rip ffffffff821dd468 cs 8 rflags 10207 cr2 0 cpl 0 rsp ffff80003c430f60 gsbase 0xffff8000299edff0 kgsbase 0x0 panic: trap type 6, code=0, pc=ffffffff821dd468 Starting stack trace... panic(ffffffff833de550) at panic+0x1d0 sys/kern/subr_prf.c:229 kerntrap(ffff80003c430eb0) at kerntrap+0x30b alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b dt_ioctl_record_stop(ffff800001497000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:593 dtclose(11e5f,81,2000,ffff8000fffe74e0) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff8000fffe74e0) at dtclose+0x109 sys/dev/dt/dt_dev.c:239 spec_close(ffff80003c431060) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd805f46d1e8,81,fffffd80097fd138,ffff8000fffe74e0) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd805f073300,ffff8000fffe74e0) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd805f073300,ffff8000fffe74e0) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd805f073300,ffff8000fffe74e0) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd805f073300,ffff8000fffe74e0) at closef+0x192 sys/kern/kern_descrip.c:1264 fdfree(ffff8000fffe74e0) at fdfree+0x116 sys/kern/kern_descrip.c:1195 exit1(ffff8000fffe74e0,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff8000fffe74e0,ffff80003c4313d0,ffff80003c431320) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c4313d0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4313d0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c550e299100, count: 242 End of stack trace. WARNING: SPL NOT LOWERED ON SYSCALL 83 -295369024 EXIT 0 4 Stopped at savectx+0xae: movl $0,%gs:0x688 TID PID UID PRFLAGS PFLAGS CPU COMMAND *225113 17208 60929 0x10 0x4000000 1 syz-executor 111719 82352 0 0x100003 0x80 0 getty savectx() at savectx+0xae end of kernel end trace frame: 0x499158e80d0, 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(0xfffffd806cb019a0, 0x0, 0, 1) -> e ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x499158e80d0, count: -1 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80002f3ea250 rbx 0 rdx 0 rcx 0xffff8000fffefca0 rax 0x3b r8 0xffff80002f3ea180 r9 0x1 r10 0xc362c54d08833378 r11 0x51768c6bd839acf7 r12 0 r13 0 r14 0xffff8000fffefca0 r15 0 rip 0xffffffff82a973ee savectx+0xae cs 0x8 rflags 0x46 rsp 0xffff80002f3ea1d0 ss 0 savectx+0xae: movl $0,%gs:0x688 ddb{1}> show proc PROC (syz-executor) tid=225113 pid=17208 tcnt=4 stat=onproc flags process=10 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000fffeed10,0xffff8000fffee2c0 process=0xffff80003c41c4f0 user=0xffff80002f3e5000, vmspace=0xfffffd807749bb78 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 20044 368858 484 0 2 0x2 sh 29948 318931 31657 0 2 0 syz-executor 17208 42727 44282 60929 2 0x10 syz-executor 17208 314277 44282 60929 3 0x4000090 msgwait syz-executor *17208 225113 44282 60929 7 0x4000010 syz-executor 17208 268600 44282 60929 3 0x4000090 fsleep syz-executor 484 418533 91681 0 2 0x10000002 syz-executor 33738 83799 68901 0 2 0xc80 syz-executor 33738 487832 68901 0 3 0x4000080 rest syz-executor 33738 324852 68901 0 3 0x4000080 fsleep syz-executor 79353 515268 77104 0 2 0xc80 syz-executor 79353 341653 77104 0 3 0x4000080 fsleep syz-executor 79353 122753 77104 0 3 0x4000080 fsleep syz-executor 79353 173753 77104 0 2 0x4000000 syz-executor 98412 426218 82492 0 2 0xc80 syz-executor 98412 159573 82492 0 3 0x4000080 kqsel syz-executor 98412 128799 82492 0 3 0x4000080 fsleep syz-executor 34115 517090 0 0 3 0x14280 nfsidl nfsio 73225 112102 0 0 3 0x14200 acct acct 44282 384157 91681 0 2 0xc82 syz-executor 82492 345965 91681 0 2 0xc82 syz-executor 31657 339179 91681 0 2 0xc82 syz-executor 42958 135608 91681 0 3 0x82 wait syz-executor 68901 255910 91681 0 2 0xc82 syz-executor 77104 167815 91681 0 2 0xc82 syz-executor 11873 83283 91681 0 2 0xc82 syz-executor 91681 211575 58956 0 3 0x82 kqread syz-executor 58956 201270 66435 0 3 0x10008a sigsusp ksh 66435 221046 80489 0 3 0x98 kqread sshd-session 80489 507690 35303 0 3 0x92 kqread sshd-session 82352 111719 1 0 7 0x100083 getty 35303 62642 1 0 3 0x88 kqread sshd 75561 285419 71122 74 3 0x1100092 bpf pflogd 71122 448823 1 0 3 0x80 sbwait pflogd 70795 211502 76525 73 3 0x1100090 kqread syslogd 76525 411188 1 0 3 0x100082 sbwait syslogd 21176 213488 1 0 3 0x100080 kqread resolvd 7951 305706 93631 77 3 0x100092 kqread dhcpleased 26574 259478 93631 77 3 0x100092 kqread dhcpleased 93631 53484 1 0 3 0x80 kqread dhcpleased 3602 287568 0 0 3 0x14200 bored smr 13749 181420 0 0 3 0x14200 pgzero zerothread 48580 340126 0 0 3 0x14200 aiodoned aiodoned 54408 145028 0 0 3 0x14200 syncer update 18076 483388 0 0 3 0x14200 cleaner cleaner 43900 249672 0 0 3 0x14200 reaper reaper 26012 451365 0 0 3 0x14200 pgdaemon pagedaemon 70126 413016 0 0 3 0x14200 bored viomb 56904 22100 0 0 3 0x40014200 acpi0 acpi0 41878 214655 0 0 3 0x40014200 idle1 42837 379068 0 0 3 0x14200 bored softnet1 92239 455277 0 0 2 0x14200 softnet0 8380 16553 0 0 2 0x14200 systqmp 11173 209407 0 0 3 0x14200 bored systq 2798 447882 0 0 3 0x14200 tmoslp softclockmp 34609 320419 0 0 3 0x40014200 tmoslp softclock 14768 246750 0 0 3 0x40014200 idle0 1 487408 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10222 11212K 11417K 166960K 12047 0 pcb 17 14K 16K 166960K 112 0 rtable 244 9K 9K 166960K 452 0 pf 36 18K 24K 166960K 85 0 ifaddr 40 6K 7K 166960K 62 0 ifgroup 56 2K 2K 166960K 85 0 sysctl 2 1K 9K 166960K 9 0 counters 68 36K 37K 166960K 140 0 ioctlops 0 0K 4K 166960K 1620 0 iov 0 0K 12K 166960K 33 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1342 84K 85K 166960K 1812 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 9 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 23 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 240K 166960K 740 0 sigio 0 0K 0K 166960K 9 0 proc 73 115K 164K 166960K 623 0 subproc 72 4K 4K 166960K 92 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 68 0 in_multi 88 6K 7K 166960K 120 0 ether_multi 1 0K 0K 166960K 4 0 mrt 1 0K 0K 166960K 10 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 103 466K 466K 166960K 103 0 exec 0 0K 1K 166960K 600 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 244 167K 182K 166960K 8366 0 UVM aobj 8 4K 4K 166960K 8 0 pinsyscall 43 86K 100K 166960K 1875 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 43 0 NDP 12 0K 2K 166960K 40 0 temp 49 8669K 8740K 166960K 38529 0 kqueue 14 22K 28K 166960K 118 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 73 0 70 1 0 1 1 0 8 0 rtentry 176 136 0 31 6 0 6 6 0 8 0 unpcb 144 367 0 349 4 0 4 4 0 8 3 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 736 148 0 144 4 3 1 4 0 8 0 arp 136 23 0 6 1 0 1 1 0 8 0 inpcb 328 598 0 588 10 8 2 10 0 8 0 nd6 152 29 0 6 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 1 0 1 0 8 0 kcovpl 48 10 0 2 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1192 32 0 32 3 2 1 1 0 8 1 pppxif 1504 1 0 1 1 1 0 1 0 8 0 pfstscr 40 1 0 1 1 0 1 1 0 8 1 pffrag 232 3 0 2 1 0 1 1 0 482 0 pffrnode 88 3 0 2 1 0 1 1 0 8 0 pffrent 40 13 0 12 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 pfanchor 1288 2 0 1 1 0 1 1 0 8 0 pfstitem 24 57 0 16 1 0 1 1 0 8 0 pfstkey 128 59 0 18 2 0 2 2 0 8 0 pfstate 448 58 0 17 6 0 6 6 0 8 0 pfrule 1344 24 0 19 2 1 1 2 0 8 0 rttmr 136 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 561 0 141 31 3 28 31 0 8 0 art_table 40 563 0 141 5 0 5 5 0 8 0 art_node 32 136 0 41 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 5 2 1 1 1 0 8 0 semapl 112 19 0 9 1 0 1 1 0 8 0 shmpl 112 5 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2628 0 1116 96 1 95 96 0 8 0 ffsino 296 2628 0 1116 118 1 117 118 0 8 0 nchpl 144 3630 0 1921 64 0 64 64 0 8 0 rtmask 32 1 0 1 1 1 0 1 0 8 0 vnodes 216 2965 0 0 165 0 165 165 0 8 0 namei 1024 11857 0 11857 2 1 1 1 0 8 1 percpumem 16 85 0 36 1 0 1 1 0 8 0 kstatmem 264 46 0 20 3 1 2 3 0 8 0 scsiplug 72 8 0 8 2 1 1 1 0 8 1 scxspl 216 15869 0 15869 13 9 4 8 1 8 4 plimitpl 152 171 0 154 1 0 1 1 0 8 0 sigapl 424 1029 0 979 6 0 6 6 0 8 0 knotepl 120 500 0 0 16 0 16 16 0 8 0 kqueuepl 224 261 0 249 5 3 2 3 0 8 1 pipepl 344 154 0 126 3 0 3 3 0 8 0 fdescpl 528 1009 0 977 3 0 3 3 0 8 0 filepl 160 5069 0 4843 17 4 13 15 0 8 1 lockfpl 104 162 0 160 1 0 1 1 0 8 0 lockfspl 48 72 0 70 1 0 1 1 0 8 0 sessionpl 144 24 0 15 1 0 1 1 0 8 0 pgrppl 48 42 0 25 1 0 1 1 0 8 0 ucredpl 104 649 0 634 1 0 1 1 0 8 0 zombiepl 144 981 0 979 1 0 1 1 0 8 0 processpl 1232 1029 0 979 5 1 4 5 0 8 0 procpl 664 2047 0 1987 6 0 6 6 0 8 0 sosppl 176 5 0 5 3 2 1 1 0 8 1 sockpl 752 1059 0 1028 21 10 11 14 0 8 7 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 120 0 0 15 0 15 15 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 23 0 0 3 0 3 3 0 8 0 mtagpl 96 90 0 0 3 0 3 3 0 8 0 mbufpl 256 270 0 0 17 0 17 17 0 8 0 bufpl 280 5756 0 131 402 0 402 402 0 8 0 anonpl 32 9617 0 0 78 0 78 78 0 246 0 amapchunkpl 152 27801 0 27314 39 12 27 35 0 158 6 amappl16 200 3836 0 3807 37 22 15 17 0 8 11 amappl14 184 4 0 4 1 1 0 1 0 8 0 amappl13 176 436 0 435 1 0 1 1 0 8 0 amappl12 168 1373 0 1331 3 0 3 3 0 8 0 amappl11 160 5 0 5 1 1 0 1 0 8 0 amappl10 152 90 0 75 1 0 1 1 0 8 0 amappl9 144 270 0 269 1 0 1 1 0 8 0 amappl8 136 24 0 22 1 0 1 1 0 8 0 amappl7 128 85 0 84 1 0 1 1 0 8 0 amappl6 120 294 0 280 1 0 1 1 0 8 0 amappl5 112 90 0 80 1 0 1 1 0 8 0 amappl4 104 419 0 388 1 0 1 1 0 8 0 amappl3 96 4625 0 4534 4 1 3 3 0 8 0 amappl2 88 1159 0 1079 2 0 2 2 0 8 0 amappl1 80 11513 0 10921 14 1 13 14 0 8 0 amappl 88 7514 0 7348 5 0 5 5 0 92 0 uvmvnodes 80 115 0 0 3 0 3 3 0 8 0 dma65536 65536 1 0 1 1 1 0 1 0 8 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 254 0 254 2 1 1 1 0 8 1 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 7 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1009 0 977 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1009 0 977 1 0 1 1 0 8 0 vmmpekpl 168 9804 0 9754 3 0 3 3 0 8 0 vmmpepl 168 70578 0 68635 107 8 99 100 0 357 10 vmsppl 488 1008 0 977 5 1 4 5 0 8 0 rwobjpl 80 21489 0 20430 31 3 28 28 0 8 0 pdppl 4096 2025 0 1954 93 22 71 81 0 8 0 pvpl 32 17158 0 0 140 1 139 139 0 265 0 pmappl 256 1008 0 977 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 284 0 35 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff83858ff0) 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(ffffffff83950188) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff83950188) at __mp_lock+0x199 sys/kern/kern_lock.c:165 softintr_dispatch(0) at softintr_dispatch+0x125 sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:862 Xsoftclock() at Xsoftclock+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 __mp_acquire_count(ffffffff83950188,1) at __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 sleep_finish(ffffffffffffffff,1) at sleep_finish+0x2d8 sys/kern/kern_synch.c:369 ttread(ffff800000afee00,ffff80002a270ba8,0) at ttread+0x7de ttysleep_nsec sys/kern/tty.c:2325 [inline] ttread(ffff800000afee00,ffff80002a270ba8,0) at ttread+0x7de ttysleep sys/kern/tty.c:2315 [inline] ttread(ffff800000afee00,ffff80002a270ba8,0) at ttread+0x7de sys/kern/tty.c:1587 spec_read(ffff80002a270a00) at spec_read+0x14b sys/kern/spec_vnops.c:215 VOP_READ(fffffd806fc0ab18,ffff80002a270ba8,0,fffffd80097fdea0) at VOP_READ+0x101 sys/kern/vfs_vops.c:227 vn_read(fffffd806ed41bf0,ffff80002a270ba8,0) at vn_read+0x17b sys/kern/vfs_vnops.c:369 end trace frame: 0xffff80002a270b90, count: 0 ddb{0}> trace x86_ipi_db(ffffffff83858ff0) 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(ffffffff83950188) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff83950188) at __mp_lock+0x199 sys/kern/kern_lock.c:165 softintr_dispatch(0) at softintr_dispatch+0x125 sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:862 Xsoftclock() at Xsoftclock+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 __mp_acquire_count(ffffffff83950188,1) at __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 sleep_finish(ffffffffffffffff,1) at sleep_finish+0x2d8 sys/kern/kern_synch.c:369 ttread(ffff800000afee00,ffff80002a270ba8,0) at ttread+0x7de ttysleep_nsec sys/kern/tty.c:2325 [inline] ttread(ffff800000afee00,ffff80002a270ba8,0) at ttread+0x7de ttysleep sys/kern/tty.c:2315 [inline] ttread(ffff800000afee00,ffff80002a270ba8,0) at ttread+0x7de sys/kern/tty.c:1587 spec_read(ffff80002a270a00) at spec_read+0x14b sys/kern/spec_vnops.c:215 VOP_READ(fffffd806fc0ab18,ffff80002a270ba8,0,fffffd80097fdea0) at VOP_READ+0x101 sys/kern/vfs_vops.c:227 vn_read(fffffd806ed41bf0,ffff80002a270ba8,0) at vn_read+0x17b sys/kern/vfs_vnops.c:369 dofilereadv(ffff80002a272540,0,ffff80002a270ba8,0,ffff80002a270c60) at dofilereadv+0x25a sys/kern/sys_generic.c:252 sys_read(ffff80002a272540,ffff80002a270d10,ffff80002a270c60) at sys_read+0xa2 sys/kern/sys_generic.c:172 syscall(ffff80002a270d10) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a270d10) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x765792c6d590, count: -18 ddb{0}> machine ddbcpu 1 Stopped at savectx+0xae: movl $0,%gs:0x688 savectx() at savectx+0xae end of kernel end trace frame: 0x499158e80d0, count: 14 ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x499158e80d0, count: -1