uvm_fault(0xfffffd8076cc38b0, 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 *163869 58861 32767 0x10 0x4000000 1K syz-executor.4 354105 95511 0 0x14000 0x200 0 reaper socreate(18,ffff80002e3e96d8,3,2b) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff8000211427e8,ffff80002e3e9768,ffff80002e3e97c0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e3e9830) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3e9830) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x255605f5ad0, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: uvm_fault(0xfffffd8076cc38b0, 0x0, 0, 1) -> e ddb{1}> trace socreate(18,ffff80002e3e96d8,3,2b) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff8000211427e8,ffff80002e3e9768,ffff80002e3e97c0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e3e9830) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3e9830) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x255605f5ad0, count: -4 ddb{1}> show registers rdi 0xffff8000284f2000 rsi 0x29 rbp 0xffff80002e3e96c0 rbx 0x18 rdx 0xffff8000284f2000 rcx 0x28 rax 0 r8 0xffffffff81e690f0 uvm_map_inentry_pc r9 0x16 r10 0 r11 0x9e5aa55b8644ba51 r12 0xffff80002e3e96d8 r13 0xffffffff8288cf10 inet6sw+0x270 r14 0x3 r15 0x2b rip 0xffffffff81e82144 socreate+0x84 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff80002e3e9660 ss 0x10 socreate+0x84: cmpq $0,0(%rax) ddb{1}> show proc PROC (syz-executor.4) pid=163869 stat=onproc flags process=10 proc=4000000 pri=32, usrpri=72, nice=20 forw=0xffffffffffffffff, list=0xffff80002123d7a8,0xffff800022c6aaa0 process=0xffff800021228c90 user=0xffff80002e3e4000, vmspace=0xfffffd8076cc38b0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 88238 497348 10160 32767 2 0x10 syz-executor.6 58861 241654 82192 32767 2 0x10 syz-executor.4 *58861 163869 82192 32767 7 0x4000010 syz-executor.4 76647 514519 54884 32767 2 0x10 syz-executor.7 76647 322919 54884 32767 3 0x4000090 fsleep syz-executor.7 76647 270271 54884 32767 3 0x4000090 fsleep syz-executor.7 69169 295272 91128 32767 2 0x10 syz-executor.5 69169 259419 91128 32767 3 0x4000090 fifor syz-executor.5 24907 115350 28072 32767 2 0x10 syz-executor.3 24907 130416 28072 32767 3 0x4000090 fsleep syz-executor.3 24907 79653 28072 32767 3 0x4000090 fsleep syz-executor.3 6561 421978 76009 32767 3 0x90 nanoslp syz-executor.0 6561 499835 76009 32767 3 0x4000090 fsleep syz-executor.0 6561 27996 76009 32767 2 0x4000090 syz-executor.0 6561 285977 76009 32767 3 0x4000090 fsleep syz-executor.0 82192 402867 63664 32767 3 0x90 nanoslp syz-executor.4 63664 271808 94771 0 3 0x82 wait syz-executor.4 54884 523730 28571 32767 3 0x90 nanoslp syz-executor.7 28571 452898 94771 0 3 0x82 wait syz-executor.7 28072 498784 20769 32767 3 0x90 nanoslp syz-executor.3 20769 480713 94771 0 3 0x82 wait syz-executor.3 91128 141764 93677 32767 3 0x90 nanoslp syz-executor.5 93677 497807 94771 0 3 0x82 wait syz-executor.5 33748 377828 12302 32767 3 0x90 nanoslp syz-executor.2 12302 514101 94771 0 3 0x82 wait syz-executor.2 10160 126679 32848 32767 3 0x90 nanoslp syz-executor.6 32848 509059 94771 0 3 0x82 wait syz-executor.6 67155 92222 0 0 3 0x14200 bored sosplice 73862 504787 58257 32767 3 0x90 nanoslp syz-executor.1 76009 247705 36749 32767 3 0x90 nanoslp syz-executor.0 58257 178707 94771 0 3 0x82 wait syz-executor.1 36749 24088 94771 0 3 0x82 wait syz-executor.0 94771 382834 66273 0 3 0x82 thrsleep syz-fuzzer 94771 490193 66273 0 3 0x4000082 thrsleep syz-fuzzer 94771 430687 66273 0 3 0x4000082 thrsleep syz-fuzzer 94771 41069 66273 0 3 0x4000082 thrsleep syz-fuzzer 94771 120253 66273 0 3 0x4000082 thrsleep syz-fuzzer 94771 303511 66273 0 3 0x4000082 kqread syz-fuzzer 94771 254155 66273 0 3 0x4000082 thrsleep syz-fuzzer 94771 112696 66273 0 3 0x4000082 thrsleep syz-fuzzer 94771 170165 66273 0 3 0x4000082 thrsleep syz-fuzzer 94771 138421 66273 0 3 0x4000082 thrsleep syz-fuzzer 66273 29736 916 0 3 0x10008a sigsusp ksh 916 392731 75991 0 3 0x9a kqread sshd 94061 17845 1 0 3 0x100083 ttyin getty 75991 3373 1 0 3 0x88 kqread sshd 58232 67818 16219 73 3 0x1100090 kqread syslogd 16219 341409 1 0 3 0x100082 netio syslogd 53811 264848 1 0 3 0x100080 kqread resolvd 13745 453219 61030 77 3 0x100092 kqread dhcpleased 66145 303417 61030 77 3 0x100092 kqread dhcpleased 61030 467320 1 0 3 0x80 kqread dhcpleased 4626 478355 0 0 3 0x14200 bored smr 16419 1899 0 0 2 0x14200 zerothread 64517 318950 0 0 3 0x14200 aiodoned aiodoned 33804 102233 0 0 3 0x14200 syncer update 19957 496200 0 0 3 0x14200 cleaner cleaner 95511 354105 0 0 7 0x14200 reaper 25605 401722 0 0 3 0x14200 pgdaemon pagedaemon 16220 45716 0 0 3 0x14200 bored viomb 47771 256110 0 0 3 0x40014200 acpi0 acpi0 43956 275651 0 0 3 0x40014200 idle1 25822 457808 0 0 3 0x14200 bored softnet 39035 437270 0 0 3 0x14200 bored systqmp 35968 74856 0 0 3 0x14200 bored systq 85153 72971 0 0 3 0x40014200 bored softclock 22381 6263 0 0 3 0x40014200 idle0 1 103586 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 58861 (syz-executor.4) thread 0xffff8000211427e8 (163869) 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 Process 95511 (reaper) thread 0xffff8000210f9a40 (354105) kernel: protection fault trap, code=0 Faulted in DDB; continuing... ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10211 6412K 6419K 78643K 11357 0 pcb 13 12K 14K 78643K 17 0 rtable 268 7K 8K 78643K 2311 0 ifaddr 81 17K 17K 78643K 209 0 sysctl 3 1K 1K 78643K 3 0 counters 56 35K 35K 78643K 92 0 ioctlops 0 0K 2K 78643K 5242 0 iov 0 0K 24K 78643K 3385 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1272 79K 79K 78643K 7294 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 290 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 8451 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 24 89K 125K 78643K 25939 0 sigio 0 0K 0K 78643K 1847 0 proc 56 74K 111K 78643K 2497 0 subproc 104 6K 6K 78643K 338 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 2722 0 in_multi 99 6K 7K 78643K 646 0 ether_multi 1 0K 0K 78643K 111 0 mrt 5 0K 0K 78643K 5 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 283 1261K 1261K 78643K 283 0 exec 0 0K 2K 78643K 3675 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 517 98K 114K 78643K 335583 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 737 0 NDP 11 0K 2K 78643K 81 0 temp 125 4703K 4783K 78643K 63203 0 kqueue 12 18K 28K 78643K 1729 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> 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 2267 0 2264 26 25 1 3 0 8 0 rtentry 112 352 0 227 4 0 4 4 0 8 0 unpcb 136 39518 0 39502 228 227 1 11 0 8 0 syncache 296 231 0 231 39 39 0 1 0 8 0 tcpqe 32 211 0 211 25 25 0 1 0 8 0 tcpcb 736 10397 0 10393 316 315 1 22 0 8 0 arp 120 58 0 40 1 0 1 1 0 8 0 ipq 40 34 0 34 12 12 0 1 0 8 0 ipqe 40 335 0 335 12 12 0 1 0 8 0 inpcb 304 21073 0 21066 295 294 1 16 0 8 0 rttmr 72 237 0 235 1 0 1 1 0 8 0 ip6q 72 15 0 15 5 5 0 1 0 8 0 ip6af 40 37 0 37 4 4 0 1 0 8 0 nd6 48 113 0 76 1 0 1 1 0 8 0 kcovpl 48 26 0 18 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1543 0 935 44 4 40 41 0 8 0 art_table 32 1544 0 935 6 0 6 6 0 8 0 art_node 16 351 0 236 1 0 1 1 0 8 0 sysvmsgpl 40 115 0 75 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 8448 0 8438 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 36524 0 35067 92 0 92 92 0 8 0 ffsino 272 36524 0 35067 98 0 98 98 0 8 0 nchpl 144 69922 0 68294 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 227105 0 227105 5 4 1 2 0 8 1 percpumem 16 58 0 18 1 0 1 1 0 8 0 scxspl 216 207332 0 207332 74 73 1 8 0 8 1 plimitpl 152 4821 0 4798 12 11 1 2 0 8 0 sigapl 424 26178 0 26126 7 1 6 7 0 8 0 futexpl 64 239030 0 239024 6 5 1 1 0 8 0 knotepl 120 1614 0 0 25 8 17 18 0 8 0 kqueuepl 216 6976 0 6967 133 132 1 8 0 8 0 pipepl 336 10638 0 10610 198 195 3 13 0 8 0 fdescpl 496 26163 0 26128 7 2 5 6 0 8 0 filepl 152 192508 0 192265 348 337 11 25 0 8 1 lockfpl 104 2995 0 2990 2 1 1 2 0 8 0 lockfspl 48 916 0 912 1 0 1 1 0 8 0 sessionpl 144 41 0 25 1 0 1 1 0 8 0 pgrppl 48 346 0 330 1 0 1 1 0 8 0 ucredpl 96 34642 0 34624 1 0 1 1 0 8 0 zombiepl 144 26128 0 26126 1 0 1 1 0 8 0 processpl 1064 26178 0 26126 5 1 4 4 0 8 0 procpl 672 76421 0 76348 40 33 7 8 0 8 0 sosppl 168 347 0 347 38 37 1 1 0 8 1 sockpl 480 63723 0 63697 1339 1333 6 45 0 8 2 mcl64k 65536 72 0 0 4 1 3 3 0 8 0 mcl16k 16384 41 0 0 4 1 3 3 0 8 0 mcl12k 12288 41 0 0 2 0 2 2 0 8 0 mcl9k 9216 26 0 0 2 0 2 2 0 8 0 mcl8k 8192 65 0 0 6 3 3 3 0 8 0 mcl4k 4096 58 0 0 5 2 3 3 0 8 0 mcl2k2 2112 15 0 0 1 0 1 1 0 8 0 mcl2k 2048 633 0 0 27 8 19 23 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 1700 0 0 36 1 35 36 0 8 0 bufpl 288 45351 0 39017 453 0 453 453 0 8 0 anonpl 24 7566509 0 7551026 405 291 114 130 0 186 0 amapchunkpl 152 843100 0 842281 308 274 34 48 0 158 0 amappl16 200 78025 0 77584 397 372 25 46 0 8 0 amappl15 192 1396 0 1389 1 0 1 1 0 8 0 amappl14 184 1312 0 1311 1 0 1 1 0 8 0 amappl13 176 5521 0 5514 1 0 1 1 0 8 0 amappl12 168 500 0 493 1 0 1 1 0 8 0 amappl11 160 5433 0 5420 1 0 1 1 0 8 0 amappl10 152 5196 0 5192 1 0 1 1 0 8 0 amappl9 144 5155 0 5146 1 0 1 1 0 8 0 amappl8 136 5720 0 5490 8 0 8 8 0 8 0 amappl7 128 3542 0 3527 1 0 1 1 0 8 0 amappl6 120 4973 0 4939 3 1 2 2 0 8 0 amappl5 112 27768 0 27749 1 0 1 1 0 8 0 amappl4 104 10140 0 10104 2 0 2 2 0 8 0 amappl3 96 4821 0 4806 1 0 1 1 0 8 0 amappl2 88 7692 0 7637 3 0 3 3 0 8 0 amappl1 80 467629 0 466977 42 28 14 18 0 8 0 amappl 88 333704 0 333413 14 6 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 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 26163 0 26128 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 26163 0 26128 1 0 1 1 0 8 0 vmmpekpl 168 234624 0 234574 3 0 3 3 0 8 0 vmmpepl 168 2395915 0 2392975 401 266 135 149 0 357 0 vmsppl 368 26162 0 26127 4 0 4 4 0 8 0 rwobjpl 56 583841 0 576198 129 17 112 112 0 8 0 pdppl 4096 52333 0 52254 606 525 81 95 0 8 2 pvpl 32 12409692 0 12388561 828 643 185 242 0 265 0 pmappl 248 26162 0 26127 4 1 3 3 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 1905 0 1061 25 0 25 25 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff828d5ff0) 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 __mp_lock(ffffffff82abca58) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82abca58) at __mp_lock+0x122 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff82abca58) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82abca58) at __mp_lock+0x122 sys/kern/kern_lock.c:147 uvm_unmap_detach(ffff8000211350c0,1) at uvm_unmap_detach+0x113 sys/uvm/uvm_map.c:1615 uvm_map_teardown(fffffd806709f8b8) at uvm_map_teardown+0x262 sys/uvm/uvm_map.c:2789 uvmspace_free(fffffd806709f8b8) 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: 4 ddb{0}> trace x86_ipi_db(ffffffff828d5ff0) 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 __mp_lock(ffffffff82abca58) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82abca58) at __mp_lock+0x122 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff82abca58) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82abca58) at __mp_lock+0x122 sys/kern/kern_lock.c:147 uvm_unmap_detach(ffff8000211350c0,1) at uvm_unmap_detach+0x113 sys/uvm/uvm_map.c:1615 uvm_map_teardown(fffffd806709f8b8) at uvm_map_teardown+0x262 sys/uvm/uvm_map.c:2789 uvmspace_free(fffffd806709f8b8) 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: -11 ddb{0}> machine ddbcpu 1 Stopped at socreate+0x84: cmpq $0,0(%rax) socreate(18,ffff80002e3e96d8,3,2b) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff8000211427e8,ffff80002e3e9768,ffff80002e3e97c0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e3e9830) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3e9830) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x255605f5ad0, count: 11 ddb{1}> trace socreate(18,ffff80002e3e96d8,3,2b) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff8000211427e8,ffff80002e3e9768,ffff80002e3e97c0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e3e9830) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3e9830) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x255605f5ad0, count: -4