panic: attempt to access user address 0x847173e88e0 in supervisor mode Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 pageflttrap() at pageflttrap+0x3eb kerntrap(ffff80001553dfa0) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,847b217e000,0,3,ffff800000a62800,ffff800000b6a800) at alltraps_kern_meltdown+0x7b in6_purgeaddr(ffff800000b6a800) at in6_purgeaddr+0x149 sys/netinet6/in6.c:915 in6_ifdetach(ffff800000a62800) at in6_ifdetach+0x74 sys/netinet6/in6_ifattach.c:422 if_detach(ffff800000a62800) at if_detach+0x155 sys/net/if.c:1110 tun_clone_destroy(ffff800000a62800) at tun_clone_destroy+0x1c0 sys/net/if_tun.c:278 spec_close(ffff80001553e260) at spec_close+0x3b0 sys/kern/spec_vnops.c:553 VOP_CLOSE(fffffd8037c49c30,7,fffffd803f7c6a20,ffff8000ffff89e8) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:175 vn_closefile(fffffd802e3cec40,ffff8000ffff89e8) at vn_closefile+0xd3 vn_close sys/kern/vfs_vnops.c:301 [inline] vn_closefile(fffffd802e3cec40,ffff8000ffff89e8) at vn_closefile+0xd3 sys/kern/vfs_vnops.c:613 fdrop(fffffd802e3cec40,ffff8000ffff89e8) at fdrop+0xc2 sys/kern/kern_descrip.c:1273 closef(fffffd802e3cec40,ffff8000ffff89e8) at closef+0x118 sys/kern/kern_descrip.c:1257 end trace frame: 0xffff80001553e430, 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 attempt to access user address 0x847173e88e0 in supervisor mode ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 pageflttrap() at pageflttrap+0x3eb kerntrap(ffff80001553dfa0) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,847b217e000,0,3,ffff800000a62800,ffff800000b6a800) at alltraps_kern_meltdown+0x7b in6_purgeaddr(ffff800000b6a800) at in6_purgeaddr+0x149 sys/netinet6/in6.c:915 in6_ifdetach(ffff800000a62800) at in6_ifdetach+0x74 sys/netinet6/in6_ifattach.c:422 if_detach(ffff800000a62800) at if_detach+0x155 sys/net/if.c:1110 tun_clone_destroy(ffff800000a62800) at tun_clone_destroy+0x1c0 sys/net/if_tun.c:278 spec_close(ffff80001553e260) at spec_close+0x3b0 sys/kern/spec_vnops.c:553 VOP_CLOSE(fffffd8037c49c30,7,fffffd803f7c6a20,ffff8000ffff89e8) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:175 vn_closefile(fffffd802e3cec40,ffff8000ffff89e8) at vn_closefile+0xd3 vn_close sys/kern/vfs_vnops.c:301 [inline] vn_closefile(fffffd802e3cec40,ffff8000ffff89e8) at vn_closefile+0xd3 sys/kern/vfs_vnops.c:613 fdrop(fffffd802e3cec40,ffff8000ffff89e8) at fdrop+0xc2 sys/kern/kern_descrip.c:1273 closef(fffffd802e3cec40,ffff8000ffff89e8) at closef+0x118 sys/kern/kern_descrip.c:1257 fdfree(ffff8000ffff89e8) at fdfree+0x100 sys/kern/kern_descrip.c:1189 exit1(ffff8000ffff89e8,19,1) at exit1+0x32f sys/kern/kern_exit.c:196 postsig(ffff8000ffff89e8,19) at postsig+0x4a6 sigexit sys/kern/kern_sig.c:1499 [inline] postsig(ffff8000ffff89e8,19) at postsig+0x4a6 sys/kern/kern_sig.c:1431 userret(ffff8000ffff89e8) at userret+0x159 sys/kern/kern_sig.c:1889 syscall(ffff80001553e6e0) at syscall+0x42e mi_syscall_return sys/sys/syscall_mi.h:115 [inline] syscall(ffff80001553e6e0) at syscall+0x42e sys/arch/amd64/amd64/trap.c:577 Xsyscall(6,3,7f7ffffef5f0,5,0,847b56dd000) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffef0f0, count: -20 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001553de10 rbx 0xffff80001553dec0 rdx 0x2 rcx 0 rax 0 r8 0xffff80001553ddd0 r9 0x1 r10 0 r11 0xf3c6b14ed1d351c0 r12 0x3000000008 r13 0xffff80001553de20 r14 0x100 r15 0x1 rip 0xffffffff81896ae8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001553de00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=509081 stat=onproc flags process=a proc=2000 pri=70, usrpri=70, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff8280,0xffff8000ffff33e8 process=0xffff8000148a30f8 user=0xffff800015539000, vmspace=0xfffffd803f014110 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 92764 251020 73883 0 2 0 syz-executor.0 92764 289566 73883 0 3 0x4000080 netio syz-executor.0 64248 397601 0 0 3 0x14200 bored sosplice 73883 403882 93598 0 3 0x82 nanosleep syz-executor.0 93598 298326 76031 0 3 0x82 thrsleep syz-fuzzer 93598 501112 76031 0 3 0x4000082 nanosleep syz-fuzzer 93598 14939 76031 0 2 0x4000082 syz-fuzzer 93598 291293 76031 0 3 0x4000082 thrsleep syz-fuzzer 93598 518806 76031 0 3 0x4000082 thrsleep syz-fuzzer 93598 286207 76031 0 3 0x4000082 thrsleep syz-fuzzer 93598 129677 76031 0 3 0x4000082 thrsleep syz-fuzzer 76031 295991 22723 0 3 0x10008a pause ksh 22723 12288 40765 0 3 0x92 select sshd 28135 237158 1 0 3 0x100083 ttyin getty 40765 410838 1 0 3 0x80 select sshd 85178 424446 4400 73 3 0x100090 kqread syslogd 4400 274551 1 0 3 0x100082 netio syslogd 96092 491753 1 77 2 0x100090 dhclient 70544 133843 1 0 3 0x80 poll dhclient 27392 236372 0 0 2 0x14200 zerothread 97582 322079 0 0 3 0x14200 aiodoned aiodoned 78700 489215 0 0 3 0x14200 syncer update 68975 176451 0 0 3 0x14200 cleaner cleaner 37741 447683 0 0 3 0x14200 reaper reaper 89769 509976 0 0 3 0x14200 pgdaemon pagedaemon 43254 381001 0 0 3 0x14200 bored crynlk 52620 204210 0 0 3 0x14200 bored crypto 95481 270312 0 0 3 0x40014200 acpi0 acpi0 74632 199214 0 0 2 0x14200 softnet 32289 460537 0 0 2 0x14200 systqmp 83530 505214 0 0 3 0x14200 bored systq 6044 255685 0 0 3 0x40014200 bored softclock 97343 469261 0 0 3 0x40014200 idle0 31620 387492 0 0 3 0x14200 bored smr 1 465168 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9512 6522K 7671K 78643K 12061 0 0 pcb 13 10K 12K 78643K 67 0 0 rtable 72 2K 4K 78643K 254 0 0 ifaddr 48 11K 11K 78643K 73 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 36 0 0 iov 0 0K 16K 78643K 78 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1232 77K 78K 78643K 1651 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 6 0 0 VM map 4 1K 1K 78643K 6 0 0 sem 12 0K 0K 78643K 124 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 283 0 0 sigio 0 0K 0K 78643K 15 0 0 proc 49 38K 63K 78643K 404 0 0 subproc 23 1K 2K 78643K 34 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 67 0 0 in_multi 12 0K 2K 78643K 36 0 0 ether_multi 1 0K 0K 78643K 2 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 214 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 90 37K 37K 78643K 1506 0 0 UVM aobj 10 2K 3K 78643K 16 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 43 0 0 NDP 10 0K 0K 78643K 19 0 0 temp 160 3539K 3615K 78643K 18480 0 0 kqueue 0 0K 0K 78643K 7 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 5 1 0 1 1 0 8 0 rtpcb 80 51 0 49 1 0 1 1 0 8 0 rtentry 112 53 0 27 2 0 2 2 0 8 0 unpcb 120 438 0 428 1 0 1 1 0 8 0 syncache 264 5 0 5 2 2 0 1 0 8 0 tcpqe 32 61 0 61 1 1 0 1 0 8 0 tcpcb 544 138 0 134 2 1 1 2 0 8 0 inpcb 280 613 0 606 13 8 5 13 0 8 4 nd6 48 6 0 5 1 0 1 1 0 8 0 ppxss 1128 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 251 0 68 14 2 12 14 0 8 0 art_table 32 252 0 68 2 0 2 2 0 8 0 art_node 16 52 0 23 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 9 1 0 1 1 0 8 0 semapl 112 121 0 111 1 0 1 1 0 8 0 shmpl 112 14 0 6 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1853 0 458 46 0 46 46 0 8 0 ffsino 240 1853 0 458 83 0 83 83 0 8 0 nchpl 144 2476 0 860 61 0 61 61 0 8 0 uvmvnodes 72 2250 0 0 41 0 41 41 0 8 0 vnodes 208 2250 0 0 119 0 119 119 0 8 0 namei 1024 7048 0 7048 2 1 1 1 0 8 1 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 520 4 0 2 1 0 1 1 0 8 0 scxspl 192 7119 0 7119 8 7 1 7 0 8 1 plimitpl 152 32 0 25 1 0 1 1 0 8 0 sigapl 432 454 0 441 2 0 2 2 0 8 0 futexpl 56 8776 0 8776 1 0 1 1 0 8 1 knotepl 112 107 0 88 1 0 1 1 0 8 0 kqueuepl 104 71 0 69 1 0 1 1 0 8 0 pipepl 112 272 0 254 3 2 1 2 0 8 0 fdescpl 424 455 0 441 2 0 2 2 0 8 0 filepl 120 3814 0 3727 11 4 7 11 0 8 4 lockfpl 104 122 0 121 1 0 1 1 0 8 0 lockfspl 48 42 0 41 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 17 0 7 1 0 1 1 0 8 0 ucredpl 96 444 0 437 1 0 1 1 0 8 0 zombiepl 144 442 0 441 2 1 1 1 0 8 0 processpl 864 470 0 441 4 0 4 4 0 8 0 procpl 632 827 0 791 4 0 4 4 0 8 0 sosppl 128 2 0 2 1 0 1 1 0 8 1 sockpl 384 1129 0 1110 21 15 6 21 0 8 4 mcl64k 65536 36 0 36 1 0 1 1 0 8 1 mcl16k 16384 2 0 2 2 2 0 1 0 8 0 mcl12k 12288 17 0 16 1 0 1 1 0 8 0 mcl9k 9216 6 0 6 1 0 1 1 0 8 1 mcl8k 8192 16 0 16 1 0 1 1 0 8 1 mcl4k 4096 43 0 43 2 1 1 1 0 8 1 mcl2k2 2112 2 0 2 1 0 1 1 0 8 1 mcl2k 2048 64040 0 63995 18 12 6 16 0 8 0 mtagpl 80 10 0 10 2 1 1 1 0 8 1 mbufpl 256 103567 0 103464 15 7 8 13 0 8 0 bufpl 256 6845 0 1923 308 0 308 308 0 8 0 anonpl 16 54998 0 38368 74 5 69 69 0 62 0 amapchunkpl 152 2324 0 2217 19 14 5 19 0 158 0 amappl16 192 2301 0 1366 51 2 49 49 0 8 2 amappl14 176 38 0 34 2 1 1 1 0 8 0 amappl13 168 3 0 1 1 0 1 1 0 8 0 amappl12 160 15 0 12 1 0 1 1 0 8 0 amappl11 152 51 0 40 1 0 1 1 0 8 0 amappl10 144 125 0 123 1 0 1 1 0 8 0 amappl9 136 711 0 704 1 0 1 1 0 8 0 amappl8 128 281 0 258 1 0 1 1 0 8 0 amappl7 120 144 0 140 1 0 1 1 0 8 0 amappl6 112 64 0 56 1 0 1 1 0 8 0 amappl5 104 149 0 139 1 0 1 1 0 8 0 amappl4 96 668 0 642 1 0 1 1 0 8 0 amappl3 88 131 0 126 1 0 1 1 0 8 0 amappl2 80 2859 0 2791 4 2 2 3 0 8 0 amappl1 72 17352 0 16946 27 18 9 20 0 8 0 amappl 80 1046 0 1009 1 0 1 1 0 84 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 15 0 6 1 0 1 1 0 8 0 uaddrrnd 24 459 0 441 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 459 0 441 1 0 1 1 0 8 0 vmmpekpl 168 6914 0 6886 2 0 2 2 0 8 0 vmmpepl 168 60956 0 58982 126 28 98 113 0 357 9 vmsppl 272 454 0 441 2 1 1 2 0 8 0 pdppl 4096 924 0 888 7 1 6 6 0 8 1 pvpl 32 179485 0 159876 178 10 168 168 0 265 7 pmappl 200 458 0 443 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 463 0 30 13 0 13 13 0 8 0