uvm_fault(0xfffffd805fe18b98, 0x0, 0, 1) -> e fatal page fault in supervisor mode trap type 6 code 0 rip ffffffff82d4e5f8 cs 8 rflags 10246 cr2 0 cpl 0 rsp ffff80003c41e140 gsbase 0xffff8000299edff0 kgsbase 0x0 panic: trap type 6, code=0, pc=ffffffff82d4e5f8 Starting stack trace... panic(ffffffff833a6996) at panic+0x1d0 sys/kern/subr_prf.c:229 kerntrap(ffff80003c41e090) at kerntrap+0x30b alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b dt_ioctl_record_stop(ffff800001614000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:586 dtclose(11e5f,81,2000,ffff8000fffea2b8) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff8000fffea2b8) at dtclose+0x109 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003c41e240) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd80600aa0e0,81,fffffd80097fb548,ffff8000fffea2b8) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806b608d78,ffff8000fffea2b8) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806b608d78,ffff8000fffea2b8) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806b608d78,ffff8000fffea2b8) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd806b608d78,ffff8000fffea2b8) at closef+0x192 sys/kern/kern_descrip.c:1264 fdfree(ffff8000fffea2b8) at fdfree+0x116 sys/kern/kern_descrip.c:1195 exit1(ffff8000fffea2b8,b,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff8000fffea2b8,ffff80003c41e5b0,ffff80003c41e500) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c41e5b0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c41e5b0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x76a0dbbe4a90, count: 242 End of stack trace. WARNING: SPL NOT LOWERED ON SYSCALL 83 746656336 EXIT 0 4 Stopped at savectx+0xae: movl $0,%gs:0x688 TID PID UID PRFLAGS PFLAGS CPU COMMAND 276755 59441 0 0 0 0 syz-executor *504297 4993 0 0 0 1 syz-executor savectx() at savectx+0xae end of kernel end trace frame: 0x7a4ffed996d0, 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(0xfffffd805fe18b98, 0x0, 0, 1) -> e ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x7a4ffed996d0, count: -1 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80003c424700 rbx 0 rdx 0 rcx 0xffff8000fffe8a88 rax 0x3a r8 0xffff80003c424630 r9 0x1 r10 0x604216fd6faad977 r11 0x7b9967af4339fdf1 r12 0 r13 0 r14 0xffff8000fffe8a88 r15 0 rip 0xffffffff81feb3ee savectx+0xae cs 0x8 rflags 0x46 rsp 0xffff80003c424680 ss 0x10 savectx+0xae: movl $0,%gs:0x688 ddb{1}> show proc PROC (syz-executor) tid=504297 pid=4993 tcnt=2 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=0xffff8000fffeaa80,0xffff8000fffe8d30 process=0xffff8000fffef038 user=0xffff80003c41f000, vmspace=0xfffffd805fe189b0 estcpu=36, cpticks=6, pctcpu=0.0, user=4, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 59441 276755 75488 0 7 0 syz-executor 59441 396008 75488 0 2 0x4000000 syz-executor * 4993 504297 20095 0 7 0 syz-executor 4993 488806 20095 0 3 0x4000080 fsleep syz-executor 75920 463463 68676 0 2 0 syz-executor 75920 247772 68676 0 3 0x4000080 fsleep syz-executor 12715 487465 15045 0 3 0x80 nanoslp syz-executor 12715 235361 15045 0 3 0x4000080 ttyretype syz-executor 12715 209666 15045 0 3 0x4000080 fsleep syz-executor 24097 161740 81785 0 3 0x4000080 nanoslp syz-executor 24097 153277 81785 0 3 0x4000080 kqpoll syz-executor 24097 229115 81785 0 3 0x4000080 fsleep syz-executor 84497 33890 38926 0 3 0x80 nanoslp syz-executor 84497 396432 38926 0 3 0x4000080 fsleep syz-executor 84497 75412 38926 0 3 0x4000080 lockf syz-executor 84497 225941 38926 0 3 0x4000080 fsleep syz-executor 5701 415093 23116 0 2 0x10000003 syz-executor 46347 204554 0 0 3 0x14200 acct acct 40596 461354 0 0 3 0x14200 bored sosplice 38926 475294 23116 0 2 0x3 syz-executor 40761 219280 23116 0 2 0x3 syz-executor 81785 465140 23116 0 2 0x3 syz-executor 75488 279445 23116 0 3 0x82 nanoslp syz-executor 20095 360377 23116 0 3 0x82 nanoslp syz-executor 68676 104361 23116 0 3 0x82 nanoslp syz-executor 15045 340343 23116 0 2 0x3 syz-executor 23116 191405 8351 0 3 0x82 kqread syz-executor 8351 117592 80356 0 3 0x10008a sigsusp ksh 80356 105494 92339 0 3 0x98 kqread sshd-session 92339 500782 10733 0 3 0x92 kqread sshd-session 12010 332390 1 0 3 0x100083 ttyopn getty 10733 108083 1 0 3 0x88 kqread sshd 94339 27475 11601 74 3 0x1100092 bpf pflogd 11601 171481 1 0 3 0x80 sbwait pflogd 3083 421209 48398 73 3 0x1100090 kqread syslogd 48398 6077 1 0 3 0x100082 sbwait syslogd 94762 7971 1 0 3 0x100080 kqread resolvd 73498 237183 70058 77 3 0x100092 kqread dhcpleased 28435 290375 70058 77 3 0x100092 kqread dhcpleased 70058 64830 1 0 3 0x80 kqread dhcpleased 17198 10905 0 0 3 0x14200 bored smr 41977 361136 0 0 2 0x14200 zerothread 89656 144568 0 0 3 0x14200 aiodoned aiodoned 86646 302223 0 0 3 0x14200 syncer update 78589 115976 0 0 3 0x14200 cleaner cleaner 81089 520160 0 0 3 0x14200 reaper reaper 16240 8351 0 0 3 0x14200 pgdaemon pagedaemon 41899 359647 0 0 3 0x14200 bored viomb 74235 198898 0 0 3 0x40014200 acpi0 acpi0 12414 386623 0 0 3 0x40014200 idle1 24184 254450 0 0 3 0x14200 bored softnet1 58551 220004 0 0 3 0x14200 netlock softnet0 3463 261832 0 0 2 0x40014200 systqmp 44148 328462 0 0 3 0x14200 bored systq 6293 331723 0 0 3 0x14200 tmoslp softclockmp 74893 204366 0 0 3 0x40014200 tmoslp softclock 53254 6980 0 0 3 0x40014200 idle0 1 26704 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks Process 59441 (syz-executor) thread 0xffff8000fffe82c0 (396008) exclusive rwlock vmmaplk r = 0 (0xfffffd805fe184f8) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320 #2 vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5168 #3 uvmfault_lookup+0xe8 sys/uvm/uvm_fault.c:1918 #4 uvm_fault_check+0x895 uvmfault_amapcopy sys/uvm/uvm_fault.c:235 [inline] #4 uvm_fault_check+0x895 sys/uvm/uvm_fault.c:784 #5 uvm_fault+0x106 sys/uvm/uvm_fault.c:677 #6 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 #7 usertrap+0x3c6 sys/arch/amd64/amd64/trap.c:603 #8 recall_trap+0x8 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10237 11109K 12365K 166960K 12933 0 pcb 19 17K 18K 166960K 211 0 rtable 181 7K 8K 166960K 468 0 pf 34 17K 67485K 166960K 121 0 ifaddr 36 6K 7K 166960K 80 0 ifgroup 47 2K 2K 166960K 110 0 sysctl 3 1K 9K 166960K 14 0 counters 64 36K 37K 166960K 138 0 ioctlops 0 0K 4K 166960K 1773 0 iov 0 0K 28K 166960K 51 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1495 94K 94K 166960K 2400 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 15 0 VM map 2 1K 1K 166960K 2 0 sem 7 1K 1K 166960K 7 0 dirhash 12 2K 2K 166960K 33 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 228K 166960K 1028 0 sigio 0 0K 0K 166960K 30 0 proc 72 115K 164K 166960K 639 0 subproc 72 4K 4K 166960K 141 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 132 0 in_multi 76 5K 7K 166960K 167 0 ether_multi 1 0K 0K 166960K 8 0 mrt 3 0K 0K 166960K 7 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 217 970K 970K 166960K 217 0 exec 0 0K 1K 166960K 516 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 243 175K 193K 166960K 10998 0 UVM aobj 68 3K 3K 166960K 69 0 pinsyscall 42 84K 103K 166960K 2154 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 70 0 NDP 10 0K 2K 166960K 52 0 temp 64 8648K 8729K 166960K 37082 0 kqueue 14 22K 28K 166960K 190 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 108 0 104 1 0 1 1 0 8 0 rtentry 176 133 0 59 5 0 5 5 0 8 0 unpcb 144 744 0 725 9 5 4 4 0 8 3 syncache 336 6 0 6 2 2 0 1 0 8 0 tcpcb 736 245 0 240 2 1 1 2 0 8 0 arp 136 14 0 3 1 0 1 1 0 8 0 inpcb 328 1229 0 1217 14 12 2 12 0 8 1 nd6 144 26 0 9 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1192 31 0 31 2 1 1 1 0 8 1 pfstscr 40 2 0 1 1 0 1 1 0 8 0 pffrag 232 7 0 3 1 0 1 1 0 482 0 pffrnode 88 7 0 3 1 0 1 1 0 8 0 pffrent 40 17 0 13 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 pftag 88 2 0 1 1 0 1 1 0 8 0 pfstitem 24 98 0 19 1 0 1 1 0 8 0 pfstkey 128 100 0 22 3 0 3 3 0 8 0 pfstate 384 97 0 20 8 0 8 8 0 8 0 pfrule 1344 27 0 22 2 1 1 2 0 8 0 rttmr 136 2 0 2 2 2 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 704 0 368 30 7 23 29 0 8 0 art_table 40 706 0 368 5 0 5 5 0 8 0 art_node 32 131 0 69 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 7 1 0 1 1 0 8 0 semapl 112 5 0 0 1 0 1 1 0 8 0 shmpl 112 66 0 1 2 0 2 2 0 8 0 dirhash 1024 31 0 14 3 0 3 3 0 8 0 dino2pl 256 3237 0 1726 95 0 95 95 0 8 0 ffsino 296 3237 0 1726 117 0 117 117 0 8 0 nchpl 144 4666 0 2973 63 0 63 63 0 8 0 rtmask 32 6 0 6 2 2 0 1 0 8 0 uvmvnodes 80 4022 0 0 83 0 83 83 0 8 0 vnodes 216 4022 0 0 224 0 224 224 0 8 0 namei 1024 16776 0 16776 3 2 1 2 0 8 1 percpumem 16 84 0 37 1 0 1 1 0 8 0 kstatmem 264 70 0 48 3 1 2 3 0 8 0 scsiplug 72 6 0 6 2 2 0 1 0 8 0 scxspl 216 20033 0 20033 10 8 2 8 1 8 2 plimitpl 152 387 0 369 1 0 1 1 0 8 0 sigapl 424 1331 0 1281 8 2 6 7 0 8 0 knotepl 120 549 0 0 17 0 17 17 0 8 0 kqueuepl 224 440 0 429 5 4 1 5 0 8 0 pipepl 344 236 0 209 6 3 3 6 0 8 0 fdescpl 528 1303 0 1272 3 0 3 3 0 8 0 filepl 160 8707 0 8478 22 9 13 17 0 8 2 lockfpl 104 385 0 381 1 0 1 1 0 8 0 lockfspl 48 161 0 158 1 0 1 1 0 8 0 sessionpl 144 24 0 15 1 0 1 1 0 8 0 pgrppl 48 49 0 32 1 0 1 1 0 8 0 ucredpl 104 1334 0 1321 1 0 1 1 0 8 0 zombiepl 144 1350 0 1348 1 0 1 1 0 8 0 processpl 1232 1331 0 1281 5 0 5 5 0 8 0 procpl 664 2866 0 2806 6 0 6 6 0 8 0 sosppl 168 4 0 4 1 1 0 1 0 8 0 sockpl 752 2109 0 2072 28 17 11 17 0 8 7 mcl64k 65536 16 0 0 2 0 2 2 0 8 0 mcl16k 16384 3 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 124 0 0 16 0 16 16 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 64 0 0 7 0 7 7 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 266 0 0 16 0 16 16 0 8 0 bufpl 280 8098 0 1955 439 0 439 439 0 8 0 anonpl 32 7921 0 0 64 0 64 64 0 246 0 amapchunkpl 152 37118 0 36636 38 15 23 31 0 158 2 amappl16 200 3946 0 3912 22 8 14 16 0 8 8 amappl15 192 24 0 24 1 1 0 1 0 8 0 amappl14 184 122 0 110 1 0 1 1 0 8 0 amappl13 176 34 0 34 1 1 0 1 0 8 0 amappl12 168 1977 0 1945 3 1 2 2 0 8 0 amappl11 160 50 0 36 1 0 1 1 0 8 0 amappl10 152 6 0 6 2 2 0 1 0 8 0 amappl9 144 244 0 243 2 1 1 1 0 8 0 amappl8 136 34 0 32 1 0 1 1 0 8 0 amappl7 128 124 0 112 1 0 1 1 0 8 0 amappl6 120 192 0 189 1 0 1 1 0 8 0 amappl5 112 145 0 135 1 0 1 1 0 8 0 amappl4 104 320 0 300 1 0 1 1 0 8 0 amappl3 96 6394 0 6301 4 1 3 3 0 8 0 amappl2 88 1542 0 1464 2 0 2 2 0 8 0 amappl1 80 12278 0 11668 17 3 14 15 0 8 0 amappl 88 10128 0 9960 5 0 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 7 0 7 2 2 0 1 0 8 0 dma128 128 256 0 256 2 2 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 68 0 1 2 0 2 2 0 8 0 uaddrrnd 24 1303 0 1272 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1303 0 1272 1 0 1 1 0 8 0 vmmpekpl 168 12029 0 11988 3 0 3 3 0 8 0 vmmpepl 168 86798 0 84778 105 3 102 103 0 357 7 vmsppl 488 1302 0 1272 6 1 5 5 0 8 0 rwobjpl 80 28163 0 23136 103 0 103 103 0 8 0 pdppl 4096 2614 0 2544 110 38 72 86 0 8 2 pvpl 32 16589 0 0 135 1 134 134 0 265 0 pmappl 256 1302 0 1272 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 297 0 53 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff837c9ff0) 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(ffffffff83965ea8) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff83965ea8) at __mp_lock+0x192 sys/kern/kern_lock.c:165 softintr_dispatch(2) at softintr_dispatch+0x125 sys/kern/kern_softintr.c:83 dosoftint(2) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:847 Xsofttty() at Xsofttty+0x27 __mp_lock(ffffffff83965ea8) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff83965ea8) at __mp_lock+0x192 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:847 Xsoftclock() at Xsoftclock+0x27 end of kernel end trace frame: 0x7cd1c1942f60, count: 4 ddb{0}> trace x86_ipi_db(ffffffff837c9ff0) 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(ffffffff83965ea8) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff83965ea8) at __mp_lock+0x192 sys/kern/kern_lock.c:165 softintr_dispatch(2) at softintr_dispatch+0x125 sys/kern/kern_softintr.c:83 dosoftint(2) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:847 Xsofttty() at Xsofttty+0x27 __mp_lock(ffffffff83965ea8) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff83965ea8) at __mp_lock+0x192 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:847 Xsoftclock() at Xsoftclock+0x27 end of kernel end trace frame: 0x7cd1c1942f60, count: -11 ddb{0}> machine ddbcpu 1 Stopped at savectx+0xae: movl $0,%gs:0x688 savectx() at savectx+0xae end of kernel end trace frame: 0x7a4ffed996d0, count: 14 ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x7a4ffed996d0, count: -1