uvm_fault(0xfffff8806da648b0, 0x6a6a95b1, 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 *197776 7304 0 0 0x4000000 0 syz-executor rtable_exists(0) at rtable_exists+0x11d sys/net/rtable.c:278 rtrequest_delete(ffff8000380ced08,4,ffff8000015ef000,ffff8000380cedb8,0) at rtrequest_delete+0xea sys/net/route.c:902 rt_ifa_del(ffff800001609400,800100,ffff800001609468,0) at rt_ifa_del+0x3a1 sys/net/route.c:1342 in_purgeaddr(ffff800001609400) at in_purgeaddr+0x129 in_remove_prefix sys/netinet/in.c:810 [inline] in_purgeaddr(ffff800001609400) at in_purgeaddr+0x129 in_ifscrub sys/netinet/in.c:636 [inline] in_purgeaddr(ffff800001609400) at in_purgeaddr+0x129 sys/netinet/in.c:751 in_ifdetach(ffff8000015ef000) at in_ifdetach+0x7e sys/netinet/in.c:1015 if_detach(ffff8000015ef000) at if_detach+0x322 sys/net/if.c:1311 tun_clone_destroy(ffff8000015ef000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff8000380ceff0) at if_clone_destroy+0x1d5 sys/net/if.c:1479 sys_ioctl(ffff80002a77d4d8,ffff8000380cf1c0,ffff8000380cf110) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff8000380cf1c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000380cf1c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xcc39090e410, count: 4 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(0xfffff8806da648b0, 0x6a6a95b1, 0, 1) -> e ddb> show kasan No such command ddb> trace rtable_exists(0) at rtable_exists+0x11d sys/net/rtable.c:278 rtrequest_delete(ffff8000380ced08,4,ffff8000015ef000,ffff8000380cedb8,0) at rtrequest_delete+0xea sys/net/route.c:902 rt_ifa_del(ffff800001609400,800100,ffff800001609468,0) at rt_ifa_del+0x3a1 sys/net/route.c:1342 in_purgeaddr(ffff800001609400) at in_purgeaddr+0x129 in_remove_prefix sys/netinet/in.c:810 [inline] in_purgeaddr(ffff800001609400) at in_purgeaddr+0x129 in_ifscrub sys/netinet/in.c:636 [inline] in_purgeaddr(ffff800001609400) at in_purgeaddr+0x129 sys/netinet/in.c:751 in_ifdetach(ffff8000015ef000) at in_ifdetach+0x7e sys/netinet/in.c:1015 if_detach(ffff8000015ef000) at if_detach+0x322 sys/net/if.c:1311 tun_clone_destroy(ffff8000015ef000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff8000380ceff0) at if_clone_destroy+0x1d5 sys/net/if.c:1479 sys_ioctl(ffff80002a77d4d8,ffff8000380cf1c0,ffff8000380cf110) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff8000380cf1c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000380cf1c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xcc39090e410, count: -11 ddb> show registers rdi 0x17 rsi 0 rbp 0xffff8000380cec40 rbx 0x1 rdx 0xffff8000015ebac0 rcx 0 rax 0x6a6a95b1 r8 0 r9 0 r10 0x3b9fa1226f4c82ec r11 0x81b0103169078751 r12 0xffff800000061a80 r13 0xffff800000c57750 r14 0 r15 0x17 rip 0xffffffff831aee4d rtable_exists+0x11d cs 0x8 rflags 0x10206 __ALIGN_SIZE+0xf206 rsp 0xffff8000380cebf0 ss 0x10 rtable_exists+0x11d: cmpq $0,0(%rax,%rcx,8) ddb> show proc PROC (syz-executor) tid=197776 pid=7304 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a77c7e0,0xffff80002a77c558 process=0xffff800045ff9218 user=0xffff8000380ca000, vmspace=0xfffff8806da648b0 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 2237 510741 87686 0 2 0 0 syz-executor 2237 279731 87686 0 2 0 0x4000000 syz-executor 42787 122024 95829 0 3 0 0x80 nanoslp syz-executor 42787 273961 95829 0 3 0 0x4000080 fifow syz-executor 42787 30461 95829 0 3 0 0x4000080 fsleep syz-executor 7304 114022 97909 0 3 0 0x80 nanoslp syz-executor * 7304 197776 97909 0 7 0 0x4000000 syz-executor 7304 239943 97909 0 3 0 0x4000080 fsleep syz-executor 38325 327846 18701 0 3 0 0x80 nanoslp syz-executor 38325 219200 18701 0 3 0 0x4000080 kqpoll syz-executor 38325 141934 18701 0 3 0 0x4000080 fsleep syz-executor 86930 78464 79190 0 2 0 0 syz-executor 86930 184538 79190 0 3 0 0x4000080 kqread syz-executor 86930 72729 79190 0 3 0 0x4000080 fsleep syz-executor 86930 497470 79190 0 3 0 0x4000080 fsleep syz-executor 32195 198024 93507 0 3 0 0x80 nanoslp syz-executor 32195 18637 93507 0 3 0 0x4000080 sbwait syz-executor 66010 323191 0 0 3 0x14000 0x200 acct acct 95829 107567 17256 0 3 0x2 0x80 nanoslp syz-executor 97909 435082 17256 0 3 0x2 0x80 nanoslp syz-executor 53737 508082 17256 0 3 0x2 0x80 wait syz-executor 18701 409111 17256 0 3 0x2 0x80 nanoslp syz-executor 48143 408127 17256 0 3 0x10000002 0x80 nanoslp syz-executor 93507 435585 17256 0 3 0x2 0x80 nanoslp syz-executor 79190 496772 17256 0 3 0x2 0x80 nanoslp syz-executor 87686 216745 17256 0 3 0x2 0x80 nanoslp syz-executor 17256 13270 1 0 3 0x2 0x80 kqread syz-executor 1528 380802 0 0 3 0x14000 0x200 bored smr 49943 253615 0 0 2 0x14000 0x200 zerothread 84107 218506 0 0 3 0x14000 0x200 aiodoned aiodoned 878 453170 0 0 3 0x14000 0x200 syncer update 84346 412907 0 0 3 0x14000 0x200 cleaner cleaner 86558 43069 0 0 3 0x14000 0x200 reaper reaper 95072 492262 0 0 3 0x14000 0x200 pgdaemon pagedaemon 16327 387558 0 0 3 0x14000 0x200 bored viomb 88003 520043 0 0 3 0x14000 0x40000200 acpi0 acpi0 56990 162051 0 0 3 0x14000 0x200 bored softnet0 92008 238767 0 0 3 0x14000 0x200 bored systqmp 18233 480784 0 0 3 0x14000 0x200 bored systq 10745 44044 0 0 3 0x14000 0x40000200 tmoslp softclock 96241 132484 0 0 3 0x14000 0x40000200 idle0 1 473640 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 11033 12172K 13170K 166960K 12863 0 pcb 17 12K 16K 166960K 100 0 rtable 254 11K 11K 166960K 444 0 pf 35 14K 73K 166960K 80 0 ifaddr 39 6K 7K 166960K 56 0 ifgroup 47 1K 2K 166960K 77 0 sysctl 3 1K 9K 166960K 40 0 counters 33 17K 18K 166960K 48 0 ioctlops 0 0K 4K 166960K 142 0 iov 0 0K 8K 166960K 8 0 mount 1 1K 1K 166960K 1 0 log 2 0K 0K 166960K 6 0 vnodes 1422 89K 90K 166960K 1742 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 79 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 16 61K 89K 166960K 373 0 sigio 0 0K 0K 166960K 3 0 proc 12 25K 108K 166960K 519 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 37 0 in_multi 88 6K 7K 166960K 112 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 11 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 390 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 136 82K 151K 166960K 4894 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 17 34K 97K 166960K 1476 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 7 0 NDP 11 0K 2K 166960K 37 0 temp 39 9110K 13210K 166960K 9370 0 kqueue 5 10K 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 86 0 86 2 0 2 2 0 8 2 rtentry 136 124 0 19 5 0 5 5 0 8 0 unpcb 144 293 0 289 6 3 3 4 0 8 2 syncache 336 8 0 8 2 1 1 1 0 8 1 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 736 139 0 135 7 0 7 7 0 8 6 arp 96 20 0 3 1 0 1 1 0 8 0 ipq 40 5 0 1 1 0 1 1 0 8 0 ipqe 40 8 0 4 1 0 1 1 0 8 0 inpcb 328 419 0 412 7 0 7 7 0 8 6 ip6q 72 2 0 1 2 1 1 1 0 8 0 ip6af 40 4 0 2 2 1 1 1 0 8 0 nd6 112 29 0 5 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 12 0 12 2 1 1 1 0 8 1 pfstscr 40 4 0 4 1 0 1 1 0 8 1 pfrktable 1344 6 0 2 1 0 1 1 0 8 0 pfanchor 1288 2 0 0 1 0 1 1 0 8 0 pftag 88 2 0 1 2 1 1 1 0 8 0 pfqueue 320 1 0 0 1 0 1 1 0 8 0 pfstkey 128 4 0 4 1 0 1 1 0 8 1 pfstate 384 2 0 2 1 0 1 1 0 8 1 pfrule 1360 6 0 5 2 1 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 505 0 60 32 0 32 32 0 8 0 art_table 40 507 0 60 6 0 6 6 0 8 0 art_node 32 123 0 27 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semapl 72 76 0 66 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1983 0 526 92 0 92 92 0 8 0 ffsino 256 1983 0 526 92 0 92 92 0 8 0 nchpl 144 2509 0 810 64 0 64 64 0 8 0 rtmask 32 3 0 3 2 1 1 1 0 8 1 vnodes 216 2372 0 0 132 0 132 132 0 8 0 namei 1024 8331 0 8331 3 2 1 2 0 8 1 pfiaddrpl 120 2 0 0 1 0 1 1 0 8 0 kstatmem 264 43 0 20 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 10255 0 10255 3 2 1 3 1 8 1 plimitpl 152 97 0 87 1 0 1 1 0 8 0 sigapl 424 669 0 636 6 1 5 6 0 8 0 knotepl 120 13210 0 13154 21 11 10 17 0 8 8 kqueuepl 184 94 0 88 1 0 1 1 0 8 0 pipepl 304 137 0 109 3 0 3 3 0 8 0 fdescpl 448 655 0 637 5 1 4 5 0 8 0 filepl 120 3530 0 3361 14 3 11 11 0 8 4 lockfpl 104 145 0 145 2 1 1 2 0 8 1 lockfspl 48 67 0 67 1 0 1 1 0 8 1 sessionpl 144 34 0 32 1 0 1 1 0 8 0 pgrppl 48 108 0 98 1 0 1 1 0 8 0 ucredpl 104 363 0 360 1 0 1 1 0 8 0 zombiepl 144 638 0 636 2 1 1 1 0 8 0 processpl 1152 669 0 636 4 0 4 4 0 8 0 procpl 664 1025 0 981 5 0 5 5 0 8 0 sockpl 552 904 0 893 13 5 8 8 0 8 5 mcl64k 65536 16 0 15 2 1 1 1 0 8 0 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k128 9344 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 7 0 6 2 1 1 1 0 8 0 mcl4k 4096 2812 0 2761 14 6 8 13 0 8 1 mcl2k 2048 292 0 289 2 1 1 1 0 8 0 mextrefs 64 143 0 142 2 1 1 1 0 8 0 mtagpl 96 9 0 9 2 1 1 1 0 8 1 mbufpl 256 7073 0 6914 15 0 15 15 0 8 4 bufpl 272 3804 0 102 247 0 247 247 0 8 0 anonpl 24 117301 0 115758 51 1 50 50 0 187 21 amapchunkpl 152 15074 0 14701 25 0 25 25 0 158 6 amappl16 200 1892 0 1872 18 3 15 15 0 8 9 amappl15 192 50 0 50 1 1 0 1 0 8 0 amappl14 184 409 0 409 1 0 1 1 0 8 1 amappl13 176 131 0 131 1 0 1 1 0 8 1 amappl12 168 926 0 909 2 0 2 2 0 8 0 amappl11 160 6 0 6 1 1 0 1 0 8 0 amappl10 152 74 0 74 1 0 1 1 0 8 1 amappl9 144 272 0 272 1 0 1 1 0 8 1 amappl8 136 94 0 94 1 0 1 1 0 8 1 amappl7 128 137 0 136 1 0 1 1 0 8 0 amappl6 120 173 0 173 1 0 1 1 0 8 1 amappl5 112 90 0 89 1 0 1 1 0 8 0 amappl4 104 280 0 278 1 0 1 1 0 8 0 amappl3 96 3003 0 2920 4 0 4 4 0 8 0 amappl2 88 547 0 537 2 0 2 2 0 8 0 amappl1 80 11439 0 11347 14 2 12 14 0 8 5 amappl 88 4155 0 4030 4 0 4 4 0 92 0 uvmvnodes 80 99 0 0 3 0 3 3 0 8 0 dma32768 32768 1 0 1 1 0 1 1 0 8 1 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 254 0 254 2 1 1 1 0 8 1 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 655 0 637 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 655 0 637 1 0 1 1 0 8 0 vmmpekpl 168 7120 0 7092 2 0 2 2 0 8 0 vmmpepl 168 50103 0 49305 80 0 80 80 0 357 35 vmsppl 368 654 0 637 4 1 3 4 0 8 0 rwobjpl 40 16975 0 16583 11 0 11 11 0 8 0 pdppl 4096 1316 0 1274 92 36 56 78 0 8 14 pvpl 32 301074 0 296838 112 1 111 111 0 265 50 pmappl 216 654 0 637 2 0 2 2 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 623 0 54 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 rtrequest_delete(ffff8000380ced08,4,ffff8000015ef000,ffff8000380cedb8,0) at rtrequest_delete+0xea sys/net/route.c:902 rt_ifa_del(ffff800001609400,800100,ffff800001609468,0) at rt_ifa_del+0x3a1 sys/net/route.c:1342 in_purgeaddr(ffff800001609400) at in_purgeaddr+0x129 in_remove_prefix sys/netinet/in.c:810 [inline] in_purgeaddr(ffff800001609400) at in_purgeaddr+0x129 in_ifscrub sys/netinet/in.c:636 [inline] in_purgeaddr(ffff800001609400) at in_purgeaddr+0x129 sys/netinet/in.c:751 in_ifdetach(ffff8000015ef000) at in_ifdetach+0x7e sys/netinet/in.c:1015 if_detach(ffff8000015ef000) at if_detach+0x322 sys/net/if.c:1311 tun_clone_destroy(ffff8000015ef000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff8000380ceff0) at if_clone_destroy+0x1d5 sys/net/if.c:1479 sys_ioctl(ffff80002a77d4d8,ffff8000380cf1c0,ffff8000380cf110) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff8000380cf1c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000380cf1c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xcc39090e410, count: -11 ddb> machine ddbcpu 1 No such command ddb> trace rtable_exists(0) at rtable_exists+0x11d sys/net/rtable.c:278 rtrequest_delete(ffff8000380ced08,4,ffff8000015ef000,ffff8000380cedb8,0) at rtrequest_delete+0xea sys/net/route.c:902 rt_ifa_del(ffff800001609400,800100,ffff800001609468,0) at rt_ifa_del+0x3a1 sys/net/route.c:1342 in_purgeaddr(ffff800001609400) at in_purgeaddr+0x129 in_remove_prefix sys/netinet/in.c:810 [inline] in_purgeaddr(ffff800001609400) at in_purgeaddr+0x129 in_ifscrub sys/netinet/in.c:636 [inline] in_purgeaddr(ffff800001609400) at in_purgeaddr+0x129 sys/netinet/in.c:751 in_ifdetach(ffff8000015ef000) at in_ifdetach+0x7e sys/netinet/in.c:1015 if