uvm_fault(0xfffffd807ce4db98, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at socreate+0x84: cmpq $0,0(%rax) TID PID UID PRFLAGS PFLAGS CPU COMMAND * 90476 70239 32767 0x10 0x4000000 0 syz-executor.3 320606 8987 32767 0x10 0 1 syz-executor.0 socreate(18,ffff80002e3ab918,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff800022c33a48,ffff80002e3ab9a8,ffff80002e3aba00) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e3aba70) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3aba70) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6e9caa383c0, count: 11 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: uvm_fault(0xfffffd807ce4db98, 0x0, 0, 1) -> e ddb{0}> trace socreate(18,ffff80002e3ab918,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff800022c33a48,ffff80002e3ab9a8,ffff80002e3aba00) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e3aba70) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3aba70) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6e9caa383c0, count: -4 ddb{0}> show registers rdi 0xffff8000278ca000 rsi 0x17 rbp 0xffff80002e3ab900 rbx 0x18 rdx 0xffff8000278ca000 rcx 0x16 rax 0 r8 0xffffffff81e690f0 uvm_map_inentry_pc r9 0x14 r10 0 r11 0xe4a1a0589f370581 r12 0xffff80002e3ab918 r13 0xffffffff8288cca0 inet6sw r14 0 r15 0x29 rip 0xffffffff81e82144 socreate+0x84 cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff80002e3ab8a0 ss 0x10 socreate+0x84: cmpq $0,0(%rax) ddb{0}> show proc PROC (syz-executor.3) pid=90476 stat=onproc flags process=10 proc=4000000 pri=32, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff800022c322a8,0xffff8000211ff7b0 process=0xffff800029518c98 user=0xffff80002e3a6000, vmspace=0xfffffd807ce4db98 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 94789 325735 95157 32767 2 0x10 syz-executor.6 70239 192166 21250 32767 2 0x10 syz-executor.3 *70239 90476 21250 32767 7 0x4000010 syz-executor.3 80212 127272 58526 32767 2 0x10 syz-executor.4 80212 435401 58526 32767 3 0x4000090 fsleep syz-executor.4 47733 25456 95958 32767 2 0x10 syz-executor.5 8987 320606 53566 32767 7 0x10 syz-executor.0 8987 77472 53566 32767 2 0x4000090 syz-executor.0 8987 62171 53566 32767 2 0x4000010 syz-executor.0 8987 114727 53566 32767 2 0x4000010 syz-executor.0 8987 491879 53566 32767 2 0x4000010 syz-executor.0 8987 122523 53566 32767 2 0x4000010 syz-executor.0 8987 322709 53566 32767 2 0x4000010 syz-executor.0 31085 20489 53611 32767 2 0x10 syz-executor.7 31085 432025 53611 32767 3 0x4000090 fsleep syz-executor.7 92061 256719 43180 32767 3 0x90 nanoslp syz-executor.1 43180 88066 45147 0 3 0x82 wait syz-executor.1 58526 293177 57636 32767 3 0x90 nanoslp syz-executor.4 57636 379806 45147 0 3 0x82 wait syz-executor.4 85728 497093 0 0 3 0x14200 bored sosplice 95157 376682 98111 32767 3 0x90 nanoslp syz-executor.6 95958 3007 35163 32767 3 0x90 nanoslp syz-executor.5 35163 338472 45147 0 3 0x82 wait syz-executor.5 53611 217578 87089 32767 3 0x90 nanoslp syz-executor.7 98111 120650 45147 0 3 0x82 wait syz-executor.6 87089 231271 45147 0 3 0x82 wait syz-executor.7 21250 168068 21728 32767 3 0x90 nanoslp syz-executor.3 46767 196588 89891 32767 2 0x10 syz-executor.2 21728 78920 45147 0 3 0x82 wait syz-executor.3 89891 470879 45147 0 3 0x82 wait syz-executor.2 53566 90760 46908 32767 3 0x90 nanoslp syz-executor.0 46908 265756 45147 0 3 0x82 wait syz-executor.0 45147 257218 81836 0 3 0x82 thrsleep syz-fuzzer 45147 431990 81836 0 3 0x4000082 nanoslp syz-fuzzer 45147 508093 81836 0 3 0x4000082 kqread syz-fuzzer 45147 399589 81836 0 3 0x4000082 thrsleep syz-fuzzer 45147 510082 81836 0 3 0x4000082 thrsleep syz-fuzzer 45147 295726 81836 0 3 0x4000082 thrsleep syz-fuzzer 45147 307325 81836 0 3 0x4000082 nanoslp syz-fuzzer 45147 379598 81836 0 3 0x4000082 thrsleep syz-fuzzer 81836 92536 91753 0 3 0x10008a sigsusp ksh 91753 338426 2404 0 3 0x9a kqread sshd 84345 517528 1 0 3 0x100083 ttyin getty 2404 222470 1 0 3 0x88 kqread sshd 78978 441496 79798 73 3 0x1100090 kqread syslogd 79798 284166 1 0 3 0x100082 netio syslogd 59047 392729 1 0 3 0x100080 kqread resolvd 92592 185121 42710 77 3 0x100092 kqread dhcpleased 23168 34345 42710 77 3 0x100092 kqread dhcpleased 42710 435183 1 0 3 0x80 kqread dhcpleased 75393 421506 0 0 3 0x14200 bored smr 32306 42895 0 0 2 0x14200 zerothread 7949 505833 0 0 3 0x14200 aiodoned aiodoned 79152 103337 0 0 3 0x14200 syncer update 34488 366071 0 0 3 0x14200 cleaner cleaner 57213 439269 0 0 3 0x14200 reaper reaper 19011 433096 0 0 3 0x14200 pgdaemon pagedaemon 1976 54822 0 0 3 0x14200 bored viomb 62359 141288 0 0 3 0x40014200 acpi0 acpi0 96469 156905 0 0 3 0x40014200 idle1 83286 411219 0 0 3 0x14200 bored softnet 64726 223067 0 0 3 0x14200 bored systqmp 68357 362739 0 0 3 0x14200 bored systq 34861 417539 0 0 3 0x40014200 bored softclock 36698 50784 0 0 3 0x40014200 idle0 1 392023 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 70239 (syz-executor.3) thread 0xffff800022c33a48 (90476) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82abcc60) #0 witness_lock+0x44d #1 kpageflttrap+0x23d sys/arch/amd64/amd64/trap.c:274 #2 kerntrap+0xef sys/arch/amd64/amd64/trap.c:318 #3 alltraps_kern_meltdown+0x7b #4 socreate+0x84 sys/kern/uipc_socket.c:172 #5 sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 #6 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #6 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #7 Xsyscall+0x128 Process 46767 (syz-executor.2) thread 0xffff8000211fe2a0 (196588) exclusive rrwlock inode r = 0 (0xfffffd8067aa4818) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 rrw_enter+0x8b sys/kern/kern_rwlock.c:461 #3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:534 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:579 #5 vget+0x1d3 sys/kern/vfs_subr.c:677 #6 ufs_ihashget+0x121 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x7c sys/ufs/ffs/ffs_vfsops.c:1318 #8 ufs_lookup+0x13ba sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x58 sys/kern/vfs_vops.c:85 #10 vfs_lookup+0x6e5 sys/kern/vfs_lookup.c:561 #11 namei+0x36a sys/kern/vfs_lookup.c:245 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1850 #13 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #13 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd8069039098) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 rrw_enter+0x8b sys/kern/kern_rwlock.c:461 #3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:534 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:579 #5 vfs_lookup+0xd1 sys/kern/vfs_lookup.c:413 #6 namei+0x36a sys/kern/vfs_lookup.c:245 #7 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1850 #8 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #8 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10193 6410K 6419K 78643K 11293 0 pcb 13 12K 14K 78643K 17 0 rtable 248 7K 7K 78643K 716 0 ifaddr 81 16K 16K 78643K 103 0 sysctl 2 0K 0K 78643K 2 0 counters 56 35K 35K 78643K 62 0 ioctlops 0 0K 2K 78643K 82 0 iov 0 0K 16K 78643K 536 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1271 79K 79K 78643K 1703 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 25 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 321 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 24 89K 117K 78643K 2567 0 sigio 0 0K 0K 78643K 59 0 proc 56 74K 111K 78643K 742 0 subproc 104 6K 6K 78643K 143 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 450 0 in_multi 99 6K 7K 78643K 197 0 ether_multi 1 0K 0K 78643K 29 0 mrt 2 0K 0K 78643K 2 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 175 784K 784K 78643K 175 0 exec 0 0K 2K 78643K 992 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 355 91K 106K 78643K 34522 0 UVM aobj 131 4K 4K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 83 0 NDP 11 0K 2K 78643K 36 0 temp 125 4703K 4767K 78643K 10165 0 kqueue 12 18K 26K 78643K 210 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 505 0 502 8 7 1 5 0 8 0 rtentry 112 153 0 38 4 0 4 4 0 8 0 unpcb 136 1783 0 1768 13 10 3 9 0 8 2 syncache 296 31 0 31 7 7 0 1 0 8 0 tcpqe 32 13 0 13 5 5 0 1 0 8 0 tcpcb 736 1961 0 1876 46 32 14 17 0 8 4 arp 120 24 0 6 1 0 1 1 0 8 0 ipq 40 2 0 2 2 2 0 1 0 8 0 ipqe 40 7 0 7 2 2 0 1 0 8 0 inpcb 304 3393 0 3383 29 22 7 11 0 8 6 rttmr 72 4 0 3 1 0 1 1 0 8 0 ip6q 72 2 0 2 1 0 1 1 0 8 1 ip6af 40 4 0 4 1 0 1 1 0 8 1 nd6 48 41 0 13 1 0 1 1 0 8 0 kcovpl 48 11 0 3 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 640 0 150 32 0 32 32 0 8 1 art_table 32 641 0 150 5 0 5 5 0 8 0 art_node 16 152 0 47 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 4 1 1 0 1 0 8 0 semapl 112 319 0 309 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 4642 0 3205 90 0 90 90 0 8 0 ffsino 272 4642 0 3205 96 0 96 96 0 8 0 nchpl 144 8084 0 6457 62 0 62 62 0 8 0 uvmvnodes 80 4794 0 0 98 0 98 98 0 8 0 vnodes 224 4794 0 0 282 0 282 282 0 8 0 namei 1024 28071 0 28071 2 1 1 2 0 8 1 percpumem 16 43 0 3 1 0 1 1 0 8 0 scxspl 216 28832 0 28832 20 17 3 8 0 8 3 plimitpl 152 555 0 532 2 1 1 2 0 8 0 sigapl 424 2846 0 2795 7 0 7 7 0 8 0 futexpl 64 22220 0 22218 1 0 1 1 0 8 0 knotepl 120 353 0 0 11 0 11 11 0 8 0 kqueuepl 216 1986 0 1978 16 11 5 6 0 8 4 pipepl 336 795 0 767 18 9 9 9 0 8 6 fdescpl 496 2831 0 2796 7 2 5 6 0 8 0 filepl 152 20199 0 19962 36 19 17 19 0 8 7 lockfpl 104 264 0 262 1 0 1 1 0 8 0 lockfspl 48 113 0 111 1 0 1 1 0 8 0 sessionpl 144 26 0 10 1 0 1 1 0 8 0 pgrppl 48 45 0 29 1 0 1 1 0 8 0 ucredpl 96 2791 0 2773 1 0 1 1 0 8 0 zombiepl 144 2796 0 2795 1 0 1 1 0 8 0 processpl 1064 2846 0 2795 5 1 4 4 0 8 0 procpl 672 7704 0 7637 9 1 8 8 0 8 2 sosppl 168 61 0 60 3 2 1 1 0 8 0 sockpl 480 5741 0 5713 82 70 12 34 0 8 8 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 13 0 0 2 0 2 2 0 8 0 mcl9k 9216 11 0 0 1 0 1 1 0 8 0 mcl8k 8192 14 0 0 2 0 2 2 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 146 0 0 17 0 17 17 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 1131 0 0 70 0 70 70 0 8 0 bufpl 288 8048 0 1713 453 0 453 453 0 8 0 anonpl 24 760936 0 747348 141 48 93 119 0 186 1 amapchunkpl 152 85436 0 84669 68 33 35 51 0 158 3 amappl16 200 6832 0 6461 45 24 21 33 0 8 0 amappl15 192 246 0 238 1 0 1 1 0 8 0 amappl14 184 23 0 19 1 0 1 1 0 8 0 amappl13 176 851 0 847 1 0 1 1 0 8 0 amappl12 168 320 0 315 1 0 1 1 0 8 0 amappl11 160 59 0 48 1 0 1 1 0 8 0 amappl10 152 365 0 360 1 0 1 1 0 8 0 amappl9 144 1076 0 1066 1 0 1 1 0 8 0 amappl8 136 1030 0 948 3 0 3 3 0 8 0 amappl7 128 403 0 390 1 0 1 1 0 8 0 amappl6 120 840 0 815 2 1 1 2 0 8 0 amappl5 112 2834 0 2811 1 0 1 1 0 8 0 amappl4 104 968 0 934 2 1 1 2 0 8 0 amappl3 96 809 0 795 1 0 1 1 0 8 0 amappl2 88 1467 0 1424 3 1 2 3 0 8 0 amappl1 80 53632 0 53013 20 5 15 18 0 8 0 amappl 88 33891 0 33629 8 0 8 8 0 92 1 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 253 0 253 1 1 0 1 0 8 0 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 130 0 0 3 0 3 3 0 8 0 uaddrrnd 24 2831 0 2796 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2831 0 2796 1 0 1 1 0 8 0 vmmpekpl 168 25530 0 25470 4 0 4 4 0 8 0 vmmpepl 168 260385 0 257759 144 18 126 133 0 357 5 vmsppl 368 2830 0 2796 4 0 4 4 0 8 0 rwobjpl 56 68591 0 62350 90 1 89 89 0 8 0 pdppl 4096 5669 0 5592 145 64 81 91 0 8 4 pvpl 32 1367303 0 1348518 289 100 189 259 0 265 23 pmappl 248 2830 0 2796 4 1 3 3 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 990 0 108 26 0 26 26 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace socreate(18,ffff80002e3ab918,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff800022c33a48,ffff80002e3ab9a8,ffff80002e3aba00) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e3aba70) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3aba70) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6e9caa383c0, count: -4 ddb{0}> machine ddbcpu 1