uvm_fault(0xfffffd806a731018, 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 *142232 84393 32767 0x10 0x4000000 0K syz-executor.2 392093 46775 0 0x14000 0x200 1 reaper socreate(18,ffff80002992e020,3,2c) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socketpair(ffff800027acca80,ffff80002992e0b8,ffff80002992e110) at sys_socketpair+0x6e sys/kern/uipc_syscalls.c:430 syscall(ffff80002992e180) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002992e180) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2533c57adc0, 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(0xfffffd806a731018, 0x0, 0, 1) -> e ddb{0}> trace socreate(18,ffff80002992e020,3,2c) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socketpair(ffff800027acca80,ffff80002992e0b8,ffff80002992e110) at sys_socketpair+0x6e sys/kern/uipc_syscalls.c:430 syscall(ffff80002992e180) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002992e180) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2533c57adc0, count: -4 ddb{0}> show registers rdi 0xffff800022c85000 rsi 0x2a rbp 0xffff80002992e000 rbx 0x18 rdx 0xffff800022c85000 rcx 0x29 rax 0 r8 0xffffffff81e690f0 uvm_map_inentry_pc r9 0x18 r10 0 r11 0xecd5048e4df85773 r12 0xffff80002992e020 r13 0xffffffff8288cf78 inet6sw+0x2d8 r14 0x3 r15 0x2c rip 0xffffffff81e82144 socreate+0x84 cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff80002992dfa0 ss 0x10 socreate+0x84: cmpq $0,0(%rax) ddb{0}> show proc PROC (syz-executor.2) pid=142232 stat=onproc flags process=10 proc=4000000 pri=32, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800027accd20,0xffff800022c3bcf8 process=0xffff8000fffed910 user=0xffff800029929000, vmspace=0xfffffd806a731018 estcpu=31, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 33991 166390 96916 32767 3 0x90 nanoslp syz-executor.6 33991 239166 96916 32767 3 0x4000090 fsleep syz-executor.6 80078 411340 38282 32767 2 0x10 syz-executor.4 80078 411955 38282 32767 3 0x4000090 fsleep syz-executor.4 80078 328328 38282 32767 3 0x4000090 fsleep syz-executor.4 84393 5568 65439 32767 2 0x10 syz-executor.2 *84393 142232 65439 32767 7 0x4000010 syz-executor.2 23047 227555 11649 32767 2 0x10 syz-executor.5 23047 356634 11649 32767 3 0x4000090 fsleep syz-executor.5 65439 506292 68065 32767 2 0x10 syz-executor.2 68065 391907 21637 0 3 0x82 wait syz-executor.2 70441 389203 22542 32767 3 0x90 nanoslp syz-executor.7 22542 314506 21637 0 3 0x82 wait syz-executor.7 38282 200095 58301 32767 3 0x90 nanoslp syz-executor.4 58301 517032 21637 0 3 0x82 wait syz-executor.4 55239 97067 25171 32767 3 0x90 piperd syz-executor.0 25171 16144 21637 0 3 0x82 wait syz-executor.0 59588 328665 20182 32767 3 0x90 piperd syz-executor.1 20182 283793 21637 0 3 0x82 wait syz-executor.1 11649 298744 14020 32767 3 0x90 nanoslp syz-executor.5 14020 375114 21637 0 3 0x82 wait syz-executor.5 91539 368538 77897 32767 3 0x90 piperd syz-executor.3 77897 257498 21637 0 3 0x82 wait syz-executor.3 96916 70559 78968 32767 2 0x490 syz-executor.6 78968 90349 21637 0 3 0x82 wait syz-executor.6 54504 438666 0 0 3 0x14200 bored sosplice 21637 34677 88580 0 3 0x82 thrsleep syz-fuzzer 21637 337651 88580 0 2 0x4000482 syz-fuzzer 21637 430304 88580 0 3 0x4000082 thrsleep syz-fuzzer 21637 393176 88580 0 3 0x4000082 thrsleep syz-fuzzer 21637 76534 88580 0 3 0x4000082 kqread syz-fuzzer 21637 8433 88580 0 3 0x4000082 thrsleep syz-fuzzer 21637 258840 88580 0 3 0x4000082 thrsleep syz-fuzzer 21637 155165 88580 0 3 0x4000082 thrsleep syz-fuzzer 88580 516747 49208 0 3 0x10008a sigsusp ksh 49208 305840 59967 0 3 0x9a kqread sshd 93928 283199 1 0 3 0x100083 ttyin getty 59967 313928 1 0 3 0x88 kqread sshd 30358 385667 50260 73 3 0x1100090 kqread syslogd 50260 163428 1 0 3 0x100082 netio syslogd 11430 351567 1 0 3 0x100080 kqread resolvd 56258 226456 9578 77 3 0x100092 kqread dhcpleased 12761 478203 9578 77 3 0x100092 kqread dhcpleased 9578 296543 1 0 3 0x80 kqread dhcpleased 39183 321083 0 0 3 0x14200 bored smr 65911 390926 0 0 2 0x14200 zerothread 57094 458370 0 0 3 0x14200 aiodoned aiodoned 23195 189681 0 0 3 0x14200 syncer update 32765 196829 0 0 3 0x14200 cleaner cleaner 46775 392093 0 0 7 0x14200 reaper 73502 118035 0 0 3 0x14200 pgdaemon pagedaemon 54678 342883 0 0 3 0x14200 bored viomb 15753 497229 0 0 3 0x40014200 acpi0 acpi0 41732 463365 0 0 3 0x40014200 idle1 85608 265564 0 0 3 0x14200 bored softnet 92781 64234 0 0 3 0x14200 bored systqmp 43034 326356 0 0 3 0x14200 bored systq 57704 248783 0 0 3 0x40014200 bored softclock 30504 69519 0 0 3 0x40014200 idle0 1 189310 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 1: exclusive sched_lock &sched_lock r = 0 (0xffffffff829eb5e0) #0 witness_lock+0x44d #1 wakeup_n+0x37 #2 uvm_pmr_freepages+0x2ce sys/uvm/uvm_pmemrange.c:1303 #3 pmap_do_remove+0x666 sys/arch/amd64/amd64/pmap.c:1884 #4 uvm_unmap_kill_entry_withlock+0x1af sys/uvm/uvm_map.c:2139 #5 uvm_map_teardown+0x197 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] #5 uvm_map_teardown+0x197 sys/uvm/uvm_map.c:2771 #6 uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685 #7 reaper+0x18b sys/kern/kern_exit.c:457 #8 proc_trampoline+0x1c exclusive mutex &uvm.fpageqlock r = 0 (0xffffffff829b5498) #0 witness_lock+0x44d #1 mtx_enter_try+0x100 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 uvm_pmr_freepages+0x10c sys/uvm/uvm_pmemrange.c:1289 #4 pmap_do_remove+0x666 sys/arch/amd64/amd64/pmap.c:1884 #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 84393 (syz-executor.2) thread 0xffff800027acca80 (142232) 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_socketpair+0x6e sys/kern/uipc_syscalls.c:430 #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 10210 6412K 6419K 78643K 11431 0 pcb 13 12K 14K 78643K 17 0 rtable 254 7K 8K 78643K 32526 0 ifaddr 81 17K 17K 78643K 385 0 sysctl 3 1K 3K 78643K 7 0 counters 56 35K 35K 78643K 142 0 ioctlops 0 0K 2K 78643K 574 0 iov 0 0K 32K 78643K 6931 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1271 79K 79K 78643K 10210 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 510 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 8252 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 22 81K 121K 78643K 43188 0 sigio 1 0K 0K 78643K 805 0 proc 56 74K 111K 78643K 3982 0 subproc 104 6K 6K 78643K 663 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 4399 0 in_multi 99 6K 7K 78643K 1129 0 ether_multi 1 0K 0K 78643K 208 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 277 1235K 1235K 78643K 277 0 exec 0 0K 2K 78643K 7387 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 519 98K 115K 78643K 560698 0 UVM aobj 131 4K 4K 78643K 133 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 1092 0 NDP 11 0K 2K 78643K 156 0 temp 125 4703K 4831K 78643K 109801 0 kqueue 15 22K 32K 78643K 4120 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 38200 0 38197 236 234 2 6 0 8 1 rtentry 112 663 0 545 4 0 4 4 0 8 0 unpcb 136 31767 0 31754 321 320 1 9 0 8 0 syncache 296 326 0 326 83 83 0 1 0 8 0 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpqe 32 125 0 125 46 46 0 1 0 8 0 tcpcb 736 16744 0 16729 509 507 2 17 0 8 0 arp 120 117 0 98 1 0 1 1 0 8 0 ipq 40 58 0 58 23 23 0 1 0 8 0 ipqe 40 894 0 894 23 23 0 1 0 8 0 inpcb 304 37952 0 37933 544 542 2 18 0 8 0 rttmr 72 156 0 156 2 2 0 1 0 8 0 ip6q 72 109 0 108 17 16 1 1 0 8 0 ip6af 40 217 0 217 18 18 0 1 0 8 0 nd6 48 213 0 182 1 0 1 1 0 8 0 kcovpl 48 51 0 43 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2844 0 2309 50 16 34 39 0 8 0 art_table 32 2845 0 2309 5 0 5 5 0 8 0 art_node 16 662 0 554 1 0 1 1 0 8 0 sysvmsgpl 40 52 0 45 1 0 1 1 0 8 0 semapl 112 8250 0 8240 1 0 1 1 0 8 0 shmpl 112 130 0 2 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 60881 0 59402 93 0 93 93 0 8 0 ffsino 272 60881 0 59402 99 0 99 99 0 8 0 nchpl 144 120033 0 118402 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 400141 0 400141 26 25 1 2 0 8 1 percpumem 16 83 0 43 1 0 1 1 0 8 0 scxspl 216 353985 0 353985 121 120 1 8 0 8 1 plimitpl 152 9284 0 9262 36 35 1 2 0 8 0 sigapl 424 43386 0 43337 7 1 6 7 0 8 0 futexpl 64 398632 0 398628 27 26 1 1 0 8 0 knotepl 120 2730 0 0 31 15 16 24 0 8 0 kqueuepl 216 17563 0 17553 298 295 3 8 0 8 2 pipepl 336 9772 0 9743 267 259 8 13 0 8 5 fdescpl 496 43371 0 43338 9 4 5 6 0 8 0 filepl 152 326878 0 326634 568 553 15 24 0 8 4 lockfpl 104 5936 0 5933 5 4 1 2 0 8 0 lockfspl 48 1802 0 1799 1 0 1 1 0 8 0 sessionpl 144 66 0 50 1 0 1 1 0 8 0 pgrppl 48 327 0 311 1 0 1 1 0 8 0 ucredpl 96 53047 0 53029 1 0 1 1 0 8 0 zombiepl 144 43338 0 43337 6 5 1 1 0 8 0 processpl 1064 43386 0 43337 5 1 4 4 0 8 0 procpl 672 129661 0 129600 70 63 7 8 0 8 1 sosppl 168 639 0 637 78 77 1 1 0 8 0 sockpl 480 109422 0 109389 2112 2104 8 43 0 8 3 mcl64k 65536 154 0 0 5 2 3 3 0 8 0 mcl16k 16384 98 0 0 9 6 3 3 0 8 0 mcl12k 12288 89 0 0 3 1 2 2 0 8 0 mcl9k 9216 41 0 0 2 0 2 2 0 8 0 mcl8k 8192 89 0 0 4 1 3 3 0 8 0 mcl4k 4096 70 0 0 3 0 3 3 0 8 0 mcl2k2 2112 16 0 0 2 0 2 2 0 8 0 mcl2k 2048 635 0 0 20 5 15 20 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 9274 0 0 436 9 427 427 0 8 0 bufpl 288 68668 0 62336 453 0 453 453 0 8 0 anonpl 24 12991345 0 12976543 592 478 114 150 0 186 0 amapchunkpl 152 1436765 0 1436001 478 442 36 50 0 158 0 amappl16 200 146906 0 146504 791 767 24 55 0 8 0 amappl15 192 603 0 598 1 0 1 1 0 8 0 amappl14 184 286 0 283 2 1 1 1 0 8 0 amappl13 176 2963 0 2959 1 0 1 1 0 8 0 amappl12 168 15299 0 15288 1 0 1 1 0 8 0 amappl11 160 10697 0 10679 6 5 1 2 0 8 0 amappl10 152 3939 0 3933 1 0 1 1 0 8 0 amappl9 144 5559 0 5548 1 0 1 1 0 8 0 amappl8 136 8405 0 8117 11 0 11 11 0 8 0 amappl7 128 5075 0 5064 1 0 1 1 0 8 0 amappl6 120 5442 0 5411 5 4 1 2 0 8 0 amappl5 112 38803 0 38786 1 0 1 1 0 8 0 amappl4 104 19067 0 19023 7 5 2 2 0 8 0 amappl3 96 19512 0 19498 1 0 1 1 0 8 0 amappl2 88 10230 0 10174 3 1 2 3 0 8 0 amappl1 80 781347 0 780733 46 31 15 18 0 8 0 amappl 88 557364 0 557093 10 2 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 132 0 2 3 0 3 3 0 8 0 uaddrrnd 24 43371 0 43338 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 43371 0 43338 1 0 1 1 0 8 0 vmmpekpl 168 350004 0 349955 3 0 3 3 0 8 0 vmmpepl 168 4022584 0 4019779 600 460 140 162 0 357 0 vmsppl 368 43370 0 43337 4 0 4 4 0 8 0 rwobjpl 56 988540 0 980901 161 49 112 116 0 8 0 pdppl 4096 86749 0 86674 1133 1052 81 93 0 8 6 pvpl 32 21200234 0 21179394 1515 1324 191 249 0 265 0 pmappl 248 43370 0 43337 4 1 3 3 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 3118 0 1884 37 1 36 36 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace socreate(18,ffff80002992e020,3,2c) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socketpair(ffff800027acca80,ffff80002992e0b8,ffff80002992e110) at sys_socketpair+0x6e sys/kern/uipc_syscalls.c:430 syscall(ffff80002992e180) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002992e180) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2533c57adc0, 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 __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(ffff800021134eb0,1) at uvm_unmap_detach+0x113 sys/uvm/uvm_map.c:1615 uvm_map_teardown(fffffd806a731d08) at uvm_map_teardown+0x262 sys/uvm/uvm_map.c:2789 uvmspace_free(fffffd806a731d08) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685 reaper(ffff8000210f8fc0) at reaper+0x18b sys/kern/kern_exit.c:457 end trace frame: 0x0, count: 7 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 __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(ffff800021134eb0,1) at uvm_unmap_detach+0x113 sys/uvm/uvm_map.c:1615 uvm_map_teardown(fffffd806a731d08) at uvm_map_teardown+0x262 sys/uvm/uvm_map.c:2789 uvmspace_free(fffffd806a731d08) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685 reaper(ffff8000210f8fc0) at reaper+0x18b sys/kern/kern_exit.c:457 end trace frame: 0x0, count: -8