uvm_fault(0xfffffd807effe8a0, 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 58002 27242 32767 0x10 0 1 syz-executor.7 * 68044 53398 32767 0x10 0x4000000 0K syz-executor.0 socreate(18,ffff80002e40b678,3,2c) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff800022c78008,ffff80002e40b708,ffff80002e40b760) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e40b7d0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e40b7d0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x17cf6aef3e0, 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(0xfffffd807effe8a0, 0x0, 0, 1) -> e ddb{0}> trace socreate(18,ffff80002e40b678,3,2c) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff800022c78008,ffff80002e40b708,ffff80002e40b760) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e40b7d0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e40b7d0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x17cf6aef3e0, count: -4 ddb{0}> show registers rdi 0xffff800021238000 rsi 0x2c rbp 0xffff80002e40b660 rbx 0x18 rdx 0xffff800021238000 rcx 0x2b rax 0 r8 0xffffffff81e690f0 uvm_map_inentry_pc r9 0x18 r10 0 r11 0x43c265d34c9b9756 r12 0xffff80002e40b678 r13 0xffffffff8288cf78 inet6sw+0x2d8 r14 0x3 r15 0x2c rip 0xffffffff81e82144 socreate+0x84 cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff80002e40b600 ss 0x10 socreate+0x84: cmpq $0,0(%rax) ddb{0}> show proc PROC (syz-executor.0) pid=68044 stat=onproc flags process=10 proc=4000000 pri=32, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff80002122c2a0,0xffff800022c78558 process=0xffff8000212294e0 user=0xffff80002e406000, vmspace=0xfffffd807effe8a0 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 27242 58002 81865 32767 7 0x10 syz-executor.7 27242 315313 81865 32767 2 0x4000010 syz-executor.7 33463 163590 37356 32767 2 0x4081010 syz-executor.2 33463 466983 37356 32767 3 0x4003010 suspend syz-executor.2 83732 273392 42793 32767 2 0x10 syz-executor.3 83732 24963 42793 32767 3 0x4000090 ttyin syz-executor.3 92053 396507 96521 32767 2 0x10 syz-executor.1 92053 206876 96521 32767 3 0x4000090 fsleep syz-executor.1 53398 280105 76585 32767 2 0x10 syz-executor.0 *53398 68044 76585 32767 7 0x4000010 syz-executor.0 45146 513723 33233 32767 3 0x90 nanoslp syz-executor.6 45146 25328 33233 32767 3 0x4000090 netcon syz-executor.6 45146 258958 33233 32767 3 0x4000090 fsleep syz-executor.6 33799 313812 74281 32767 2 0x10 syz-executor.5 33799 424255 74281 32767 3 0x4000090 ttyout syz-executor.5 33799 490061 74281 32767 2 0x4000010 syz-executor.5 81865 29775 8086 32767 2 0x490 syz-executor.7 8086 384367 39010 0 3 0x82 wait syz-executor.7 42793 81828 941 32767 2 0x490 syz-executor.3 941 478219 39010 0 3 0x82 wait syz-executor.3 37356 127401 68010 32767 2 0x490 syz-executor.2 68010 338481 39010 0 3 0x82 wait syz-executor.2 86125 297815 90917 32767 2 0x10 syz-executor.4 90917 208478 39010 0 3 0x82 wait syz-executor.4 74281 130625 63386 32767 3 0x90 nanoslp syz-executor.5 63386 495473 39010 0 3 0x82 wait syz-executor.5 96521 151665 23553 32767 2 0x490 syz-executor.1 23553 375427 39010 0 3 0x82 wait syz-executor.1 33233 500284 60143 32767 3 0x90 nanoslp syz-executor.6 60143 64262 39010 0 3 0x82 wait syz-executor.6 13369 146640 0 0 3 0x14200 bored sosplice 76585 301994 88913 32767 2 0x490 syz-executor.0 88913 378636 39010 0 3 0x82 wait syz-executor.0 39010 43303 6032 0 3 0x82 thrsleep syz-fuzzer 39010 441048 6032 0 3 0x4000082 thrsleep syz-fuzzer 39010 455039 6032 0 3 0x4000082 thrsleep syz-fuzzer 39010 162320 6032 0 3 0x4000082 thrsleep syz-fuzzer 39010 398603 6032 0 3 0x4000082 thrsleep syz-fuzzer 39010 358068 6032 0 3 0x4000082 thrsleep syz-fuzzer 39010 200183 6032 0 3 0x4000082 kqread syz-fuzzer 39010 181115 6032 0 3 0x4000082 thrsleep syz-fuzzer 6032 229648 98610 0 3 0x10008a sigsusp ksh 98610 192499 30324 0 3 0x9a kqread sshd 73767 411764 1 0 3 0x100083 ttyin getty 30324 246219 1 0 3 0x88 kqread sshd 6465 323390 9184 73 3 0x1100090 kqread syslogd 9184 110882 1 0 3 0x100082 netio syslogd 83785 293772 1 0 3 0x100080 kqread resolvd 92898 495327 85562 77 3 0x100092 kqread dhcpleased 26885 502619 85562 77 3 0x100092 kqread dhcpleased 85562 27424 1 0 3 0x80 kqread dhcpleased 2364 245677 0 0 3 0x14200 bored smr 82701 320157 0 0 2 0x14200 zerothread 64187 250375 0 0 3 0x14200 aiodoned aiodoned 29673 321695 0 0 3 0x14200 syncer update 16307 498111 0 0 3 0x14200 cleaner cleaner 54076 41280 0 0 3 0x14200 reaper reaper 69828 163989 0 0 3 0x14200 pgdaemon pagedaemon 46059 441334 0 0 3 0x14200 bored viomb 68064 172076 0 0 3 0x40014200 acpi0 acpi0 25468 227918 0 0 3 0x40014200 idle1 16988 223838 0 0 3 0x14200 bored softnet 23678 451466 0 0 3 0x14200 bored systqmp 87694 254142 0 0 3 0x14200 bored systq 93881 138455 0 0 2 0x40014200 softclock 37515 244617 0 0 3 0x40014200 idle0 1 197951 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 53398 (syz-executor.0) thread 0xffff800022c78008 (68044) 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_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 10219 6413K 6419K 78643K 11350 0 pcb 13 12K 14K 78643K 17 0 rtable 268 7K 8K 78643K 2149 0 ifaddr 81 17K 17K 78643K 174 0 sysctl 3 1K 5K 78643K 108 0 counters 56 35K 35K 78643K 82 0 ioctlops 0 0K 2K 78643K 283 0 iov 0 0K 32K 78643K 4064 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1271 79K 79K 78643K 5167 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 200 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 4369 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 25 93K 117K 78643K 21163 0 sigio 0 0K 0K 78643K 327 0 proc 57 86K 99K 78643K 2119 0 subproc 104 6K 6K 78643K 273 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 19257 0 in_multi 99 6K 7K 78643K 563 0 ether_multi 1 0K 0K 78643K 130 0 mrt 2 0K 0K 78643K 4 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 331 1473K 1473K 78643K 331 0 exec 0 0K 2K 78643K 3632 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 497 96K 110K 78643K 275635 0 UVM aobj 131 4K 4K 78643K 134 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 623 0 NDP 11 0K 2K 78643K 66 0 temp 126 4703K 4831K 78643K 52944 0 kqueue 12 18K 26K 78643K 1705 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 1818 0 1815 27 26 1 5 0 8 0 rtentry 112 305 0 180 4 0 4 4 0 8 0 unpcb 136 16926 0 16913 158 156 2 9 0 8 1 syncache 296 238 0 238 42 41 1 1 0 8 1 tcpqe 32 135 0 135 26 26 0 1 0 8 0 tcpcb 736 11900 0 11888 311 301 10 26 0 8 7 arp 120 49 0 30 1 0 1 1 0 8 0 ipq 40 26 0 26 11 11 0 1 0 8 0 ipqe 40 282 0 282 11 11 0 1 0 8 0 inpcb 304 24792 0 24780 267 258 9 16 0 8 7 rttmr 72 16 0 14 2 1 1 1 0 8 0 ip6q 72 91 0 91 12 12 0 1 0 8 0 ip6af 40 211 0 211 12 12 0 1 0 8 0 nd6 48 106 0 70 1 0 1 1 0 8 0 kcovpl 48 21 0 13 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1252 0 659 41 3 38 38 0 8 0 art_table 32 1253 0 659 5 0 5 5 0 8 0 art_node 16 304 0 189 1 0 1 1 0 8 0 semapl 112 4367 0 4357 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 31470 0 30012 92 0 92 92 0 8 0 ffsino 272 31470 0 30012 98 0 98 98 0 8 0 nchpl 144 63432 0 61801 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 214154 0 214154 6 5 1 2 0 8 1 percpumem 16 53 0 13 1 0 1 1 0 8 0 scxspl 216 188569 0 188569 65 64 1 8 0 8 1 plimitpl 152 4328 0 4305 20 19 1 2 0 8 0 sigapl 424 21412 0 21360 7 1 6 7 0 8 0 futexpl 64 193017 0 193015 6 5 1 1 0 8 0 knotepl 120 881 0 0 17 4 13 15 0 8 0 kqueuepl 216 8077 0 8069 125 122 3 8 0 8 2 pipepl 336 5651 0 5623 141 135 6 13 0 8 3 fdescpl 496 21397 0 21361 7 2 5 6 0 8 0 filepl 152 159453 0 159212 259 244 15 20 0 8 5 lockfpl 104 3653 0 3650 2 1 1 2 0 8 0 lockfspl 48 948 0 945 1 0 1 1 0 8 0 sessionpl 144 36 0 20 1 0 1 1 0 8 0 pgrppl 48 111 0 95 1 0 1 1 0 8 0 ucredpl 96 25039 0 25021 1 0 1 1 0 8 0 zombiepl 144 21362 0 21360 1 0 1 1 0 8 0 processpl 1064 21412 0 21360 5 1 4 4 0 8 0 procpl 672 63442 0 63373 19 12 7 8 0 8 0 sosppl 168 297 0 297 38 37 1 1 0 8 1 sockpl 480 47546 0 47518 868 855 13 34 0 8 8 mcl64k 65536 97 0 0 5 2 3 3 0 8 0 mcl16k 16384 49 0 0 5 2 3 3 0 8 0 mcl12k 12288 57 0 0 3 1 2 2 0 8 0 mcl9k 9216 35 0 0 2 0 2 2 0 8 0 mcl8k 8192 34 0 0 4 1 3 3 0 8 0 mcl4k 4096 73 0 0 4 1 3 3 0 8 0 mcl2k2 2112 15 0 0 1 0 1 1 0 8 0 mcl2k 2048 424 0 0 18 4 14 18 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 6579 0 0 382 1 381 381 0 8 0 bufpl 288 38002 0 31667 453 0 453 453 0 8 0 anonpl 24 6129917 0 6114458 340 225 115 138 0 186 0 amapchunkpl 152 701693 0 700841 208 171 37 48 0 158 3 amappl16 200 58414 0 57997 258 229 29 47 0 8 6 amappl15 192 6458 0 6450 1 0 1 1 0 8 0 amappl14 184 1829 0 1823 1 0 1 1 0 8 0 amappl13 176 1118 0 1110 1 0 1 1 0 8 0 amappl12 168 2565 0 2560 1 0 1 1 0 8 0 amappl11 160 1766 0 1756 1 0 1 1 0 8 0 amappl10 152 60 0 55 1 0 1 1 0 8 0 amappl9 144 1539 0 1535 1 0 1 1 0 8 0 amappl8 136 8440 0 8196 9 0 9 9 0 8 0 amappl7 128 6704 0 6685 1 0 1 1 0 8 0 amappl6 120 1311 0 1276 3 1 2 2 0 8 0 amappl5 112 21095 0 21070 1 0 1 1 0 8 0 amappl4 104 5371 0 5339 3 1 2 2 0 8 0 amappl3 96 4399 0 4386 1 0 1 1 0 8 0 amappl2 88 3168 0 3115 3 1 2 3 0 8 0 amappl1 80 386977 0 386316 42 27 15 18 0 8 1 amappl 88 273916 0 273622 14 7 7 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 21397 0 21361 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 21397 0 21361 1 0 1 1 0 8 0 vmmpekpl 168 178667 0 178600 4 0 4 4 0 8 0 vmmpepl 168 1961386 0 1958398 323 187 136 144 0 357 2 vmsppl 368 21396 0 21361 4 0 4 4 0 8 0 rwobjpl 56 477752 0 470108 126 15 111 113 0 8 0 pdppl 4096 42801 0 42722 481 400 81 91 0 8 2 pvpl 32 10169972 0 10148677 698 509 189 260 0 265 6 pmappl 248 21396 0 21361 4 1 3 3 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 2052 0 857 35 0 35 35 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace socreate(18,ffff80002e40b678,3,2c) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff800022c78008,ffff80002e40b708,ffff80002e40b760) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e40b7d0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e40b7d0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x17cf6aef3e0, 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 end of kernel end trace frame: 0x7f7ffffdaaa0, count: 12 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 end of kernel end trace frame: 0x7f7ffffdaaa0, count: -3