login: uvm_fault(0xfffffd8071cdc740, 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 *248387 49569 0 0 0x4000000 0K syz-executor.3 167000 97506 0 0x14000 0x200 1 reaper socreate(18,ffff80002e3632c8,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff8000ffff2548,ffff80002e363358,ffff80002e3633b0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e363420) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e363420) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2c2a3326130, 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(0xfffffd8071cdc740, 0x0, 0, 1) -> e ddb{0}> trace socreate(18,ffff80002e3632c8,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff8000ffff2548,ffff80002e363358,ffff80002e3633b0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e363420) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e363420) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2c2a3326130, count: -4 ddb{0}> show registers rdi 0xffff80002467b000 rsi 0x190e __ALIGN_SIZE+0x90e rbp 0xffff80002e3632b0 rbx 0x18 rdx 0xffff80002467b000 rcx 0x190d __ALIGN_SIZE+0x90d rax 0 r8 0xffffffff811cfb80 uvm_map_inentry_pc r9 0x16 r10 0 r11 0xce5f82f81cbc9168 r12 0xffff80002e3632c8 r13 0xffffffff82675e40 inet6sw r14 0 r15 0x29 rip 0xffffffff81b8f4e4 socreate+0x84 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff80002e363250 ss 0x10 socreate+0x84: cmpq $0,0(%rax) ddb{0}> show proc PROC (syz-executor.3) pid=248387 stat=onproc flags process=0 proc=4000000 pri=77, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff800021142a88,0xffffffff82b22b18 process=0xffff8000295494e0 user=0xffff80002e35e000, vmspace=0xfffffd8071cdc740 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 49569 452658 45587 0 2 0 syz-executor.3 *49569 248387 45587 0 7 0x4000000 syz-executor.3 97095 143325 26704 0 2 0 syz-executor.0 57277 214928 55001 0 2 0 syz-executor.6 57277 250443 55001 0 2 0x4000000 syz-executor.6 21950 446859 64834 0 2 0 syz-executor.7 21950 103996 64834 0 3 0x4000080 fsleep syz-executor.7 98141 283311 58218 0 2 0 syz-executor.2 37078 521320 99761 0 2 0 syz-executor.1 37078 206578 99761 0 2 0x4000000 syz-executor.1 37078 61790 99761 0 2 0x4000000 syz-executor.1 37078 223693 99761 0 3 0x4000080 fsleep syz-executor.1 37078 78189 99761 0 2 0x4000000 syz-executor.1 37078 480140 99761 0 2 0x4000000 syz-executor.1 66181 444879 1 0 3 0x100083 ttyin getty 83878 298239 0 0 3 0x14200 acct acct 54552 253367 0 0 3 0x14200 bored sosplice 64834 468214 80959 0 3 0x82 nanoslp syz-executor.7 55001 446824 80959 0 3 0x82 nanoslp syz-executor.6 27624 217870 80959 0 3 0x82 nanoslp syz-executor.5 58218 333998 80959 0 2 0x2 syz-executor.2 90156 354687 80959 0 2 0x2 syz-executor.4 45587 465384 80959 0 3 0x82 nanoslp syz-executor.3 99761 146799 80959 0 2 0x2 syz-executor.1 26704 362208 80959 0 3 0x82 nanoslp syz-executor.0 80959 147047 56566 0 3 0x82 thrsleep syz-fuzzer 80959 394287 56566 0 3 0x4000082 nanoslp syz-fuzzer 80959 71799 56566 0 2 0x4000082 syz-fuzzer 80959 383564 56566 0 3 0x4000082 thrsleep syz-fuzzer 80959 118405 56566 0 3 0x4000082 thrsleep syz-fuzzer 80959 397821 56566 0 3 0x4000082 kqread syz-fuzzer 80959 78574 56566 0 3 0x4000082 thrsleep syz-fuzzer 80959 342924 56566 0 3 0x4000082 thrsleep syz-fuzzer 80959 32547 56566 0 3 0x4000082 thrsleep syz-fuzzer 56566 472365 6547 0 3 0x10008a sigsusp ksh 6547 266710 55639 0 2 0x9a sshd 55639 67664 1 0 3 0x88 kqread sshd 44137 416172 70069 74 3 0x1100092 bpf pflogd 70069 515245 1 0 3 0x80 netio pflogd 99582 157854 11050 73 3 0x1100090 kqread syslogd 11050 7712 1 0 3 0x100082 netio syslogd 9801 351908 1 0 3 0x100080 kqread resolvd 69666 319881 11951 77 3 0x100092 kqread dhcpleased 84061 225847 11951 77 3 0x100092 kqread dhcpleased 11951 396381 1 0 3 0x80 kqread dhcpleased 98938 465181 0 0 3 0x14200 bored smr 25635 101308 0 0 2 0x14200 zerothread 98636 471711 0 0 3 0x14200 aiodoned aiodoned 8032 516397 0 0 3 0x14200 syncer update 75473 400827 0 0 3 0x14200 cleaner cleaner 97506 167000 0 0 7 0x14200 reaper 67617 151445 0 0 3 0x14200 pgdaemon pagedaemon 79293 206640 0 0 3 0x14200 bored viomb 62185 16922 0 0 3 0x40014200 acpi0 acpi0 88113 492237 0 0 3 0x40014200 idle1 81884 399508 0 0 3 0x14200 bored softnet 10384 143439 0 0 3 0x14200 bored systqmp 29046 152310 0 0 3 0x14200 bored systq 82701 314951 0 0 3 0x40014200 bored softclock 80772 145907 0 0 3 0x40014200 idle0 1 347145 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 1: exclusive mutex pvpl r = 0 (0xffffffff82a68870) #0 witness_lock+0x44d #1 mtx_enter_try+0x100 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 pool_put+0x8a sys/kern/subr_pool.c:799 #4 pmap_do_remove+0x607 sys/arch/amd64/amd64/pmap.c:1879 #5 uvm_unmap_kill_entry_withlock+0x1af sys/uvm/uvm_map.c:2139 #6 uvm_map_teardown+0x197 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] #6 uvm_map_teardown+0x197 sys/uvm/uvm_map.c:2771 #7 uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685 #8 reaper+0x18b sys/kern/kern_exit.c:457 #9 proc_trampoline+0x1c Process 49569 (syz-executor.3) thread 0xffff8000ffff2548 (248387) 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 10186 6555K 6685K 78643K 12023 0 pcb 13 12K 13K 78643K 555 0 rtable 249 9K 10K 78643K 413 0 ifaddr 90 18K 19K 78643K 113 0 sysctl 2 0K 0K 78643K 2 0 counters 56 35K 35K 78643K 62 0 ioctlops 0 0K 4K 78643K 1512 0 iov 0 0K 16K 78643K 137 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1331 83K 83K 78643K 1577 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 3 5K 5K 78643K 11 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 102 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 97K 78643K 1501 0 sigio 0 0K 0K 78643K 6 0 proc 70 87K 124K 78643K 588 0 subproc 104 6K 6K 78643K 104 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 50 0 in_multi 99 6K 7K 78643K 111 0 ether_multi 1 0K 0K 78643K 7 0 mrt 0 0K 0K 78643K 6 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 2K 78643K 674 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 322 81K 83K 78643K 20114 0 UVM aobj 20 6K 6K 78643K 23 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 249 0 NDP 12 0K 2K 78643K 31 0 temp 132 4705K 4773K 78643K 21479 0 kqueue 12 18K 22K 78643K 71 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 93 0 90 2 0 2 2 0 8 1 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 136 921 0 906 18 13 5 6 0 8 4 syncache 296 7 0 7 2 2 0 1 0 8 0 tcpqe 32 255 0 255 1 1 0 1 0 8 0 tcpcb 736 136 0 132 5 3 2 2 0 8 1 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 304 1253 0 1246 23 16 7 9 0 8 6 nd6 48 24 0 0 1 0 1 1 0 8 0 pkpcb 40 8 0 8 2 2 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 pfstscr 40 9 0 9 3 3 0 1 0 8 0 pffrag 232 5 0 0 1 0 1 1 0 482 0 pffrnode 88 5 0 0 1 0 1 1 0 8 0 pffrent 40 14 0 9 2 1 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 7 0 2 1 0 1 1 0 8 0 pfstitem 24 19 0 17 1 0 1 1 0 8 0 pfstkey 112 35 0 33 1 0 1 1 0 8 0 pfstate 320 26 0 24 2 1 1 2 0 8 0 pfrule 1360 26 0 18 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 452 0 0 29 0 29 29 0 8 0 art_table 32 453 0 0 4 0 4 4 0 8 0 art_node 16 110 0 10 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 1 1 0 1 1 0 8 0 semupl 112 5 0 5 2 2 0 1 0 8 0 semapl 112 98 0 88 1 0 1 1 0 8 0 shmpl 112 20 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3142 0 1704 91 0 91 91 0 8 0 ffsino 272 3142 0 1704 97 0 97 97 0 8 0 nchpl 144 5165 0 3498 63 0 63 63 0 8 0 uvmvnodes 80 3439 0 0 71 0 71 71 0 8 0 vnodes 224 3439 0 0 203 0 203 203 0 8 0 namei 1024 15665 0 15665 8 7 1 2 0 8 1 percpumem 16 43 0 3 1 0 1 1 0 8 0 pfiaddrpl 120 6 0 0 1 0 1 1 0 8 0 scxspl 216 15256 0 15256 11 10 1 6 0 8 1 plimitpl 152 82 0 67 1 0 1 1 0 8 0 sigapl 424 1807 0 1761 6 0 6 6 0 8 0 futexpl 64 8043 0 8041 2 1 1 1 0 8 0 knotepl 120 190 0 0 6 0 6 6 0 8 0 kqueuepl 216 89 0 81 1 0 1 1 0 8 0 pipepl 336 222 0 194 3 0 3 3 0 8 0 fdescpl 496 1791 0 1762 5 1 4 5 0 8 0 filepl 152 8105 0 7866 34 19 15 18 0 8 5 lockfpl 104 103 0 101 1 0 1 1 0 8 0 lockfspl 48 49 0 47 1 0 1 1 0 8 0 sessionpl 144 25 0 8 1 0 1 1 0 8 0 pgrppl 48 127 0 110 1 0 1 1 0 8 0 ucredpl 96 826 0 813 1 0 1 1 0 8 0 zombiepl 144 1762 0 1761 2 1 1 1 0 8 0 processpl 1064 1807 0 1761 4 0 4 4 0 8 0 procpl 672 3890 0 3828 11 4 7 7 0 8 1 sosppl 168 5 0 5 2 1 1 1 0 8 1 sockpl 480 2283 0 2258 86 66 20 29 0 8 16 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 9 0 0 2 0 2 2 0 8 0 mcl12k 12288 12 0 0 2 0 2 2 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 220 0 0 27 0 27 27 0 8 0 mtagpl 96 162 0 0 4 0 4 4 0 8 0 mbufpl 256 441 0 0 23 0 23 23 0 8 0 bufpl 288 5624 0 148 392 0 392 392 0 8 0 anonpl 24 438019 0 418789 151 30 121 141 0 186 1 amapchunkpl 152 47573 0 46737 41 3 38 41 0 158 0 amappl16 200 4025 0 3427 49 17 32 43 0 8 0 amappl15 192 282 0 278 1 0 1 1 0 8 0 amappl14 184 358 0 356 1 0 1 1 0 8 0 amappl13 176 236 0 233 1 0 1 1 0 8 0 amappl12 168 198 0 193 1 0 1 1 0 8 0 amappl11 160 54 0 39 1 0 1 1 0 8 0 amappl10 152 210 0 201 1 0 1 1 0 8 0 amappl9 144 659 0 652 1 0 1 1 0 8 0 amappl8 136 807 0 740 3 0 3 3 0 8 0 amappl7 128 304 0 286 1 0 1 1 0 8 0 amappl6 120 399 0 375 2 1 1 2 0 8 0 amappl5 112 1780 0 1761 1 0 1 1 0 8 0 amappl4 104 865 0 842 2 1 1 2 0 8 0 amappl3 96 398 0 386 1 0 1 1 0 8 0 amappl2 88 736 0 691 3 1 2 3 0 8 0 amappl1 80 33793 0 33229 19 5 14 19 0 8 0 amappl 88 19618 0 19382 7 0 7 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 22 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1791 0 1762 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1791 0 1762 1 0 1 1 0 8 0 vmmpekpl 168 14832 0 14779 3 0 3 3 0 8 0 vmmpepl 168 161230 0 158698 175 57 118 148 0 357 2 vmsppl 368 1790 0 1761 4 1 3 4 0 8 0 rwobjpl 56 41384 0 36352 72 0 72 72 0 8 0 pdppl 4096 3589 0 3522 147 78 69 85 0 8 2 pvpl 32 840976 0 817533 270 75 195 252 0 265 1 pmappl 248 1790 0 1761 3 1 2 3 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 843 0 92 22 0 22 22 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace socreate(18,ffff80002e3632c8,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff8000ffff2548,ffff80002e363358,ffff80002e3633b0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e363420) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e363420) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2c2a3326130, 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x16 kd_curproc sys/dev/kcov.c:574 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x16 sys/dev/kcov.c:148 __mp_lock(ffffffff82b6e568) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82b6e568) at __mp_lock+0x133 sys/kern/kern_lock.c:147 uvm_unmap_detach(ffff8000211359d0,1) at uvm_unmap_detach+0x113 sys/uvm/uvm_map.c:1615 uvm_map_teardown(fffffd8008716b80) at uvm_map_teardown+0x262 sys/uvm/uvm_map.c:2789 uvmspace_free(fffffd8008716b80) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685 reaper(ffff8000210f9a40) at reaper+0x18b sys/kern/kern_exit.c:457 end trace frame: 0x0, count: 6 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x16 kd_curproc sys/dev/kcov.c:574 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x16 sys/dev/kcov.c:148 __mp_lock(ffffffff82b6e568) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82b6e568) at __mp_lock+0x133 sys/kern/kern_lock.c:147 uvm_unmap_detach(ffff8000211359d0,1) at uvm_unmap_detach+0x113 sys/uvm/uvm_map.c:1615 uvm_map_teardown(fffffd8008716b80) at uvm_map_teardown+0x262 sys/uvm/uvm_map.c:2789 uvmspace_free(fffffd8008716b80) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685 reaper(ffff8000210f9a40) at reaper+0x18b sys/kern/kern_exit.c:457 end trace frame: 0x0, count: -9