uvm_fault(0xfffff080679c1188, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at rtable_l2+0x6b: movzbl 0(%rax,%rcx,4),%eax TID PID UID PRFLAGS PFLAGS CPU COMMAND *389415 86797 0 0 0x4000000 0 syz-executor rtable_l2(0) at rtable_l2+0x6b sys/net/rtable.c:315 in_pcbhash_insert(fffff08079844000) at in_pcbhash_insert+0x193 sys/netinet/in_pcb.c:-1 in_pcballoc(ffff8000015a0230,ffffffff83aa4bb8,1) at in_pcballoc+0x23a sys/netinet/in_pcb.c:269 tcp_attach(ffff8000015a0230,0,1) at tcp_attach+0x1c4 sys/netinet/tcp_usrreq.c:496 socreate(2,ffff800037cc37e0,1,0) at socreate+0x22f pru_attach sys/sys/protosw.h:275 [inline] socreate(2,ffff800037cc37e0,1,0) at socreate+0x22f sys/kern/uipc_socket.c:220 sys_socket(ffff80003c8fad18,ffff800037cc3920,ffff800037cc3870) at sys_socket+0x124 sys/kern/uipc_syscalls.c:102 syscall(ffff800037cc3920) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800037cc3920) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd3f195346c0, count: 7 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: uvm_fault(0xfffff080679c1188, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace rtable_l2(0) at rtable_l2+0x6b sys/net/rtable.c:315 in_pcbhash_insert(fffff08079844000) at in_pcbhash_insert+0x193 sys/netinet/in_pcb.c:-1 in_pcballoc(ffff8000015a0230,ffffffff83aa4bb8,1) at in_pcballoc+0x23a sys/netinet/in_pcb.c:269 tcp_attach(ffff8000015a0230,0,1) at tcp_attach+0x1c4 sys/netinet/tcp_usrreq.c:496 socreate(2,ffff800037cc37e0,1,0) at socreate+0x22f pru_attach sys/sys/protosw.h:275 [inline] socreate(2,ffff800037cc37e0,1,0) at socreate+0x22f sys/kern/uipc_socket.c:220 sys_socket(ffff80003c8fad18,ffff800037cc3920,ffff800037cc3870) at sys_socket+0x124 sys/kern/uipc_syscalls.c:102 syscall(ffff800037cc3920) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800037cc3920) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd3f195346c0, count: -8 ddb> show registers rdi 0xffff80002f0b2000 rsi 0x72b rbp 0xffff800037cc35e0 rbx 0 rdx 0xffff80002f0b2000 rcx 0 rax 0 r8 0x30 r9 0 r10 0x56842b54c3bc2031 r11 0x492058e553ea7878 r12 0xffff800000c57950 r13 0 r14 0 r15 0x40f9 __ALIGN_SIZE+0x30f9 rip 0xffffffff82a85c8b rtable_l2+0x6b cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800037cc35b0 ss 0x10 rtable_l2+0x6b: movzbl 0(%rax,%rcx,4),%eax ddb> show proc PROC (syz-executor) tid=389415 pid=86797 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=80, usrpri=81, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c8fa7e8,0xffffffff83aa5308 process=0xffff800045ff8498 user=0xffff800037cbe000, vmspace=0xfffff080679c1188 estcpu=31, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 33792 201769 39736 0 2 0 0 syz-executor 86797 79685 30238 0 2 0 0 syz-executor *86797 389415 30238 0 7 0 0x4000000 syz-executor 12620 393752 12106 0 2 0 0 syz-executor 12620 325709 12106 0 3 0 0x4000080 fsleep syz-executor 10110 492720 23674 0 2 0 0 syz-executor 10110 250055 23674 0 2 0 0x4000000 syz-executor 77362 171732 52333 0 2 0 0 syz-executor 77362 348232 52333 0 3 0 0x4000080 fsleep syz-executor 43863 518567 1 0 3 0 0x80 nanoslp init 83375 266560 0 0 3 0x14000 0x200 acct acct 44327 381102 39709 0 2 0x2 0 syz-executor 39736 18505 39709 0 3 0x2 0x80 nanoslp syz-executor 52333 464412 39709 0 3 0x2 0x80 nanoslp syz-executor 12106 62443 39709 0 3 0x2 0x80 nanoslp syz-executor 99007 214196 39709 0 3 0x2 0x80 wait syz-executor 30238 342759 39709 0 3 0x2 0x80 nanoslp syz-executor 25312 224292 39709 0 3 0x2 0x80 wait syz-executor 23674 340710 39709 0 3 0x2 0x80 nanoslp syz-executor 39709 181560 1 0 3 0x2 0x80 kqread syz-executor 36287 263135 0 0 3 0x14000 0x200 bored smr 5890 269742 0 0 2 0x14000 0x200 zerothread 17830 437307 0 0 3 0x14000 0x200 aiodoned aiodoned 34829 201313 0 0 3 0x14000 0x200 syncer update 97918 443805 0 0 3 0x14000 0x200 cleaner cleaner 99132 510464 0 0 3 0x14000 0x200 reaper reaper 31717 397568 0 0 3 0x14000 0x200 pgdaemon pagedaemon 54054 106683 0 0 3 0x14000 0x200 bored viomb 3920 37318 0 0 3 0x14000 0x40000200 acpi0 acpi0 58019 450844 0 0 3 0x14000 0x200 bored softnet0 9489 94560 0 0 3 0x14000 0x200 bored systqmp 33206 34067 0 0 3 0x14000 0x200 bored systq 26536 416293 0 0 3 0x14000 0x40000200 tmoslp softclock 66555 118420 0 0 3 0x14000 0x40000200 idle0 1 473334 0 0 3 0x80002 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11045 12249K 13422K 166960K 13025 0 pcb 17 15K 16K 166960K 127 0 rtable 200 6K 9K 166960K 437 0 pf 36 14K 4176K 166960K 90 0 ifaddr 39 6K 7K 166960K 61 0 ifgroup 54 2K 2K 166960K 95 0 sysctl 3 1K 9K 166960K 10 0 counters 34 17K 18K 166960K 50 0 ioctlops 0 0K 4K 166960K 107 0 iov 0 0K 16K 166960K 84 0 mount 1 1K 1K 166960K 1 0 log 2 0K 0K 166960K 6 0 vnodes 1392 88K 88K 166960K 1702 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 9 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 90 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 16 61K 236K 166960K 482 0 sigio 0 0K 0K 166960K 4 0 proc 14 25K 116K 166960K 542 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 176 0 in_multi 87 5K 6K 166960K 116 0 ether_multi 1 0K 0K 166960K 4 0 mrt 1 0K 0K 166960K 12 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 73 334K 334K 166960K 73 0 exec 0 0K 1K 166960K 455 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 134 78K 167K 166960K 5875 0 UVM aobj 13 2K 3K 166960K 14 0 pinsyscall 18 36K 94K 166960K 1584 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 22 0 NDP 12 0K 2K 166960K 39 0 temp 41 9111K 9138K 166960K 9116 0 kqueue 1 2K 22K 166960K 76 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 63 0 63 1 0 1 1 0 8 1 rtentry 136 125 0 41 4 0 4 4 0 8 0 unpcb 144 533 0 531 7 0 7 7 0 8 6 syncache 336 6 0 6 1 0 1 1 0 8 1 tcpcb 736 197 0 196 7 0 7 7 0 8 6 arp 96 21 0 7 1 0 1 1 0 8 0 ipq 40 3 0 0 1 0 1 1 0 8 0 ipqe 40 3 0 0 1 0 1 1 0 8 0 inpcb 328 540 0 538 6 0 6 6 0 8 5 ip6q 80 1 0 0 1 0 1 1 0 8 0 ip6af 40 1 0 0 1 0 1 1 0 8 0 nd6 112 25 0 4 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 9 0 9 1 0 1 1 0 8 1 pppxif 1416 2 0 2 1 0 1 1 0 8 1 pfstscr 40 9 0 5 1 0 1 1 0 8 0 pfrktable 1344 7 0 7 1 0 1 1 0 8 1 pfanchor 1288 2 0 2 1 0 1 1 0 8 1 pftag 88 2 0 1 1 0 1 1 0 8 0 pfqueue 320 1 0 0 1 0 1 1 0 8 0 pfstitem 24 3 0 0 1 0 1 1 0 8 0 pfstkey 128 9 0 6 1 0 1 1 0 8 0 pfstate 384 5 0 3 1 0 1 1 0 8 0 pfrule 1360 4 0 3 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 507 0 115 29 0 29 29 0 8 3 art_table 40 508 0 115 5 0 5 5 0 8 0 art_node 32 124 0 50 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 1 1 0 1 1 0 8 0 semapl 72 88 0 78 1 0 1 1 0 8 0 shmpl 112 11 0 1 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2141 0 683 92 0 92 92 0 8 0 ffsino 256 2141 0 683 92 0 92 92 0 8 0 nchpl 144 2814 0 1121 64 0 64 64 0 8 0 rtmask 32 2 0 2 1 0 1 1 0 8 1 vnodes 216 2466 0 0 137 0 137 137 0 8 0 namei 1024 9490 0 9489 2 0 2 2 0 8 1 pfiaddrpl 120 2 0 2 1 0 1 1 0 8 1 kstatmem 264 47 0 22 3 0 3 3 0 8 1 scxspl 216 9100 0 9100 3 0 3 3 1 8 3 plimitpl 152 74 0 64 1 0 1 1 0 8 0 sigapl 424 770 0 737 6 0 6 6 0 8 1 knotepl 120 16711 0 16694 21 11 10 16 0 8 8 kqueuepl 184 98 0 97 1 0 1 1 0 8 0 pipepl 304 172 0 145 3 0 3 3 0 8 0 fdescpl 448 756 0 737 5 0 5 5 0 8 1 filepl 120 4462 0 4302 12 0 12 12 0 8 4 lockfpl 104 193 0 193 1 0 1 1 0 8 1 lockfspl 48 86 0 86 1 0 1 1 0 8 1 sessionpl 144 36 0 34 1 0 1 1 0 8 0 pgrppl 48 81 0 71 1 0 1 1 0 8 0 ucredpl 104 602 0 599 1 0 1 1 0 8 0 zombiepl 144 739 0 737 1 0 1 1 0 8 0 processpl 1152 770 0 737 4 0 4 4 0 8 0 procpl 664 1263 0 1226 5 0 5 5 0 8 0 sosppl 176 2 0 2 1 0 1 1 0 8 1 sockpl 552 1150 0 1146 15 4 11 13 0 8 10 mcl64k 65536 122 0 121 1 0 1 1 0 8 0 mcl16k 16384 4 0 4 1 0 1 1 0 8 1 mcl9k128 9344 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 9 0 9 1 0 1 1 0 8 1 mcl4k 4096 2961 0 2908 14 0 14 14 0 8 6 mcl2k 2048 336 0 333 3 0 3 3 0 8 2 mextrefs 64 203 0 202 1 0 1 1 0 8 0 mtagpl 96 5 0 4 1 0 1 1 0 8 0 mbufpl 256 7874 0 7651 18 0 18 18 0 8 1 bufpl 272 2909 0 103 188 0 188 188 0 8 0 anonpl 24 127369 0 125878 35 0 35 35 0 187 13 amapchunkpl 152 18504 0 18129 26 0 26 26 0 158 9 amappl16 200 2353 0 2335 22 12 10 14 0 8 8 amappl15 192 4 0 4 1 0 1 1 0 8 1 amappl14 184 413 0 413 1 0 1 1 0 8 1 amappl13 176 117 0 117 1 0 1 1 0 8 1 amappl12 168 992 0 975 2 0 2 2 0 8 0 amappl11 160 3 0 3 1 0 1 1 0 8 1 amappl10 152 60 0 60 1 0 1 1 0 8 1 amappl9 144 298 0 298 1 0 1 1 0 8 1 amappl8 136 98 0 98 1 0 1 1 0 8 1 amappl7 128 145 0 142 1 0 1 1 0 8 0 amappl6 120 152 0 151 1 0 1 1 0 8 0 amappl5 112 92 0 91 1 0 1 1 0 8 0 amappl4 104 270 0 267 1 0 1 1 0 8 0 amappl3 96 3241 0 3177 3 0 3 3 0 8 0 amappl2 88 877 0 853 2 0 2 2 0 8 0 amappl1 80 11515 0 11423 13 0 13 13 0 8 7 amappl 88 5124 0 5001 4 0 4 4 0 92 0 uvmvnodes 80 102 0 0 3 0 3 3 0 8 0 dma4096 4096 2 0 2 1 0 1 1 0 8 1 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 19 0 18 1 0 1 1 0 8 0 aobjpl 72 13 0 1 1 0 1 1 0 8 0 uaddrrnd 24 756 0 737 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 756 0 737 1 0 1 1 0 8 0 vmmpekpl 168 7617 0 7581 2 0 2 2 0 8 0 vmmpepl 168 55755 0 54946 80 0 80 80 0 357 39 vmsppl 368 755 0 737 4 0