uvm_fault(0xfffff180675d8d08, 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 *179027 23811 0 0 0x4000000 0 syz-executor rtable_l2(0) at rtable_l2+0x6b sys/net/rtable.c:315 in_broadcast(aa0214ac,0) at in_broadcast+0xd8 sys/netinet/in.c:-1 tcp_connect(ffff800010fdd9f0,fffff18078334700) at tcp_connect+0x2ec sys/netinet/tcp_usrreq.c:665 sys_connect(ffff80002a75d240,ffff80002a88d8c0,ffff80002a88d810) at sys_connect+0x3f2 sys/kern/uipc_syscalls.c:420 syscall(ffff80002a88d8c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a88d8c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2966e587f20, count: 9 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(0xfffff180675d8d08, 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_broadcast(aa0214ac,0) at in_broadcast+0xd8 sys/netinet/in.c:-1 tcp_connect(ffff800010fdd9f0,fffff18078334700) at tcp_connect+0x2ec sys/netinet/tcp_usrreq.c:665 sys_connect(ffff80002a75d240,ffff80002a88d8c0,ffff80002a88d810) at sys_connect+0x3f2 sys/kern/uipc_syscalls.c:420 syscall(ffff80002a88d8c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a88d8c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2966e587f20, count: -6 ddb> show registers rdi 0x2 rsi 0 rbp 0xffff80002a88d6a0 rbx 0xfffff18078334701 rdx 0 rcx 0 rax 0 r8 0x7f7fffffc000 r9 0 r10 0xc8c77baed61dafd1 r11 0xbd756dd4f5ae6e2b r12 0xffff800000c55fb0 r13 0xffffffff r14 0 r15 0x2 rip 0xffffffff82938a1b rtable_l2+0x6b cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a88d670 ss 0x10 rtable_l2+0x6b: movzbl 0(%rax,%rcx,4),%eax ddb> show proc PROC (syz-executor) tid=179027 pid=23811 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a75d770,0xffff80002a736fa8 process=0xffff80003a8ddf98 user=0xffff80002a888000, vmspace=0xfffff180675d8d08 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 92920 356740 85844 0 2 0 0 syz-executor 92920 100377 85844 0 3 0 0x4000080 ttyout syz-executor 76513 37527 88823 0 2 0x2 0 ifconfig 88823 111831 78414 0 3 0x100002 0x88 sigsusp sh 6387 199446 58173 0 2 0 0 syz-executor 6387 321998 58173 0 3 0 0x4000080 fsleep syz-executor 16951 22103 49171 0 2 0 0 syz-executor 16951 409548 49171 0 2 0 0x4000000 syz-executor 23811 454425 91214 0 2 0 0 syz-executor *23811 179027 91214 0 7 0 0x4000000 syz-executor 85844 341252 49310 0 3 0x2 0x80 nanoslp syz-executor 78414 48091 49310 0 3 0x2 0x80 wait syz-executor 91214 161118 49310 0 3 0x2 0x80 nanoslp syz-executor 58173 405088 49310 0 3 0x2 0x80 nanoslp syz-executor 49171 345225 49310 0 3 0x2 0x80 nanoslp syz-executor 33799 160643 71113 0 3 0x100002 0x80 sbwait ndp 71113 89708 93146 0 3 0x100002 0x88 sigsusp sh 93146 139729 49310 0 3 0x2 0x80 wait syz-executor 49310 143914 79991 0 3 0x2 0x80 wait syz-executor 79991 60023 21212 0 3 0x100002 0x88 sigsusp ksh 21212 309953 25162 0 3 0x10 0x88 kqread sshd-session 25162 93208 14333 0 3 0x12 0x80 kqread sshd-session 93492 460987 1 0 3 0x100003 0x80 ttyin getty 14333 61433 1 0 3 0 0x88 kqread sshd 31327 80051 76120 73 3 0x1100010 0x80 kqread syslogd 76120 253324 1 0 3 0x100002 0x80 sbwait syslogd 10921 407815 1 0 3 0x100000 0x80 kqread resolvd 10400 486890 51080 77 3 0x100012 0x80 kqread dhcpleased 74645 55298 51080 77 3 0x100012 0x80 kqread dhcpleased 51080 280005 1 0 3 0 0x80 kqread dhcpleased 24181 185398 0 0 3 0x14000 0x200 bored smr 33076 386704 0 0 2 0x14000 0x200 zerothread 94819 375662 0 0 3 0x14000 0x200 aiodoned aiodoned 71883 46790 0 0 3 0x14000 0x200 syncer update 6476 453022 0 0 3 0x14000 0x200 cleaner cleaner 84391 255260 0 0 3 0x14000 0x200 reaper reaper 80918 417663 0 0 3 0x14000 0x200 pgdaemon pagedaemon 95522 379707 0 0 3 0x14000 0x200 bored viomb 51671 32408 0 0 3 0x14000 0x40000200 acpi0 acpi0 59715 50069 0 0 3 0x14000 0x200 bored softnet0 98506 50637 0 0 3 0x14000 0x200 smrbar systqmp 84117 56103 0 0 3 0x14000 0x200 bored systq 30991 317186 0 0 3 0x14000 0x40000200 tmoslp softclock 38307 73294 0 0 3 0x14000 0x40000200 idle0 1 42845 0 0 3 0x2 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 11039 12108K 12299K 166960K 12434 0 pcb 17 13K 14K 166960K 113 0 rtable 243 7K 9K 166960K 1599 0 pf 33 13K 18K 166960K 177 0 ifaddr 43 7K 8K 166960K 200 0 ifgroup 54 2K 2K 166960K 223 0 sysctl 1 1K 9K 166960K 5 0 counters 34 17K 18K 166960K 83 0 ioctlops 0 0K 4K 166960K 137 0 iov 0 0K 16K 166960K 11 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1291 81K 82K 166960K 2010 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 5 0 VM map 2 1K 1K 166960K 2 0 sem 10 0K 0K 166960K 12 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 89K 166960K 912 0 sigio 0 0K 0K 166960K 7 0 proc 67 67K 108K 166960K 1504 0 subproc 72 4K 4K 166960K 387 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 22 0 in_multi 99 6K 6K 166960K 489 0 ether_multi 1 0K 0K 166960K 3 0 mrt 0 0K 0K 166960K 27 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 91 413K 413K 166960K 91 0 exec 0 0K 1K 166960K 830 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 212 155K 163K 166960K 8124 0 UVM aobj 8 3K 3K 166960K 8 0 pinsyscall 40 80K 92K 166960K 2927 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 16 0 NDP 22 1K 2K 166960K 142 0 temp 39 9111K 9131K 166960K 12221 0 kqueue 13 20K 26K 166960K 83 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 126 0 122 1 0 1 1 0 8 0 rtentry 136 500 0 391 4 0 4 4 0 8 0 unpcb 144 240 0 223 1 0 1 1 0 8 0 syncache 336 5 0 5 1 0 1 1 0 8 1 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 736 183 0 175 7 0 7 7 0 8 6 arp 96 88 0 70 1 0 1 1 0 8 0 inpcb 328 547 0 534 7 0 7 7 0 8 5 nd6 112 128 0 106 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 43 0 35 1 0 1 1 0 8 0 ppxss 1072 11 0 11 1 0 1 1 0 8 1 pppxif 1416 3 0 3 1 0 1 1 0 8 1 pfstscr 40 2 0 0 1 0 1 1 0 8 0 pffrag 232 1 0 0 1 0 1 1 0 482 0 pffrnode 88 1 0 0 1 0 1 1 0 8 0 pffrent 40 2 0 1 1 0 1 1 0 8 0 pfrktable 1344 18 0 18 1 0 1 1 0 8 1 pfsrclim 320 2 0 2 1 0 1 1 0 8 1 pfanchor 1288 9 0 9 1 0 1 1 0 8 1 pftag 88 3 0 2 1 0 1 1 0 8 0 pfqueue 320 2 0 2 1 0 1 1 0 8 1 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 2 0 0 1 0 1 1 0 8 0 pfstate 384 1 0 0 1 0 1 1 0 8 0 pfrule 1360 7 0 7 1 0 1 1 0 8 1 rttmr 136 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 2043 0 1588 32 0 32 32 0 8 0 art_table 40 2045 0 1588 6 0 6 6 0 8 0 art_node 32 499 0 395 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1 semapl 72 9 0 1 1 0 1 1 0 8 0 shmpl 112 5 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2232 0 690 97 0 97 97 0 8 0 ffsino 256 2232 0 690 97 0 97 97 0 8 0 nchpl 144 2789 0 953 68 0 68 68 0 8 0 vnodes 216 2734 0 0 152 0 152 152 0 8 0 namei 1024 14041 0 14040 3 0 3 3 0 8 2 pfiaddrpl 120 5 0 5 1 0 1 1 0 8 1 kstatmem 264 113 0 88 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 9084 0 9084 8 0 8 8 1 8 8 plimitpl 152 105 0 89 1 0 1 1 0 8 0 sigapl 424 1140 0 1097 6 0 6 6 0 8 0 knotepl 120 13395 0 13348 17 7 10 17 0 8 8 kqueuepl 184 103 0 94 1 0 1 1 0 8 0 pipepl 304 247 0 220 3 0 3 3 0 8 0 fdescpl 448 1127 0 1097 5 0 5 5 0 8 1 filepl 120 5004 0 4792 14 0 14 14 0 8 5 lockfpl 104 1038 0 1036 2 0 2 2 0 8 1 lockfspl 48 61 0 59 1 0 1 1 0 8 0 sessionpl 144 69 0 61 1 0 1 1 0 8 0 pgrppl 48 112 0 96 1 0 1 1 0 8 0 ucredpl 104 802 0 791 1 0 1 1 0 8 0 zombiepl 144 1099 0 1097 1 0 1 1 0 8 0 processpl 1152 1140 0 1097 4 0 4 4 0 8 0 procpl 664 1609 0 1562 6 0 6 6 0 8 1 sosppl 176 3 0 3 1 0 1 1 0 8 1 sockpl 552 923 0 889 8 0 8 8 0 8 5 mcl64k 65536 7 0 7 1 0 1 1 0 8 1 mcl9k128 9344 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 7 0 7 1 0 1 1 0 8 1 mcl4k 4096 2837 0 2787 13 0 13 13 0 8 6 mcl2k 2048 908 0 908 3 0 3 3 0 8 3 mextrefs 64 780 0 780 1 0 1 1 0 8 1 mtagpl 96 7 0 7 1 0 1 1 0 8 1 mbufpl 256 12793 0 12661 23 2 21 23 0 8 8 bufpl 272 2956 0 102 191 0 191 191 0 8 0 anonpl 24 159302 0 156196 45 0 45 45 0 187 20 amapchunkpl 152 23715 0 23308 32 0 32 32 0 158 13 amappl16 200 2298 0 2284 17 7 10 14 0 8 8 amappl15 192 6 0 6 1 0 1 1 0 8 1 amappl14 184 831 0 828 1 0 1 1 0 8 0 amappl13 176 200 0 189 1 0 1 1 0 8 0 amappl12 168 1517 0 1488 2 0 2 2 0 8 0 amappl11 160 5 0 5 1 0 1 1 0 8 1 amappl10 152 62 0 51 1 0 1 1 0 8 0 amappl9 144 270 0 270 1 0 1 1 0 8 1 amappl8 136 235 0 233 1 0 1 1 0 8 0 amappl7 128 209 0 197 1 0 1 1 0 8 0 amappl6 120 496 0 492 1 0 1 1 0 8 0 amappl5 112 91 0 83 1 0 1 1 0 8 0 amappl4 104 362 0 345 1 0 1 1 0 8 0 amappl3 96 4192 0 4109 3 0 3 3 0 8 0 amappl2 88 1130 0 1058 2 0 2 2 0 8 0 amappl1 80 15568 0 14992 13 0 13 13 0 8 0 amappl 88 6806 0 6666 5 0 5 5 0 92 0 uvmvnodes 80 104 0 0 3 0 3 3 0 8 0 dma16384 16384 1 0 1 1 0 1 1 0 8 1 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 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 7 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1127 0 1097 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1127 0 1097 1 0 1 1 0 8 0 vmmpekpl 168 10345 0 10298 3 0 3 3 0 8 0 vmmpepl 168 80250 0 78521 92 0 92 92 0 357 11 vmsppl 368 1126 0 1097 4 0 4 4 0 8 0 rwobjpl 40 24766 0 23786 13 0 13 13 0 8 0 pdppl 4096 2260 0 2194 124 52 72 78 0 8 6 pvpl 32 451218 0 442983 116 0 116 116 0 265 37 pmappl 216 1126 0 1097 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 612 0 54 16 0 16 16 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace rtable_l2(0) at rtable_l2+0x6b sys/net/rtable.c:315 in_broadcast(aa0214ac,0) at in_broadcast+0xd8 sys/netinet/in.c:-1 tcp_connect(ffff800010fdd9f0,fffff18078334700) at tcp_connect+0x2ec sys/netinet/tcp_usrreq.c:665 sys_connect(ffff80002a75d240,ffff80002a88d8c0,ffff80002a88d810) at sys_connect+0x3f2 sys/kern/uipc_syscalls.c:420 syscall(ffff80002a88d8c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a88d8c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2966e587f20, count: -6 ddb> machine ddbcpu 1 No such command ddb> trace rtable_l2(0) at rtable_l2+0x6b sys/net/rtable.c:315 in_broadcast(aa0214ac,0) at in_broadcast+0xd8 sys/netinet/in.c:-1 tcp_connect(ffff800010fdd9f0,fffff18078334700) at tcp_connect+0x2ec sys/netinet/tcp_usrreq.c:665 sys_connect(ffff80002a75d240,ffff80002a88d8c0,ffff80002a88d810) at sys_connect+0x3f2 sys/kern/uipc_syscalls.c:420 syscall(ffff80002a88d8c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a88d8c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2966e587f20, count: -6