uvm_fault(0xfffffb806d1b6e70, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at rtable_match+0xcb: movq 0(%rax,%rcx,8),%r15 TID PID UID PRFLAGS PFLAGS CPU COMMAND *209031 4383 0 0x2000 0x4080000 0 syz-executor rtable_match(0,ffff80003c938c90,0) at rtable_match+0xcb rtable_get sys/net/rtable.c:260 [inline] rtable_match(0,ffff80003c938c90,0) at rtable_match+0xcb sys/net/rtable.c:492 rt_match(ffff80003c938c90,0,0,0) at rt_match+0x51 sys/net/route.c:-1 in6_ifdetach(ffff800001614000) at in6_ifdetach+0x168 sys/netinet6/in6_ifattach.c:431 if_detach(ffff800001614000) at if_detach+0x333 sys/net/if.c:1314 tun_clone_destroy(ffff800001614000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff80003c938e00) at if_clone_destroy+0x1d5 sys/net/if.c:1479 tun_dev_close(2802,14f) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80003c938ec0) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffb8063c968c8,1,fffffb8007ffd410,ffff80003c8fa020) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffffb8063e8aad0,ffff80003c8fa020) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffb8063e8aad0,ffff80003c8fa020) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621 fdrop(fffffb8063e8aad0,ffff80003c8fa020) at fdrop+0x121 sys/kern/kern_descrip.c:1281 dofilereadv(ffff80003c8fa020,3,ffff80003c939110,1,ffff80003c9391c0) at dofilereadv+0x4ca sys/kern/sys_generic.c:273 sys_preadv(ffff80003c8fa020,ffff80003c939270,ffff80003c9391c0) at sys_preadv+0xe3 sys/kern/vfs_syscalls.c:3286 syscall(ffff80003c939270) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c939270) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 end trace frame: 0xffff80003c9392f0, count: 0 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(0xfffffb806d1b6e70, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace rtable_match(0,ffff80003c938c90,0) at rtable_match+0xcb rtable_get sys/net/rtable.c:260 [inline] rtable_match(0,ffff80003c938c90,0) at rtable_match+0xcb sys/net/rtable.c:492 rt_match(ffff80003c938c90,0,0,0) at rt_match+0x51 sys/net/route.c:-1 in6_ifdetach(ffff800001614000) at in6_ifdetach+0x168 sys/netinet6/in6_ifattach.c:431 if_detach(ffff800001614000) at if_detach+0x333 sys/net/if.c:1314 tun_clone_destroy(ffff800001614000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff80003c938e00) at if_clone_destroy+0x1d5 sys/net/if.c:1479 tun_dev_close(2802,14f) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80003c938ec0) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffb8063c968c8,1,fffffb8007ffd410,ffff80003c8fa020) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffffb8063e8aad0,ffff80003c8fa020) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffb8063e8aad0,ffff80003c8fa020) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621 fdrop(fffffb8063e8aad0,ffff80003c8fa020) at fdrop+0x121 sys/kern/kern_descrip.c:1281 dofilereadv(ffff80003c8fa020,3,ffff80003c939110,1,ffff80003c9391c0) at dofilereadv+0x4ca sys/kern/sys_generic.c:273 sys_preadv(ffff80003c8fa020,ffff80003c939270,ffff80003c9391c0) at sys_preadv+0xe3 sys/kern/vfs_syscalls.c:3286 syscall(ffff80003c939270) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c939270) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5daa2b7fcb0, count: -15 ddb> show registers rdi 0x1 rsi 0 rbp 0xffff80003c938b70 rbx 0 rdx 0xffff8000015bc6c0 rcx 0 rax 0 r8 0xffffffffffffffff r9 0 r10 0x200a5ac48730f9a9 r11 0xfd4b28aede084d91 r12 0xffff80003c938c90 r13 0x1 r14 0 r15 0xffff800000c577a0 rip 0xffffffff8322151b rtable_match+0xcb cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80003c938b10 ss 0x10 rtable_match+0xcb: movq 0(%rax,%rcx,8),%r15 ddb> show proc PROC (syz-executor) tid=209031 pid=4383 tcnt=3 stat=onproc flags process=2000 proc=4080000 runpri=32, usrpri=73, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80003c8fafb0 scnt=1 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c8fb248,0xffff80003c8fafc0 process=0xffff800045ff9698 user=0xffff80003c934000, vmspace=0xfffffb806d1b6e70 estcpu=23, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 35736 257411 74434 0 2 0 0 syz-executor 35736 393919 74434 0 3 0 0x4000080 fsleep syz-executor 35230 472449 87994 0 2 0 0 syz-executor 54391 199027 54203 0 2 0 0 syz-executor 54391 287635 54203 0 3 0 0x4000080 fsleep syz-executor 54391 199487 54203 0 2 0 0x4000000 syz-executor 54391 411444 54203 0 2 0 0x4000000 syz-executor 4383 402311 67015 0 4 0x2000 0x80000 syz-executor * 4383 209031 67015 0 7 0x2000 0x4080000 syz-executor 4383 405988 67015 0 3 0x2000 0x4000000 suspend syz-executor 74434 398079 12441 0 3 0x2 0x80 nanoslp syz-executor 137 239617 12441 0 3 0x2 0 biowait syz-executor 9334 374922 12441 0 3 0x2 0 biowait syz-executor 87994 201447 12441 0 3 0x2 0x80 nanoslp syz-executor 16916 75964 12441 0 3 0x2 0x80 nanoslp syz-executor 54203 210076 12441 0 3 0x2 0x80 nanoslp syz-executor 17531 233805 12441 0 3 0x2 0 biowait syz-executor 67015 480509 12441 0 3 0x2 0x80 nanoslp syz-executor 12441 332982 45035 0 3 0x2 0x80 kqread syz-executor 45035 428324 45662 0 3 0x100002 0x88 sigsusp ksh 45662 336804 55066 0 3 0x10 0x88 kqread sshd-session 55066 237439 37686 0 3 0x12 0x80 kqread sshd-session 51977 137752 1 0 3 0x100003 0x80 ttyin getty 37686 34346 1 0 3 0 0x88 kqread sshd 96732 214670 1920 73 3 0x1100010 0x80 kqread syslogd 1920 229683 1 0 3 0x100002 0x80 sbwait syslogd 34555 63798 1 0 3 0x100000 0x80 kqread resolvd 340 188405 99535 77 3 0x100012 0x80 kqread dhcpleased 15031 482265 99535 77 3 0x100012 0x80 kqread dhcpleased 99535 64921 1 0 3 0 0x80 kqread dhcpleased 83294 308335 0 0 3 0x14000 0x200 bored smr 80310 26083 0 0 2 0x14000 0x200 zerothread 216 508425 0 0 3 0x14000 0x200 aiodoned aiodoned 149 349746 0 0 3 0x14000 0x200 syncer update 95757 167266 0 0 3 0x14000 0x200 cleaner cleaner 34780 80410 0 0 3 0x14000 0x200 reaper reaper 86225 295499 0 0 3 0x14000 0x200 pgdaemon pagedaemon 33607 375510 0 0 3 0x14000 0x200 bored viomb 22859 152009 0 0 3 0x14000 0x40000200 acpi0 acpi0 87113 426498 0 0 3 0x14000 0x200 bored softnet0 38490 403197 0 0 3 0x14000 0x200 bored systqmp 46284 246995 0 0 3 0x14000 0x200 bored systq 34276 449 0 0 3 0x14000 0x40000200 tmoslp softclock 21985 379152 0 0 3 0x14000 0x40000200 idle0 1 437255 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 11038 12109K 12504K 166960K 12291 0 pcb 17 15K 17K 166960K 80 0 rtable 242 8K 8K 166960K 407 0 pf 37 14K 17K 166960K 53 0 ifaddr 42 7K 7K 166960K 52 0 ifgroup 59 2K 2K 166960K 65 0 sysctl 3 1K 9K 166960K 7 0 counters 35 18K 18K 166960K 39 0 ioctlops 0 0K 4K 166960K 43 0 iov 0 0K 16K 166960K 34 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1299 82K 82K 166960K 1451 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 6 0K 0K 166960K 6 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 15 53K 97K 166960K 242 0 sigio 0 0K 0K 166960K 1 0 proc 60 59K 124K 166960K 530 0 subproc 72 4K 4K 166960K 73 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 8 0 in_multi 88 5K 6K 166960K 101 0 ether_multi 1 0K 0K 166960K 1 0 mrt 1 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 441 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 200 158K 173K 166960K 3790 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 36 72K 96K 166960K 1352 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 3 0 NDP 13 0K 2K 166960K 32 0 temp 37 9106K 9170K 166960K 4503 0 kqueue 13 20K 24K 166960K 37 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 43 0 40 1 0 1 1 0 8 0 rtentry 136 118 0 15 4 0 4 4 0 8 0 unpcb 144 112 0 97 1 0 1 1 0 8 0 syncache 336 6 0 6 1 0 1 1 0 8 1 tcpqe 32 4 0 4 1 0 1 1 0 8 1 tcpcb 736 43 0 35 2 0 2 2 0 8 1 arp 96 19 0 2 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 1 0 0 1 0 1 1 0 8 0 inpcb 328 308 0 296 12 0 12 12 0 8 8 nd6 112 25 0 3 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 4 0 4 1 0 1 1 0 8 1 pffrag 232 3 0 0 1 0 1 1 0 482 0 pffrnode 88 3 0 0 1 0 1 1 0 8 0 pffrent 40 3 0 0 1 0 1 1 0 8 0 pfrktable 1344 3 0 1 1 0 1 1 0 8 0 pfanchor 1288 2 0 0 1 0 1 1 0 8 0 pfrule 1360 1 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 457 0 44 29 0 29 29 0 8 1 art_table 40 458 0 44 5 0 5 5 0 8 0 art_node 32 115 0 22 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 0 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 72 4 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1771 0 312 92 0 92 92 0 8 0 ffsino 256 1771 0 312 92 0 92 92 0 8 0 nchpl 144 2132 0 443 63 0 63 63 0 8 0 vnodes 216 1887 0 0 105 0 105 105 0 8 0 namei 1024 6576 0 6575 2 0 2 2 0 8 1 pfiaddrpl 120 1 0 0 1 0 1 1 0 8 0 kstatmem 264 33 0 6 2 0 2 2 0 8 0 scxspl 216 7188 0 7185 8 0 8 8 1 8 7 plimitpl 152 73 0 57 1 0 1 1 0 8 0 sigapl 424 540 0 500 6 0 6 6 0 8 1 knotepl 120 6503 0 6456 10 0 10 10 0 8 7 kqueuepl 184 105 0 96 3 0 3 3 0 8 2 pipepl 304 130 0 103 3 0 3 3 0 8 0 fdescpl 448 527 0 500 5 0 5 5 0 8 1 filepl 120 2439 0 2231 11 0 11 11 0 8 2 lockfpl 104 28 0 26 1 0 1 1 0 8 0 lockfspl 48 13 0 11 1 0 1 1 0 8 0 sessionpl 144 125 0 117 1 0 1 1 0 8 0 pgrppl 48 134 0 118 1 0 1 1 0 8 0 ucredpl 104 298 0 287 1 0 1 1 0 8 0 zombiepl 144 501 0 500 1 0 1 1 0 8 0 processpl 1152 540 0 500 4 0 4 4 0 8 0 procpl 664 719 0 673 6 0 6 6 0 8 1 sockpl 552 465 0 435 12 0 12 12 0 8 7 mcl64k 65536 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 6 0 6 1 0 1 1 0 8 1 mcl4k 4096 2633 0 2579 13 0 13 13 0 8 5 mcl2k 2048 203 0 202 1 0 1 1 0 8 0 mextrefs 64 76 0 76 1 0 1 1 0 8 1 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 5394 0 5232 11 0 11 11 0 8 0 bufpl 272 2433 0 103 156 0 156 156 0 8 0 anonpl 24 96896 0 93974 32 0 32 32 0 187 10 amapchunkpl 152 11255 0 10844 26 0 26 26 0 158 7 amappl16 200 1524 0 1503 5 0 5 5 0 8 3 amappl15 192 7 0 7 1 0 1 1 0 8 1 amappl14 184 417 0 416 1 0 1 1 0 8 0 amappl13 176 117 0 107 1 0 1 1 0 8 0 amappl12 168 768 0 743 2 0 2 2 0 8 0 amappl11 160 4 0 4 1 0 1 1 0 8 1 amappl10 152 72 0 62 1 0 1 1 0 8 0 amappl9 144 287 0 287 1 0 1 1 0 8 1 amappl8 136 93 0 92 1 0 1 1 0 8 0 amappl7 128 142 0 131 1 0 1 1 0 8 0 amappl6 120 148 0 146 1 0 1 1 0 8 0 amappl5 112 92 0 85 1 0 1 1 0 8 0 amappl4 104 271 0 255 1 0 1 1 0 8 0 amappl3 96 1961 0 1879 3 0 3 3 0 8 0 amappl2 88 648 0 581 2 0 2 2 0 8 0 amappl1 80 10578 0 10047 13 0 13 13 0 8 1 amappl 88 3071 0 2934 4 0 4 4 0 92 0 uvmvnodes 80 98 0 0 2 0 2 2 0 8 0 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 527 0 500 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 527 0 500 1 0 1 1 0 8 0 vmmpekpl 168 6150 0 6110 2 0 2 2 0 8 0 vmmpepl 168 42279 0 40632 80 0 80 80 0 357 2 vmsppl 368 526 0 500 4 0 4 4 0 8 1 rwobjpl 40 14868 0 13953 11 0 11 11 0 8 1 pdppl 4096 1060 0 1000 98 32 66 82 0 8 6 pvpl 32 243960 0 236410 101 0 101 101 0 265 22 pmappl 216 526 0 500 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 516 0 32 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace rtable_match(0,ffff80003c938c90,0) at rtable_match+0xcb rtable_get sys/net/rtable.c:260 [inline] rtable_match(0,ffff80003c938c90,0) at rtable_match+0xcb sys/net/rtable.c:492 rt_match(ffff80003c938c90,0,0,0) at rt_match+0x51 sys/net/route.c:-1 in6_ifdetach(ffff800001614000) at in6_ifdetach+0x168 sys/netinet6/in6_ifattach.c:431 if_detach(ffff800001614000) at if_detach+0x333 sys/net/if.c:1314 tun_clone_destroy(ffff800001614000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff80003c938e00) at if_clone_destroy+0x1d5 sys/net/if.c:1479 tun_dev_close(2802,14f) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80003c938ec0) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffb8063c968c8,1,fffffb8007ffd410,ffff80003c8fa020) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffffb8063e8aad0,ffff80003c8fa020) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffb8063e8aad0,ffff80003c8fa020) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621 fdrop(fffffb8063e8aad0,ffff80003c8fa020) at fdrop+0x121 sys/kern/kern_descrip.c:1281 dofilereadv(ffff80003c8fa020,3,ffff80003c939110,1,ffff80003c9391c0) at dofilereadv+0x4ca sys/kern/sys_generic.c:273 sys_preadv(ffff80003c8fa020,ffff80003c939270,ffff80003c9391c0) at sys_preadv+0xe3 sys/kern/vfs_syscalls.c:3286 syscall(ffff80003c939270) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c939270) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5daa2b7fcb0, count: -15 ddb> machine ddbcpu 1 No such command ddb> trace rtable_match(0,ffff80003c938c90,0) at rtable_match+0xcb rtable_get sys/net/rtable.c:260 [inline] rtable_match(0,ffff80003c938c90,0) at rtable_match+0xcb sys/net/rtable.c:492 rt_match(ffff80003c938c90,0,0,0) at rt_match+0x51 sys/net/route.c:-1 in6_ifdetach(ffff800001614000) at in6_ifdetach+0x168 sys/netinet6/in6_ifattach.c:431 if_detach(ffff800001614000) at if_detach+0x333 sys/net/if.c:1314 tun_clone_destroy(ffff800001614000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff80003c938e00) at if_clone_destroy+0x1d5 sys/net/if.c:1479 tun_dev_close(2802,14f) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80003c938ec0) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffb8063c968c8,1,fffffb8007ffd410,ffff80003c8fa020) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffffb8063e8aad0,ffff80003c8fa020) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffb8063e8aad0,ffff80003c8fa020) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621 fdrop(fffffb8063e8aad0,ffff80003c8fa020) at fdrop+0x121 sys/kern/kern_descrip.c:1281 dofilereadv(ffff80003c8fa020,3,ffff80003c939110,1,ffff80003c9391c0) at dofilereadv+0x4ca sys/kern/sys_generic.c:273 sys_preadv(ffff80003c8fa020,ffff80003c939270,ffff80003c9391c0) at sys_preadv+0xe3 sys/kern/vfs_syscalls.c:3286 syscall(ffff80003c939270) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c939270) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5daa2b7fcb0, count: -15