uvm_fault(0xfffffd8060b82e78, 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 344458 959 0 0 0 0 syz-executor.5 * 7725 54789 0 0 0x4000000 1K syz-executor.2 socreate(18,ffff8000211f0928,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff800021190a80,ffff8000211f09b8,ffff8000211f0a10) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff8000211f0a80) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000211f0a80) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9af31ba3980, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: uvm_fault(0xfffffd8060b82e78, 0x0, 0, 1) -> e ddb{1}> trace socreate(18,ffff8000211f0928,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff800021190a80,ffff8000211f09b8,ffff8000211f0a10) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff8000211f0a80) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000211f0a80) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9af31ba3980, count: -4 ddb{1}> show registers rdi 0xffff800024678000 rsi 0x981 rbp 0xffff8000211f0910 rbx 0x18 rdx 0xffff800024678000 rcx 0x980 rax 0 r8 0xffffffff811cfb80 uvm_map_inentry_pc r9 0x16 r10 0 r11 0xfebbbb1a83a697e8 r12 0xffff8000211f0928 r13 0xffffffff82675e40 inet6sw r14 0 r15 0x29 rip 0xffffffff81b8f4e4 socreate+0x84 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff8000211f08b0 ss 0x10 socreate+0x84: cmpq $0,0(%rax) ddb{1}> show proc PROC (syz-executor.2) pid=7725 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff80002e36afc0,0xffff800021191cf0 process=0xffff80002e3f9d38 user=0xffff8000211eb000, vmspace=0xfffffd8060b82e78 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 959 344458 2180 0 7 0 syz-executor.5 70204 39264 54336 0 2 0 syz-executor.0 70204 65048 54336 0 3 0x4000080 fsleep syz-executor.0 70204 27217 54336 0 2 0x4000000 syz-executor.0 21666 235461 81912 0 2 0 syz-executor.4 88918 112129 79564 0 2 0 syz-executor.1 88918 438556 79564 0 3 0x4000080 fsleep syz-executor.1 88918 262257 79564 0 3 0x4000080 fsleep syz-executor.1 64681 450570 52551 0 2 0 syz-executor.3 64681 353917 52551 0 3 0x4000080 fifow syz-executor.3 64681 104635 52551 0 3 0x4000080 fsleep syz-executor.3 54789 276234 54196 0 2 0 syz-executor.2 *54789 7725 54196 0 7 0x4000000 syz-executor.2 64698 44712 25050 0 2 0 syz-executor.7 64698 351208 25050 0 2 0x4000000 syz-executor.7 79564 83789 89735 0 3 0x82 nanoslp syz-executor.1 10387 165546 89735 0 2 0x2 syz-executor.6 54336 425064 89735 0 3 0x82 nanoslp syz-executor.0 2180 295531 89735 0 3 0x82 nanoslp syz-executor.5 25050 13986 89735 0 3 0x82 nanoslp syz-executor.7 54196 49788 89735 0 2 0x2 syz-executor.2 52551 454449 89735 0 3 0x82 nanoslp syz-executor.3 81912 72768 89735 0 2 0x2 syz-executor.4 61468 122451 0 0 3 0x14280 nfsidl nfsio 8777 292477 0 0 3 0x14280 nfsidl nfsio 48373 503277 0 0 3 0x14280 nfsidl nfsio 41464 401933 0 0 3 0x14280 nfsidl nfsio 32913 59218 0 0 3 0x14280 nfsidl nfsio 55218 70383 0 0 3 0x14280 nfsidl nfsio 98696 342403 0 0 3 0x14280 nfsidl nfsio 98129 217526 0 0 3 0x14280 nfsidl nfsio 9284 214538 0 0 3 0x14280 nfsidl nfsio 54087 326016 0 0 3 0x14280 nfsidl nfsio 43362 2956 0 0 3 0x14280 nfsidl nfsio 90414 10142 0 0 3 0x14280 nfsidl nfsio 74553 114671 0 0 3 0x14280 nfsidl nfsio 72930 467098 0 0 3 0x14280 nfsidl nfsio 63016 413749 0 0 3 0x14280 nfsidl nfsio 28590 345976 0 0 3 0x14280 nfsidl nfsio 80647 513487 0 0 3 0x14280 nfsidl nfsio 24011 376729 0 0 3 0x14280 nfsidl nfsio 35023 109748 0 0 3 0x14280 nfsidl nfsio 29065 230052 0 0 3 0x14280 nfsidl nfsio 84986 472647 0 0 3 0x14200 bored sosplice 89735 489187 24541 0 3 0x82 nanoslp syz-fuzzer 89735 445260 24541 0 3 0x4000082 nanoslp syz-fuzzer 89735 202730 24541 0 3 0x4000082 thrsleep syz-fuzzer 89735 59615 24541 0 3 0x4000082 thrsleep syz-fuzzer 89735 262950 24541 0 3 0x4000082 thrsleep syz-fuzzer 89735 472892 24541 0 3 0x4000082 thrsleep syz-fuzzer 89735 437201 24541 0 3 0x4000082 thrsleep syz-fuzzer 89735 418634 24541 0 3 0x4000082 thrsleep syz-fuzzer 89735 447194 24541 0 3 0x4000082 kqread syz-fuzzer 24541 496511 36204 0 3 0x10008a sigsusp ksh 36204 160201 35028 0 3 0x9a kqread sshd 75425 379926 1 0 3 0x100083 ttyin getty 35028 218042 1 0 3 0x88 kqread sshd 64438 518364 6801 74 3 0x1100092 bpf pflogd 6801 131624 1 0 3 0x80 netio pflogd 70982 453308 9785 73 3 0x1100090 kqread syslogd 9785 112229 1 0 3 0x100082 netio syslogd 4405 21713 1 0 3 0x100080 kqread resolvd 59396 126292 0 0 3 0x14200 bored smr 21872 351550 0 0 2 0x14200 zerothread 4741 145076 0 0 3 0x14200 aiodoned aiodoned 9120 255125 0 0 3 0x14200 syncer update 6583 361350 0 0 3 0x14200 cleaner cleaner 93662 261793 0 0 3 0x14200 reaper reaper 53772 465494 0 0 3 0x14200 pgdaemon pagedaemon 30410 233624 0 0 3 0x14200 bored viomb 22688 241532 0 0 3 0x40014200 acpi0 acpi0 48413 244741 0 0 3 0x40014200 idle1 45438 163323 0 0 3 0x14200 bored softnet 63726 115046 0 0 3 0x14200 bored systqmp 21250 76637 0 0 3 0x14200 bored systq 30095 447120 0 0 3 0x40014200 bored softclock 59061 457049 0 0 3 0x40014200 idle0 1 295198 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 54789 (syz-executor.2) thread 0xffff800021190a80 (7725) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82b6e770) #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 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10211 6510K 6871K 78643K 14336 0 pcb 13 14K 16K 78643K 2184 0 rtable 247 19K 19K 78643K 2078 0 ifaddr 103 24K 25K 78643K 1002 0 sysctl 3 1K 3K 78643K 6 0 counters 58 35K 36K 78643K 330 0 ioctlops 0 0K 4K 78643K 3476 0 iov 0 0K 28K 78643K 1155 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1325 83K 84K 78643K 4486 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 71 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 611 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 18 65K 93K 78643K 11151 0 sigio 0 0K 0K 78643K 361 0 proc 65 63K 111K 78643K 1838 0 subproc 104 6K 6K 78643K 546 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 350 0 in_multi 95 6K 6K 78643K 763 0 ether_multi 1 0K 0K 78643K 120 0 mrt 1 0K 0K 78643K 35 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 229 1023K 1023K 78643K 229 0 exec 0 0K 2K 78643K 2371 0 pfkey data 0 0K 0K 78643K 3 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 554 988K 993K 78643K 143595 0 UVM aobj 131 8K 8K 78643K 134 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 745 0 NDP 14 0K 2K 78643K 241 0 temp 141 4707K 5347K 78643K 109894 0 kqueue 8 11K 24K 78643K 592 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> 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 516 0 515 4 3 1 2 0 8 0 rtentry 112 669 0 567 4 1 3 4 0 8 0 unpcb 136 6709 0 6699 58 57 1 9 0 8 0 syncache 296 30 0 30 9 9 0 1 0 8 0 tcpqe 32 158 0 158 4 4 0 1 0 8 0 tcpcb 736 4267 0 4251 123 121 2 18 0 8 0 arp 120 94 0 75 1 0 1 1 0 8 0 inpcb 304 9957 0 9950 111 110 1 11 0 8 0 rttmr 72 12 0 12 3 3 0 1 0 8 0 nd6 48 134 0 112 1 0 1 1 0 8 0 pkpcb 40 31 0 31 7 7 0 1 0 8 0 kcovpl 48 42 0 34 1 0 1 1 0 8 0 ppxss 1248 54 0 54 13 13 0 1 0 8 0 pfstscr 40 4 0 4 1 1 0 1 0 8 0 pffrag 232 13 0 12 4 3 1 1 0 482 0 pffrnode 88 13 0 12 4 3 1 1 0 8 0 pffrent 40 114 0 113 5 4 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 28 0 21 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 264 4 0 4 1 1 0 1 0 8 0 pfstitem 24 29 0 27 1 0 1 1 0 8 0 pfstkey 112 167 0 165 1 0 1 1 0 8 0 pfstate 320 96 0 94 3 2 1 3 0 8 0 pfrule 1360 126 0 106 4 2 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2724 0 2274 49 20 29 29 0 8 0 art_table 32 2725 0 2274 5 1 4 4 0 8 0 art_node 16 627 0 538 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 6 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 602 0 592 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 15482 0 14010 93 0 93 93 0 8 0 ffsino 272 15482 0 14010 99 0 99 99 0 8 0 nchpl 144 30206 0 28582 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 117344 0 117344 14 13 1 2 0 8 1 percpumem 16 177 0 136 1 0 1 1 0 8 0 vcpupl 2048 157 0 0 20 0 20 20 0 8 0 vmpool 560 164 0 7 12 0 12 12 0 8 0 pfiaddrpl 120 19 0 4 1 0 1 1 0 8 0 scxspl 216 93202 0 93202 37 36 1 8 0 8 1 plimitpl 152 1353 0 1339 1 0 1 1 0 8 0 sigapl 424 11425 0 11362 8 0 8 8 0 8 0 futexpl 64 93586 0 93582 5 4 1 1 0 8 0 knotepl 120 420 0 0 8 1 7 7 0 8 0 kqueuepl 216 2111 0 2105 33 32 1 8 0 8 0 pipepl 336 2420 0 2392 68 65 3 8 0 8 0 fdescpl 496 11382 0 11354 5 1 4 5 0 8 0 filepl 152 79443 0 79217 138 128 10 19 0 8 0 lockfpl 104 2045 0 2044 5 4 1 2 0 8 0 lockfspl 48 536 0 535 1 0 1 1 0 8 0 sessionpl 144 58 0 42 1 0 1 1 0 8 0 pgrppl 48 78 0 62 1 0 1 1 0 8 0 ucredpl 96 7930 0 7921 1 0 1 1 0 8 0 zombiepl 144 11363 0 11362 9 8 1 1 0 8 0 processpl 1064 11425 0 11362 5 0 5 5 0 8 0 procpl 672 33143 0 33064 25 17 8 9 0 8 0 srpgc 96 38 0 38 14 14 0 1 0 8 0 sosppl 168 36 0 36 10 9 1 1 0 8 1 sockpl 480 17217 0 17199 315 311 4 33 0 8 1 mcl64k 65536 33 0 0 4 1 3 3 0 8 0 mcl16k 16384 33 0 0 5 2 3 3 0 8 0 mcl12k 12288 41 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 30 0 0 4 1 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 15 0 0 1 0 1 1 0 8 0 mcl2k 2048 260 0 0 27 1 26 27 0 8 0 mtagpl 96 249 0 0 6 3 3 6 0 8 0 mbufpl 256 727 0 0 33 1 32 32 0 8 0 bufpl 288 21697 0 15361 453 0 453 453 0 8 0 anonpl 24 3180539 0 3161469 283 160 123 192 0 186 0 amapchunkpl 152 345791 0 344904 128 92 36 64 0 158 0 amappl16 200 26518 0 25886 95 60 35 43 0 8 0 amappl15 192 3092 0 3086 1 0 1 1 0 8 0 amappl14 184 1783 0 1774 1 0 1 1 0 8 0 amappl13 176 1538 0 1535 1 0 1 1 0 8 0 amappl12 168 823 0 819 1 0 1 1 0 8 0 amappl11 160 2863 0 2854 1 0 1 1 0 8 0 amappl10 152 1021 0 1012 1 0 1 1 0 8 0 amappl9 144 482 0 479 1 0 1 1 0 8 0 amappl8 136 2519 0 2403 5 0 5 5 0 8 0 amappl7 128 1316 0 1300 1 0 1 1 0 8 0 amappl6 120 338 0 308 3 2 1 2 0 8 0 amappl5 112 7621 0 7605 1 0 1 1 0 8 0 amappl4 104 7990 0 7962 2 1 1 2 0 8 0 amappl3 96 2834 0 2824 1 0 1 1 0 8 0 amappl2 88 2865 0 2814 3 1 2 3 0 8 0 amappl1 80 211361 0 210797 19 6 13 19 0 8 0 amappl 88 142229 0 141904 8 0 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 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 11546 0 11361 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 11546 0 11361 2 0 2 2 0 8 0 vmmpekpl 168 89845 0 89763 5 0 5 5 0 8 0 vmmpepl 168 1037499 0 1034537 269 133 136 153 0 357 0 vmsppl 368 11545 0 11361 18 1 17 17 0 8 0 rwobjpl 56 254703 0 246948 114 3 111 112 0 8 0 pdppl 4096 23099 0 22879 687 467 220 221 0 8 0 pvpl 32 5503311 0 5479517 498 294 204 328 0 265 0 pmappl 248 11545 0 11361 12 0 12 12 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 1711 0 697 31 1 30 30 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82999ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82b6e568) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82b6e568) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff8000212081b0) at syscall+0x3ef mi_syscall sys/sys/syscall_mi.h:93 [inline] syscall(ffff8000212081b0) at syscall+0x3ef sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffffb500, count: 9 ddb{0}> trace x86_ipi_db(ffffffff82999ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82b6e568) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82b6e568) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff8000212081b0) at syscall+0x3ef mi_syscall sys/sys/syscall_mi.h:93 [inline] syscall(ffff8000212081b0) at syscall+0x3ef sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffffb500, count: -6 ddb{0}> machine ddbcpu 1 Stopped at socreate+0x84: cmpq $0,0(%rax) socreate(18,ffff8000211f0928,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff800021190a80,ffff8000211f09b8,ffff8000211f0a10) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff8000211f0a80) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000211f0a80) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9af31ba3980, count: 11 ddb{1}> trace socreate(18,ffff8000211f0928,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff800021190a80,ffff8000211f09b8,ffff8000211f0a10) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff8000211f0a80) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000211f0a80) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9af31ba3980, count: -4