panic: attempt to execute user address 0x20ffb000 in supervisor mode Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *220053 3339 0 0 0x4000000 0 syz-executor.0 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(ffff80001597b540) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800016b4b000,fffffd802b1f88c8,10,ffff80000005b640,ffff80001597b7a8) at alltraps_kern_meltdown+0x7b __kernel_end_phys(b,ffff80001597b708,83,ffff80001597b7a8,0,b) at 0x20ffb000 rt_match(fffffd803704db70,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803704db70,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff80001597b880,fffffd8030143520,fffffd803704daf0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd803704daf0,fffffd8030143500) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd803945ac18,4,0,fffffd8030143500,0,ffff80001594d160) at tcp_usrreq+0xada sys/netinet/tcp_usrreq.c:228 sys_connect(ffff80001594d160,ffff80001597ba28,ffff80001597ba70) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff80001597baf0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,f10e6a9f010) at Xsyscall+0x128 end of kernel end trace frame: 0xf13e225c7d0, count: 2 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 execute user address 0x20ffb000 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(ffff80001597b540) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800016b4b000,fffffd802b1f88c8,10,ffff80000005b640,ffff80001597b7a8) at alltraps_kern_meltdown+0x7b __kernel_end_phys(b,ffff80001597b708,83,ffff80001597b7a8,0,b) at 0x20ffb000 rt_match(fffffd803704db70,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803704db70,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff80001597b880,fffffd8030143520,fffffd803704daf0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd803704daf0,fffffd8030143500) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd803945ac18,4,0,fffffd8030143500,0,ffff80001594d160) at tcp_usrreq+0xada sys/netinet/tcp_usrreq.c:228 sys_connect(ffff80001594d160,ffff80001597ba28,ffff80001597ba70) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff80001597baf0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,f10e6a9f010) at Xsyscall+0x128 end of kernel end trace frame: 0xf13e225c7d0, count: -13 ddb> show registers rdi 0xffffffff81ed85e7 db_enter+0x17 rsi 0x25e1 __ALIGN_SIZE+0x15e1 rbp 0xffff80001597b3b0 rbx 0xffff80001597b460 rdx 0x25e2 __ALIGN_SIZE+0x15e2 rcx 0xffff800016b4b000 rax 0xffff800016b4b000 r8 0xffff80001597b370 r9 0x1 r10 0xffff800000ac87c0 r11 0xb6bfd0f9d702c917 r12 0x3000000008 r13 0xffff80001597b3c0 r14 0x100 r15 0x1 rip 0xffffffff81ed85e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001597b3a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=220053 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff80001594c780,0xffffffff8257fc40 process=0xffff8000ffff6d90 user=0xffff800015976000, vmspace=0xfffffd803f014aa0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 3339 454226 93186 0 2 0 syz-executor.0 * 3339 220053 93186 0 7 0x4000000 syz-executor.0 64589 400505 65955 0 2 0 syz-executor.1 64589 381414 65955 0 3 0x4000080 fsleep syz-executor.1 93186 433597 97974 0 3 0x82 nanosleep syz-executor.0 92960 282085 0 0 3 0x14200 acct acct 69574 292706 0 0 3 0x14200 bored sosplice 44706 445168 1 0 3 0x100083 ttyin getty 65955 31351 97974 0 3 0x82 nanosleep syz-executor.1 97974 281503 73528 0 3 0x82 thrsleep syz-fuzzer 97974 221957 73528 0 3 0x4000082 thrsleep syz-fuzzer 97974 42368 73528 0 3 0x4000082 thrsleep syz-fuzzer 97974 417252 73528 0 3 0x4000082 thrsleep syz-fuzzer 97974 6031 73528 0 3 0x4000082 thrsleep syz-fuzzer 97974 446104 73528 0 3 0x4000082 kqread syz-fuzzer 97974 40142 73528 0 3 0x4000082 thrsleep syz-fuzzer 73528 253577 7667 0 3 0x10008a pause ksh 7667 444496 7852 0 3 0x92 select sshd 7852 460791 1 0 3 0x80 select sshd 18837 154756 73324 73 3 0x100090 kqread syslogd 73324 23515 1 0 3 0x100082 netio syslogd 98810 113704 1 77 3 0x100090 poll dhclient 92856 177726 1 0 3 0x80 poll dhclient 64438 305117 0 0 2 0x14200 zerothread 93137 426764 0 0 3 0x14200 aiodoned aiodoned 57171 177871 0 0 3 0x14200 syncer update 62954 232691 0 0 3 0x14200 cleaner cleaner 93628 20618 0 0 3 0x14200 reaper reaper 85906 167193 0 0 3 0x14200 pgdaemon pagedaemon 45225 44902 0 0 3 0x14200 bored crynlk 55862 476237 0 0 3 0x14200 bored crypto 46310 375789 0 0 3 0x40014200 acpi0 acpi0 33320 132025 0 0 3 0x14200 bored softnet 65308 366630 0 0 3 0x14200 bored systqmp 72661 517678 0 0 3 0x14200 bored systq 60068 158091 0 0 3 0x40014200 bored softclock 22083 110942 0 0 3 0x40014200 idle0 76505 436695 0 0 3 0x14200 bored smr 1 204677 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 9558 6368K 6861K 78643K 11899 0 0 pcb 13 8K 8K 78643K 269 0 0 rtable 98 7K 8K 78643K 800 0 0 ifaddr 75 15K 16K 78643K 241 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 82 0 0 iov 0 0K 24K 78643K 252 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1212 76K 77K 78643K 1824 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 22 0 0 VM map 2 0K 0K 78643K 12 0 0 sem 12 0K 1K 78643K 131 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 1137 0 0 sigio 0 0K 0K 78643K 21 0 0 proc 50 38K 63K 78643K 605 0 0 subproc 32 2K 2K 78643K 85 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 54 0 0 in_multi 19 1K 2K 78643K 101 0 0 ether_multi 1 0K 0K 78643K 6 0 0 mrt 0 0K 0K 78643K 13 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 373 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 100 21K 30K 78643K 3648 0 0 UVM aobj 63 3K 3K 78643K 78 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 206 0 0 NDP 19 0K 0K 78643K 69 0 0 temp 212 3536K 4176K 78643K 31290 0 0 kqueue 0 0K 0K 78643K 3 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 34 0 29 1 0 1 1 0 8 0 rtpcb 80 76 0 74 1 0 1 1 0 8 0 rtentry 112 148 0 112 2 0 2 2 0 8 0 unpcb 120 461 0 451 1 0 1 1 0 8 0 syncache 264 8 0 8 3 2 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 7541 0 7541 1 1 0 1 0 8 0 tcpcb 544 1585 0 1580 7 5 2 3 0 8 1 ipq 40 4 0 4 3 3 0 1 0 8 0 ipqe 40 9 0 9 3 3 0 1 0 8 0 inpcb 280 2342 0 2334 5 3 2 3 0 8 1 rttmr 72 4 0 4 3 3 0 1 0 8 0 nd6 48 12 0 11 3 2 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1128 26 0 26 7 6 1 1 0 8 1 art_heap8 4096 5 0 4 2 1 1 2 0 8 0 art_heap4 256 552 0 386 19 7 12 15 0 8 0 art_table 32 557 0 390 2 0 2 2 0 8 0 art_node 16 144 0 111 1 0 1 1 0 8 0 sysvmsgpl 40 34 0 26 2 1 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 127 0 117 1 0 1 1 0 8 0 shmpl 112 76 0 15 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3252 0 1858 46 0 46 46 0 8 0 ffsino 240 3252 0 1858 83 0 83 83 0 8 0 nchpl 144 5092 0 3486 60 0 60 60 0 8 0 uvmvnodes 72 3577 0 0 66 0 66 66 0 8 0 vnodes 208 3577 0 0 189 0 189 189 0 8 0 namei 1024 16468 0 16468 3 2 1 1 0 8 1 vmpool 520 10 0 10 4 4 0 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 17043 0 17043 9 8 1 7 0 8 1 plimitpl 152 118 0 111 1 0 1 1 0 8 0 sigapl 432 1300 0 1286 2 0 2 2 0 8 0 futexpl 56 38031 0 38030 1 0 1 1 0 8 0 knotepl 112 289 0 270 1 0 1 1 0 8 0 kqueuepl 104 304 0 302 1 0 1 1 0 8 0 pipepl 112 640 0 621 3 2 1 2 0 8 0 fdescpl 424 1301 0 1286 2 0 2 2 0 8 0 filepl 120 10688 0 10592 7 3 4 5 0 8 0 lockfpl 104 362 0 361 1 0 1 1 0 8 0 lockfspl 48 124 0 123 1 0 1 1 0 8 0 sessionpl 112 21 0 11 1 0 1 1 0 8 0 pgrppl 48 23 0 13 1 0 1 1 0 8 0 ucredpl 96 1396 0 1389 1 0 1 1 0 8 0 zombiepl 144 1286 0 1286 3 2 1 1 0 8 1 processpl 864 1317 0 1286 4 0 4 4 0 8 0 procpl 632 2783 0 2744 4 0 4 4 0 8 0 sosppl 128 23 0 23 7 6 1 1 0 8 1 sockpl 384 2891 0 2871 10 6 4 5 0 8 1 mcl64k 65536 304 0 304 31 30 1 29 0 8 1 mcl16k 16384 8 0 8 6 5 1 1 0 8 1 mcl12k 12288 31 0 31 6 5 1 1 0 8 1 mcl9k 9216 23 0 23 6 5 1 1 0 8 1 mcl8k 8192 48 0 48 2 1 1 1 0 8 1 mcl4k 4096 182 0 182 3 2 1 1 0 8 1 mcl2k2 2112 17 0 17 3 2 1 1 0 8 1 mcl2k 2048 57596 0 57556 31 25 6 20 0 8 0 mtagpl 80 30 0 30 2 2 0 1 0 8 0 mbufpl 256 103621 0 103517 31 23 8 21 0 8 1 bufpl 256 12793 0 5606 450 0 450 450 0 8 0 anonpl 16 174861 0 159526 117 43 74 79 0 62 8 amapchunkpl 152 6961 0 6831 35 20 15 15 0 158 8 amappl16 192 8298 0 7459 99 53 46 55 0 8 3 amappl15 184 2 0 1 1 0 1 1 0 8 0 amappl14 176 80 0 74 2 1 1 1 0 8 0 amappl13 168 1028 0 1026 1 0 1 1 0 8 0 amappl12 160 8 0 5 1 0 1 1 0 8 0 amappl11 152 54 0 43 1 0 1 1 0 8 0 amappl10 144 11 0 9 1 0 1 1 0 8 0 amappl9 136 632 0 625 1 0 1 1 0 8 0 amappl8 128 181 0 157 1 0 1 1 0 8 0 amappl7 120 46 0 42 1 0 1 1 0 8 0 amappl6 112 67 0 58 1 0 1 1 0 8 0 amappl5 104 173 0 160 1 0 1 1 0 8 0 amappl4 96 2124 0 2097 1 0 1 1 0 8 0 amappl3 88 156 0 151 1 0 1 1 0 8 0 amappl2 80 9972 0 9899 4 2 2 3 0 8 0 amappl1 72 32568 0 32138 26 16 10 20 0 8 0 amappl 80 3070 0 3026 2 0 2 2 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 77 0 15 1 0 1 1 0 8 0 uaddrrnd 24 1311 0 1286 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1311 0 1286 1 0 1 1 0 8 0 vmmpekpl 168 11781 0 11757 2 0 2 2 0 8 0 vmmpepl 168 164159 0 162165 182 68 114 114 0 357 25 vmsppl 272 1300 0 1286 2 1 1 2 0 8 0 pdppl 4096 2628 0 2592 6 1 5 6 0 8 0 pvpl 32 528627 0 510127 334 106 228 266 0 265 75 pmappl 200 1310 0 1296 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 681 0 105 17 0 17 17 0 8 0