uvm_fault(0xfffffd806b8dc7c0, 0x0, 0, 1) -> e fatal page fault in supervisor mode trap type 6 code 0 rip ffffffff822bd948 cs 8 rflags 10207 cr2 0 cpl 0 rsp ffff80003c426280 gsbase 0xffff8000299edff0 kgsbase 0x0 panic: trap type 6, code=0, pc=ffffffff822bd948 Starting stack trace... panic(ffffffff833b5ec7) at panic+0x1d0 sys/kern/subr_prf.c:229 kerntrap(ffff80003c4261d0) at kerntrap+0x30b alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b dt_ioctl_record_stop(ffff800001628000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:593 dtclose(11e5f,81,2000,ffff8000fffe3a18) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff8000fffe3a18) at dtclose+0x109 sys/dev/dt/dt_dev.c:239 spec_close(ffff80003c426380) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd805d57a7f8,81,fffffd80097fb478,ffff8000fffe3a18) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd80603e3750,ffff8000fffe3a18) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd80603e3750,ffff8000fffe3a18) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd80603e3750,ffff8000fffe3a18) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd80603e3750,ffff8000fffe3a18) at closef+0x192 sys/kern/kern_descrip.c:1264 fdfree(ffff8000fffe3a18) at fdfree+0x116 sys/kern/kern_descrip.c:1195 exit1(ffff8000fffe3a18,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff8000fffe3a18,ffff80003c4266f0,ffff80003c426640) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c4266f0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4266f0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7e89766bed70, count: 242 End of stack trace. WARNING: SPL NOT LOWERED ON TRAP EXIT 4 0 Stopped at proc_trampoline+0xc7: movl $0,%gs:0x688 TID PID UID PRFLAGS PFLAGS CPU COMMAND *374376 3146 0 0 0 1 syz-executor proc_trampoline() at proc_trampoline+0xc7 end of kernel end trace frame: 0x763f7f9deff0, 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(0xfffffd806b8dc7c0, 0x0, 0, 1) -> e ddb{1}> trace proc_trampoline() at proc_trampoline+0xc7 end of kernel end trace frame: 0x763f7f9deff0, count: -1 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80003c496e60 rbx 0 rdx 0 rcx 0xffff8000fffe27f0 rax 0x2a r8 0xffff80003c496d90 r9 0x1 r10 0x5cb3a38ddef080c9 r11 0xed72decd49b49ae3 r12 0 r13 0 r14 0 r15 0 rip 0xffffffff81dcb4c7 proc_trampoline+0xc7 cs 0x8 rflags 0x246 rsp 0xffff80003c496de0 ss 0 proc_trampoline+0xc7: movl $0,%gs:0x688 ddb{1}> show proc PROC (syz-executor) tid=374376 pid=3146 tcnt=2 stat=onproc flags process=0 proc=0 runpri=50, usrpri=50, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000fffe2028,0xffff8000fffe3260 process=0xffff8000fffe4e90 user=0xffff80003c491000, vmspace=0xfffffd800b027d58 estcpu=36, cpticks=2, pctcpu=0.0, user=1, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND * 3146 374376 23028 0 7 0 syz-executor 3146 10152 23028 0 3 0x4000080 fsleep syz-executor 5510 196418 5902 0 3 0x80 nanoslp syz-executor 5510 481884 5902 0 3 0x4000080 kqsel syz-executor 5510 85626 5902 0 3 0x4000080 fsleep syz-executor 96822 177958 82321 0 3 0x80 nanoslp syz-executor 96822 244986 82321 0 3 0x4000080 kqread syz-executor 96822 69623 82321 0 3 0x4000080 fsleep syz-executor 30543 519386 14774 0 3 0x80 nanoslp syz-executor 30543 145724 14774 0 3 0x4000000 biowait syz-executor 30543 119969 14774 0 3 0x4000080 fsleep syz-executor 30543 75694 14774 0 3 0x4000080 fsleep syz-executor 30543 152200 14774 0 3 0x4000080 fsleep syz-executor 30543 49046 14774 0 3 0x4000080 fsleep syz-executor 14078 340777 0 0 3 0x14280 nfsidl nfsio 92642 457626 0 0 3 0x14280 nfsidl nfsio 40435 38932 0 0 3 0x14200 acct acct 82321 472728 4849 0 3 0x82 nanoslp syz-executor 88917 4448 1 0 3 0x100083 ttyopn getty 70466 281718 24213 0 3 0x82 sbwait sshd-session 63973 357558 0 0 3 0x14200 bored sosplice 8377 305808 6819 0 3 0x100082 sbwait arp 6819 287597 82397 0 3 0x10008a sigsusp sh 45937 293625 4849 0 3 0x82 nanoslp syz-executor 5902 189199 4849 0 3 0x82 nanoslp syz-executor 23028 282028 4849 0 3 0x82 nanoslp syz-executor 65217 269301 4849 0 3 0x82 wait syz-executor 62246 483037 4849 0 3 0x82 nanoslp syz-executor 82397 117904 4849 0 3 0x82 wait syz-executor 14774 468202 4849 0 3 0x82 nanoslp syz-executor 4849 425334 29562 0 3 0x82 kqread syz-executor 29562 195458 60888 0 3 0x10008a sigsusp ksh 60888 300257 1978 0 3 0x98 kqread sshd-session 1978 517851 24213 0 3 0x92 kqread sshd-session 24213 521346 1 0 3 0x88 kqread sshd 34888 408404 42540 74 3 0x1100092 bpf pflogd 42540 50573 1 0 3 0x80 sbwait pflogd 67068 277842 79367 73 3 0x1100090 kqread syslogd 79367 229023 1 0 3 0x100082 sbwait syslogd 50839 57885 1 0 3 0x100080 kqread resolvd 34200 396150 52863 77 3 0x100092 kqread dhcpleased 19700 275107 52863 77 3 0x100092 kqread dhcpleased 52863 98299 1 0 3 0x80 kqread dhcpleased 5608 294523 0 0 3 0x14200 bored smr 31306 111054 0 0 3 0x14200 pgzero zerothread 48540 467239 0 0 3 0x14200 aiodoned aiodoned 7823 483507 0 0 3 0x14200 syncer update 67644 440817 0 0 3 0x14200 cleaner cleaner 52620 247308 0 0 3 0x14220 reaper reaper 89765 299841 0 0 3 0x14200 pgdaemon pagedaemon 16309 469913 0 0 3 0x14200 bored viomb 24731 95048 0 0 3 0x40014200 acpi0 acpi0 90985 443235 0 0 3 0x40014200 idle1 72708 438931 0 0 3 0x14200 bored softnet1 80122 311723 0 0 3 0x14200 netlock softnet0 30313 131652 0 0 2 0x40014200 systqmp 12406 505412 0 0 3 0x14200 bored systq 60374 123274 0 0 3 0x14200 tmoslp softclockmp 78627 297306 0 0 3 0x40014200 tmoslp softclock 92520 243274 0 0 3 0x40014200 idle0 1 41119 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks Process 30543 (syz-executor) thread 0xffff80002a271a08 (145724) exclusive rrwlock inode r = 0 (0xfffffd806e1e76a8) #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 rrw_enter+0xc6 sys/kern/kern_rwlock.c:621 #3 VOP_LOCK+0xa3 sys/kern/vfs_vops.c:527 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:570 #5 vn_write+0x18f sys/kern/vfs_vnops.c:405 #6 dofilewritev+0x242 sys/kern/sys_generic.c:380 #7 sys_write+0xa2 sys/kern/sys_generic.c:300 #8 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #8 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:748 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10241 11115K 12561K 166960K 12936 0 pcb 18 16K 18K 166960K 268 0 rtable 182 15K 16K 166960K 982 0 pf 42 19K 67486K 166960K 166 0 ifaddr 34 5K 7K 166960K 94 0 ifgroup 66 2K 3K 166960K 177 0 sysctl 4 1K 9K 166960K 56 0 counters 72 37K 38K 166960K 164 0 ioctlops 0 0K 4K 166960K 1613 0 iov 0 0K 28K 166960K 62 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1459 92K 92K 166960K 2404 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 12 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 25 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 19 69K 240K 166960K 1103 0 sigio 1 0K 0K 166960K 69 0 proc 72 115K 180K 166960K 648 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 104 0 in_multi 58 4K 6K 166960K 130 0 ether_multi 1 0K 0K 166960K 13 0 mrt 1 0K 0K 166960K 12 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 127 572K 572K 166960K 127 0 exec 0 0K 1K 166960K 491 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 279 171K 185K 166960K 11960 0 UVM aobj 87 7K 7K 166960K 90 0 pinsyscall 47 94K 108K 166960K 2240 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 1K 166960K 66 0 NDP 14 0K 1K 166960K 65 0 temp 81 8656K 8728K 166960K 32048 0 kqueue 15 24K 29K 166960K 191 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 248 0 244 4 3 1 3 0 8 0 rtentry 176 347 0 280 5 0 5 5 0 8 0 unpcb 144 1340 0 1319 14 6 8 8 0 8 7 syncache 336 4 0 4 2 2 0 1 0 8 0 tcpcb 736 434 0 427 13 6 7 7 0 8 6 arp 136 92 0 76 1 0 1 1 0 8 0 inpcb 328 1335 0 1322 8 1 7 7 0 8 5 nd6 152 30 0 15 1 0 1 1 0 8 0 pkpcb 40 9 0 9 2 1 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1192 31 0 31 1 0 1 1 0 8 1 pppxif 1504 5 0 5 2 1 1 1 0 8 1 pfstscr 40 2 0 1 2 1 1 1 0 8 0 pffrag 232 9 0 2 1 0 1 1 0 482 0 pffrnode 88 9 0 2 1 0 1 1 0 8 0 pffrent 40 13 0 6 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 3 0 0 1 0 1 1 0 8 0 pftag 88 3 0 0 1 0 1 1 0 8 0 pfstitem 24 101 0 21 1 0 1 1 0 8 0 pfstkey 128 104 0 24 3 0 3 3 0 8 0 pfstate 384 101 0 23 8 0 8 8 0 8 0 pfrule 1344 30 0 25 2 1 1 2 0 8 0 rttmr 136 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 958 0 650 47 22 25 47 0 8 2 art_table 40 961 0 650 8 2 6 8 0 8 0 art_node 32 342 0 285 3 1 2 3 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 23 0 13 1 0 1 1 0 8 0 shmpl 112 87 0 3 3 0 3 3 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 3622 0 2113 95 0 95 95 0 8 0 ffsino 296 3622 0 2113 117 0 117 117 0 8 0 nchpl 144 5169 0 3462 64 0 64 64 0 8 0 rtmask 32 2 0 2 1 1 0 1 0 8 0 vnodes 216 4213 0 0 235 0 235 235 0 8 0 namei 1024 17801 0 17801 1 0 1 1 0 8 1 percpumem 16 97 0 46 1 0 1 1 0 8 0 kstatmem 264 102 0 68 3 0 3 3 0 8 0 scsiplug 72 7 0 7 2 1 1 1 0 8 1 scxspl 216 38070 0 38069 7 3 4 4 1 8 3 plimitpl 152 378 0 360 1 0 1 1 0 8 0 sigapl 424 1405 0 1351 7 0 7 7 0 8 0 knotepl 120 507 0 0 16 0 16 16 0 8 0 kqueuepl 224 646 0 633 7 4 3 5 0 8 2 pipepl 344 209 0 179 3 0 3 3 0 8 0 fdescpl 528 1382 0 1348 3 0 3 3 0 8 0 filepl 160 10441 0 10201 20 0 20 20 0 8 7 lockfpl 104 310 0 308 1 0 1 1 0 8 0 lockfspl 48 129 0 127 1 0 1 1 0 8 0 sessionpl 144 25 0 15 1 0 1 1 0 8 0 pgrppl 48 47 0 29 1 0 1 1 0 8 0 ucredpl 104 1805 0 1790 1 0 1 1 0 8 0 zombiepl 144 1354 0 1351 1 0 1 1 0 8 0 processpl 1232 1405 0 1351 5 0 5 5 0 8 0 procpl 664 3140 0 3076 7 0 7 7 0 8 1 sosppl 168 4 0 4 2 1 1 1 0 8 1 sockpl 752 2958 0 2920 37 24 13 24 0 8 8 mcl64k 65536 16 0 0 2 0 2 2 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 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 116 0 0 15 0 15 15 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 52 0 0 6 1 5 6 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 1134 0 0 71 0 71 71 0 8 0 bufpl 280 16953 0 10816 439 0 439 439 0 8 0 anonpl 32 14050 0 0 114 0 114 114 0 246 0 amapchunkpl 152 40437 0 39859 32 6 26 32 0 158 3 amappl16 200 7854 0 7755 66 49 17 27 0 8 8 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 5 0 5 1 1 0 1 0 8 0 amappl13 176 434 0 432 1 0 1 1 0 8 0 amappl12 168 1752 0 1704 3 0 3 3 0 8 0 amappl11 160 6 0 6 2 1 1 1 0 8 1 amappl10 152 53 0 39 1 0 1 1 0 8 0 amappl9 144 251 0 251 1 1 0 1 0 8 0 amappl8 136 28 0 26 1 0 1 1 0 8 0 amappl7 128 83 0 82 1 0 1 1 0 8 0 amappl6 120 287 0 270 1 0 1 1 0 8 0 amappl5 112 79 0 67 1 0 1 1 0 8 0 amappl4 104 427 0 396 1 0 1 1 0 8 0 amappl3 96 6942 0 6837 3 0 3 3 0 8 0 amappl2 88 1501 0 1416 2 0 2 2 0 8 0 amappl1 80 13246 0 12539 16 1 15 15 0 8 0 amappl 88 11028 0 10839 5 0 5 5 0 92 0 uvmvnodes 80 4213 0 0 86 0 86 86 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 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 256 0 256 3 2 1 1 0 8 1 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 21 0 20 1 0 1 1 0 8 0 aobjpl 72 89 0 3 2 0 2 2 0 8 0 uaddrrnd 24 1382 0 1348 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1382 0 1348 1 0 1 1 0 8 0 vmmpekpl 168 12775 0 12729 3 0 3 3 0 8 0 vmmpepl 168 96305 0 94076 115 2 113 115 0 357 11 vmsppl 488 1381 0 1348 5 0 5 5 0 8 0 rwobjpl 80 34113 0 28651 116 0 116 116 0 8 4 pdppl 4096 2772 0 2696 104 28 76 88 0 8 0 pvpl 32 23168 0 0 188 1 187 187 0 265 0 pmappl 256 1381 0 1348 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 371 0 62 10 0 10 10 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff837f9ff0) 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+0x2c kd_curproc sys/dev/kcov.c:584 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c sys/dev/kcov.c:153 __mp_lock(ffffffff839bf018) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff839bf018) at __mp_lock+0x1a3 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(ffffffff839bf018) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff839bf018) at __mp_lock+0x192 sys/kern/kern_lock.c:165 intr_handler(ffff80002a244a10,ffff80000007aa80) at intr_handler+0xe9 sys/arch/amd64/amd64/intr.c:559 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f Xspllower() at Xspllower+0x1d msleep_nsec(ffffffff837c1848,ffffffff837c1810,4,ffffffff83398522,ffffffffffffffff) at msleep_nsec+0x11c sys/kern/kern_synch.c:219 reaper(ffff8000ffffdc90) at reaper+0x13b sys/kern/kern_exit.c:477 end trace frame: 0x0, count: 1 ddb{0}> trace x86_ipi_db(ffffffff837f9ff0) 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+0x2c kd_curproc sys/dev/kcov.c:584 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c sys/dev/kcov.c:153 __mp_lock(ffffffff839bf018) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff839bf018) at __mp_lock+0x1a3 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(ffffffff839bf018) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff839bf018) at __mp_lock+0x192 sys/kern/kern_lock.c:165 intr_handler(ffff80002a244a10,ffff80000007aa80) at intr_handler+0xe9 sys/arch/amd64/amd64/intr.c:559 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f Xspllower() at Xspllower+0x1d msleep_nsec(ffffffff837c1848,ffffffff837c1810,4,ffffffff83398522,ffffffffffffffff) at msleep_nsec+0x11c sys/kern/kern_synch.c:219 reaper(ffff8000ffffdc90) at reaper+0x13b sys/kern/kern_exit.c:477 end trace frame: 0x0, count: -14 ddb{0}> machine ddbcpu 1 Stopped at proc_trampoline+0xc7: movl $0,%gs:0x688 proc_trampoline() at proc_trampoline+0xc7 end of kernel end trace frame: 0x763f7f9deff0, count: 14 ddb{1}> trace proc_trampoline() at proc_trampoline+0xc7 end of kernel end trace frame: 0x763f7f9deff0, count: -1