uvm_fault(0xfffffd80684fd188, 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 *135934 88473 32767 0x10 0x4000000 0 syz-executor.7 292885 28813 32767 0x10 0 1 syz-executor.1 socreate(18,ffff80002e3baaa0,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socketpair(ffff8000ffff47e8,ffff80002e3bab38,ffff80002e3bab90) at sys_socketpair+0x6e sys/kern/uipc_syscalls.c:430 syscall(ffff80002e3bac00) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3bac00) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa01281fbcd0, 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(0xfffffd80684fd188, 0x0, 0, 1) -> e ddb{0}> trace socreate(18,ffff80002e3baaa0,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socketpair(ffff8000ffff47e8,ffff80002e3bab38,ffff80002e3bab90) at sys_socketpair+0x6e sys/kern/uipc_syscalls.c:430 syscall(ffff80002e3bac00) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3bac00) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa01281fbcd0, count: -4 ddb{0}> show registers rdi 0xffff80002c969000 rsi 0x50c rbp 0xffff80002e3baa80 rbx 0x18 rdx 0xffff80002c969000 rcx 0x50b rax 0 r8 0xffffffff81e690f0 uvm_map_inentry_pc r9 0x16 r10 0 r11 0x5bf539636953748e r12 0xffff80002e3baaa0 r13 0xffffffff8288cca0 inet6sw r14 0 r15 0x29 rip 0xffffffff81e82144 socreate+0x84 cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff80002e3baa20 ss 0x10 socreate+0x84: cmpq $0,0(%rax) ddb{0}> show proc PROC (syz-executor.7) pid=135934 stat=onproc flags process=10 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff5a48,0xffff8000fffee560 process=0xffff8000ffff8430 user=0xffff80002e3b5000, vmspace=0xfffffd80684fd188 estcpu=32, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 6149 207848 57375 32767 2 0x10 syz-executor.4 6149 26830 57375 32767 2 0x4000010 syz-executor.4 76894 374352 16206 32767 2 0x10 syz-executor.0 76894 109961 16206 32767 3 0x4000090 netcon syz-executor.0 14492 295909 42380 32767 2 0x10 syz-executor.5 14492 69318 42380 32767 3 0x4000090 fsleep syz-executor.5 88473 30968 48447 32767 2 0x10 syz-executor.7 *88473 135934 48447 32767 7 0x4000010 syz-executor.7 86678 222644 83728 32767 2 0x10 syz-executor.3 86678 343617 83728 32767 3 0x4000090 fsleep syz-executor.3 28813 292885 47606 32767 7 0x10 syz-executor.1 28813 523980 47606 32767 2 0x4000010 syz-executor.1 21218 117522 22704 32767 2 0x10 syz-executor.6 21218 34004 22704 32767 3 0x4000090 fsleep syz-executor.6 59101 300723 42771 32767 2 0x10 syz-executor.2 59101 436660 42771 32767 3 0x4000090 fsleep syz-executor.2 47606 110780 76045 32767 3 0x90 nanoslp syz-executor.1 76045 139473 35365 0 3 0x82 wait syz-executor.1 48447 270338 27498 32767 3 0x90 nanoslp syz-executor.7 27498 72964 35365 0 3 0x82 wait syz-executor.7 42380 28398 92605 32767 3 0x90 nanoslp syz-executor.5 92605 267605 35365 0 3 0x82 wait syz-executor.5 22704 319326 19596 32767 3 0x90 nanoslp syz-executor.6 19596 262500 35365 0 3 0x82 wait syz-executor.6 64794 206237 0 0 3 0x14200 bored sosplice 83728 96635 80138 32767 3 0x90 nanoslp syz-executor.3 57375 469966 36330 32767 3 0x90 nanoslp syz-executor.4 42771 479006 22201 32767 3 0x90 nanoslp syz-executor.2 36330 31938 35365 0 3 0x82 wait syz-executor.4 80138 241400 35365 0 3 0x82 wait syz-executor.3 22201 132298 35365 0 3 0x82 wait syz-executor.2 16206 13913 27491 32767 3 0x90 nanoslp syz-executor.0 27491 402937 35365 0 3 0x82 wait syz-executor.0 35365 14643 44149 0 3 0x82 thrsleep syz-fuzzer 35365 32794 44149 0 3 0x4000082 thrsleep syz-fuzzer 35365 395574 44149 0 3 0x4000082 thrsleep syz-fuzzer 35365 371472 44149 0 3 0x4000082 thrsleep syz-fuzzer 35365 399122 44149 0 3 0x4000082 thrsleep syz-fuzzer 35365 28897 44149 0 3 0x4000082 kqread syz-fuzzer 35365 274297 44149 0 3 0x4000082 thrsleep syz-fuzzer 35365 433865 44149 0 3 0x4000082 thrsleep syz-fuzzer 35365 55448 44149 0 3 0x4000082 thrsleep syz-fuzzer 44149 200489 55761 0 3 0x10008a sigsusp ksh 55761 168476 7172 0 3 0x9a kqread sshd 72088 134748 1 0 3 0x100083 ttyin getty 7172 191933 1 0 3 0x88 kqread sshd 29849 375280 17303 73 3 0x1100090 kqread syslogd 17303 321751 1 0 3 0x100082 netio syslogd 2661 193186 1 0 3 0x100080 kqread resolvd 10196 111613 4658 77 3 0x100092 kqread dhcpleased 15095 377414 4658 77 3 0x100092 kqread dhcpleased 4658 496869 1 0 3 0x80 kqread dhcpleased 11170 279973 0 0 3 0x14200 bored smr 14469 302327 0 0 2 0x14200 zerothread 42053 188784 0 0 3 0x14200 aiodoned aiodoned 76273 127404 0 0 3 0x14200 syncer update 96685 175137 0 0 3 0x14200 cleaner cleaner 12703 458428 0 0 3 0x14200 reaper reaper 46841 343656 0 0 3 0x14200 pgdaemon pagedaemon 62684 464548 0 0 3 0x14200 bored viomb 34800 259428 0 0 3 0x40014200 acpi0 acpi0 63730 514713 0 0 3 0x40014200 idle1 12881 15548 0 0 3 0x14200 bored softnet 23745 19323 0 0 3 0x14200 bored systqmp 32944 511163 0 0 3 0x14200 bored systq 2143 483069 0 0 3 0x40014200 bored softclock 77560 52020 0 0 3 0x40014200 idle0 1 26947 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 88473 (syz-executor.7) thread 0xffff8000ffff47e8 (135934) 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_socketpair+0x6e sys/kern/uipc_syscalls.c:430 #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 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10211 6412K 6419K 78643K 11333 0 pcb 13 12K 14K 78643K 17 0 rtable 254 7K 7K 78643K 1364 0 ifaddr 81 17K 17K 78643K 153 0 sysctl 3 1K 1K 78643K 3 0 counters 56 35K 35K 78643K 76 0 ioctlops 0 0K 2K 78643K 272 0 iov 0 0K 24K 78643K 1674 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1271 79K 79K 78643K 4113 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 176 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 2172 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 26 97K 117K 78643K 10202 0 sigio 0 0K 0K 78643K 642 0 proc 56 74K 99K 78643K 1419 0 subproc 104 6K 6K 78643K 234 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 661 0 in_multi 99 6K 6K 78643K 290 0 ether_multi 1 0K 0K 78643K 24 0 mrt 3 0K 0K 78643K 4 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 283 1261K 1261K 78643K 283 0 exec 0 0K 2K 78643K 2585 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 437 90K 104K 78643K 133346 0 UVM aobj 131 4K 4K 78643K 157 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 289 0 NDP 11 0K 2K 78643K 57 0 temp 125 4703K 4767K 78643K 48660 0 kqueue 14 20K 34K 78643K 2920 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 1097 0 1094 15 14 1 4 0 8 0 rtentry 112 251 0 133 4 0 4 4 0 8 0 unpcb 136 23979 0 23964 103 97 6 12 0 8 5 syncache 296 111 0 111 22 21 1 1 0 8 1 tcpqe 32 50 0 50 14 13 1 1 0 8 1 tcpcb 736 3903 0 3891 107 104 3 17 0 8 0 arp 120 39 0 21 1 0 1 1 0 8 0 ipq 40 19 0 17 4 3 1 1 0 8 0 ipqe 40 184 0 182 4 3 1 1 0 8 0 inpcb 304 7756 0 7744 103 101 2 11 0 8 0 ip6q 72 98 0 98 5 5 0 1 0 8 0 ip6af 40 192 0 192 5 5 0 1 0 8 0 nd6 48 83 0 51 1 0 1 1 0 8 0 kcovpl 48 18 0 10 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1058 0 523 37 3 34 34 0 8 0 art_table 32 1059 0 523 5 0 5 5 0 8 0 art_node 16 250 0 142 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 10 1 0 1 1 0 8 0 semapl 112 2168 0 2158 1 0 1 1 0 8 0 shmpl 112 154 0 26 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 15750 0 14313 91 0 91 91 0 8 0 ffsino 272 15750 0 14313 97 0 97 97 0 8 0 nchpl 144 29957 0 28331 62 0 62 62 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 104958 0 104958 11 10 1 2 0 8 1 percpumem 16 50 0 10 1 0 1 1 0 8 0 scxspl 216 90157 0 90157 30 29 1 8 0 8 1 plimitpl 152 2312 0 2290 8 7 1 2 0 8 0 sigapl 424 10456 0 10404 7 1 6 7 0 8 0 futexpl 64 97022 0 97018 9 8 1 1 0 8 0 knotepl 120 625 0 0 16 1 15 16 0 8 0 kqueuepl 216 5831 0 5821 67 66 1 10 0 8 0 pipepl 336 3329 0 3301 81 73 8 12 0 8 5 fdescpl 496 10441 0 10404 6 1 5 6 0 8 0 filepl 152 87556 0 87316 139 124 15 22 0 8 5 lockfpl 104 1356 0 1354 1 0 1 1 0 8 0 lockfspl 48 492 0 490 1 0 1 1 0 8 0 sessionpl 144 33 0 17 1 0 1 1 0 8 0 pgrppl 48 232 0 216 1 0 1 1 0 8 0 ucredpl 96 14815 0 14797 1 0 1 1 0 8 0 zombiepl 144 10404 0 10404 1 0 1 1 0 8 1 processpl 1064 10456 0 10404 4 0 4 4 0 8 0 procpl 672 30987 0 30919 14 6 8 8 0 8 2 sosppl 168 110 0 109 13 12 1 1 0 8 0 sockpl 480 33260 0 33227 734 720 14 43 0 8 8 mcl64k 65536 34 0 0 4 1 3 3 0 8 0 mcl16k 16384 25 0 0 3 0 3 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 379 0 0 24 4 20 20 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 9299 0 0 556 0 556 556 0 8 0 bufpl 288 18234 0 11899 453 0 453 453 0 8 0 anonpl 24 2996268 0 2980835 290 183 107 139 0 186 0 amapchunkpl 152 329961 0 329073 130 93 37 48 0 158 2 amappl16 200 29011 0 28612 153 130 23 47 0 8 0 amappl15 192 6586 0 6577 1 0 1 1 0 8 0 amappl14 184 2693 0 2683 1 0 1 1 0 8 0 amappl13 176 153 0 151 1 0 1 1 0 8 0 amappl12 168 2931 0 2919 2 1 1 1 0 8 0 amappl11 160 64 0 54 1 0 1 1 0 8 0 amappl10 152 52 0 48 1 0 1 1 0 8 0 amappl9 144 556 0 549 1 0 1 1 0 8 0 amappl8 136 1608 0 1467 5 0 5 5 0 8 0 amappl7 128 590 0 579 1 0 1 1 0 8 0 amappl6 120 348 0 317 2 1 1 2 0 8 0 amappl5 112 8036 0 8015 1 0 1 1 0 8 0 amappl4 104 3927 0 3889 3 1 2 2 0 8 1 amappl3 96 3834 0 3818 1 0 1 1 0 8 0 amappl2 88 1288 0 1242 3 1 2 3 0 8 0 amappl1 80 192212 0 191543 29 14 15 18 0 8 0 amappl 88 132312 0 132018 9 1 8 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 156 0 26 3 0 3 3 0 8 0 uaddrrnd 24 10441 0 10404 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 10441 0 10404 1 0 1 1 0 8 0 vmmpekpl 168 91325 0 91270 3 0 3 3 0 8 0 vmmpepl 168 951135 0 948230 237 108 129 140 0 357 2 vmsppl 368 10440 0 10404 4 0 4 4 0 8 0 rwobjpl 56 241276 0 233750 115 5 110 110 0 8 0 pdppl 4096 20889 0 20808 284 203 81 91 0 8 0 pvpl 32 5111578 0 5090438 516 339 177 259 0 265 0 pmappl 248 10440 0 10404 4 1 3 3 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 1765 0 400 40 0 40 40 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace socreate(18,ffff80002e3baaa0,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socketpair(ffff8000ffff47e8,ffff80002e3bab38,ffff80002e3bab90) at sys_socketpair+0x6e sys/kern/uipc_syscalls.c:430 syscall(ffff80002e3bac00) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3bac00) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa01281fbcd0, count: -4 ddb{0}> machine ddbcpu 1