panic: attempt to execute user address 0x20000000 in supervisor mode Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *177369 80076 0 0 0x4000000 0 syz-executor.1 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(ffff8000157308c0) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff80001511f000,fffffd802c778a18,11,ffff80000005bdf0,ffff800015730b28) at alltraps_kern_meltdown+0x7b __kernel_end_phys(b,ffff800015730a88,83,ffff800015730b28,0,b) at 0x20000000 rt_match(fffffd803703e710,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803703e710,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff800015730c00,fffffd8036d63b20,fffffd803703e690) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd803703e690,fffffd8036d63b00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd803703f000,4,0,fffffd8036d63b00,0,ffff8000ffff8c60) at udp_usrreq+0x560 sys_connect(ffff8000ffff8c60,ffff800015730d88,ffff800015730dd0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800015730e50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,5b389b14010) at Xsyscall+0x128 end of kernel end trace frame: 0x5b6639e81e0, 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 0x20000000 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(ffff8000157308c0) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff80001511f000,fffffd802c778a18,11,ffff80000005bdf0,ffff800015730b28) at alltraps_kern_meltdown+0x7b __kernel_end_phys(b,ffff800015730a88,83,ffff800015730b28,0,b) at 0x20000000 rt_match(fffffd803703e710,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803703e710,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff800015730c00,fffffd8036d63b20,fffffd803703e690) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd803703e690,fffffd8036d63b00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd803703f000,4,0,fffffd8036d63b00,0,ffff8000ffff8c60) at udp_usrreq+0x560 sys_connect(ffff8000ffff8c60,ffff800015730d88,ffff800015730dd0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800015730e50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,5b389b14010) at Xsyscall+0x128 end of kernel end trace frame: 0x5b6639e81e0, count: -13 ddb> show registers rdi 0xffffffff812241d7 db_enter+0x17 rsi 0x286e __ALIGN_SIZE+0x186e rbp 0xffff800015730730 rbx 0xffff8000157307e0 rdx 0x286f __ALIGN_SIZE+0x186f rcx 0xffff80001511f000 rax 0xffff80001511f000 r8 0xffff8000157306f0 r9 0x1 r10 0xffff800000a591c0 r11 0xd894ef017eafd1b8 r12 0x3000000008 r13 0xffff800015730740 r14 0x100 r15 0x1 rip 0xffffffff812241d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015730720 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=177369 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff8008,0xffffffff825686e0 process=0xffff8000ffff6370 user=0xffff80001572b000, vmspace=0xfffffd803f013110 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 80076 85052 73838 0 2 0 syz-executor.1 *80076 177369 73838 0 7 0x4000000 syz-executor.1 65739 444522 55044 0 3 0x90 nanosleep syz-executor.0 65739 64314 55044 0 3 0x4000090 ttyout syz-executor.0 65739 152126 55044 0 3 0x4000090 fsleep syz-executor.0 73838 281624 82588 0 3 0x82 nanosleep syz-executor.1 55044 218422 82588 0 3 0x82 nanosleep syz-executor.0 66167 324360 0 0 3 0x14200 acct acct 96957 449548 1 0 3 0x100083 ttyin getty 78305 310547 0 0 3 0x14200 bored sosplice 82588 119266 60297 0 3 0x82 thrsleep syz-fuzzer 82588 371531 60297 0 3 0x4000082 nanosleep syz-fuzzer 82588 349964 60297 0 3 0x4000082 kqread syz-fuzzer 82588 249066 60297 0 3 0x4000082 thrsleep syz-fuzzer 82588 65334 60297 0 3 0x4000082 thrsleep syz-fuzzer 82588 161380 60297 0 3 0x4000082 thrsleep syz-fuzzer 82588 73129 60297 0 3 0x4000082 thrsleep syz-fuzzer 82588 171840 60297 0 3 0x4000082 thrsleep syz-fuzzer 60297 62534 80160 0 3 0x10008a pause ksh 80160 14644 24234 0 3 0x92 select sshd 24234 231640 1 0 3 0x80 select sshd 80125 226031 50726 73 3 0x100090 kqread syslogd 50726 81122 1 0 3 0x100082 netio syslogd 74979 197074 0 0 2 0x14200 zerothread 65580 472198 0 0 3 0x14200 aiodoned aiodoned 25658 70361 0 0 3 0x14200 syncer update 10641 176118 0 0 3 0x14200 cleaner cleaner 77316 197668 0 0 3 0x14200 reaper reaper 93530 237689 0 0 3 0x14200 pgdaemon pagedaemon 87520 209450 0 0 3 0x14200 bored crynlk 22150 69167 0 0 3 0x14200 bored crypto 90327 13511 0 0 3 0x40014200 acpi0 acpi0 21381 59502 0 0 3 0x14200 bored softnet 51999 59228 0 0 3 0x14200 bored systqmp 56011 248225 0 0 3 0x14200 bored systq 35786 368397 0 0 3 0x40014200 bored softclock 39880 521083 0 0 3 0x40014200 idle0 70553 522532 0 0 3 0x14200 bored smr 1 406685 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 9589 6332K 7243K 78643K 16738 0 0 pcb 13 12K 14K 78643K 2867 0 0 rtable 124 12K 13K 78643K 5418 0 0 ifaddr 87 27K 35K 78643K 2343 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 754 0 0 iov 0 0K 32K 78643K 3202 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1187 74K 77K 78643K 9094 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 217 0 0 VM map 2 0K 0K 78643K 86 0 0 sem 12 0K 1K 78643K 3087 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 14009 0 0 sigio 0 0K 0K 78643K 171 0 0 proc 45 30K 63K 78643K 5164 0 0 subproc 32 2K 2K 78643K 1485 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 757 0 0 in_multi 25 1K 2K 78643K 1442 0 0 ether_multi 1 0K 0K 78643K 54 0 0 mrt 0 0K 0K 78643K 101 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 132 583K 583K 78643K 132 0 0 exec 0 0K 1K 78643K 2871 0 0 pfkey data 0 0K 0K 78643K 2 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 129 23K 33K 78643K 38098 0 0 UVM aobj 130 4K 4K 78643K 155 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 2919 0 0 NDP 21 0K 1K 78643K 775 0 0 temp 234 3537K 4177K 78643K 319364 0 0 kqueue 0 0K 0K 78643K 88 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 244 0 237 1 0 1 1 0 8 0 rtpcb 80 869 0 869 41 40 1 1 0 8 1 rtentry 112 1375 0 1331 2 0 2 2 0 8 0 unpcb 120 5547 0 5534 6 5 1 2 0 8 0 syncache 264 61 0 61 29 29 0 1 0 8 0 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpqe 32 7433 0 7433 10 10 0 1 0 8 0 tcpcb 544 4663 0 4659 36 35 1 15 0 8 0 ipq 40 111 0 111 47 47 0 1 0 8 0 ipqe 40 263 0 263 47 47 0 1 0 8 0 inpcb 280 19265 0 19257 125 123 2 13 0 8 1 rttmr 72 37 0 37 20 20 0 1 0 8 0 ip6q 72 2 0 2 2 2 0 1 0 8 0 ip6af 40 2 0 2 1 1 0 1 0 8 0 nd6 48 211 0 209 24 23 1 1 0 8 0 pkpcb 40 44 0 44 21 21 0 1 0 8 0 swfcl 56 8 0 0 1 0 1 1 0 8 0 ppxss 1128 252 0 252 74 74 0 1 0 8 0 art_heap8 4096 28 0 27 21 20 1 4 0 8 0 art_heap4 256 6079 0 5831 114 96 18 19 0 8 0 art_table 32 6107 0 5858 7 4 3 3 0 8 0 art_node 16 1362 0 1322 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 3085 0 3075 1 0 1 1 0 8 0 shmpl 112 153 0 25 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 25922 0 24498 47 0 47 47 0 8 0 ffsino 240 25922 0 24498 84 0 84 84 0 8 0 nchpl 144 45963 0 44308 63 1 62 62 0 8 0 uvmvnodes 72 8828 0 0 161 0 161 161 0 8 0 vnodes 208 8828 0 0 465 0 465 465 0 8 0 namei 1024 202741 0 202741 16 15 1 1 0 8 1 vmpool 520 84 0 84 33 32 1 1 0 8 1 scsiplug 64 11 0 11 7 7 0 1 0 8 0 scxspl 192 189593 0 189593 95 94 1 7 0 8 1 plimitpl 152 1288 0 1282 1 0 1 1 0 8 0 sigapl 432 13926 0 13914 2 0 2 2 0 8 0 futexpl 56 365939 0 365938 17 16 1 1 0 8 0 knotepl 112 3512 0 3493 3 2 1 3 0 8 0 kqueuepl 104 3543 0 3541 7 6 1 4 0 8 0 pipepl 112 7610 0 7591 29 27 2 2 0 8 1 fdescpl 424 13927 0 13914 2 0 2 2 0 8 0 filepl 120 141975 0 141881 75 71 4 11 0 8 1 lockfpl 104 8972 0 8972 8 7 1 1 0 8 1 lockfspl 48 2524 0 2524 8 7 1 1 0 8 1 sessionpl 112 103 0 95 1 0 1 1 0 8 0 pgrppl 48 197 0 189 1 0 1 1 0 8 0 ucredpl 96 50103 0 50093 1 0 1 1 0 8 0 zombiepl 144 13918 0 13918 3 2 1 1 0 8 1 processpl 864 13947 0 13918 4 0 4 4 0 8 0 procpl 632 33051 0 33012 8 4 4 5 0 8 0 sosppl 128 174 0 174 51 50 1 1 0 8 1 sockpl 384 25842 0 25821 149 146 3 22 0 8 0 mcl64k 65536 4163 0 4163 389 388 1 65 0 8 1 mcl16k 16384 137 0 137 73 73 0 1 0 8 0 mcl12k 12288 341 0 341 69 69 0 1 0 8 0 mcl9k 9216 264 0 264 80 79 1 1 0 8 1 mcl8k 8192 850 0 850 38 37 1 1 0 8 1 mcl4k 4096 1962 0 1962 24 23 1 1 0 8 1 mcl2k2 2112 131 0 131 57 56 1 1 0 8 1 mcl2k 2048 73757 0 73713 57 51 6 14 0 8 0 mtagpl 80 44 0 44 5 5 0 1 0 8 0 mbufpl 256 218140 0 218069 262 256 6 36 0 8 0 bufpl 256 59870 0 50977 556 0 556 556 0 8 0 anonpl 16 1677025 0 1661825 361 283 78 96 0 62 2 amapchunkpl 152 81901 0 81798 326 320 6 25 0 158 0 amappl16 192 86760 0 85832 725 670 55 59 0 8 8 amappl15 184 2100 0 2099 1 0 1 1 0 8 0 amappl14 176 3168 0 3163 2 1 1 1 0 8 0 amappl13 168 1684 0 1683 15 14 1 1 0 8 0 amappl12 160 2127 0 2123 1 0 1 1 0 8 0 amappl11 152 1445 0 1441 1 0 1 1 0 8 0 amappl10 144 2074 0 2073 15 14 1 1 0 8 0 amappl9 136 3135 0 3127 1 0 1 1 0 8 0 amappl8 128 2544 0 2488 2 0 2 2 0 8 0 amappl7 120 2370 0 2363 1 0 1 1 0 8 0 amappl6 112 1289 0 1271 1 0 1 1 0 8 0 amappl5 104 2964 0 2956 1 0 1 1 0 8 0 amappl4 96 14264 0 14236 1 0 1 1 0 8 0 amappl3 88 3201 0 3195 1 0 1 1 0 8 0 amappl2 80 107208 0 107137 4 2 2 3 0 8 0 amappl1 72 273805 0 273409 28 19 9 20 0 8 0 amappl 80 34730 0 34696 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 154 0 25 3 0 3 3 0 8 0 uaddrrnd 24 14011 0 13914 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 14011 0 13914 1 0 1 1 0 8 0 vmmpekpl 168 88907 0 88883 2 0 2 2 0 8 0 vmmpepl 168 1703543 0 1701487 1213 1091 122 134 0 357 23 vmsppl 272 13926 0 13914 16 15 1 2 0 8 0 pdppl 4096 28028 0 27996 13 8 5 6 0 8 0 pvpl 32 5102999 0 5084634 1546 1362 184 404 0 265 18 pmappl 200 14010 0 13998 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1704 0 1019 22 1 21 21 0 8 0