uvm_fault(0xfffffd806b9bb5d0, 0x0, 0, 1) -> e fatal page fault in supervisor mode trap type 6 code 0 rip ffffffff81afcf38 cs 8 rflags 10207 cr2 0 cpl 0 rsp ffff80003c475880 gsbase 0xffff8000299edff0 kgsbase 0x0 panic: trap type 6, code=0, pc=ffffffff81afcf38 Starting stack trace... panic(ffffffff833a205a) at panic+0x1d0 sys/kern/subr_prf.c:229 kerntrap(ffff80003c4757d0) at kerntrap+0x30b alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b dt_ioctl_record_stop(ffff800001552000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:586 dtclose(11e5f,81,2000,ffff80002a2e4a80) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(11e5f,81,2000,ffff80002a2e4a80) at dtclose+0x109 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003c475980) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd805d39a1c0,81,fffffd80097fb340,ffff80002a2e4a80) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd80644d6228,ffff80002a2e4a80) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd80644d6228,ffff80002a2e4a80) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd80644d6228,ffff80002a2e4a80) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd80644d6228,ffff80002a2e4a80) at closef+0x192 sys/kern/kern_descrip.c:1264 fdfree(ffff80002a2e4a80) at fdfree+0x116 sys/kern/kern_descrip.c:1195 exit1(ffff80002a2e4a80,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff80002a2e4a80,ffff80003c475cf0,ffff80003c475c40) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c475cf0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c475cf0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7637bae32ac0, count: 242 End of stack trace. WARNING: SPL NOT LOWERED ON SYSCALL 5 1952234752 EXIT 0 4 Stopped at savectx+0xae: movl $0,%gs:0x688 TID PID UID PRFLAGS PFLAGS CPU COMMAND *284845 49127 0 0x2 0 1 syz-executor 194852 52859 0 0x2 0x1 0 syz-executor savectx() at savectx+0xae end of kernel end trace frame: 0x6f9d745cb800, 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(0xfffffd806b9bb5d0, 0x0, 0, 1) -> e ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x6f9d745cb800, count: -1 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80002a365a00 rbx 0 rdx 0 rcx 0xffff80002a2b9ca0 rax 0x3a r8 0xffff80002a365930 r9 0x1 r10 0xdb38b449524db534 r11 0x52bfbe696e38d51f r12 0 r13 0 r14 0xffff80002a2b9ca0 r15 0 rip 0xffffffff813db3ee savectx+0xae cs 0x8 rflags 0x46 rsp 0xffff80002a365980 ss 0x10 savectx+0xae: movl $0,%gs:0x688 ddb{1}> show proc PROC (syz-executor) tid=284845 pid=49127 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=0xffff80002a2b8a78,0xffff8000ffff3ca8 process=0xffff80002a2c1358 user=0xffff80002a360000, vmspace=0xfffffd806ef8b7a8 estcpu=36, cpticks=183, pctcpu=0.79, user=2, sys=181, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 6889 150278 35675 0 2 0 syz-executor 6889 432410 35675 0 3 0x4000080 fifor syz-executor 6889 414253 35675 0 3 0x4000080 fsleep syz-executor 93357 426348 27799 0 2 0x10 syz-executor 93357 500023 27799 0 3 0x4000090 sbwait syz-executor 32458 449507 83345 0 3 0x80 nanoslp syz-executor 32458 37812 83345 0 3 0x4000080 bell syz-executor 32458 180374 83345 0 3 0x4000080 fsleep syz-executor 4823 477717 3953 0 3 0x3000 suspend syz-executor 4823 379914 3953 0 3 0x4081000 biowait syz-executor 4823 413866 3953 0 3 0x4081000 inode syz-executor 62342 308359 70512 0 3 0x80 nanoslp syz-executor 62342 90700 70512 0 3 0x4000080 kqread syz-executor 48558 280144 11315 0 2 0 syz-executor 48558 330980 11315 0 3 0x4000080 sbwait syz-executor 48558 495240 11315 0 3 0x4000080 fsleep syz-executor 41084 33092 1 0 3 0x100083 ttyin getty 83345 215356 52859 0 3 0x82 nanoslp syz-executor 95500 483478 0 0 3 0x14200 bored sosplice 35675 339678 52859 0 3 0x82 nanoslp syz-executor 91954 306761 52859 0 3 0x82 nanoslp syz-executor 27799 160122 52859 0 3 0x82 nanoslp syz-executor 70512 89892 52859 0 3 0x82 nanoslp syz-executor *49127 284845 52859 0 7 0x2 syz-executor 3953 388310 52859 0 3 0x82 nanoslp syz-executor 11315 424075 52859 0 3 0x82 nanoslp syz-executor 52859 194852 90913 0 7 0x3 syz-executor 90913 698 86784 0 3 0x10008a sigsusp ksh 86784 263831 95230 0 3 0x98 kqread sshd-session 95230 58390 61347 0 3 0x92 kqread sshd-session 61347 423357 1 0 3 0x88 kqread sshd 7684 299827 63409 74 3 0x1100092 bpf pflogd 63409 81033 1 0 3 0x80 sbwait pflogd 6415 123412 2900 73 3 0x1100090 kqread syslogd 2900 392402 1 0 3 0x100082 sbwait syslogd 52484 113222 1 0 3 0x100080 kqread resolvd 43753 402291 85982 77 3 0x100092 kqread dhcpleased 75986 284904 85982 77 3 0x100092 kqread dhcpleased 85982 321295 1 0 3 0x80 kqread dhcpleased 39922 34195 0 0 3 0x14200 bored smr 74556 266119 0 0 2 0x14200 zerothread 46021 325646 0 0 3 0x14200 aiodoned aiodoned 31734 456002 0 0 3 0x14200 syncer update 58646 92901 0 0 3 0x14200 cleaner cleaner 81926 493934 0 0 3 0x14200 reaper reaper 57130 433413 0 0 3 0x14200 pgdaemon pagedaemon 39280 119653 0 0 3 0x14200 bored viomb 14694 332035 0 0 3 0x40014200 acpi0 acpi0 56657 465543 0 0 3 0x40014200 idle1 21622 470391 0 0 3 0x14200 bored softnet7 11454 115830 0 0 3 0x14200 bored softnet6 58009 239039 0 0 3 0x14200 bored softnet5 3085 75612 0 0 3 0x14200 bored softnet4 56945 366562 0 0 3 0x14200 bored softnet3 11104 238808 0 0 3 0x14200 bored softnet2 87078 290632 0 0 3 0x14200 bored softnet1 82167 237994 0 0 2 0x14200 softnet0 39346 156952 0 0 2 0x40014200 systqmp 99187 164846 0 0 3 0x14200 bored systq 9414 213898 0 0 3 0x14200 tmoslp softclockmp 55330 482530 0 0 3 0x40014200 tmoslp softclock 66090 225175 0 0 3 0x40014200 idle0 1 57700 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks Process 4823 (syz-executor) thread 0xffff80003c43a568 (379914) exclusive rrwlock inode r = 0 (0xfffffd806e2031c8) #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:746 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10230 11087K 12357K 166960K 12884 0 pcb 19 16K 18K 166960K 472 0 rtable 212 12K 12K 166960K 459 0 pf 36 17K 81K 166960K 171 0 ifaddr 39 6K 8K 166960K 118 0 ifgroup 59 2K 3K 166960K 210 0 sysctl 4 1K 9K 166960K 16 0 counters 70 37K 38K 166960K 366 0 ioctlops 0 0K 4K 166960K 1911 0 iov 0 0K 28K 166960K 77 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1526 96K 96K 166960K 2702 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 24 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 119 0 dirhash 12 2K 2K 166960K 45 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 240K 166960K 1557 0 sigio 0 0K 0K 166960K 39 0 proc 72 115K 164K 166960K 774 0 subproc 72 4K 4K 166960K 84 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 265 0 in_multi 81 6K 7K 166960K 177 0 ether_multi 1 0K 0K 166960K 12 0 mrt 4 0K 0K 166960K 18 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 109 493K 493K 166960K 109 0 exec 0 0K 1K 166960K 511 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 239 167K 192K 166960K 15726 0 UVM aobj 45 4K 5K 166960K 47 0 pinsyscall 42 84K 104K 166960K 2693 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 105 0 NDP 13 0K 2K 166960K 81 0 temp 79 8652K 8718K 166960K 70112 0 kqueue 15 24K 35K 166960K 349 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 131 0 125 1 0 1 1 0 8 0 rtentry 176 150 0 71 5 0 5 5 0 8 0 unpcb 144 1591 0 1570 12 8 4 6 0 8 3 syncache 336 14 0 14 4 3 1 1 0 8 1 tcpqe 32 14 0 14 1 1 0 1 0 8 0 tcpcb 736 607 0 598 13 6 7 7 0 8 5 arp 128 16 0 5 1 0 1 1 0 8 0 inpcb 328 2017 0 2003 22 12 10 11 0 8 8 nd6 144 26 0 7 1 0 1 1 0 8 0 pkpcb 40 12 0 9 1 0 1 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1192 129 0 129 1 0 1 1 0 8 1 pppxif 1504 9 0 9 2 1 1 1 0 8 1 pffrag 232 10 0 0 1 0 1 1 0 482 0 pffrnode 88 10 0 0 1 0 1 1 0 8 0 pffrent 40 44 0 34 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 pfstitem 24 111 0 26 1 0 1 1 0 8 0 pfstkey 128 111 0 26 3 0 3 3 0 8 0 pfstate 384 111 0 26 9 0 9 9 0 8 0 pfrule 1344 22 0 17 2 1 1 2 0 8 0 rttmr 136 6 0 6 3 3 0 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 774 0 402 30 2 28 30 0 8 0 art_table 40 777 0 402 5 0 5 5 0 8 0 art_node 32 149 0 81 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 13 1 0 1 1 0 8 0 semapl 112 114 0 104 1 0 1 1 0 8 0 shmpl 112 44 0 2 2 0 2 2 0 8 0 dirhash 1024 39 0 22 3 0 3 3 0 8 0 dino2pl 256 4349 0 2839 95 0 95 95 0 8 0 ffsino 296 4349 0 2839 117 0 117 117 0 8 0 nchpl 144 6576 0 4878 64 0 64 64 0 8 0 rtmask 32 12 0 12 3 3 0 1 0 8 0 uvmvnodes 80 5201 0 0 107 0 107 107 0 8 0 vnodes 216 5201 0 0 289 0 289 289 0 8 0 namei 1024 24486 0 24486 1 0 1 1 0 8 1 percpumem 16 198 0 148 1 0 1 1 0 8 0 kstatmem 264 130 0 100 4 1 3 3 0 8 0 scsiplug 72 3 0 3 3 3 0 1 0 8 0 scxspl 216 42890 0 42889 13 10 3 8 1 8 2 plimitpl 152 571 0 553 1 0 1 1 0 8 0 sigapl 424 1868 0 1814 9 0 9 9 0 8 1 knotepl 120 817 0 0 25 0 25 25 0 8 0 kqueuepl 224 913 0 901 10 9 1 8 0 8 0 pipepl 344 311 0 281 9 6 3 9 0 8 0 fdescpl 528 1821 0 1790 3 0 3 3 0 8 0 filepl 160 13123 0 12888 35 20 15 22 0 8 3 lockfpl 104 777 0 775 3 2 1 2 0 8 0 lockfspl 48 208 0 206 1 0 1 1 0 8 0 sessionpl 144 35 0 26 1 0 1 1 0 8 0 pgrppl 48 57 0 40 1 0 1 1 0 8 0 ucredpl 104 1596 0 1581 1 0 1 1 0 8 0 zombiepl 144 1816 0 1814 1 0 1 1 0 8 0 processpl 1232 1868 0 1814 6 0 6 6 0 8 1 procpl 664 4272 0 4208 9 1 8 9 0 8 1 sosppl 168 4 0 4 3 2 1 1 0 8 1 sockpl 752 3806 0 3761 41 28 13 22 0 8 8 mcl64k 65536 8 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 35 0 0 5 2 3 5 0 8 0 mcl4k 4096 123 0 0 15 0 15 15 0 8 0 mcl2k 2048 78 0 0 8 0 8 8 0 8 0 mtagpl 96 6 0 0 1 0 1 1 0 8 0 mbufpl 256 1215 0 0 74 0 74 74 0 8 0 bufpl 280 17298 0 11155 440 1 439 440 0 8 0 anonpl 32 12440 0 0 101 0 101 101 0 246 0 amapchunkpl 152 54052 0 53563 44 16 28 36 0 158 6 amappl16 200 6908 0 6824 72 54 18 28 0 8 8 amappl15 192 8 0 7 1 0 1 1 0 8 0 amappl14 184 134 0 122 1 0 1 1 0 8 0 amappl13 176 6 0 6 1 1 0 1 0 8 0 amappl12 168 2565 0 2533 3 1 2 2 0 8 0 amappl11 160 52 0 38 1 0 1 1 0 8 0 amappl10 152 8 0 8 1 1 0 1 0 8 0 amappl9 144 252 0 252 1 1 0 1 0 8 0 amappl8 136 20 0 17 1 0 1 1 0 8 0 amappl7 128 122 0 109 1 0 1 1 0 8 0 amappl6 120 201 0 197 1 0 1 1 0 8 0 amappl5 112 138 0 128 1 0 1 1 0 8 0 amappl4 104 343 0 322 1 0 1 1 0 8 0 amappl3 96 10752 0 10642 5 1 4 4 0 8 0 amappl2 88 743 0 678 2 0 2 2 0 8 0 amappl1 80 16512 0 15899 16 0 16 16 0 8 0 amappl 88 14702 0 14536 5 0 5 5 0 92 0 dma65536 65536 1 0 1 1 1 0 1 0 8 0 dma4096 4096 3 0 3 2 2 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 9 0 9 3 3 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 46 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1821 0 1790 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1821 0 1790 1 0 1 1 0 8 0 vmmpekpl 168 16425 0 16380 3 0 3 3 0 8 0 vmmpepl 168 122526 0 120442 121 10 111 113 0 357 11 vmsppl 488 1820 0 1790 6 1 5 5 0 8 0 rwobjpl 80 39441 0 33198 131 0 131 131 0 8 0 pdppl 4096 3650 0 3580 114 40 74 86 0 8 4 pvpl 32 21001 0 0 171 1 170 170 0 265 0 pmappl 256 1820 0 1790 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 376 0 58 10 0 10 10 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff83781ff0) 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 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf kd_curproc sys/dev/kcov.c:580 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf sys/dev/kcov.c:153 intr_handler(ffff80002a30ecb0,ffff800000079a80) at intr_handler+0xe9 sys/arch/amd64/amd64/intr.c:559 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x44 sys/dev/kcov.c:159 ktrsysret(ffff80002a2b9a08,4,0,ffff80002a30eeb0) at ktrsysret+0xde ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff80002a2b9a08,4,0,ffff80002a30eeb0) at ktrsysret+0xde sys/kern/kern_ktrace.c:209 syscall(ffff80002a30ef60) at syscall+0xa50 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80002a30ef60) at syscall+0xa50 sys/arch/amd64/amd64/trap.c:767 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x741e9f93d520, count: 1 ddb{0}> trace x86_ipi_db(ffffffff83781ff0) 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 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf kd_curproc sys/dev/kcov.c:580 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf sys/dev/kcov.c:153 intr_handler(ffff80002a30ecb0,ffff800000079a80) at intr_handler+0xe9 sys/arch/amd64/amd64/intr.c:559 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x44 sys/dev/kcov.c:159 ktrsysret(ffff80002a2b9a08,4,0,ffff80002a30eeb0) at ktrsysret+0xde ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff80002a2b9a08,4,0,ffff80002a30eeb0) at ktrsysret+0xde sys/kern/kern_ktrace.c:209 syscall(ffff80002a30ef60) at syscall+0xa50 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80002a30ef60) at syscall+0xa50 sys/arch/amd64/amd64/trap.c:767 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x741e9f93d520, count: -14 ddb{0}> machine ddbcpu 1 Stopped at savectx+0xae: movl $0,%gs:0x688 savectx() at savectx+0xae end of kernel end trace frame: 0x6f9d745cb800, count: 14 ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x6f9d745cb800, count: -1