uvm_fault(0xfffffd806eef23c8, 0x0, 0, 1) -> e fatal page fault in supervisor mode trap type 6 code 0 rip ffffffff82aae000 cs 8 rflags 10246 cr2 0 cpl 0 rsp ffff80002a2f9fc0 gsbase 0xffff8000299ddff0 kgsbase 0x0 panic: trap type 6, code=0, pc=ffffffff82aae000 Starting stack trace... panic(ffffffff833414b8) at panic+0x1d0 sys/kern/subr_prf.c:229 kerntrap(ffff80002a2f9f10) at kerntrap+0x2cb sys/arch/amd64/amd64/trap.c:482 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b dt_ioctl_record_stop(ffff8000015f5000) at dt_ioctl_record_stop+0xf0 sys/dev/dt/dt_dev.c:580 dtioctl(11e5f,80044403,ffff80002a2fa250,81,ffff8000347ebc58) at dtioctl+0x536 sys/dev/dt/dt_dev.c:318 VOP_IOCTL(fffffd806a1c27b0,80044403,ffff80002a2fa250,81,fffffd80097fb548,ffff8000347ebc58) at VOP_IOCTL+0xac sys/kern/vfs_vops.c:264 vn_ioctl(fffffd805eaef260,80044403,ffff80002a2fa250,ffff8000347ebc58) at vn_ioctl+0xf8 sys/kern/vfs_vnops.c:531 sys_ioctl(ffff8000347ebc58,ffff80002a2fa430,ffff80002a2fa380) at sys_ioctl+0x5c3 sys/kern/sys_generic.c:-1 syscall(ffff80002a2fa430) at syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a2fa430) at syscall+0xbc6 sys/arch/amd64/amd64/trap.c:742 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x86050a03640, count: 247 End of stack trace. WARNING: SPL NOT LOWERED ON SYSCALL 83 907335024 EXIT 0 4 Stopped at savectx+0xae: movl $0,%gs:0x688 TID PID UID PRFLAGS PFLAGS CPU COMMAND *438572 47306 0 0 0 1 syz-executor 503624 17957 0 0x14000 0x200 0 reaper savectx() at savectx+0xae end of kernel end trace frame: 0x77444dfb0f80, 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(0xfffffd806eef23c8, 0x0, 0, 1) -> e ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x77444dfb0f80, count: -1 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80002a3abe10 rbx 0 rdx 0 rcx 0xffff80002a297c50 rax 0x3a r8 0xffff80002a3abd40 r9 0x1 r10 0x46cf52e366822c9f r11 0xf9205797e22a6fa7 r12 0 r13 0 r14 0xffff80002a297c50 r15 0 rip 0xffffffff81c423ee savectx+0xae cs 0x8 rflags 0x46 rsp 0xffff80002a3abd90 ss 0x10 savectx+0xae: movl $0,%gs:0x688 ddb{1}> show proc PROC (syz-executor) tid=438572 pid=47306 tcnt=4 stat=onproc flags process=0 proc=0 runpri=86, usrpri=86, slppri=16, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a2bb9b8,0xffff80002a296f90 process=0xffff8000347ef568 user=0xffff80002a3a6000, vmspace=0xfffffd806a315028 estcpu=36, cpticks=3, pctcpu=0.0, user=2, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 88678 47309 71105 0 2 0 syz-executor 88678 76589 71105 0 3 0x4000080 kqread syz-executor 88678 66046 71105 0 3 0x4000080 fsleep syz-executor 88678 497034 71105 0 3 0x4000000 sbar syz-executor *47306 438572 78153 0 7 0 syz-executor 47306 461012 78153 0 3 0x4000080 fsleep syz-executor 47306 384740 78153 0 3 0x4000080 fsleep syz-executor 47306 346955 78153 0 3 0x4000080 fsleep syz-executor 18656 361716 18388 -1 3 0x90 nanoslp syz-executor 18656 232199 18388 -1 3 0x4000090 sbwait syz-executor 18656 266805 18388 -1 3 0x4000090 fsleep syz-executor 15827 78617 41898 0 3 0x80 nanoslp syz-executor 15827 46313 41898 0 3 0x4000080 lockf syz-executor 15827 136479 41898 0 3 0x4000080 fsleep syz-executor 78153 475210 63395 0 3 0x82 nanoslp syz-executor 62341 3791 63395 0 3 0x82 nanoslp syz-executor 41898 365414 63395 0 3 0x82 nanoslp syz-executor 99469 89821 1 0 3 0x100083 ttyin getty 71105 321188 63395 0 3 0x82 nanoslp syz-executor 1128 265399 63395 0 2 0x2 syz-executor 18388 144388 63395 0 3 0x82 nanoslp syz-executor 12174 177456 63395 0 2 0x2 syz-executor 89098 11611 0 0 3 0x14200 bored sosplice 46651 311271 63395 0 3 0x82 wait syz-executor 63395 3380 87750 0 3 0x82 kqread syz-executor 87750 343803 26537 0 3 0x10008a sigsusp ksh 26537 37029 80503 0 3 0x98 kqread sshd-session 80503 242368 19538 0 3 0x92 kqread sshd-session 19538 452386 1 0 3 0x88 kqread sshd 76720 409667 1552 74 3 0x1100092 bpf pflogd 1552 432480 1 0 3 0x80 sbwait pflogd 75172 209363 69036 73 3 0x1100090 kqread syslogd 69036 99001 1 0 3 0x100082 sbwait syslogd 39262 431123 1 0 3 0x100080 kqread resolvd 67 208883 48930 77 3 0x100092 kqread dhcpleased 6405 154548 48930 77 3 0x100092 kqread dhcpleased 48930 91318 1 0 3 0x80 kqread dhcpleased 11534 175676 0 0 3 0x14200 bored smr 20293 222446 0 0 2 0x14200 zerothread 87229 68601 0 0 3 0x14200 aiodoned aiodoned 70315 136885 0 0 3 0x14200 syncer update 75205 64621 0 0 3 0x14200 cleaner cleaner 17957 503624 0 0 7 0x14200 reaper 65085 214800 0 0 3 0x14200 pgdaemon pagedaemon 13741 117974 0 0 3 0x14200 bored viomb 34155 336560 0 0 3 0x40014200 acpi0 acpi0 22596 122911 0 0 3 0x40014200 idle1 28166 374820 0 0 3 0x14200 bored softnet3 34156 304532 0 0 3 0x14200 bored softnet2 73478 313679 0 0 3 0x14200 bored softnet1 22565 404986 0 0 3 0x14200 bored softnet0 33991 286771 0 0 2 0x40014200 systqmp 46133 68062 0 0 3 0x14200 bored systq 3741 231586 0 0 3 0x14200 tmoslp softclockmp 54401 119424 0 0 3 0x40014200 tmoslp softclock 45187 452248 0 0 3 0x40014200 idle0 1 234458 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks CPU 0: exclusive mutex &(curpg)->mdpage.pv_mtx r = 0 (0xfffffd80091b72a0) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 mtx_enter_try+0x1ad sys/kern/kern_lock.c:311 #2 mtx_enter+0x62 sys/kern/kern_lock.c:261 #3 pmap_remove_ptes+0x297 pmap_remove_pv sys/arch/amd64/amd64/pmap.c:-1 [inline] #3 pmap_remove_ptes+0x297 sys/arch/amd64/amd64/pmap.c:1711 #4 pmap_do_remove+0x533 sys/arch/amd64/amd64/pmap.c:1920 #5 uvm_unmap_kill_entry_withlock+0x26f sys/uvm/uvm_map.c:1863 #6 uvm_map_teardown+0x117 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:-1 [inline] #6 uvm_map_teardown+0x117 sys/uvm/uvm_map.c:2486 #7 exit1+0x723 sys/kern/kern_exit.c:260 #8 sys_exit+0x1a sys/kern/kern_exit.c:-1 #9 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #9 syscall+0xb08 sys/arch/amd64/amd64/trap.c:742 #10 Xsyscall+0x128 exclusive mutex &pmap->pm_mtx r = 0 (0xfffffd806bfc8310) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 mtx_enter_try+0x1ad sys/kern/kern_lock.c:311 #2 mtx_enter+0x62 sys/kern/kern_lock.c:261 #3 pmap_do_remove+0xa9 rcr3 machine/cpufunc.h:139 [inline] #3 pmap_do_remove+0xa9 pmap_map_ptes sys/arch/amd64/amd64/pmap.c:437 [inline] #3 pmap_do_remove+0xa9 sys/arch/amd64/amd64/pmap.c:1824 #4 uvm_unmap_kill_entry_withlock+0x26f sys/uvm/uvm_map.c:1863 #5 uvm_map_teardown+0x117 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:-1 [inline] #5 uvm_map_teardown+0x117 sys/uvm/uvm_map.c:2486 #6 exit1+0x723 sys/kern/kern_exit.c:260 #7 sys_exit+0x1a sys/kern/kern_exit.c:-1 #8 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #8 syscall+0xb08 sys/arch/amd64/amd64/trap.c:742 #9 Xsyscall+0x128 Process 88678 (syz-executor) thread 0xffff8000347ebc58 (497034) Process 1128 (syz-executor) thread 0xffff8000347eb218 (265399) Process 12174 (syz-executor) thread 0xffff80002a2962b0 (177456) ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10271 11149K 12477K 166960K 13614 0 pcb 17 15K 17K 166960K 684 0 rtable 181 9K 11K 166960K 1022 0 pf 38 18K 67486K 166960K 243 0 ifaddr 40 7K 10K 166960K 184 0 ifgroup 59 2K 2K 166960K 296 0 sysctl 4 1K 9K 166960K 51 0 counters 70 37K 38K 166960K 436 0 ioctlops 0 0K 4K 166960K 2236 0 iov 0 0K 24K 166960K 260 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1519 96K 96K 166960K 3512 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 38 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 123 0 dirhash 12 2K 2K 166960K 60 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 15 53K 110K 166960K 2767 0 sigio 0 0K 0K 166960K 80 0 proc 76 103K 128K 166960K 1041 0 subproc 72 4K 4K 166960K 163 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 569 0 in_multi 66 4K 7K 166960K 299 0 ether_multi 1 0K 0K 166960K 22 0 mrt 1 0K 0K 166960K 17 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 271 1208K 1208K 166960K 271 0 exec 0 0K 1K 166960K 953 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 7 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 237 152K 175K 166960K 26628 0 UVM aobj 65 3K 4K 166960K 71 0 pinsyscall 40 80K 104K 166960K 4200 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 137 0 NDP 13 0K 2K 166960K 124 0 temp 78 8696K 8947K 166960K 114320 0 kqueue 15 24K 32K 166960K 520 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 340 0 337 5 4 1 3 0 8 0 rtentry 176 340 0 267 6 1 5 6 0 8 0 unpcb 144 2401 0 2379 25 23 2 8 0 8 1 syncache 336 13 0 13 7 7 0 1 0 8 0 tcpqe 32 6 0 6 3 3 0 1 0 8 0 tcpcb 736 964 0 957 21 17 4 7 0 8 2 arp 128 62 0 47 1 0 1 1 0 8 0 inpcb 328 3177 0 3164 27 20 7 8 0 8 4 nd6 144 78 0 63 2 1 1 2 0 8 0 pkpcb 40 101 0 101 8 8 0 1 0 8 0 kcovpl 48 18 0 10 1 0 1 1 0 8 0 mppekey 1024 3 0 3 2 2 0 1 0 8 0 ppxss 1192 147 0 147 5 4 1 1 0 8 1 pppxif 1504 15 0 15 6 6 0 1 0 8 0 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pffrag 232 48 0 41 1 0 1 1 0 482 0 pffrnode 88 15 0 8 1 0 1 1 0 8 0 pffrent 40 162 0 155 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 3 0 1 1 0 1 1 0 8 0 pfstitem 24 26 0 23 1 0 1 1 0 8 0 pfstkey 128 28 0 25 1 0 1 1 0 8 0 pfstate 384 27 0 24 3 1 2 3 0 8 0 pfrule 1344 24 0 18 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 1393 0 1076 42 18 24 38 0 8 0 art_table 32 1395 0 1076 5 0 5 5 0 8 0 art_node 16 332 0 271 1 0 1 1 0 8 0 sysvmsgpl 40 17 0 9 1 0 1 1 0 8 0 semupl 112 2 0 2 2 2 0 1 0 8 0 semapl 112 121 0 111 1 0 1 1 0 8 0 shmpl 112 68 0 6 2 0 2 2 0 8 0 dirhash 1024 50 0 33 3 0 3 3 0 8 0 dino2pl 256 6335 0 4817 96 0 96 96 0 8 0 ffsino 288 6335 0 4817 110 1 109 109 0 8 0 nchpl 144 9982 0 8259 65 0 65 65 0 8 0 rtmask 32 13 0 13 3 3 0 1 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 36707 0 36705 3 2 1 2 0 8 0 percpumem 16 233 0 183 1 0 1 1 0 8 0 kstatmem 264 180 0 148 3 0 3 3 0 8 0 scsiplug 72 12 0 12 6 6 0 1 0 8 0 scxspl 216 67647 0 67647 16 15 1 8 1 8 1 plimitpl 152 656 0 639 1 0 1 1 0 8 0 sigapl 424 3088 0 3039 10 3 7 9 0 8 0 knotepl 120 635 0 0 18 0 18 18 0 8 0 kqueuepl 224 1042 0 1029 13 12 1 5 0 8 0 pipepl 336 638 0 611 17 14 3 8 0 8 0 fdescpl 520 3045 0 3016 3 0 3 3 0 8 0 filepl 160 21769 0 21539 36 22 14 22 0 8 0 lockfpl 104 1825 0 1821 3 2 1 2 0 8 0 lockfspl 48 622 0 619 1 0 1 1 0 8 0 sessionpl 144 45 0 36 1 0 1 1 0 8 0 pgrppl 48 115 0 98 1 0 1 1 0 8 0 ucredpl 104 3709 0 3694 1 0 1 1 0 8 0 zombiepl 144 3041 0 3039 1 0 1 1 0 8 0 processpl 1240 3088 0 3039 6 1 5 6 0 8 0 procpl 656 7445 0 7386 9 3 6 8 0 8 0 srpgc 96 29 0 29 6 6 0 1 0 8 0 sosppl 168 28 0 28 6 6 0 1 0 8 0 sockpl 728 6075 0 6037 53 43 10 24 0 8 5 mcl64k 65536 6 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 121 0 0 15 0 15 15 0 8 0 mcl2k 2048 70 0 0 6 0 6 6 0 8 0 mtagpl 96 42 0 0 2 0 2 2 0 8 0 mbufpl 256 1227 0 0 72 0 72 72 0 8 0 bufpl 280 26749 0 20607 439 0 439 439 0 8 0 anonpl 32 13716 0 0 111 0 111 111 0 246 0 amapchunkpl 152 92537 0 92003 72 46 26 42 0 158 0 amappl16 200 10496 0 10440 74 59 15 27 0 8 1 amappl15 192 28 0 28 1 1 0 1 0 8 0 amappl14 184 191 0 178 1 0 1 1 0 8 0 amappl13 176 6 0 5 1 0 1 1 0 8 0 amappl12 168 3880 0 3851 4 2 2 3 0 8 0 amappl11 160 54 0 40 1 0 1 1 0 8 0 amappl10 152 6 0 6 1 1 0 1 0 8 0 amappl9 144 250 0 250 1 1 0 1 0 8 0 amappl8 136 25 0 22 1 0 1 1 0 8 0 amappl7 128 143 0 130 1 0 1 1 0 8 0 amappl6 120 296 0 292 1 0 1 1 0 8 0 amappl5 112 179 0 169 1 0 1 1 0 8 0 amappl4 104 399 0 381 1 0 1 1 0 8 0 amappl3 96 18725 0 18620 5 1 4 4 0 8 0 amappl2 88 891 0 826 2 0 2 2 0 8 0 amappl1 80 22318 0 21721 16 1 15 15 0 8 0 amappl 88 25228 0 25064 5 0 5 5 0 92 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 7 0 7 2 2 0 1 0 8 0 dma128 128 258 0 258 5 5 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 70 0 6 2 0 2 2 0 8 0 uaddrrnd 24 3045 0 3016 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3045 0 3016 1 0 1 1 0 8 0 vmmpekpl 168 25654 0 25594 3 0 3 3 0 8 0 vmmpepl 168 197565 0 195606 134 30 104 112 0 357 1 vmsppl 480 3044 0 3015 6 1 5 5 0 8 0 rwobjpl 72 57521 0 50568 139 7 132 136 0 8 0 pdppl 4096 6097 0 6030 143 72 71 85 0 8 4 pvpl 32 21355 0 0 172 0 172 172 0 265 0 pmappl 256 3044 0 3015 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 549 0 136 13 0 13 13 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff83816ff0) 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 uvm_pmr_freepageq(ffff80002a240460) at uvm_pmr_freepageq+0x201 uvm_wakeup_pla sys/uvm/uvm_pmemrange.c:2178 [inline] uvm_pmr_freepageq(ffff80002a240460) at uvm_pmr_freepageq+0x201 sys/uvm/uvm_pmemrange.c:1386 km_free(ffff80003c506000,6000,ffffffff8363f5e0,ffffffff835b9f20) at km_free+0x36f sys/uvm/uvm_km.c:827 uvm_uarea_free(ffff8000ffff2f70) at uvm_uarea_free+0x4f sys/uvm/uvm_glue.c:285 reaper(ffff8000ffffccd8) at reaper+0x1cb sys/kern/kern_exit.c:493 end trace frame: 0x0, count: 8 ddb{0}> trace x86_ipi_db(ffffffff83816ff0) 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 uvm_pmr_freepageq(ffff80002a240460) at uvm_pmr_freepageq+0x201 uvm_wakeup_pla sys/uvm/uvm_pmemrange.c:2178 [inline] uvm_pmr_freepageq(ffff80002a240460) at uvm_pmr_freepageq+0x201 sys/uvm/uvm_pmemrange.c:1386 km_free(ffff80003c506000,6000,ffffffff8363f5e0,ffffffff835b9f20) at km_free+0x36f sys/uvm/uvm_km.c:827 uvm_uarea_free(ffff8000ffff2f70) at uvm_uarea_free+0x4f sys/uvm/uvm_glue.c:285 reaper(ffff8000ffffccd8) at reaper+0x1cb sys/kern/kern_exit.c:493 end trace frame: 0x0, count: -7 ddb{0}> machine ddbcpu 1 Stopped at savectx+0xae: movl $0,%gs:0x688 savectx() at savectx+0xae end of kernel end trace frame: 0x77444dfb0f80, count: 14 ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x77444dfb0f80, count: -1