panic: attempt to execute user address 0x0 in supervisor mode Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 90164 39306 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(ffff80001693dfb0) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800015931000,fffffd802ea88008,10,ffff80000005be00,ffff80001693e218) at alltraps_kern_meltdown+0x7b 0(b,ffff80001693e178,83,ffff80001693e218,0,b) at 0 rt_match(fffffd803bc1ceb8,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803bc1ceb8,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff80001693e2f0,fffffd803c089520,fffffd803bc1ce38) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd803bc1ce38,fffffd803c089500) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd8027c8b650,4,0,fffffd803c089500,0,ffff8000ffff2508) at udp_usrreq+0x560 sys_connect(ffff8000ffff2508,ffff80001693e478,ffff80001693e4c0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff80001693e540) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,61ee964d010) at Xsyscall+0x128 end of kernel end trace frame: 0x6211d299480, 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 0x0 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(ffff80001693dfb0) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800015931000,fffffd802ea88008,10,ffff80000005be00,ffff80001693e218) at alltraps_kern_meltdown+0x7b 0(b,ffff80001693e178,83,ffff80001693e218,0,b) at 0 rt_match(fffffd803bc1ceb8,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803bc1ceb8,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff80001693e2f0,fffffd803c089520,fffffd803bc1ce38) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd803bc1ce38,fffffd803c089500) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd8027c8b650,4,0,fffffd803c089500,0,ffff8000ffff2508) at udp_usrreq+0x560 sys_connect(ffff8000ffff2508,ffff80001693e478,ffff80001693e4c0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff80001693e540) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,61ee964d010) at Xsyscall+0x128 end of kernel end trace frame: 0x6211d299480, count: -13 ddb> show registers rdi 0xffffffff812241d7 db_enter+0x17 rsi 0x234e __ALIGN_SIZE+0x134e rbp 0xffff80001693de20 rbx 0xffff80001693ded0 rdx 0x234f __ALIGN_SIZE+0x134f rcx 0xffff800015931000 rax 0xffff800015931000 r8 0xffff80001693dde0 r9 0x1 r10 0xffff800000a6b740 r11 0xab5d4840ad01447c r12 0x3000000008 r13 0xffff80001693de30 r14 0x100 r15 0x1 rip 0xffffffff812241d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001693de10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=90164 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2018,0xffffffff825686e0 process=0xffff8000148a37b8 user=0xffff800016939000, vmspace=0xfffffd803f013770 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 39306 357110 24807 0 2 0 syz-executor.1 *39306 90164 24807 0 7 0x4000000 syz-executor.1 24807 155112 19390 0 3 0x82 nanosleep syz-executor.1 27063 147731 19390 0 2 0x2 syz-executor.0 39031 497640 0 0 3 0x14200 acct acct 81195 96330 1 0 3 0x100083 ttyin getty 11044 522941 0 0 3 0x14200 bored sosplice 19390 194844 7880 0 3 0x82 kqread syz-fuzzer 19390 444920 7880 0 3 0x4000082 nanosleep syz-fuzzer 19390 117346 7880 0 3 0x4000082 thrsleep syz-fuzzer 19390 51556 7880 0 3 0x4000082 thrsleep syz-fuzzer 19390 286121 7880 0 3 0x4000082 thrsleep syz-fuzzer 19390 323171 7880 0 3 0x4000082 thrsleep syz-fuzzer 19390 523812 7880 0 3 0x4000082 thrsleep syz-fuzzer 19390 897 7880 0 3 0x4000082 thrsleep syz-fuzzer 7880 298217 15947 0 3 0x10008a pause ksh 15947 250529 18784 0 3 0x92 select sshd 18784 293547 1 0 3 0x80 select sshd 4 176829 26209 73 3 0x100090 kqread syslogd 26209 98351 1 0 3 0x100082 netio syslogd 41795 159375 1 77 3 0x100090 poll dhclient 86330 259753 1 0 3 0x80 poll dhclient 62590 521076 0 0 2 0x14200 zerothread 26363 484084 0 0 3 0x14200 aiodoned aiodoned 32548 86249 0 0 3 0x14200 syncer update 37483 339335 0 0 3 0x14200 cleaner cleaner 3778 392071 0 0 3 0x14200 reaper reaper 20692 90964 0 0 3 0x14200 pgdaemon pagedaemon 9083 290796 0 0 3 0x14200 bored crynlk 62895 379962 0 0 3 0x14200 bored crypto 58429 304194 0 0 3 0x40014200 acpi0 acpi0 65385 493013 0 0 3 0x14200 bored softnet 60717 260111 0 0 3 0x14200 bored systqmp 60145 519814 0 0 3 0x14200 bored systq 47597 409951 0 0 3 0x40014200 bored softclock 51614 78096 0 0 3 0x40014200 idle0 87129 420477 0 0 3 0x14200 bored smr 1 394418 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 9598 6390K 8313K 78643K 31926 0 0 pcb 13 8K 8K 78643K 1744 0 0 rtable 135 13K 14K 78643K 4814 0 0 ifaddr 100 26K 28K 78643K 1333 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 416 0 0 iov 0 0K 32K 78643K 1690 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1235 78K 79K 78643K 13025 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 130 0 0 VM map 2 0K 0K 78643K 40 0 0 sem 12 0K 0K 78643K 1066 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 7713 0 0 sigio 0 0K 0K 78643K 98 0 0 proc 50 38K 63K 78643K 3097 0 0 subproc 32 2K 2K 78643K 867 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 368 0 0 in_multi 31 2K 2K 78643K 872 0 0 ether_multi 1 0K 0K 78643K 30 0 0 mrt 0 0K 0K 78643K 51 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 126 556K 556K 78643K 126 0 0 exec 0 0K 1K 78643K 1671 0 0 pfkey data 0 0K 4K 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 31K 78643K 20065 0 0 UVM aobj 130 6K 6K 78643K 136 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 1654 0 0 NDP 23 0K 1K 78643K 444 0 0 temp 248 3537K 4177K 78643K 202716 0 0 kqueue 0 0K 0K 78643K 57 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 159 0 152 1 0 1 1 0 8 0 rtpcb 80 488 0 486 1 0 1 1 0 8 0 rtentry 112 919 0 871 2 0 2 2 0 8 0 unpcb 120 2848 0 2836 1 0 1 1 0 8 0 syncache 264 41 0 41 16 16 0 1 0 8 0 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpqe 32 6687 0 6687 6 6 0 1 0 8 0 tcpcb 544 5270 0 5266 25 24 1 2 0 8 0 ipq 40 48 0 48 22 21 1 1 0 8 1 ipqe 40 114 0 114 22 21 1 1 0 8 1 inpcb 280 10642 0 10634 28 26 2 4 0 8 1 rttmr 72 16 0 15 6 5 1 1 0 8 0 nd6 48 131 0 129 6 5 1 1 0 8 0 pkpcb 40 34 0 34 13 13 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 146 0 146 28 28 0 1 0 8 0 art_heap8 4096 24 0 23 12 11 1 3 0 8 0 art_heap4 256 4027 0 3770 50 32 18 19 0 8 0 art_table 32 4051 0 3793 8 5 3 3 0 8 0 art_node 16 903 0 860 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 7 1 0 1 1 0 8 0 semapl 112 1064 0 1054 1 0 1 1 0 8 0 shmpl 112 134 0 6 5 1 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 13124 0 11712 46 0 46 46 0 8 0 ffsino 240 13124 0 11712 84 0 84 84 0 8 0 nchpl 144 23836 0 22180 62 0 62 62 0 8 0 uvmvnodes 72 8991 0 0 164 0 164 164 0 8 0 vnodes 208 8991 0 0 474 0 474 474 0 8 0 namei 1024 87874 0 87874 9 8 1 1 0 8 1 vmpool 520 38 0 38 18 18 0 1 0 8 0 scsiplug 64 6 0 6 5 5 0 1 0 8 0 scxspl 192 112443 0 112443 53 51 2 7 0 8 2 plimitpl 152 714 0 707 1 0 1 1 0 8 0 sigapl 432 7738 0 7725 2 0 2 2 0 8 0 futexpl 56 191144 0 191144 10 9 1 1 0 8 1 knotepl 112 2184 0 2165 3 2 1 2 0 8 0 kqueuepl 104 1867 0 1865 1 0 1 1 0 8 0 pipepl 112 12550 0 12529 25 23 2 2 0 8 1 fdescpl 424 7739 0 7725 2 0 2 2 0 8 0 filepl 120 69183 0 69084 28 24 4 6 0 8 1 lockfpl 104 3000 0 2999 1 0 1 1 0 8 0 lockfspl 48 1027 0 1026 1 0 1 1 0 8 0 sessionpl 112 67 0 57 1 0 1 1 0 8 0 pgrppl 48 130 0 120 1 0 1 1 0 8 0 ucredpl 96 10157 0 10148 1 0 1 1 0 8 0 zombiepl 144 7728 0 7728 3 2 1 1 0 8 1 processpl 864 7758 0 7728 4 0 4 4 0 8 0 procpl 632 16840 0 16802 8 4 4 5 0 8 0 sosppl 128 122 0 122 27 26 1 1 0 8 1 sockpl 384 14231 0 14209 45 42 3 7 0 8 0 mcl64k 65536 3075 0 3075 217 216 1 33 0 8 1 mcl16k 16384 53 0 53 24 24 0 1 0 8 0 mcl12k 12288 165 0 165 27 26 1 1 0 8 1 mcl9k 9216 141 0 141 26 25 1 1 0 8 1 mcl8k 8192 269 0 269 12 11 1 1 0 8 1 mcl4k 4096 794 0 794 10 9 1 1 0 8 1 mcl2k2 2112 92 0 92 20 20 0 1 0 8 0 mcl2k 2048 66004 0 65961 41 34 7 14 0 8 1 mtagpl 80 294 0 282 9 8 1 1 0 8 0 mbufpl 256 166033 0 165899 152 139 13 24 0 8 0 bufpl 256 39428 0 30437 563 0 563 563 0 8 0 anonpl 16 991020 0 975703 215 137 78 81 0 62 0 amapchunkpl 152 45288 0 45179 164 157 7 19 0 158 0 amappl16 192 48666 0 47793 331 279 52 57 0 8 8 amappl15 184 1684 0 1684 8 8 0 1 0 8 0 amappl14 176 1251 0 1246 2 1 1 1 0 8 0 amappl13 168 1313 0 1313 9 9 0 1 0 8 0 amappl12 160 1288 0 1284 1 0 1 1 0 8 0 amappl11 152 1027 0 1016 1 0 1 1 0 8 0 amappl10 144 438 0 437 2 1 1 1 0 8 0 amappl9 136 2161 0 2152 1 0 1 1 0 8 0 amappl8 128 1628 0 1579 2 0 2 2 0 8 0 amappl7 120 676 0 668 1 0 1 1 0 8 0 amappl6 112 919 0 906 1 0 1 1 0 8 0 amappl5 104 1833 0 1824 1 0 1 1 0 8 0 amappl4 96 7341 0 7316 1 0 1 1 0 8 0 amappl3 88 2070 0 2061 1 0 1 1 0 8 0 amappl2 80 59714 0 59647 4 2 2 3 0 8 0 amappl1 72 151816 0 151403 29 20 9 20 0 8 0 amappl 80 17934 0 17897 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 135 0 6 3 0 3 3 0 8 0 uaddrrnd 24 7777 0 7725 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7777 0 7725 1 0 1 1 0 8 0 vmmpekpl 168 66899 0 66875 2 0 2 2 0 8 0 vmmpepl 168 949182 0 947227 484 372 112 124 0 357 20 vmsppl 272 7738 0 7725 5 4 1 2 0 8 0 pdppl 4096 15560 0 15526 7 2 5 6 0 8 0 pvpl 32 3193631 0 3175159 800 593 207 299 0 265 43 pmappl 200 7776 0 7763 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1216 0 516 24 2 22 22 0 8 0