uvm_fault(0xffffffff838fce98, 0xffff800027b75d9c, 0, 2) -> d fatal page fault in supervisor mode trap type 6 code 2 rip ffffffff814817a9 cs 8 rflags 10206 cr2 ffff800027b75d9c cpl 0 rsp ffff80003c4315b8 gsbase 0xffff8000299edff0 kgsbase 0x0 panic: trap type 6, code=2, pc=ffffffff814817a9 Starting stack trace... panic(ffffffff833a390f) at panic+0x1d0 sys/kern/subr_prf.c:229 kerntrap(ffff80003c431500) at kerntrap+0x30b alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b memset() at memset+0x49 ffs_write(ffff80003c4318a0) at ffs_write+0xb9a sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd807a6ff570,ffff80003c431950,3,fffffd80097fb478) at VOP_WRITE+0x101 sys/kern/vfs_vops.c:245 ktrwriteraw(ffff80003c4274e8,fffffd807a6ff570,fffffd80097fb478,ffff80003c431a20,ffff80003c431a00) at ktrwriteraw+0x1be sys/kern/kern_ktrace.c:691 ktrsysret(ffff80003c4274e8,5b,0,ffff80003c431af0) at ktrsysret+0x192 ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff80003c4274e8,5b,0,ffff80003c431af0) at ktrsysret+0x192 sys/kern/kern_ktrace.c:209 syscall(ffff80003c431ba0) at syscall+0xa50 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80003c431ba0) at syscall+0xa50 sys/arch/amd64/amd64/trap.c:767 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78bd4dbeece0, count: 247 End of stack trace. WARNING: SPL NOT LOWERED ON SYSCALL 83 -2121015456 EXIT 0 4 Stopped at savectx+0xae: movl $0,%gs:0x688 TID PID UID PRFLAGS PFLAGS CPU COMMAND 284615 76092 0 0 0 0 syz-executor *215794 68470 0 0 0 1 syz-executor savectx() at savectx+0xae end of kernel end trace frame: 0x74645c5a8060, 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(0xffffffff838fce98, 0xffff800027b75d9c, 0, 2) -> d ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x74645c5a8060, count: -1 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80002a3b70a0 rbx 0 rdx 0 rcx 0xffff80003c427780 rax 0x3c r8 0xffff80002a3b6fd0 r9 0x1 r10 0xa9d3d00f2228b4f7 r11 0xac3b842d2c630a2 r12 0 r13 0 r14 0xffff80003c427780 r15 0 rip 0xffffffff81b543ee savectx+0xae cs 0x8 rflags 0x46 rsp 0xffff80002a3b7020 ss 0 savectx+0xae: movl $0,%gs:0x688 ddb{1}> show proc PROC (syz-executor) tid=215794 pid=68470 tcnt=2 stat=onproc flags process=0 proc=0 runpri=50, usrpri=86, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a294d10,0xffff80003c426fc8 process=0xffff8000ffff74f8 user=0xffff80002a3b2000, vmspace=0xfffffd800b0275b8 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 76092 284615 59329 0 7 0 syz-executor 76092 515266 59329 0 3 0x4000080 kqread syz-executor 76092 346831 59329 0 3 0x4000080 fsleep syz-executor *68470 215794 56814 0 7 0 syz-executor 68470 126450 56814 0 3 0x4000080 fsleep syz-executor 4071 55884 318 60929 2 0x10 syz-executor 4071 70192 318 60929 3 0x4000090 fsleep syz-executor 65827 161532 0 0 3 0x14200 acct acct 52786 87968 88966 0 2 0x1000000 syz-executor 52786 79931 88966 0 3 0x5000080 sbwait syz-executor 52786 112980 88966 0 3 0x5000080 fsleep syz-executor 85402 224154 33524 60929 2 0x10 syz-executor 85402 199953 33524 60929 3 0x4000090 fsleep syz-executor 85402 15944 33524 60929 3 0x4000090 fsleep syz-executor 61893 474810 12737 0 2 0 syz-executor 61893 439862 12737 0 3 0x4000080 sbwait syz-executor 61893 5831 12737 0 3 0x4000080 fsleep syz-executor 23714 163651 42315 0 2 0 syz-executor 23714 336191 42315 0 3 0x4000080 fsleep syz-executor 23714 458547 42315 0 3 0x4000080 ttyout syz-executor 23714 368087 42315 0 3 0x4000080 fsleep syz-executor 85838 388399 87899 0 2 0x2 syz-executor 12737 76024 87899 0 2 0x2 syz-executor 95584 147739 1 0 3 0x100083 ttyin getty 59329 353150 87899 0 3 0x82 nanoslp syz-executor 42315 235500 87899 0 3 0x3 inode syz-executor 33524 228029 87899 0 3 0x82 nanoslp syz-executor 96886 418871 0 0 3 0x14200 bored sosplice 88966 446615 87899 0 3 0x3 sbar syz-executor 318 385021 87899 0 2 0x2 syz-executor 56814 100197 87899 0 3 0x3 inode syz-executor 87899 415623 13993 0 3 0x82 kqread syz-executor 13993 379629 75109 0 3 0x10008a sigsusp ksh 75109 411469 73757 0 3 0x98 kqread sshd-session 73757 371560 40542 0 3 0x92 kqread sshd-session 40542 58380 1 0 3 0x88 kqread sshd 13678 285412 64153 74 3 0x1100092 bpf pflogd 64153 65237 1 0 3 0x80 sbwait pflogd 66273 117008 47957 73 3 0x1100090 kqread syslogd 47957 470145 1 0 3 0x100082 sbwait syslogd 70857 159531 1 0 3 0x100080 kqread resolvd 61998 102175 29298 77 3 0x100092 kqread dhcpleased 14691 420512 29298 77 3 0x100092 kqread dhcpleased 29298 60084 1 0 3 0x80 kqread dhcpleased 53328 359720 0 0 3 0x14200 bored smr 5201 105454 0 0 3 0x14200 pgzero zerothread 77743 494178 0 0 3 0x14200 aiodoned aiodoned 37016 425036 0 0 3 0x14200 syncer update 10424 342366 0 0 3 0x14200 cleaner cleaner 15580 208935 0 0 3 0x14200 reaper reaper 17826 4558 0 0 3 0x14200 pgdaemon pagedaemon 49369 18985 0 0 3 0x14200 bored viomb 20933 454715 0 0 3 0x40014200 acpi0 acpi0 53108 98115 0 0 3 0x40014200 idle1 89908 435149 0 0 3 0x14200 bored softnet1 97198 369903 0 0 3 0x14200 netlock softnet0 4240 21349 0 0 2 0x40014200 systqmp 74324 402465 0 0 3 0x14200 bored systq 19084 438762 0 0 3 0x14200 netlock softclockmp 75652 447773 0 0 3 0x40014200 tmoslp softclock 20394 233528 0 0 3 0x40014200 idle0 1 16678 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks Process 88966 (syz-executor) thread 0xffff80003c4274e8 (446615) ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10214 11103K 11383K 166960K 13433 0 pcb 18 15K 16K 166960K 409 0 rtable 171 9K 10K 166960K 611 0 pf 37 18K 67487K 166960K 220 0 ifaddr 35 6K 8K 166960K 159 0 ifgroup 51 2K 2K 166960K 259 0 sysctl 4 1K 9K 166960K 17 0 counters 66 36K 38K 166960K 376 0 ioctlops 0 0K 4K 166960K 1779 0 iov 0 0K 16K 166960K 84 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1391 87K 88K 166960K 2601 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 112 0 dirhash 12 2K 2K 166960K 42 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 240K 166960K 1710 0 sigio 0 0K 0K 166960K 17 0 proc 75 131K 196K 166960K 960 0 subproc 72 4K 4K 166960K 162 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 168 0 in_multi 65 4K 7K 166960K 267 0 ether_multi 1 0K 0K 166960K 17 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 109 493K 493K 166960K 109 0 exec 0 0K 1K 166960K 993 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 4 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 258 160K 174K 166960K 16196 0 UVM aobj 23 4K 4K 166960K 23 0 pinsyscall 43 86K 106K 166960K 3006 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 118 0 NDP 13 0K 2K 166960K 108 0 temp 76 8651K 8723K 166960K 75679 0 kqueue 13 20K 34K 166960K 306 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 219 0 216 3 2 1 2 0 8 0 rtentry 176 219 0 157 5 0 5 5 0 8 1 unpcb 144 834 0 813 4 2 2 2 0 8 1 syncache 336 4 0 4 2 2 0 1 0 8 0 tcpqe 32 2 0 2 1 1 0 1 0 8 0 tcpcb 736 674 0 667 19 13 6 7 0 8 5 arp 136 24 0 15 1 0 1 1 0 8 0 inpcb 328 1795 0 1780 23 15 8 10 0 8 6 nd6 144 39 0 27 1 0 1 1 0 8 0 pkpcb 40 20 0 20 3 2 1 1 0 8 1 kcovpl 48 18 0 10 1 0 1 1 0 8 0 ppxss 1192 122 0 122 3 2 1 1 0 8 1 pppxif 1504 77 0 77 3 3 0 1 0 8 0 pfstscr 40 3 0 3 2 1 1 1 0 8 1 pffrag 232 19 0 5 1 0 1 1 0 482 0 pffrnode 88 18 0 5 1 0 1 1 0 8 0 pffrent 40 40 0 26 1 0 1 1 0 8 0 pfosfp 40 1429 0 1428 6 5 1 5 0 8 0 pfosfpen 112 1429 0 1428 22 21 1 21 0 8 0 pfrktable 1344 1 0 1 1 1 0 1 0 8 0 pfanchor 1288 2 0 0 1 0 1 1 0 8 0 pfstitem 24 98 0 26 1 0 1 1 0 8 0 pfstkey 128 103 0 28 3 0 3 3 0 8 0 pfstate 384 97 0 27 8 0 8 8 0 8 0 pfrule 1344 30 0 24 2 1 1 2 0 8 0 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 1038 0 775 33 8 25 29 0 8 7 art_table 40 1042 0 775 5 0 5 5 0 8 1 art_node 32 215 0 164 1 0 1 1 0 8 0 sysvmsgpl 40 44 0 6 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 107 0 97 1 0 1 1 0 8 0 shmpl 112 20 0 0 1 0 1 1 0 8 0 dirhash 1024 37 0 20 3 0 3 3 0 8 0 dino2pl 256 4218 0 2698 96 0 96 96 0 8 0 ffsino 296 4218 0 2698 118 0 118 118 0 8 0 nchpl 144 6411 0 4681 66 1 65 65 0 8 0 rtmask 32 12 0 12 3 3 0 1 0 8 0 uvmvnodes 80 5058 0 0 104 0 104 104 0 8 0 vnodes 216 5058 0 0 281 0 281 281 0 8 0 namei 1024 24360 0 24360 2 1 1 1 0 8 1 percpumem 16 203 0 155 1 0 1 1 0 8 0 kstatmem 264 148 0 122 3 0 3 3 0 8 0 scsiplug 72 6 0 6 2 2 0 1 0 8 0 scxspl 216 40598 0 40598 15 14 1 8 1 8 1 plimitpl 152 291 0 272 1 0 1 1 0 8 0 sigapl 424 1970 0 1920 8 1 7 8 0 8 0 knotepl 120 536 0 0 17 0 17 17 0 8 0 kqueuepl 224 762 0 750 9 6 3 5 0 8 2 pipepl 344 431 0 404 11 4 7 9 0 8 3 fdescpl 528 1925 0 1893 3 0 3 3 0 8 0 filepl 160 12754 0 12517 19 4 15 16 0 8 3 lockfpl 104 838 0 836 3 2 1 2 0 8 0 lockfspl 48 343 0 341 1 0 1 1 0 8 0 sessionpl 144 33 0 24 1 0 1 1 0 8 0 pgrppl 48 68 0 51 1 0 1 1 0 8 0 ucredpl 104 1579 0 1564 1 0 1 1 0 8 0 zombiepl 144 1921 0 1920 1 0 1 1 0 8 0 processpl 1232 1970 0 1920 6 0 6 6 0 8 1 procpl 664 4421 0 4358 8 2 6 8 0 8 0 sosppl 168 6 0 6 3 2 1 1 0 8 1 sockpl 752 2941 0 2902 28 17 11 14 0 8 6 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 137 0 0 18 0 18 18 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 33 0 0 5 0 5 5 0 8 0 mtagpl 96 10 0 0 1 0 1 1 0 8 0 mbufpl 256 233 0 0 14 0 14 14 0 8 0 bufpl 280 17719 0 11576 440 0 440 440 0 8 0 anonpl 32 11652 0 0 94 0 94 94 0 246 0 amapchunkpl 152 61466 0 60858 60 23 37 37 0 158 11 amappl16 200 5947 0 5872 46 26 20 23 0 8 7 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 131 0 118 1 0 1 1 0 8 0 amappl13 176 2 0 2 1 1 0 1 0 8 0 amappl12 168 2723 0 2691 3 1 2 2 0 8 0 amappl11 160 71 0 57 1 0 1 1 0 8 0 amappl10 152 2 0 2 1 1 0 1 0 8 0 amappl9 144 260 0 260 1 1 0 1 0 8 0 amappl8 136 53 0 50 1 0 1 1 0 8 0 amappl7 128 132 0 119 1 0 1 1 0 8 0 amappl6 120 340 0 336 1 0 1 1 0 8 0 amappl5 112 181 0 171 1 0 1 1 0 8 0 amappl4 104 334 0 314 1 0 1 1 0 8 0 amappl3 96 9734 0 9631 3 0 3 3 0 8 0 amappl2 88 2186 0 2105 2 0 2 2 0 8 0 amappl1 80 15020 0 14410 16 2 14 15 0 8 0 amappl 88 15122 0 14939 5 0 5 5 0 92 0 dma4096 4096 2 0 2 2 1 1 1 0 8 1 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 258 0 258 5 4 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 22 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1925 0 1893 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1925 0 1893 1 0 1 1 0 8 0 vmmpekpl 168 16334 0 16280 3 0 3 3 0 8 0 vmmpepl 168 124556 0 122440 118 12 106 108 0 357 4 vmsppl 488 1924 0 1893 5 0 5 5 0 8 0 rwobjpl 80 38040 0 31952 132 3 129 129 0 8 0 pdppl 4096 3858 0 3786 114 40 74 86 0 8 2 pvpl 32 19667 0 0 160 1 159 159 0 265 0 pmappl 256 1924 0 1893 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 320 0 66 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff83799ff0) 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(ffffffff838f9428) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff838f9428) at __mp_lock+0x199 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(ffffffff838f9428) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff838f9428) 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:847 Xsoftclock() at Xsoftclock+0x27 end of kernel end trace frame: 0x728325d9ab10, count: 4 ddb{0}> trace x86_ipi_db(ffffffff83799ff0) 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(ffffffff838f9428) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff838f9428) at __mp_lock+0x199 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(ffffffff838f9428) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff838f9428) 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:847 Xsoftclock() at Xsoftclock+0x27 end of kernel end trace frame: 0x728325d9ab10, 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: 0x74645c5a8060, count: 14 ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x74645c5a8060, count: -1