uvm_fault(0xfffffd806a8648b0, 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 *181075 84232 0 0 0x4000000 0K syz-executor.7 socreate(18,ffff80002e3e26a8,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff800027af3ce8,ffff80002e3e2738,ffff80002e3e2790) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e3e2800) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3e2800) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa814c2b4b60, 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(0xfffffd806a8648b0, 0x0, 0, 1) -> e ddb{0}> trace socreate(18,ffff80002e3e26a8,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff800027af3ce8,ffff80002e3e2738,ffff80002e3e2790) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e3e2800) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3e2800) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa814c2b4b60, count: -4 ddb{0}> show registers rdi 0xffff80002c359000 rsi 0x17 rbp 0xffff80002e3e2690 rbx 0x18 rdx 0xffff80002c359000 rcx 0x16 rax 0 r8 0xffffffff811cfb80 uvm_map_inentry_pc r9 0x16 r10 0 r11 0xe95201c75edcbbe6 r12 0xffff80002e3e26a8 r13 0xffffffff82675e40 inet6sw r14 0 r15 0x29 rip 0xffffffff81b8f4e4 socreate+0x84 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff80002e3e2630 ss 0x10 socreate+0x84: cmpq $0,0(%rax) ddb{0}> show proc PROC (syz-executor.7) pid=181075 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800027af3268,0xffffffff82b22b18 process=0xffff8000ffff0870 user=0xffff80002e3dd000, vmspace=0xfffffd806a8648b0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 84232 516059 89409 0 2 0 syz-executor.7 *84232 181075 89409 0 7 0x4000000 syz-executor.7 42354 195074 81941 0 2 0x480 syz-executor.2 42354 22756 81941 0 3 0x4000080 fsleep syz-executor.2 31673 332015 96217 0 2 0x480 syz-executor.6 31673 476849 96217 0 3 0x4000080 fsleep syz-executor.6 34522 42402 70985 0 2 0x480 syz-executor.0 34522 441447 70985 0 3 0x4000080 fsleep syz-executor.0 99315 348830 20584 0 2 0x480 syz-executor.1 99315 475355 20584 0 3 0x4000080 lockf syz-executor.1 99315 231789 20584 0 3 0x4000080 fsleep syz-executor.1 32598 310588 0 0 3 0x14280 nfsidl nfsio 37117 138666 0 0 3 0x14280 nfsidl nfsio 43895 458136 0 0 3 0x14280 nfsidl nfsio 31514 281928 0 0 3 0x14280 nfsidl nfsio 29875 96115 0 0 3 0x14280 nfsidl nfsio 20374 423669 0 0 3 0x14280 nfsidl nfsio 82573 257947 0 0 3 0x14280 nfsidl nfsio 44877 517778 0 0 3 0x14280 nfsidl nfsio 99028 355731 0 0 3 0x14280 nfsidl nfsio 95384 217647 0 0 3 0x14280 nfsidl nfsio 54410 477823 0 0 3 0x14280 nfsidl nfsio 85568 349657 0 0 3 0x14280 nfsidl nfsio 25753 155621 0 0 3 0x14280 nfsidl nfsio 15443 484679 0 0 3 0x14280 nfsidl nfsio 69487 81298 0 0 3 0x14280 nfsidl nfsio 75892 55934 0 0 3 0x14280 nfsidl nfsio 37643 425029 0 0 3 0x14280 nfsidl nfsio 68615 486078 0 0 3 0x14280 nfsidl nfsio 19128 295104 0 0 3 0x14280 nfsidl nfsio 70103 382679 0 0 3 0x14280 nfsidl nfsio 89409 262587 71408 0 3 0x82 nanoslp syz-executor.7 96217 391903 71408 0 3 0x82 nanoslp syz-executor.6 25711 27521 71408 0 2 0x2 syz-executor.3 19042 456673 71408 0 2 0x482 syz-executor.5 39234 400199 71408 0 2 0x482 syz-executor.4 81941 424902 71408 0 3 0x82 nanoslp syz-executor.2 20584 96632 71408 0 2 0x482 syz-executor.1 70985 513552 71408 0 2 0x482 syz-executor.0 71408 165172 50684 0 3 0x82 thrsleep syz-fuzzer 71408 363784 50684 0 2 0x4000482 syz-fuzzer 71408 22823 50684 0 3 0x4000082 kqread syz-fuzzer 71408 386782 50684 0 3 0x4000082 thrsleep syz-fuzzer 71408 121588 50684 0 3 0x4000082 thrsleep syz-fuzzer 71408 69094 50684 0 3 0x4000082 thrsleep syz-fuzzer 71408 35125 50684 0 3 0x4000082 nanoslp syz-fuzzer 71408 96989 50684 0 3 0x4000082 thrsleep syz-fuzzer 71408 14543 50684 0 3 0x4000082 thrsleep syz-fuzzer 50684 253652 8381 0 3 0x10008a sigsusp ksh 8381 135276 60014 0 3 0x9a kqread sshd 51742 45289 1 0 3 0x100083 ttyin getty 60014 169941 1 0 3 0x88 kqread sshd 97202 47342 89061 74 3 0x1100092 bpf pflogd 89061 507710 1 0 3 0x80 netio pflogd 91433 491655 39599 73 3 0x1100090 kqread syslogd 39599 113923 1 0 3 0x100082 netio syslogd 11595 478182 1 0 3 0x100080 kqread resolvd 37569 322034 80710 77 3 0x100092 kqread dhcpleased 55047 78828 80710 77 3 0x100092 kqread dhcpleased 80710 147512 1 0 3 0x80 kqread dhcpleased 78309 24399 0 0 3 0x14200 bored smr 74707 233587 0 0 2 0x14200 zerothread 59561 164089 0 0 3 0x14200 aiodoned aiodoned 72861 128045 0 0 3 0x14200 syncer update 22149 464238 0 0 3 0x14200 cleaner cleaner 86635 174677 0 0 3 0x14200 reaper reaper 68040 15231 0 0 3 0x14200 pgdaemon pagedaemon 29689 387705 0 0 3 0x14200 bored viomb 8087 17372 0 0 3 0x40014200 acpi0 acpi0 33287 93434 0 0 7 0x40014200 idle1 27320 510167 0 0 3 0x14200 bored softnet 26199 514967 0 0 3 0x14200 bored systqmp 91859 271910 0 0 3 0x14200 bored systq 65131 392589 0 0 3 0x40014200 bored softclock 79945 6731 0 0 3 0x40014200 idle0 1 277269 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 84232 (syz-executor.7) thread 0xffff800027af3ce8 (181075) 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 Process 25711 (syz-executor.3) thread 0xffff800026cc2548 (27521) exclusive rrwlock inode r = 0 (0xfffffd80718d04e8) #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 (0xfffffd8071fddd68) #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 10209 6501K 6558K 78643K 20491 0 pcb 13 12K 14K 78643K 5351 0 rtable 238 6K 7K 78643K 352 0 ifaddr 86 17K 17K 78643K 90 0 sysctl 2 0K 0K 78643K 2 0 counters 56 35K 35K 78643K 56 0 ioctlops 0 0K 4K 78643K 10804 0 iov 0 0K 8K 78643K 439 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1396 87K 87K 78643K 10620 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 17K 78643K 846 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 2492 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 15 53K 85K 78643K 65917 0 proc 68 87K 124K 78643K 507 0 subproc 104 6K 6K 78643K 104 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 99 6K 6K 78643K 99 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 223 996K 996K 78643K 223 0 exec 0 0K 2K 78643K 644 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 347 81K 82K 78643K 788023 0 UVM aobj 131 5K 6K 78643K 135 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 12 0K 2K 78643K 28 0 temp 129 4699K 4827K 78643K 153468 0 kqueue 12 18K 28K 78643K 3298 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 33 0 30 1 0 1 1 0 8 0 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 136 16783 0 16767 88 87 1 9 0 8 0 syncache 296 4 0 4 1 1 0 1 0 8 0 tcpcb 736 364 0 360 5 4 1 3 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 304 8316 0 8309 66 65 1 6 0 8 0 nd6 48 24 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 pffrag 232 10 0 10 2 2 0 1 0 482 0 pffrnode 88 6 0 6 2 2 0 1 0 8 0 pffrent 40 586 0 586 2 2 0 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 pfstitem 24 25 0 23 1 0 1 1 0 8 0 pfstkey 112 25 0 23 1 0 1 1 0 8 0 pfstate 320 25 0 23 2 1 1 2 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 453 0 0 29 0 29 29 0 8 0 art_table 32 454 0 0 4 0 4 4 0 8 0 art_node 16 110 0 10 1 0 1 1 0 8 0 semapl 112 2490 0 2480 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 71988 0 70557 91 0 91 91 0 8 0 ffsino 272 71988 0 70557 97 0 97 97 0 8 0 nchpl 144 145854 0 144188 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 422402 0 422402 2 1 1 2 0 8 1 percpumem 16 40 0 0 1 0 1 1 0 8 0 scxspl 216 416893 0 416893 44 43 1 8 0 8 1 plimitpl 152 294 0 279 1 0 1 1 0 8 0 sigapl 424 66240 0 66176 8 0 8 8 0 8 0 futexpl 64 325208 0 325204 1 0 1 1 0 8 0 knotepl 120 293 0 0 6 1 5 6 0 8 0 kqueuepl 216 9139 0 9130 47 46 1 8 0 8 0 pipepl 336 129 0 101 3 0 3 3 0 8 0 fdescpl 496 66206 0 66178 5 1 4 5 0 8 0 filepl 152 225034 0 224785 286 276 10 19 0 8 0 lockfpl 104 7021 0 7017 10 9 1 2 0 8 0 lockfspl 48 2642 0 2639 1 0 1 1 0 8 0 sessionpl 144 24 0 7 1 0 1 1 0 8 0 pgrppl 48 569 0 552 1 0 1 1 0 8 0 ucredpl 96 30688 0 30676 1 0 1 1 0 8 0 zombiepl 144 66178 0 66176 1 0 1 1 0 8 0 processpl 1064 66240 0 66176 5 0 5 5 0 8 0 procpl 672 147227 0 147149 53 45 8 9 0 8 0 sockpl 480 25156 0 25130 422 418 4 33 0 8 0 mcl64k 65536 25 0 0 4 1 3 3 0 8 0 mcl16k 16384 24 0 0 3 0 3 3 0 8 0 mcl12k 12288 57 0 0 3 1 2 2 0 8 0 mcl9k 9216 33 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 4 1 3 3 0 8 0 mcl4k 4096 33 0 0 3 0 3 3 0 8 0 mcl2k2 2112 11 0 0 1 0 1 1 0 8 0 mcl2k 2048 125 0 0 11 0 11 11 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 1246 0 0 20 4 16 19 0 8 0 bufpl 288 69723 0 63387 453 0 453 453 0 8 0 anonpl 24 16634201 0 16624144 98 33 65 66 0 186 0 amapchunkpl 152 1867223 0 1866575 120 91 29 29 0 158 2 amappl16 200 126278 0 126086 12 1 11 11 0 8 0 amappl15 192 16494 0 16487 1 0 1 1 0 8 0 amappl14 184 4 0 2 1 0 1 1 0 8 0 amappl13 176 16491 0 16487 1 0 1 1 0 8 0 amappl12 168 8253 0 8251 1 0 1 1 0 8 0 amappl11 160 16691 0 16670 1 0 1 1 0 8 0 amappl10 152 8162 0 8156 1 0 1 1 0 8 0 amappl9 144 477 0 474 1 0 1 1 0 8 0 amappl8 136 1414 0 1281 5 0 5 5 0 8 0 amappl7 128 120 0 108 1 0 1 1 0 8 0 amappl6 120 227 0 204 2 1 1 2 0 8 0 amappl5 112 50140 0 50124 1 0 1 1 0 8 0 amappl4 104 26023 0 25989 2 0 2 2 0 8 0 amappl3 96 19491 0 19476 1 0 1 1 0 8 0 amappl2 88 25920 0 25873 3 1 2 3 0 8 0 amappl1 80 1085804 0 1085231 19 5 14 19 0 8 0 amappl 88 787432 0 787216 6 0 6 6 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 66206 0 66178 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 66206 0 66178 1 0 1 1 0 8 0 vmmpekpl 168 317279 0 317221 3 0 3 3 0 8 0 vmmpepl 168 5530137 0 5528008 214 110 104 105 0 357 0 vmsppl 368 66205 0 66178 4 1 3 4 0 8 0 rwobjpl 56 1218648 0 1211361 119 15 104 104 0 8 0 pdppl 4096 132419 0 132356 965 896 69 81 0 8 6 pvpl 32 27591099 0 27576715 330 205 125 248 0 265 0 pmappl 248 66205 0 66178 3 1 2 3 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 1703 0 911 23 0 23 23 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace socreate(18,ffff80002e3e26a8,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff800027af3ce8,ffff80002e3e2738,ffff80002e3e2790) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e3e2800) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3e2800) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa814c2b4b60, count: -4 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020ce8ff0) 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 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020ce8ff0) at sched_idle+0x417 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800020ce8ff0) 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 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020ce8ff0) at sched_idle+0x417 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: -5