uvm_fault(0xfffffd807a34d300, 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 *200525 60343 0 0 0x4000000 0K syz-executor.5 socreate(18,ffff80002467e8d8,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff8000ffff5ce8,ffff80002467e968,ffff80002467e9c0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002467ea30) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002467ea30) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xca723459230, 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(0xfffffd807a34d300, 0x0, 0, 1) -> e ddb{0}> trace socreate(18,ffff80002467e8d8,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff8000ffff5ce8,ffff80002467e968,ffff80002467e9c0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002467ea30) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002467ea30) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xca723459230, count: -4 ddb{0}> show registers rdi 0xffff80002ab0b000 rsi 0x17 rbp 0xffff80002467e8c0 rbx 0x18 rdx 0xffff80002ab0b000 rcx 0x16 rax 0 r8 0xffffffff811cfb80 uvm_map_inentry_pc r9 0x16 r10 0 r11 0xe3d67a3c21223be2 r12 0xffff80002467e8d8 r13 0xffffffff82675e40 inet6sw r14 0 r15 0x29 rip 0xffffffff81b8f4e4 socreate+0x84 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff80002467e860 ss 0x10 socreate+0x84: cmpq $0,0(%rax) ddb{0}> show proc PROC (syz-executor.5) pid=200525 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff5508,0xffffffff82b22b18 process=0xffff8000fffecc98 user=0xffff800024679000, vmspace=0xfffffd807a34d300 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 60343 175477 7489 0 2 0 syz-executor.5 *60343 200525 7489 0 7 0x4000000 syz-executor.5 44803 489971 59271 0 2 0 syz-executor.2 44803 74905 59271 0 3 0x4000080 fsleep syz-executor.2 87521 459097 86061 0 2 0 syz-executor.6 87521 411814 86061 0 3 0x4000080 fsleep syz-executor.6 66144 508043 20216 0 2 0 syz-executor.3 66144 359381 20216 0 3 0x4000080 fsleep syz-executor.3 65298 355791 34901 0 2 0 syz-executor.4 65756 434184 80876 0 3 0x82 piperd syz-executor.1 7489 368387 80876 0 3 0x82 nanoslp syz-executor.5 20216 60787 80876 0 3 0x82 nanoslp syz-executor.3 34901 57415 80876 0 3 0x82 nanoslp syz-executor.4 36717 317537 0 0 3 0x14200 bored sosplice 70224 521673 80876 0 2 0x2 syz-executor.7 86061 46551 80876 0 3 0x82 nanoslp syz-executor.6 59271 187536 80876 0 3 0x82 nanoslp syz-executor.2 36919 369965 80876 0 2 0x2 syz-executor.0 80876 291285 77014 0 3 0x82 kqread syz-fuzzer 80876 340113 77014 0 3 0x4000082 thrsleep syz-fuzzer 80876 56368 77014 0 3 0x4000082 thrsleep syz-fuzzer 80876 115444 77014 0 3 0x4000082 thrsleep syz-fuzzer 80876 189713 77014 0 3 0x4000082 thrsleep syz-fuzzer 80876 299585 77014 0 3 0x4000082 thrsleep syz-fuzzer 80876 386095 77014 0 3 0x4000082 thrsleep syz-fuzzer 80876 467090 77014 0 3 0x4000082 thrsleep syz-fuzzer 80876 255205 77014 0 3 0x4000082 thrsleep syz-fuzzer 77014 224288 67008 0 3 0x10008a sigsusp ksh 67008 210354 50537 0 3 0x9a kqread sshd 98944 216271 1 0 3 0x100083 ttyin getty 50537 400863 1 0 3 0x88 kqread sshd 10645 506568 86483 74 3 0x1100092 bpf pflogd 86483 520165 1 0 3 0x80 netio pflogd 66922 399274 49980 73 3 0x1100090 kqread syslogd 49980 255473 1 0 3 0x100082 netio syslogd 47591 13321 1 0 3 0x100080 kqread resolvd 57094 450072 63154 77 3 0x100092 kqread dhcpleased 86203 517173 63154 77 3 0x100092 kqread dhcpleased 63154 314209 1 0 3 0x80 kqread dhcpleased 33293 357268 0 0 3 0x14200 bored smr 12990 227775 0 0 2 0x14200 zerothread 55316 331655 0 0 3 0x14200 aiodoned aiodoned 2493 370108 0 0 3 0x14200 syncer update 52618 133794 0 0 3 0x14200 cleaner cleaner 84572 205828 0 0 3 0x14200 reaper reaper 10143 392710 0 0 3 0x14200 pgdaemon pagedaemon 49913 138505 0 0 3 0x14200 bored viomb 11895 326071 0 0 3 0x40014200 acpi0 acpi0 29911 471295 0 0 7 0x40014200 idle1 66071 414847 0 0 3 0x14200 bored softnet 19869 517299 0 0 3 0x14200 bored systqmp 31500 197331 0 0 3 0x14200 bored systq 99130 305692 0 0 3 0x40014200 bored softclock 93590 40570 0 0 3 0x40014200 idle0 1 58084 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 60343 (syz-executor.5) thread 0xffff8000ffff5ce8 (200525) 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 36919 (syz-executor.0) thread 0xffff800021192d20 (369965) exclusive rrwlock inode r = 0 (0xfffffd806c352818) #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 (0xfffffd806a8aad58) #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 10202 6500K 10789K 78643K 84159 0 pcb 13 16K 18K 78643K 8854 0 rtable 224 9K 14K 78643K 1380 0 ifaddr 93 21K 21K 78643K 646 0 sysctl 2 0K 0K 78643K 2 0 counters 56 35K 36K 78643K 216 0 ioctlops 0 0K 4K 78643K 3673 0 iov 0 0K 40K 78643K 1292 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1504 94K 94K 78643K 20983 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 117 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 12 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 15 53K 89K 78643K 25276 0 sigio 0 0K 0K 78643K 312 0 proc 71 87K 124K 78643K 1311 0 subproc 104 6K 6K 78643K 360 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1315 0 in_multi 85 5K 7K 78643K 2061 0 ether_multi 1 0K 0K 78643K 775 0 mrt 1 0K 0K 78643K 21 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 181 811K 811K 78643K 181 0 exec 0 0K 2K 78643K 1936 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 555 703K 704K 78643K 317175 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 4355 0 NDP 12 0K 2K 78643K 155 0 temp 137 4717K 4973K 78643K 124155 0 kqueue 13 20K 24K 78643K 785 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 598 0 595 9 8 1 3 0 8 0 rtentry 112 365 0 270 4 0 4 4 0 8 0 unpcb 136 14045 0 14030 115 114 1 9 0 8 0 syncache 296 52 0 52 13 12 1 1 0 8 1 tcpqe 32 5 0 5 2 2 0 1 0 8 0 tcpcb 736 16455 0 16445 209 207 2 22 0 8 1 arp 120 57 0 39 1 0 1 1 0 8 0 inpcb 304 45044 0 45037 231 228 3 19 0 8 2 rttmr 72 12 0 12 4 4 0 1 0 8 0 ip6q 72 3 0 3 1 1 0 1 0 8 0 ip6af 40 9 0 9 1 1 0 1 0 8 0 nd6 48 94 0 72 1 0 1 1 0 8 0 pkpcb 40 14 0 14 4 4 0 1 0 8 0 kcovpl 48 26 0 18 1 0 1 1 0 8 0 ppxss 1248 38 0 38 7 7 0 1 0 8 0 pfstscr 40 68 0 68 1 1 0 1 0 8 0 pffrag 232 52 0 46 7 6 1 1 0 482 0 pffrnode 88 51 0 46 7 6 1 1 0 8 0 pffrent 40 426 0 420 7 6 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 59 0 54 4 3 1 2 0 8 0 pftag 88 21 0 15 1 0 1 1 0 8 0 pfqueue 264 13 0 13 3 3 0 1 0 8 0 pfstitem 24 66 0 64 1 0 1 1 0 8 0 pfstkey 112 154 0 152 1 0 1 1 0 8 0 pfstate 320 144 0 142 3 2 1 3 0 8 0 pfrule 1360 295 0 282 5 3 2 3 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1513 0 1096 32 5 27 31 0 8 0 art_table 32 1514 0 1096 4 0 4 4 0 8 0 art_node 16 361 0 277 1 0 1 1 0 8 0 sysvmsgpl 40 49 0 29 1 0 1 1 0 8 0 semapl 112 10 0 0 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 29871 0 28415 92 0 92 92 0 8 0 ffsino 272 29871 0 28415 98 0 98 98 0 8 0 nchpl 144 61355 0 59723 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 191032 0 191032 8 7 1 2 0 8 1 percpumem 16 120 0 80 1 0 1 1 0 8 0 vcpupl 2048 176 0 0 22 0 22 22 0 8 0 vmpool 560 183 0 7 13 0 13 13 0 8 0 pfiaddrpl 120 34 0 29 3 2 1 1 0 8 0 scsiplug 72 4 0 4 1 1 0 1 0 8 0 scxspl 216 176735 0 176735 14 13 1 8 0 8 1 plimitpl 152 938 0 923 1 0 1 1 0 8 0 sigapl 424 25562 0 25519 8 1 7 8 0 8 0 futexpl 64 270818 0 270815 7 6 1 1 0 8 0 knotepl 120 155 0 0 4 0 4 4 0 8 0 kqueuepl 216 16661 0 16649 150 143 7 12 0 8 6 pipepl 336 3823 0 3795 123 120 3 13 0 8 0 fdescpl 496 25527 0 25499 5 0 5 5 0 8 0 filepl 152 177134 0 176890 219 201 18 24 0 8 8 lockfpl 104 4048 0 4045 10 8 2 2 0 8 1 lockfspl 48 1444 0 1441 1 0 1 1 0 8 0 sessionpl 144 42 0 25 1 0 1 1 0 8 0 pgrppl 48 57 0 40 1 0 1 1 0 8 0 ucredpl 96 7738 0 7725 1 0 1 1 0 8 0 zombiepl 144 25519 0 25519 2 1 1 1 0 8 1 processpl 1064 25562 0 25519 5 0 5 5 0 8 0 procpl 672 68723 0 68668 31 25 6 9 0 8 0 srpgc 96 24 0 24 4 4 0 1 0 8 0 sosppl 168 2175 0 2175 21 21 0 1 0 8 0 sockpl 480 59713 0 59688 770 763 7 34 0 8 3 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 25 0 0 4 1 3 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 33 0 0 5 2 3 3 0 8 0 mcl4k 4096 25 0 0 4 1 3 3 0 8 0 mcl2k2 2112 17 0 0 2 0 2 2 0 8 0 mcl2k 2048 496 0 0 29 9 20 29 0 8 0 mtagpl 96 1989 0 0 42 0 42 42 0 8 0 mbufpl 256 8859 0 0 548 0 548 548 0 8 0 bufpl 288 33547 0 27211 453 0 453 453 0 8 0 anonpl 24 6840389 0 6820259 317 190 127 166 0 186 0 amapchunkpl 152 766207 0 765335 123 86 37 49 0 158 1 amappl16 200 56683 0 56040 141 106 35 57 0 8 0 amappl15 192 3917 0 3909 1 0 1 1 0 8 0 amappl14 184 3899 0 3894 1 0 1 1 0 8 0 amappl13 176 3454 0 3450 1 0 1 1 0 8 0 amappl12 168 6065 0 6059 2 1 1 1 0 8 0 amappl11 160 2269 0 2253 1 0 1 1 0 8 0 amappl10 152 107 0 100 1 0 1 1 0 8 0 amappl9 144 6953 0 6948 1 0 1 1 0 8 0 amappl8 136 4416 0 4251 6 0 6 6 0 8 0 amappl7 128 3091 0 3078 1 0 1 1 0 8 0 amappl6 120 6749 0 6722 2 1 1 2 0 8 0 amappl5 112 17116 0 17100 1 0 1 1 0 8 0 amappl4 104 8954 0 8919 6 5 1 2 0 8 0 amappl3 96 10426 0 10408 1 0 1 1 0 8 0 amappl2 88 5098 0 5045 3 1 2 3 0 8 0 amappl1 80 449712 0 449144 20 6 14 19 0 8 0 amappl 88 316034 0 315723 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 130 0 0 3 0 3 3 0 8 0 uaddrrnd 24 25710 0 25506 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 25710 0 25506 2 0 2 2 0 8 0 vmmpekpl 168 158661 0 158593 5 1 4 4 0 8 0 vmmpepl 168 2248674 0 2245690 310 165 145 158 0 357 0 vmsppl 368 25709 0 25506 20 1 19 19 0 8 0 rwobjpl 56 528190 0 520364 127 15 112 117 0 8 0 pdppl 4096 51427 0 51188 729 484 245 245 0 8 6 pvpl 32 11799275 0 11774661 539 331 208 266 0 265 0 pmappl 248 25709 0 25506 13 0 13 13 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 2391 0 842 45 0 45 45 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace socreate(18,ffff80002467e8d8,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff8000ffff5ce8,ffff80002467e968,ffff80002467e9c0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002467ea30) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002467ea30) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xca723459230, 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