login: uvm_fault(0xfffffd805abf3038, 0x0, 0, 1) -> e fatal page fault in supervisor mode trap type 6 code 0 rip ffffffff8190e738 cs 8 rflags 10207 cr2 0 cpl 0 rsp ffff80002a2e4640 gsbase 0xffff8000299edff0 kgsbase 0x0 panic: trap type 6, code=0, pc=ffffffff8190e738 Starting stack trace... panic(ffffffff833a4fb8) at panic+0x1d0 sys/kern/subr_prf.c:229 kerntrap(ffff80002a2e4590) at kerntrap+0x30b alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b dt_ioctl_record_stop(ffff80000148a000) at dt_ioctl_record_stop+0x108 sys/dev/dt/dt_dev.c:586 dtclose(21e5f,81,2000,ffff80003a0094e0) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(21e5f,81,2000,ffff80003a0094e0) at dtclose+0x109 sys/dev/dt/dt_dev.c:232 spec_close(ffff80002a2e4740) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd8070ebadd8,81,fffffd80097fb5b0,ffff80003a0094e0) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806b99d0e0,ffff80003a0094e0) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806b99d0e0,ffff80003a0094e0) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd806b99d0e0,ffff80003a0094e0) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd806b99d0e0,ffff80003a0094e0) at closef+0x192 sys/kern/kern_descrip.c:1264 fdfree(ffff80003a0094e0) at fdfree+0x116 sys/kern/kern_descrip.c:1195 exit1(ffff80003a0094e0,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff80003a0094e0,ffff80002a2e4ab0,ffff80002a2e4a00) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a2e4ab0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a2e4ab0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a81c5d0ed10, count: 242 End of stack trace. WARNING: SPL NOT LOWERED ON SYSCALL 91 -768910088 EXIT 0 4 Stopped at savectx+0xae: movl $0,%gs:0x688 TID PID UID PRFLAGS PFLAGS CPU COMMAND 79992 49341 0 0x100003 0x80 0 getty *432436 69302 0 0x2 0 1 syz-executor savectx() at savectx+0xae end of kernel end trace frame: 0x7cafd22b5ce0, 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(0xfffffd805abf3038, 0x0, 0, 1) -> e ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x7cafd22b5ce0, count: -1 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80003c42b1b0 rbx 0 rdx 0 rcx 0xffff80003a008020 rax 0x3b r8 0xffff80003c42b0e0 r9 0x1 r10 0xb8d8856d571df307 r11 0x534523408ed15547 r12 0 r13 0 r14 0xffff80003a008020 r15 0 rip 0xffffffff81a233ee savectx+0xae cs 0x8 rflags 0x46 rsp 0xffff80003c42b130 ss 0x10 savectx+0xae: movl $0,%gs:0x688 ddb{1}> show proc PROC (syz-executor) tid=432436 pid=69302 tcnt=1 stat=onproc flags process=2 proc=0 runpri=83, usrpri=83, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000fffef240,0xffff8000fffee7f0 process=0xffff80003c471378 user=0xffff80003c426000, vmspace=0xfffffd805abf3ba8 estcpu=33, cpticks=22, pctcpu=0.16, user=0, sys=21, intr=1 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 97265 154190 534 0 2 0x100000 sh 534 295242 61172 0 3 0x10008a sigsusp sh 10381 258259 83414 60929 2 0x10 syz-executor 10381 243782 83414 60929 2 0x4000010 syz-executor 61172 448294 52492 0 3 0x82 wait syz-executor 30952 284580 60997 0 2 0xc80 syz-executor 30952 478838 60997 0 3 0x4000080 fifor syz-executor 30952 396646 60997 0 3 0x4000080 fsleep syz-executor 30952 445343 60997 0 3 0x4000080 fsleep syz-executor 30952 24277 60997 0 3 0x4000080 fsleep syz-executor 61933 207126 95501 0 2 0 syz-executor 61933 398024 95501 0 3 0x4000080 ttyin syz-executor 61933 199509 95501 0 3 0x4000080 fsleep syz-executor 16781 212435 69302 60929 2 0xc90 syz-executor 16781 205615 69302 60929 3 0x4000090 sbwait syz-executor 87172 184964 72522 0 3 0x3000 suspend syz-executor 87172 10851 72522 0 2 0x4081000 syz-executor 49341 79992 1 0 7 0x100083 getty 98788 247814 0 0 3 0x14200 acct acct *69302 432436 52492 0 7 0x2 syz-executor 95501 1095 52492 0 2 0xc82 syz-executor 60997 449080 52492 0 2 0xc82 syz-executor 83414 50954 52492 0 2 0x2 syz-executor 61874 467702 52492 0 2 0xc82 syz-executor 82114 507123 52492 0 2 0xc82 syz-executor 72522 119934 52492 0 2 0xc82 syz-executor 74569 266450 0 0 3 0x14200 bored sosplice 52492 103782 70797 0 3 0x82 kqread syz-executor 70797 423310 47433 0 3 0x10008a sigsusp ksh 47433 226664 41934 0 3 0x98 kqread sshd-session 41934 59045 31313 0 3 0x92 kqread sshd-session 31313 154712 1 0 3 0x88 kqread sshd 42023 29222 85880 74 3 0x1100092 bpf pflogd 85880 22901 1 0 3 0x80 sbwait pflogd 28008 119682 56734 73 3 0x1100090 kqread syslogd 56734 474700 1 0 3 0x100082 sbwait syslogd 67527 6581 1 0 3 0x100080 kqread resolvd 73225 480359 80609 77 3 0x100092 kqread dhcpleased 92044 105194 80609 77 3 0x100092 kqread dhcpleased 80609 39574 1 0 3 0x80 kqread dhcpleased 8544 338400 0 0 3 0x14200 bored smr 95506 426571 0 0 2 0x14200 zerothread 98710 416139 0 0 3 0x14200 aiodoned aiodoned 61825 164060 0 0 3 0x14200 syncer update 49184 480297 0 0 3 0x14200 cleaner cleaner 98515 444565 0 0 3 0x14200 reaper reaper 41301 427263 0 0 3 0x14200 pgdaemon pagedaemon 619 218931 0 0 3 0x14200 bored viomb 96893 349199 0 0 3 0x40014200 acpi0 acpi0 90353 145816 0 0 3 0x40014200 idle1 17520 4677 0 0 3 0x14200 bored softnet1 42323 523078 0 0 2 0x14200 softnet0 9642 341620 0 0 2 0x14200 systqmp 1482 457187 0 0 3 0x14200 bored systq 4684 286914 0 0 2 0x14200 softclockmp 17230 520653 0 0 3 0x40014200 tmoslp softclock 3245 295022 0 0 3 0x40014200 idle0 1 300915 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks Process 87172 (syz-executor) thread 0xffff8000347e02e8 (10851) ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10274 11127K 13122K 166960K 27821 0 pcb 17 20K 23K 166960K 2250 0 rtable 211 23K 24K 166960K 2421 0 pf 41 18K 67485K 166960K 753 0 ifaddr 35 9K 13K 166960K 507 0 ifgroup 64 2K 3K 166960K 937 0 sysctl 4 1K 9K 166960K 84 0 counters 72 37K 38K 166960K 1316 0 ioctlops 0 0K 4K 166960K 3299 0 iov 0 0K 36K 166960K 759 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1641 103K 104K 166960K 10236 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 616K 616K 166960K 125 0 VM map 2 1K 1K 166960K 2 0 sem 29 20K 40K 166960K 349 0 dirhash 12 2K 2K 166960K 198 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 19 69K 240K 166960K 9926 0 sigio 1 0K 0K 166960K 364 0 proc 73 115K 163K 166960K 2313 0 subproc 72 4K 4K 166960K 320 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 1907 0 in_multi 55 4K 7K 166960K 693 0 ether_multi 1 0K 0K 166960K 135 0 mrt 1 0K 0K 166960K 74 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 313 1394K 1394K 166960K 313 0 exec 0 0K 1K 166960K 2530 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 87 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 263 166K 184K 166960K 87302 0 UVM aobj 40 2K 2K 166960K 42 0 pinsyscall 44 88K 100K 166960K 11637 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 624 0 NDP 14 0K 2K 166960K 404 0 temp 167 8657K 8913K 166960K 462615 0 kqueue 16 24K 32K 166960K 1941 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 1230 0 1226 13 9 4 4 0 8 3 rtentry 176 684 0 624 7 2 5 5 0 8 0 unpcb 144 7211 0 7189 34 32 2 10 0 8 1 syncache 336 34 0 34 13 13 0 1 0 8 0 tcpqe 32 8 0 8 3 3 0 1 0 8 0 tcpcb 736 3284 0 3277 40 36 4 13 0 8 3 arp 136 66 0 57 1 0 1 1 0 8 0 ipq 40 4 0 4 4 4 0 1 0 8 0 ipqe 40 12 0 12 4 4 0 1 0 8 0 inpcb 328 10566 0 10550 69 62 7 13 0 8 5 nd6 152 97 0 88 1 0 1 1 0 8 0 pkpcb 40 77 0 77 7 6 1 1 0 8 1 kcovpl 48 35 0 27 1 0 1 1 0 8 0 mppekey 1024 9 0 9 5 5 0 1 0 8 0 ppxss 1192 525 0 525 4 3 1 1 0 8 1 pppxif 1504 165 0 165 13 12 1 2 0 8 1 pffrag 232 64 0 53 1 0 1 1 0 482 0 pffrnode 88 40 0 29 1 0 1 1 0 8 0 pffrent 40 201 0 190 1 0 1 1 0 8 0 pfosfp 40 1429 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1429 0 714 21 0 21 21 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 419 0 295 1 0 1 1 0 8 0 pfstkey 128 421 0 297 5 0 5 5 0 8 0 pfstate 384 419 0 296 15 0 15 15 0 8 0 pfrule 1344 41 0 35 2 1 1 2 0 8 0 rttmr 136 11 0 11 8 7 1 1 0 8 1 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 2435 0 2143 51 27 24 30 0 8 3 art_table 40 2439 0 2143 5 0 5 5 0 8 0 art_node 32 594 0 542 2 1 1 2 0 8 0 sysvmsgpl 40 26 0 20 1 0 1 1 0 8 0 semupl 112 3 0 3 3 3 0 1 0 8 0 semapl 112 286 0 259 1 0 1 1 0 8 0 shmpl 112 39 0 2 2 0 2 2 0 8 0 dirhash 1024 144 0 127 3 0 3 3 0 8 0 dino2pl 256 20188 0 18604 101 1 100 100 0 8 0 ffsino 296 20188 0 18604 124 1 123 123 0 8 0 nchpl 144 33866 0 33168 65 39 26 65 0 8 0 rtmask 32 55 0 55 10 10 0 1 0 8 0 uvmvnodes 80 5305 0 0 109 0 109 109 0 8 0 vnodes 216 5305 0 0 295 0 295 295 0 8 0 namei 1024 124366 0 124366 5 4 1 2 0 8 1 percpumem 16 673 0 622 1 0 1 1 0 8 0 kstatmem 264 676 0 642 6 3 3 3 0 8 0 acpiwqpl 32 6 0 6 1 0 1 1 1 8 1 scsiplug 72 49 0 49 9 8 1 1 0 8 1 scxspl 216 241348 0 241348 34 32 2 8 1 8 2 plimitpl 152 2864 0 2844 1 0 1 1 0 8 0 sigapl 424 10110 0 10059 9 2 7 8 0 8 0 knotepl 120 714 0 0 18 0 18 18 0 8 0 kqueuepl 224 4338 0 4326 37 35 2 7 0 8 1 pipepl 344 1631 0 1602 40 31 9 9 0 8 6 fdescpl 528 9991 0 9958 3 0 3 3 0 8 0 filepl 160 75425 0 75185 67 48 19 21 0 8 6 lockfpl 104 4993 0 4991 3 2 1 2 0 8 0 lockfspl 48 2058 0 2056 1 0 1 1 0 8 0 sessionpl 144 77 0 68 1 0 1 1 0 8 0 pgrppl 48 242 0 225 1 0 1 1 0 8 0 ucredpl 104 12280 0 12265 1 0 1 1 0 8 0 zombiepl 144 10062 0 10059 2 1 1 2 0 8 0 processpl 1232 10110 0 10059 8 3 5 6 0 8 0 procpl 664 26575 0 26515 11 5 6 8 0 8 0 sosppl 168 48 0 48 7 7 0 1 0 8 0 sockpl 752 19490 0 19448 141 127 14 29 0 8 8 mcl64k 65536 27 0 0 4 0 4 4 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 116 0 0 14 0 14 14 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 148 0 0 11 1 10 10 0 8 0 mtagpl 96 13 0 0 1 0 1 1 0 8 0 mbufpl 256 6358 0 0 394 0 394 394 0 8 0 bufpl 280 103683 0 97540 440 0 440 440 0 8 0 anonpl 32 16818 0 0 136 0 136 136 0 246 0 amapchunkpl 152 340076 0 339425 104 65 39 40 0 158 10 amappl16 200 36761 0 36428 125 97 28 39 0 8 0 amappl15 192 6 0 6 2 2 0 1 0 8 0 amappl14 184 221 0 208 1 0 1 1 0 8 0 amappl13 176 11 0 11 4 4 0 1 0 8 0 amappl12 168 11083 0 11050 4 2 2 3 0 8 0 amappl11 160 53 0 39 1 0 1 1 0 8 0 amappl10 152 2 0 2 1 1 0 1 0 8 0 amappl9 144 251 0 251 1 1 0 1 0 8 0 amappl8 136 24 0 20 1 0 1 1 0 8 0 amappl7 128 188 0 174 1 0 1 1 0 8 0 amappl6 120 466 0 461 1 0 1 1 0 8 0 amappl5 112 231 0 220 1 0 1 1 0 8 0 amappl4 104 435 0 415 1 0 1 1 0 8 0 amappl3 96 56377 0 56270 7 3 4 4 0 8 0 amappl2 88 10477 0 10391 4 1 3 3 0 8 0 amappl1 80 55048 0 54448 16 2 14 15 0 8 0 amappl 88 84376 0 84188 5 0 5 5 0 92 0 dma65536 65536 2 0 2 2 2 0 1 0 8 0 dma32768 32768 2 0 2 2 2 0 1 0 8 0 dma16384 16384 1 0 1 1 1 0 1 0 8 0 dma8192 8192 1 0 1 1 1 0 1 0 8 0 dma4096 4096 2 0 2 2 2 0 1 0 8 0 dma2048 2048 3 0 3 3 3 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma512 512 4 0 4 2 2 0 1 0 8 0 dma256 256 9 0 9 4 4 0 1 0 8 0 dma128 128 269 0 269 10 9 1 1 0 8 1 dma64 64 11 0 11 5 5 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 41 0 2 1 0 1 1 0 8 0 uaddrrnd 24 9991 0 9958 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 9991 0 9958 1 0 1 1 0 8 0 vmmpekpl 168 71631 0 71570 4 0 4 4 0 8 0 vmmpepl 168 632500 0 630089 154 39 115 120 0 357 1 vmsppl 488 9990 0 9958 8 3 5 5 0 8 0 rwobjpl 80 160653 0 154022 155 15 140 140 0 8 0 pdppl 4096 19990 0 19916 160 86 74 84 0 8 0 pvpl 32 25004 0 0 199 0 199 199 0 265 0 pmappl 256 9990 0 9958 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 828 0 190 19 0 19 19 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff837efff0) 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(ffffffff83915db8) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff83915db8) at __mp_lock+0x192 sys/kern/kern_lock.c:165 __mp_acquire_count(ffffffff83915db8,1) at __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 sleep_finish(ffffffffffffffff,1) at sleep_finish+0x2d8 sys/kern/kern_synch.c:367 ttread(ffff800000afca00,ffff80002a30c288,0) at ttread+0x7d3 ttysleep_nsec sys/kern/tty.c:2324 [inline] ttread(ffff800000afca00,ffff80002a30c288,0) at ttread+0x7d3 ttysleep sys/kern/tty.c:2314 [inline] ttread(ffff800000afca00,ffff80002a30c288,0) at ttread+0x7d3 sys/kern/tty.c:1587 spec_read(ffff80002a30c0e0) at spec_read+0x14b sys/kern/spec_vnops.c:215 VOP_READ(fffffd8059f49480,ffff80002a30c288,0,fffffd80097fbf08) at VOP_READ+0x101 sys/kern/vfs_vops.c:227 vn_read(fffffd805ea97470,ffff80002a30c288,0) at vn_read+0x17b sys/kern/vfs_vnops.c:369 dofilereadv(ffff8000fffef770,0,ffff80002a30c288,0,ffff80002a30c340) at dofilereadv+0x25a sys/kern/sys_generic.c:252 sys_read(ffff8000fffef770,ffff80002a30c3f0,ffff80002a30c340) at sys_read+0xa2 sys/kern/sys_generic.c:172 syscall(ffff80002a30c3f0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a30c3f0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x76aa110fee00, count: 1 ddb{0}> trace x86_ipi_db(ffffffff837efff0) 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(ffffffff83915db8) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff83915db8) at __mp_lock+0x192 sys/kern/kern_lock.c:165 __mp_acquire_count(ffffffff83915db8,1) at __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 sleep_finish(ffffffffffffffff,1) at sleep_finish+0x2d8 sys/kern/kern_synch.c:367 ttread(ffff800000afca00,ffff80002a30c288,0) at ttread+0x7d3 ttysleep_nsec sys/kern/tty.c:2324 [inline] ttread(ffff800000afca00,ffff80002a30c288,0) at ttread+0x7d3 ttysleep sys/kern/tty.c:2314 [inline] ttread(ffff800000afca00,ffff80002a30c288,0) at ttread+0x7d3 sys/kern/tty.c:1587 spec_read(ffff80002a30c0e0) at spec_read+0x14b sys/kern/spec_vnops.c:215 VOP_READ(fffffd8059f49480,ffff80002a30c288,0,fffffd80097fbf08) at VOP_READ+0x101 sys/kern/vfs_vops.c:227 vn_read(fffffd805ea97470,ffff80002a30c288,0) at vn_read+0x17b sys/kern/vfs_vnops.c:369 dofilereadv(ffff8000fffef770,0,ffff80002a30c288,0,ffff80002a30c340) at dofilereadv+0x25a sys/kern/sys_generic.c:252 sys_read(ffff8000fffef770,ffff80002a30c3f0,ffff80002a30c340) at sys_read+0xa2 sys/kern/sys_generic.c:172 syscall(ffff80002a30c3f0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a30c3f0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x76aa110fee00, 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: 0x7cafd22b5ce0, count: 14 ddb{1}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x7cafd22b5ce0, count: -1