uvm_fault(0xfffffd806a891740, 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 *487117 53877 0 0 0x4000000 0K syz-executor.6 socreate(18,ffff800024c9ac88,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff8000ffff3ce8,ffff800024c9ad18,ffff800024c9ad70) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff800024c9ade0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800024c9ade0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3331a7e8510, 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(0xfffffd806a891740, 0x0, 0, 1) -> e ddb{0}> trace socreate(18,ffff800024c9ac88,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff8000ffff3ce8,ffff800024c9ad18,ffff800024c9ad70) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff800024c9ade0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800024c9ade0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3331a7e8510, count: -4 ddb{0}> show registers rdi 0xffff80002af09000 rsi 0xdba rbp 0xffff800024c9ac70 rbx 0x18 rdx 0xffff80002af09000 rcx 0xdb9 rax 0 r8 0xffffffff811cfb80 uvm_map_inentry_pc r9 0x15 r10 0 r11 0xe904f8de82906638 r12 0xffff800024c9ac88 r13 0xffffffff82675e40 inet6sw r14 0 r15 0x29 rip 0xffffffff81b8f4e4 socreate+0x84 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff800024c9ac10 ss 0x10 socreate+0x84: cmpq $0,0(%rax) ddb{0}> show proc PROC (syz-executor.6) pid=487117 stat=onproc flags process=0 proc=4000000 pri=83, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2fc8,0xffffffff82b22b18 process=0xffff8000fffef1f8 user=0xffff800024c95000, vmspace=0xfffffd806a891740 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 53877 150067 2737 0 2 0 syz-executor.6 *53877 487117 2737 0 7 0x4000000 syz-executor.6 35065 149261 13621 0 2 0 syz-executor.3 35065 218475 13621 0 3 0x4000080 fsleep syz-executor.3 19551 489087 90061 0 2 0 syz-executor.0 19551 55902 90061 0 3 0x4000080 fsleep syz-executor.0 70728 240790 54012 0 2 0 syz-executor.7 70728 199961 54012 0 3 0x4000080 rest syz-executor.7 55350 247248 61785 0 2 0 syz-executor.4 55350 346705 61785 0 3 0x4000080 fsleep syz-executor.4 73367 77778 43614 0 2 0 syz-executor.5 73367 980 43614 0 3 0x4000080 fsleep syz-executor.5 13621 87442 29872 0 3 0x82 nanoslp syz-executor.3 35782 505623 1 0 3 0x100083 ttyin getty 61785 227274 29872 0 3 0x82 nanoslp syz-executor.4 54012 149352 29872 0 3 0x82 nanoslp syz-executor.7 28692 503218 0 0 3 0x14200 bored sosplice 2737 466312 29872 0 3 0x82 nanoslp syz-executor.6 43614 94600 29872 0 3 0x82 nanoslp syz-executor.5 89344 18490 29872 0 2 0x2 syz-executor.2 15055 183071 29872 0 3 0x82 piperd syz-executor.1 90061 421661 29872 0 3 0x82 nanoslp syz-executor.0 29872 235685 80542 0 3 0x82 nanoslp syz-fuzzer 29872 269613 80542 0 3 0x4000082 nanoslp syz-fuzzer 29872 332320 80542 0 3 0x4000082 thrsleep syz-fuzzer 29872 397304 80542 0 3 0x4000082 thrsleep syz-fuzzer 29872 231885 80542 0 3 0x4000082 kqread syz-fuzzer 29872 496221 80542 0 3 0x4000082 thrsleep syz-fuzzer 29872 147470 80542 0 3 0x4000082 thrsleep syz-fuzzer 29872 368788 80542 0 3 0x4000082 thrsleep syz-fuzzer 80542 342456 564 0 3 0x10008a sigsusp ksh 564 440224 85731 0 3 0x9a kqread sshd 85731 357911 1 0 3 0x88 kqread sshd 84597 518727 29270 74 3 0x1100092 bpf pflogd 29270 147914 1 0 3 0x80 netio pflogd 21109 2267 79349 73 3 0x1100090 kqread syslogd 79349 390107 1 0 3 0x100082 netio syslogd 69984 63826 1 0 3 0x100080 kqread resolvd 66587 461495 63514 77 3 0x100092 kqread dhcpleased 8997 150647 63514 77 3 0x100092 kqread dhcpleased 63514 460819 1 0 3 0x80 kqread dhcpleased 55034 30104 0 0 3 0x14200 bored smr 66952 317815 0 0 2 0x14200 zerothread 487 2877 0 0 3 0x14200 aiodoned aiodoned 51530 192707 0 0 3 0x14200 syncer update 1184 152410 0 0 3 0x14200 cleaner cleaner 21259 234244 0 0 3 0x14200 reaper reaper 44213 181618 0 0 3 0x14200 pgdaemon pagedaemon 21490 389035 0 0 3 0x14200 bored viomb 4886 380645 0 0 3 0x40014200 acpi0 acpi0 16954 346955 0 0 7 0x40014200 idle1 21944 249662 0 0 3 0x14200 bored softnet 47107 311492 0 0 3 0x14200 bored systqmp 82435 97018 0 0 3 0x14200 bored systq 31033 40556 0 0 3 0x40014200 bored softclock 65008 200650 0 0 3 0x40014200 idle0 1 282719 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 53877 (syz-executor.6) thread 0xffff8000ffff3ce8 (487117) 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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10204 6625K 6999K 78643K 15542 0 pcb 13 8K 8K 78643K 194 0 rtable 201 6K 9K 78643K 531 0 ifaddr 83 17K 19K 78643K 223 0 sysctl 3 1K 1K 78643K 3 0 counters 54 35K 35K 78643K 102 0 ioctlops 0 0K 4K 78643K 1699 0 iov 0 0K 16K 78643K 60 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1283 80K 81K 78643K 2616 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 21 0 VM map 2 1K 1K 78643K 2 0 sem 17 5K 5K 78643K 134 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 85K 78643K 4052 0 sigio 0 0K 0K 78643K 17 0 proc 72 87K 136K 78643K 892 0 subproc 104 6K 6K 78643K 143 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 227 0 in_multi 85 5K 7K 78643K 268 0 ether_multi 1 0K 0K 78643K 48 0 mrt 1 0K 0K 78643K 5 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 73 334K 334K 78643K 73 0 exec 0 0K 2K 78643K 836 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 335 118K 118K 78643K 49178 0 UVM aobj 27 2K 3K 78643K 42 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 176 0 NDP 12 0K 2K 78643K 59 0 temp 131 4703K 5342K 78643K 32845 0 kqueue 12 18K 24K 78643K 245 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 108 0 105 1 0 1 1 0 8 0 rtentry 112 148 0 59 4 0 4 4 0 8 0 unpcb 136 639 0 624 1 0 1 1 0 8 0 syncache 296 32 0 32 6 6 0 1 0 8 0 tcpqe 32 325 0 325 4 4 0 1 0 8 0 tcpcb 736 708 0 704 12 11 1 4 0 8 0 arp 120 24 0 8 1 0 1 1 0 8 0 inpcb 304 1682 0 1673 6 5 1 3 0 8 0 nd6 48 36 0 14 1 0 1 1 0 8 0 pkpcb 40 24 0 24 5 5 0 1 0 8 0 kcovpl 48 11 0 3 1 0 1 1 0 8 0 ppxss 1248 2 0 2 1 0 1 1 0 8 1 pfstscr 40 21 0 21 6 5 1 1 0 8 1 pffrag 232 14 0 13 4 3 1 1 0 482 0 pffrnode 88 14 0 13 4 3 1 1 0 8 0 pffrent 40 409 0 408 4 3 1 1 0 8 0 pfosfp 40 1434 0 1434 5 4 1 5 0 8 1 pfosfpen 112 1434 0 1434 21 4 17 21 0 8 17 pfrktable 1344 4 0 4 1 1 0 1 0 8 0 pftag 88 2 0 2 1 1 0 1 0 8 0 pfstitem 24 24 0 22 1 0 1 1 0 8 0 pfstkey 112 56 0 54 1 0 1 1 0 8 0 pfstate 320 42 0 40 2 1 1 2 0 8 0 pfrule 1360 65 0 62 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 623 0 241 30 5 25 29 0 8 0 art_table 32 624 0 241 4 0 4 4 0 8 0 art_node 16 147 0 69 1 0 1 1 0 8 0 sysvmsgpl 40 27 0 19 2 1 1 1 0 8 0 semupl 112 10 0 10 1 1 0 1 0 8 0 semapl 112 130 0 115 1 0 1 1 0 8 0 shmpl 112 39 0 15 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 6472 0 5028 91 0 91 91 0 8 0 ffsino 272 6472 0 5028 97 0 97 97 0 8 0 nchpl 144 11181 0 9548 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 29425 0 29425 4 3 1 2 0 8 1 percpumem 16 63 0 24 1 0 1 1 0 8 0 vcpupl 2048 2 0 0 1 0 1 1 0 8 0 vmpool 560 3 0 1 2 1 1 1 0 8 0 pfiaddrpl 120 1 0 1 1 1 0 1 0 8 0 scxspl 216 40628 0 40628 10 9 1 8 0 8 1 plimitpl 152 167 0 152 1 0 1 1 0 8 0 sigapl 424 4349 0 4305 7 1 6 6 0 8 0 futexpl 64 22448 0 22444 2 1 1 1 0 8 0 knotepl 120 109 0 0 4 0 4 4 0 8 0 kqueuepl 216 363 0 355 1 0 1 1 0 8 0 pipepl 336 248 0 220 3 0 3 3 0 8 0 fdescpl 496 4334 0 4305 5 1 4 5 0 8 0 filepl 152 12209 0 11964 12 2 10 11 0 8 0 lockfpl 104 389 0 387 1 0 1 1 0 8 0 lockfspl 48 166 0 164 1 0 1 1 0 8 0 sessionpl 144 28 0 11 1 0 1 1 0 8 0 pgrppl 48 35 0 18 1 0 1 1 0 8 0 ucredpl 96 1721 0 1709 1 0 1 1 0 8 0 zombiepl 144 4305 0 4305 3 2 1 1 0 8 1 processpl 1064 4349 0 4305 4 0 4 4 0 8 0 procpl 672 8579 0 8522 8 2 6 6 0 8 0 srpgc 96 2 0 2 1 1 0 1 0 8 0 sosppl 168 40 0 40 6 5 1 1 0 8 1 sockpl 480 2463 0 2436 12 8 4 7 0 8 0 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 289 0 0 20 0 20 20 0 8 0 mtagpl 96 409 0 0 10 0 10 10 0 8 0 mbufpl 256 873 0 0 47 0 47 47 0 8 0 bufpl 288 9834 0 3498 453 0 453 453 0 8 0 anonpl 24 1159544 0 1148463 283 188 95 220 0 186 19 amapchunkpl 152 121642 0 120964 105 76 29 88 0 158 0 amappl16 200 9891 0 9649 47 26 21 26 0 8 8 amappl15 192 580 0 573 1 0 1 1 0 8 0 amappl14 184 517 0 510 2 1 1 1 0 8 0 amappl13 176 528 0 527 1 0 1 1 0 8 0 amappl12 168 9 0 6 1 0 1 1 0 8 0 amappl11 160 1121 0 1100 1 0 1 1 0 8 0 amappl10 152 1516 0 1503 1 0 1 1 0 8 0 amappl9 144 937 0 932 1 0 1 1 0 8 0 amappl8 136 712 0 633 3 0 3 3 0 8 0 amappl7 128 133 0 122 1 0 1 1 0 8 0 amappl6 120 735 0 713 2 1 1 2 0 8 0 amappl5 112 3967 0 3945 1 0 1 1 0 8 0 amappl4 104 3228 0 3193 2 1 1 2 0 8 0 amappl3 96 665 0 651 1 0 1 1 0 8 0 amappl2 88 1026 0 978 3 1 2 3 0 8 0 amappl1 80 74157 0 73564 23 9 14 19 0 8 1 amappl 88 48571 0 48330 7 1 6 7 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 41 0 15 1 0 1 1 0 8 0 uaddrrnd 24 4337 0 4306 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4337 0 4306 1 0 1 1 0 8 0 vmmpekpl 168 25465 0 25411 3 0 3 3 0 8 0 vmmpepl 168 372674 0 370451 145 30 115 115 0 357 11 vmsppl 368 4336 0 4306 4 1 3 4 0 8 0 rwobjpl 56 88673 0 81468 106 0 106 106 0 8 2 pdppl 4096 8681 0 8614 186 114 72 79 0 8 5 pvpl 32 2221573 0 2206018 604 438 166 406 0 265 22 pmappl 248 4336 0 4306 4 1 3 3 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 961 0 137 24 0 24 24 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace socreate(18,ffff800024c9ac88,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff8000ffff3ce8,ffff800024c9ad18,ffff800024c9ad70) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff800024c9ade0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800024c9ade0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3331a7e8510, 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