uvm_fault(0xfffff1006fdc5b88, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at rtable_exists+0x11d: cmpq $0,0(%rax,%rcx,8) TID PID UID PRFLAGS PFLAGS CPU COMMAND *210913 74757 0 0x2 0 0 arp rtable_exists(0) at rtable_exists+0x11d sys/net/rtable.c:278 route_ctloutput(1,ffff800001608f28,11,2,fffff1006c7c7b00) at route_ctloutput+0x123 sys/net/rtsock.c:373 sosetopt(ffff800001608f28,11,2,fffff1006c7c7b00) at sosetopt+0x118 sys/kern/uipc_socket.c:-1 sys_setsockopt(ffff80003c8ed250,ffff8000310d5580,ffff8000310d54d0) at sys_setsockopt+0x2cd sys/kern/uipc_syscalls.c:1234 syscall(ffff8000310d5580) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000310d5580) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bc5a6626c00, 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(0xfffff1006fdc5b88, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace rtable_exists(0) at rtable_exists+0x11d sys/net/rtable.c:278 route_ctloutput(1,ffff800001608f28,11,2,fffff1006c7c7b00) at route_ctloutput+0x123 sys/net/rtsock.c:373 sosetopt(ffff800001608f28,11,2,fffff1006c7c7b00) at sosetopt+0x118 sys/kern/uipc_socket.c:-1 sys_setsockopt(ffff80003c8ed250,ffff8000310d5580,ffff8000310d54d0) at sys_setsockopt+0x2cd sys/kern/uipc_syscalls.c:1234 syscall(ffff8000310d5580) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000310d5580) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bc5a6626c00, count: -6 ddb> show registers rdi 0x2000 __ALIGN_SIZE+0x1000 rsi 0 rbp 0xffff8000310d5370 rbx 0x1 rdx 0 rcx 0 rax 0 r8 0xfffff1006c7c7b00 r9 0x3 r10 0xe48567cf27f587c r11 0xd64acde975be0df5 r12 0xffff800000064ac0 r13 0xffff800000c55ba0 r14 0 r15 0x2000 __ALIGN_SIZE+0x1000 rip 0xffffffff81a3612d rtable_exists+0x11d cs 0x8 rflags 0x10206 __ALIGN_SIZE+0xf206 rsp 0xffff8000310d5320 ss 0x10 rtable_exists+0x11d: cmpq $0,0(%rax,%rcx,8) ddb> show proc PROC (arp) tid=210913 pid=74757 tcnt=1 stat=onproc flags process=2 proc=0 runpri=68, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c8ec7f0,0xffffffff839bb8d0 process=0xffff80003b0dba98 user=0xffff8000310d0000, vmspace=0xfffff1006fdc5b88 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND *74757 210913 25688 0 7 0x2 0 arp 25688 46034 96444 0 3 0x100002 0x88 sigsusp sh 70890 489098 12172 0 2 0 0 syz-executor 99812 322889 6543 0 2 0x2000 0x80000 syz-executor 99812 290026 6543 0 3 0x2000 0x4000000 suspend syz-executor 64285 242618 36100 0 2 0 0 syz-executor 64285 281403 36100 0 2 0 0x4000000 syz-executor 96444 412446 99825 0 3 0x2 0x80 wait syz-executor 12172 99425 99825 0 3 0x2 0x80 nanoslp syz-executor 36100 131313 99825 0 3 0x2 0x80 nanoslp syz-executor 41993 199630 99825 0 3 0x2 0x80 wait syz-executor 20517 485963 99825 0 2 0x2 0 syz-executor 6543 438125 99825 0 3 0x2 0x80 nanoslp syz-executor 92384 247271 99825 0 3 0x2 0x80 piperd syz-executor 99825 148807 86425 0 3 0x2 0x80 wait syz-executor 86425 226247 10533 0 3 0x100002 0x88 sigsusp ksh 10533 270223 95200 0 3 0x10 0x88 kqread sshd-session 95200 493086 61604 0 3 0x12 0x80 kqread sshd-session 71255 337533 1 0 3 0x100003 0x80 ttyin getty 61604 97857 1 0 3 0 0x88 kqread sshd 66070 207107 7948 73 3 0x1100010 0x80 kqread syslogd 7948 110330 1 0 3 0x100002 0x80 sbwait syslogd 56630 196602 1 0 3 0x100000 0x80 kqread resolvd 52295 466895 57374 77 3 0x100012 0x80 kqread dhcpleased 55320 270461 57374 77 3 0x100012 0x80 kqread dhcpleased 57374 281796 1 0 3 0 0x80 kqread dhcpleased 85840 468236 0 0 3 0x14000 0x200 bored smr 77910 225402 0 0 2 0x14000 0x200 zerothread 48520 72124 0 0 3 0x14000 0x200 aiodoned aiodoned 56890 101965 0 0 3 0x14000 0x200 syncer update 64373 204916 0 0 3 0x14000 0x200 cleaner cleaner 64506 245266 0 0 3 0x14000 0x200 reaper reaper 61794 269978 0 0 3 0x14000 0x200 pgdaemon pagedaemon 35195 433430 0 0 3 0x14000 0x200 bored viomb 52748 302671 0 0 3 0x14000 0x40000200 acpi0 acpi0 7636 59697 0 0 3 0x14000 0x200 bored softnet0 66398 162535 0 0 3 0x14000 0x200 bored systqmp 53875 461017 0 0 3 0x14000 0x200 bored systq 41531 518095 0 0 3 0x14000 0x40000200 tmoslp softclock 10709 477903 0 0 3 0x14000 0x40000200 idle0 1 33404 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 11070 12123K 12655K 166960K 12623 0 pcb 17 12K 12K 166960K 66 0 rtable 226 9K 10K 166960K 2218 0 pf 38 14K 17K 166960K 182 0 ifaddr 39 7K 7K 166960K 298 0 ifgroup 54 2K 2K 166960K 308 0 sysctl 3 1K 9K 166960K 9 0 counters 34 17K 18K 166960K 101 0 ioctlops 0 0K 4K 166960K 221 0 iov 0 0K 20K 166960K 15 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1330 84K 84K 166960K 2095 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 24 0K 0K 166960K 29 0 dirhash 18 3K 3K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 89K 166960K 1294 0 sigio 0 0K 0K 166960K 7 0 proc 62 67K 100K 166960K 2228 0 subproc 72 4K 4K 166960K 621 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 16 0 in_multi 78 5K 6K 166960K 764 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 24 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 1169 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 194 159K 165K 166960K 9916 0 UVM aobj 4 3K 3K 166960K 6 0 pinsyscall 38 76K 92K 166960K 3951 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 10 0 NDP 12 0K 2K 166960K 214 0 temp 73 9116K 9170K 166960K 19639 0 kqueue 13 20K 28K 166960K 92 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 165 0 161 1 0 1 1 0 8 0 rtentry 136 779 0 687 4 0 4 4 0 8 0 unpcb 144 128 0 113 1 0 1 1 0 8 0 syncache 336 10 0 10 1 0 1 1 0 8 1 tcpqe 32 4 0 4 1 0 1 1 0 8 1 tcpcb 736 123 0 115 7 0 7 7 0 8 6 arp 96 140 0 125 1 0 1 1 0 8 0 inpcb 328 588 0 575 7 0 7 7 0 8 5 ip6q 80 2 0 1 1 0 1 1 0 8 0 ip6af 40 4 0 3 1 0 1 1 0 8 0 nd6 112 207 0 189 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 kcovpl 48 69 0 61 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1072 6 0 6 1 0 1 1 0 8 1 pfstscr 40 11 0 2 1 0 1 1 0 8 0 pfrktable 1344 7 0 2 1 0 1 1 0 8 0 pfsrclim 320 1 0 1 1 0 1 1 0 8 1 pfanchor 1288 2 0 0 1 0 1 1 0 8 0 pftag 88 4 0 0 1 0 1 1 0 8 0 pfstitem 24 18 0 16 1 0 1 1 0 8 0 pfstkey 128 22 0 12 1 0 1 1 0 8 0 pfstate 384 11 0 2 2 0 2 2 0 8 1 pfrule 1360 6 0 5 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 3137 0 2761 30 0 30 30 0 8 3 art_table 40 3138 0 2761 5 0 5 5 0 8 0 art_node 32 778 0 695 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 0 1 0 1 1 0 8 0 semapl 72 26 0 4 1 0 1 1 0 8 0 shmpl 112 3 0 2 1 0 1 1 0 8 0 dirhash 1024 21 0 0 3 0 3 3 0 8 0 dino2pl 256 2081 0 485 100 0 100 100 0 8 0 ffsino 256 2081 0 485 100 0 100 100 0 8 0 nchpl 144 2620 0 709 72 0 72 72 0 8 0 vnodes 216 2825 0 0 157 0 157 157 0 8 0 namei 1024 16703 0 16702 3 0 3 3 0 8 2 pfiaddrpl 120 2 0 0 1 0 1 1 0 8 0 kstatmem 264 157 0 132 2 0 2 2 0 8 0 scxspl 216 9247 0 9247 8 0 8 8 1 8 8 plimitpl 152 300 0 284 1 0 1 1 0 8 0 sigapl 424 1461 0 1420 6 0 6 6 0 8 0 knotepl 120 12819 0 12772 29 19 10 23 0 8 6 kqueuepl 184 117 0 108 1 0 1 1 0 8 0 pipepl 304 392 0 365 8 0 8 8 0 8 5 fdescpl 448 1448 0 1420 5 0 5 5 0 8 1 filepl 120 5339 0 5130 12 0 12 12 0 8 4 lockfpl 104 135 0 132 1 0 1 1 0 8 0 lockfspl 48 62 0 59 1 0 1 1 0 8 0 sessionpl 144 94 0 86 1 0 1 1 0 8 0 pgrppl 48 165 0 149 1 0 1 1 0 8 0 ucredpl 104 711 0 699 1 0 1 1 0 8 0 zombiepl 144 1422 0 1420 1 0 1 1 0 8 0 processpl 1152 1461 0 1420 4 0 4 4 0 8 0 procpl 664 1869 0 1826 6 0 6 6 0 8 1 sockpl 552 923 0 891 8 0 8 8 0 8 5 mcl64k 65536 74 0 73 1 0 1 1 0 8 0 mcl16k 16384 3 0 3 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 13 0 13 1 0 1 1 0 8 1 mcl4k 4096 2789 0 2731 15 0 15 15 0 8 6 mcl2k 2048 1465 0 1465 1 0 1 1 0 8 1 mextrefs 64 263 0 262 1 0 1 1 0 8 0 mtagpl 96 3 0 3 1 0 1 1 0 8 1 mbufpl 256 11706 0 11550 13 0 13 13 0 8 0 bufpl 272 3138 0 104 203 0 203 203 0 8 0 anonpl 24 154386 0 151459 24 0 24 24 0 187 2 amapchunkpl 152 26283 0 25927 22 0 22 22 0 158 5 amappl16 200 1338 0 1324 4 0 4 4 0 8 2 amappl15 192 2 0 2 1 0 1 1 0 8 1 amappl14 184 1217 0 1215 1 0 1 1 0 8 0 amappl13 176 234 0 223 1 0 1 1 0 8 0 amappl12 168 1920 0 1895 2 0 2 2 0 8 0 amappl11 160 4 0 4 1 0 1 1 0 8 1 amappl10 152 59 0 49 1 0 1 1 0 8 0 amappl9 144 272 0 272 1 0 1 1 0 8 1 amappl8 136 333 0 332 1 0 1 1 0 8 0 amappl7 128 256 0 244 1 0 1 1 0 8 0 amappl6 120 754 0 752 1 0 1 1 0 8 0 amappl5 112 173 0 165 1 0 1 1 0 8 0 amappl4 104 470 0 453 1 0 1 1 0 8 0 amappl3 96 5069 0 5000 3 0 3 3 0 8 0 amappl2 88 1321 0 1253 2 0 2 2 0 8 0 amappl1 80 18860 0 18298 13 0 13 13 0 8 1 amappl 88 8190 0 8063 5 0 5 5 0 92 1 uvmvnodes 80 104 0 0 3 0 3 3 0 8 0 dma4096 4096 2 0 2 1 0 1 1 0 8 1 dma2048 2048 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 5 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1448 0 1420 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1448 0 1420 1 0 1 1 0 8 0 vmmpekpl 168 12482 0 12433 3 0 3 3 0 8 0 vmmpepl 168 99554 0 97910 82 0 82 82 0 357 6 vmsppl 368 1447 0 1420 4 0 4 4 0 8 1 rwobjpl 40 28879 0 27948 11 0 11 11 0 8 1 pdppl 4096 2902 0 2840 156 88 68 78 0 8 6 pvpl 32 503183 0 495470 78 0 78 78 0 265 7 pmappl 216 1447 0 1420 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 651 0 88 17 0 17 17 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace rtable_exists(0) at rtable_exists+0x11d sys/net/rtable.c:278 route_ctloutput(1,ffff800001608f28,11,2,fffff1006c7c7b00) at route_ctloutput+0x123 sys/net/rtsock.c:373 sosetopt(ffff800001608f28,11,2,fffff1006c7c7b00) at sosetopt+0x118 sys/kern/uipc_socket.c:-1 sys_setsockopt(ffff80003c8ed250,ffff8000310d5580,ffff8000310d54d0) at sys_setsockopt+0x2cd sys/kern/uipc_syscalls.c:1234 syscall(ffff8000310d5580) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000310d5580) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bc5a6626c00, count: -6 ddb> machine ddbcpu 1 No such command ddb> trace rtable_exists(0) at rtable_exists+0x11d sys/net/rtable.c:278 route_ctloutput(1,ffff800001608f28,11,2,fffff1006c7c7b00) at route_ctloutput+0x123 sys/net/rtsock.c:373 sosetopt(ffff800001608f28,11,2,fffff1006c7c7b00) at sosetopt+0x118 sys/kern/uipc_socket.c:-1 sys_setsockopt(ffff80003c8ed250,ffff8000310d5580,ffff8000310d54d0) at sys_setsockopt+0x2cd sys/kern/uipc_syscalls.c:1234 syscall(ffff8000310d5580) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000310d5580) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bc5a6626c00, count: -6