uvm_fault(0xfffffd806131faa8, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at socreate+0x7b: cmpq $0,0(%rax) TID PID UID PRFLAGS PFLAGS CPU COMMAND *184092 61307 0 0 0x4000000 0 syz-executor.4 socreate(18,ffff80002997dbd8,0,29) at socreate+0x7b sys/kern/uipc_socket.c:172 sys_socket(ffff80002160c2a0,ffff80002997dc68,ffff80002997dcc0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002997dd30) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xaca9b15d8b0, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: uvm_fault(0xfffffd806131faa8, 0x0, 0, 1) -> e ddb> trace socreate(18,ffff80002997dbd8,0,29) at socreate+0x7b sys/kern/uipc_socket.c:172 sys_socket(ffff80002160c2a0,ffff80002997dc68,ffff80002997dcc0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002997dd30) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xaca9b15d8b0, count: -4 ddb> show registers rdi 0xffff800026542000 rsi 0x4cd rbp 0xffff80002997dbc0 rbx 0x18 rdx 0xffff800026542000 rcx 0x4cc rax 0 r8 0xffffffff8152fd20 uvm_map_inentry_pc r9 0x14 r10 0 r11 0x5b178b19b32ba7d2 r12 0xffff80002997dbd8 r13 0xffffffff826dd470 inet6sw r14 0 r15 0x29 rip 0xffffffff81b2452b socreate+0x7b cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff80002997db60 ss 0x10 socreate+0x7b: cmpq $0,0(%rax) ddb> show proc PROC (syz-executor.4) pid=184092 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff80002160cfc0,0xffff80002160dcf0 process=0xffff8000216947f8 user=0xffff800029978000, vmspace=0xfffffd806131faa8 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 87135 328876 29695 0 2 0 syz-executor.6 48062 227285 67135 0 2 0 syz-executor.2 82279 105722 48755 0 2 0 syz-executor.0 82279 386259 48755 0 2 0x4000000 syz-executor.0 82279 25162 48755 0 2 0x4000000 syz-executor.0 61307 63555 84824 0 2 0 syz-executor.4 *61307 184092 84824 0 7 0x4000000 syz-executor.4 39288 506687 16066 0 2 0 syz-executor.7 39288 367823 16066 0 3 0x4000080 fsleep syz-executor.7 29854 513633 92186 0 2 0 syz-executor.1 29854 342994 92186 0 2 0x4000000 syz-executor.1 48755 15465 46872 0 3 0x82 nanoslp syz-executor.0 84824 310496 46872 0 3 0x82 nanoslp syz-executor.4 73007 198470 1 0 3 0x100083 ttyin getty 29695 366379 46872 0 3 0x82 nanoslp syz-executor.6 73872 383267 46872 0 2 0x2 syz-executor.5 67135 42886 46872 0 2 0x2 syz-executor.2 16066 153274 46872 0 3 0x82 nanoslp syz-executor.7 93067 90431 46872 0 2 0x2 syz-executor.3 95120 105276 0 0 3 0x14200 acct acct 95678 339732 0 0 3 0x14200 bored sosplice 34401 449529 0 0 3 0x14280 nfsidl nfsio 42514 67098 0 0 3 0x14280 nfsidl nfsio 35800 506836 0 0 3 0x14280 nfsidl nfsio 95099 185893 0 0 3 0x14280 nfsidl nfsio 91326 408439 0 0 3 0x14280 nfsidl nfsio 82796 420536 0 0 3 0x14280 nfsidl nfsio 92186 246983 46872 0 3 0x82 nanoslp syz-executor.1 46872 217494 15383 0 3 0x82 kqread syz-fuzzer 46872 122627 15383 0 3 0x4000082 thrsleep syz-fuzzer 46872 250041 15383 0 3 0x4000082 thrsleep syz-fuzzer 46872 44674 15383 0 3 0x4000082 thrsleep syz-fuzzer 46872 355257 15383 0 3 0x4000082 thrsleep syz-fuzzer 46872 172382 15383 0 3 0x4000082 thrsleep syz-fuzzer 46872 61031 15383 0 3 0x4000082 thrsleep syz-fuzzer 46872 242190 15383 0 3 0x4000082 thrsleep syz-fuzzer 15383 288892 96699 0 3 0x10008a sigsusp ksh 96699 140118 59513 0 3 0x9a kqread sshd 59513 32533 1 0 3 0x88 kqread sshd 33639 434285 82031 73 3 0x1100090 kqread syslogd 82031 217999 1 0 3 0x100082 netio syslogd 65757 345534 1 0 3 0x100080 kqread resolvd 41994 360137 8657 77 3 0x100092 kqread dhcpleased 59662 52421 8657 77 3 0x100092 kqread dhcpleased 8657 365581 1 0 3 0x80 kqread dhcpleased 10374 64314 0 0 3 0x14200 bored smr 80977 516651 0 0 2 0x14200 zerothread 53887 442989 0 0 3 0x14200 aiodoned aiodoned 34600 466190 0 0 3 0x14200 syncer update 11624 216769 0 0 3 0x14200 cleaner cleaner 5212 240435 0 0 3 0x14200 reaper reaper 89135 121908 0 0 3 0x14200 pgdaemon pagedaemon 89062 51254 0 0 3 0x14200 bored viomb 86718 514732 0 0 3 0x40014200 acpi0 acpi0 54423 110989 0 0 3 0x14200 bored softnet 53376 440745 0 0 3 0x14200 bored systqmp 96094 54385 0 0 3 0x14200 bored systq 39799 510356 0 0 3 0x40014200 bored softclock 65839 395866 0 0 3 0x40014200 idle0 1 420943 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10215 6682K 7482K 78643K 34646 0 pcb 13 18K 20K 78643K 1408 0 rtable 217 8K 11K 78643K 1620 0 ifaddr 86 19K 20K 78643K 582 0 sysctl 3 1K 1K 78643K 6 0 counters 27 17K 17K 78643K 93 0 ioctlops 0 0K 4K 78643K 1451 0 iov 0 0K 28K 78643K 551 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1462 91K 92K 78643K 6882 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 44 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 690 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 77K 78643K 5607 0 sigio 0 0K 0K 78643K 73 0 proc 58 55K 71K 78643K 1251 0 subproc 104 6K 6K 78643K 403 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 186 0 in_multi 89 6K 6K 78643K 527 0 ether_multi 1 0K 0K 78643K 51 0 mrt 1 0K 0K 78643K 29 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 235 1049K 1049K 78643K 235 0 exec 0 0K 2K 78643K 1989 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 445 724K 725K 78643K 68496 0 UVM aobj 131 4K 4K 78643K 135 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 267 0 NDP 12 0K 1K 78643K 146 0 temp 130 4697K 4769K 78643K 47113 0 kqueue 12 18K 26K 78643K 345 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 531 0 528 8 7 1 3 0 8 0 rtentry 112 418 0 325 4 1 3 4 0 8 0 unpcb 136 2993 0 2980 31 30 1 6 0 8 0 syncache 296 19 0 19 5 5 0 1 0 8 0 tcpqe 32 14 0 14 2 2 0 1 0 8 0 tcpcb 736 1183 0 1176 37 35 2 8 0 8 1 arp 88 67 0 49 1 0 1 1 0 8 0 ipq 40 21 0 20 5 4 1 1 0 8 0 ipqe 40 869 0 868 5 4 1 1 0 8 0 inpcb 304 4672 0 4665 69 63 6 16 0 8 5 rttmr 72 6 0 6 2 2 0 1 0 8 0 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 3 0 3 1 1 0 1 0 8 0 nd6 48 104 0 82 1 0 1 1 0 8 0 pkpcb 40 17 0 17 6 6 0 1 0 8 0 kcovpl 48 31 0 23 1 0 1 1 0 8 0 ppxss 1152 25 0 25 5 5 0 1 0 8 0 pfstscr 40 4 0 4 1 1 0 1 0 8 0 pfosfp 40 3 0 2 1 0 1 1 0 8 0 pfosfpen 112 3 0 2 1 0 1 1 0 8 0 pfrktable 1344 60 0 57 1 0 1 1 0 8 0 pftag 88 8 0 4 1 0 1 1 0 8 0 pfstitem 24 24 0 22 1 0 1 1 0 8 0 pfstkey 112 28 0 26 1 0 1 1 0 8 0 pfstate 320 14 0 13 1 0 1 1 0 8 0 pfrule 1360 246 0 236 1 0 1 1 0 8 0 art_heap8 4096 2 0 1 2 1 1 2 0 8 0 art_heap4 256 1784 0 1419 41 14 27 29 0 8 2 art_table 32 1786 0 1420 5 1 4 4 0 8 0 art_node 16 417 0 336 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 1 0 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 688 0 678 1 0 1 1 0 8 0 shmpl 112 132 0 4 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 8476 0 7016 92 0 92 92 0 8 0 ffsino 240 8476 0 7016 87 0 87 87 0 8 0 nchpl 144 16223 0 14609 63 0 63 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 224 5926 0 0 349 0 349 349 0 8 0 namei 1024 57391 0 57391 10 9 1 2 0 8 1 vcpupl 1984 172 0 0 22 0 22 22 0 8 0 vmpool 528 183 0 11 12 0 12 12 0 8 0 pfiaddrpl 120 19 0 16 1 0 1 1 0 8 0 scxspl 216 63684 0 63684 18 17 1 8 0 8 1 plimitpl 152 654 0 640 1 0 1 1 0 8 0 sigapl 424 5869 0 5821 9 2 7 8 0 8 0 futexpl 64 53259 0 53258 7 6 1 1 0 8 0 knotepl 120 50046 0 49966 12 8 4 10 0 8 0 kqueuepl 184 1561 0 1553 25 24 1 4 0 8 0 pipepl 304 1332 0 1304 29 24 5 8 0 8 2 fdescpl 432 5834 0 5807 4 0 4 4 0 8 0 filepl 120 38187 0 37953 53 43 10 15 0 8 2 lockfpl 104 1900 0 1898 7 6 1 2 0 8 0 lockfspl 48 444 0 442 1 0 1 1 0 8 0 sessionpl 144 48 0 32 1 0 1 1 0 8 0 pgrppl 48 284 0 268 1 0 1 1 0 8 0 ucredpl 96 3312 0 3302 1 0 1 1 0 8 0 zombiepl 144 5821 0 5821 1 0 1 1 0 8 1 processpl 1000 5869 0 5821 9 2 7 9 0 8 0 procpl 672 14120 0 14060 11 4 7 9 0 8 0 sosppl 168 49 0 49 8 8 0 1 0 8 0 sockpl 448 8217 0 8194 164 153 11 27 0 8 8 mcl64k 65536 185 0 182 3 2 1 2 0 8 0 mcl16k 16384 44 0 44 10 9 1 1 0 8 1 mcl12k 12288 173 0 173 14 13 1 1 0 8 1 mcl9k 9216 105 0 105 10 10 0 1 0 8 0 mcl8k 8192 509 0 509 8 7 1 1 0 8 1 mcl4k 4096 605 0 605 8 7 1 1 0 8 1 mcl2k2 2112 43 0 43 13 12 1 1 0 8 1 mcl2k 2048 84399 0 84343 30 21 9 23 0 8 0 mtagpl 96 5564 0 4771 37 16 21 36 0 8 0 mbufpl 256 179844 0 178576 396 309 87 359 0 8 5 bufpl 288 14987 0 8578 459 1 458 459 0 8 0 anonpl 24 1574514 0 1555308 216 87 129 148 0 188 5 amapchunkpl 152 171625 0 170886 90 55 35 46 0 158 2 amappl16 200 14644 0 13945 70 30 40 47 0 8 2 amappl15 192 2093 0 2089 1 0 1 1 0 8 0 amappl14 184 854 0 849 1 0 1 1 0 8 0 amappl13 176 857 0 854 1 0 1 1 0 8 0 amappl12 168 266 0 262 2 1 1 1 0 8 0 amappl11 160 376 0 364 1 0 1 1 0 8 0 amappl10 152 625 0 620 1 0 1 1 0 8 0 amappl9 144 884 0 881 1 0 1 1 0 8 0 amappl8 136 1794 0 1708 5 1 4 4 0 8 0 amappl7 128 928 0 913 1 0 1 1 0 8 0 amappl6 120 711 0 683 2 1 1 2 0 8 0 amappl5 112 5614 0 5599 1 0 1 1 0 8 0 amappl4 104 2211 0 2184 1 0 1 1 0 8 0 amappl3 96 772 0 757 1 0 1 1 0 8 0 amappl2 88 1711 0 1652 3 1 2 3 0 8 0 amappl1 80 104419 0 103896 19 6 13 18 0 8 0 amappl 88 67523 0 67266 8 1 7 8 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 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 134 0 4 3 0 3 3 0 8 0 uaddrrnd 24 6017 0 5818 3 1 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6017 0 5818 3 1 2 2 0 8 0 vmmpekpl 168 42910 0 42839 4 0 4 4 0 8 0 vmmpepl 168 530350 0 527447 242 104 138 154 0 357 5 vmsppl 272 6016 0 5818 17 3 14 14 0 8 0 rwobjpl 24 128145 0 120410 48 0 48 48 0 8 0 pdppl 4096 12040 0 11808 510 274 236 236 0 8 4 pvpl 32 2854761 0 2832088 411 192 219 262 0 265 22 pmappl 216 6016 0 5818 13 1 12 12 0 8 1 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 1881 0 847 33 3 30 32 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace socreate(18,ffff80002997dbd8,0,29) at socreate+0x7b sys/kern/uipc_socket.c:172 sys_socket(ffff80002160c2a0,ffff80002997dc68,ffff80002997dcc0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002997dd30) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xaca9b15d8b0, count: -4 ddb> machine ddbcpu 1 No such command ddb> trace socreate(18,ffff80002997dbd8,0,29) at socreate+0x7b sys/kern/uipc_socket.c:172 sys_socket(ffff80002160c2a0,ffff80002997dc68,ffff80002997dcc0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002997dd30) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xaca9b15d8b0, count: -4