login: 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 *261029 72561 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(ffff80001490bca0) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800017945000,fffffd803e8f5a18,10,ffff80000005b260,ffff80001490bf08) at alltraps_kern_meltdown+0x7b 0(b,ffff80001490be68,83,ffff80001490bf08,0,b) at 0 rt_match(fffffd803d4adda0,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803d4adda0,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff80001490bfe0,fffffd8034eb3620,fffffd803d4add20) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd803d4add20,fffffd8034eb3600) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd8039332088,4,0,fffffd8034eb3600,0,ffff800015935650) at udp_usrreq+0x560 sys_connect(ffff800015935650,ffff80001490c168,ffff80001490c1b0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff80001490c230) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,e44d0fb9010) at Xsyscall+0x128 end of kernel end trace frame: 0xe47b7d0fb00, 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(ffff80001490bca0) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800017945000,fffffd803e8f5a18,10,ffff80000005b260,ffff80001490bf08) at alltraps_kern_meltdown+0x7b 0(b,ffff80001490be68,83,ffff80001490bf08,0,b) at 0 rt_match(fffffd803d4adda0,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803d4adda0,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff80001490bfe0,fffffd8034eb3620,fffffd803d4add20) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd803d4add20,fffffd8034eb3600) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd8039332088,4,0,fffffd8034eb3600,0,ffff800015935650) at udp_usrreq+0x560 sys_connect(ffff800015935650,ffff80001490c168,ffff80001490c1b0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff80001490c230) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,e44d0fb9010) at Xsyscall+0x128 end of kernel end trace frame: 0xe47b7d0fb00, count: -13 ddb> show registers rdi 0xffffffff813b3ea7 db_enter+0x17 rsi 0x21f5 __ALIGN_SIZE+0x11f5 rbp 0xffff80001490bb10 rbx 0xffff80001490bbc0 rdx 0x21f6 __ALIGN_SIZE+0x11f6 rcx 0xffff800017945000 rax 0xffff800017945000 r8 0xffff80001490bad0 r9 0x1 r10 0xffff800000a64bc0 r11 0xbb61508aa2c9c59f r12 0x3000000008 r13 0xffff80001490bb20 r14 0x100 r15 0x1 rip 0xffffffff813b3ea8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001490bb00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=261029 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800015934018,0xffffffff82558cc8 process=0xffff8000ffffb0e8 user=0xffff800014907000, vmspace=0xfffffd803f014220 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 72561 502120 75411 0 2 0 syz-executor.1 *72561 261029 75411 0 7 0x4000000 syz-executor.1 93490 331113 1 0 3 0x100083 ttyin getty 75411 211635 1879 0 3 0x82 nanosleep syz-executor.1 90600 360009 0 0 3 0x14200 bored sosplice 1879 47406 12183 0 3 0x82 thrsleep syz-fuzzer 1879 140516 12183 0 3 0x4000082 nanosleep syz-fuzzer 1879 484101 12183 0 2 0x4000002 syz-fuzzer 1879 229522 12183 0 3 0x4000082 thrsleep syz-fuzzer 1879 459341 12183 0 3 0x4000082 thrsleep syz-fuzzer 1879 324646 12183 0 3 0x4000082 thrsleep syz-fuzzer 1879 474153 12183 0 3 0x4000082 thrsleep syz-fuzzer 1879 226375 12183 0 3 0x4000082 thrsleep syz-fuzzer 12183 274243 69051 0 3 0x10008a pause ksh 69051 276507 15432 0 3 0x92 select sshd 15432 377890 1 0 3 0x80 select sshd 5493 243902 63658 73 3 0x100090 kqread syslogd 63658 86921 1 0 3 0x100082 netio syslogd 56217 35594 1 77 3 0x100090 poll dhclient 96743 232216 1 0 3 0x80 poll dhclient 91441 514516 0 0 2 0x14200 zerothread 37714 447680 0 0 3 0x14200 aiodoned aiodoned 66867 379248 0 0 3 0x14200 syncer update 41313 740 0 0 3 0x14200 cleaner cleaner 92126 30824 0 0 3 0x14200 reaper reaper 16942 427662 0 0 3 0x14200 pgdaemon pagedaemon 27430 311840 0 0 3 0x14200 bored crynlk 46231 220641 0 0 3 0x14200 bored crypto 28233 193564 0 0 3 0x40014200 acpi0 acpi0 87187 360902 0 0 3 0x14200 bored softnet 3544 128132 0 0 3 0x14200 bored systqmp 22042 440360 0 0 3 0x14200 bored systq 94707 73641 0 0 3 0x40014200 bored softclock 70382 514388 0 0 3 0x40014200 idle0 35103 437650 0 0 3 0x14200 bored smr 1 143635 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 9537 6618K 7568K 78643K 19557 0 0 pcb 13 8K 8K 78643K 463 0 0 rtable 102 4K 4K 78643K 1913 0 0 ifaddr 179 46K 47K 78643K 861 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 91 0 0 iov 0 0K 24K 78643K 267 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1212 76K 77K 78643K 4403 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 74 0 0 VM map 2 0K 0K 78643K 19 0 0 sem 12 0K 0K 78643K 653 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 4 9K 25K 78643K 4699 0 0 sigio 0 0K 0K 78643K 44 0 0 proc 49 38K 62K 78643K 1009 0 0 subproc 16 1K 2K 78643K 153 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 341 0 0 in_multi 24 1K 2K 78643K 235 0 0 ether_multi 1 0K 0K 78643K 7 0 0 mrt 0 0K 0K 78643K 31 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 562 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 92 13K 30K 78643K 11462 0 0 UVM aobj 125 3K 3K 78643K 140 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 423 0 0 NDP 13 0K 0K 78643K 234 0 0 temp 161 3534K 3607K 78643K 61132 0 0 kqueue 0 0K 0K 78643K 22 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 26 0 21 1 0 1 1 0 8 0 rtpcb 80 226 0 224 1 0 1 1 0 8 0 rtentry 112 164 0 125 2 0 2 2 0 8 0 unpcb 120 1432 0 1423 1 0 1 1 0 8 0 syncache 264 19 0 19 5 5 0 1 0 8 0 sackhl 24 2 0 2 1 1 0 1 0 8 0 tcpqe 32 203 0 203 13 12 1 1 0 8 1 tcpcb 544 1650 0 1645 3 2 1 2 0 8 0 ipq 40 4 0 4 2 1 1 1 0 8 1 ipqe 40 8 0 8 2 1 1 1 0 8 1 inpcb 280 3341 0 3327 12 10 2 3 0 8 1 rttmr 72 15 0 15 3 3 0 1 0 8 0 nd6 48 19 0 17 1 0 1 1 0 8 0 pkpcb 40 22 0 22 1 1 0 1 0 8 0 ppxss 1128 63 0 63 7 7 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 779 0 587 18 3 15 15 0 8 0 art_table 32 780 0 587 2 0 2 2 0 8 0 art_node 16 154 0 119 1 0 1 1 0 8 0 semapl 112 651 0 641 1 0 1 1 0 8 0 shmpl 112 138 0 15 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9057 0 7668 46 0 46 46 0 8 0 ffsino 240 9057 0 7668 83 0 83 83 0 8 0 nchpl 144 15207 0 13623 60 0 60 60 0 8 0 uvmvnodes 72 7295 0 0 133 0 133 133 0 8 0 vnodes 208 7295 0 0 384 0 384 384 0 8 0 namei 1024 44784 0 44784 6 5 1 1 0 8 1 vmpool 520 17 0 17 4 4 0 1 0 8 0 scxspl 192 47044 0 47044 17 14 3 7 0 8 3 plimitpl 152 212 0 206 1 0 1 1 0 8 0 sigapl 432 4852 0 4840 2 0 2 2 0 8 0 futexpl 56 65020 0 65020 5 4 1 1 0 8 1 knotepl 112 881 0 868 1 0 1 1 0 8 0 kqueuepl 104 852 0 849 1 0 1 1 0 8 0 pipepl 112 1954 0 1939 4 3 1 2 0 8 0 fdescpl 424 4853 0 4840 2 0 2 2 0 8 0 filepl 120 24113 0 24035 9 5 4 5 0 8 0 lockfpl 104 1253 0 1252 1 0 1 1 0 8 0 lockfspl 48 508 0 507 1 0 1 1 0 8 0 sessionpl 112 27 0 18 1 0 1 1 0 8 0 pgrppl 48 44 0 35 1 0 1 1 0 8 0 ucredpl 96 4064 0 4057 1 0 1 1 0 8 0 zombiepl 144 4840 0 4840 2 1 1 1 0 8 1 processpl 864 4868 0 4840 4 0 4 4 0 8 0 procpl 632 10268 0 10232 4 0 4 4 0 8 0 sosppl 128 15 0 15 3 2 1 1 0 8 1 sockpl 384 5124 0 5103 19 15 4 6 0 8 1 mcl64k 65536 152 0 152 7 6 1 1 0 8 1 mcl16k 16384 38 0 38 6 5 1 1 0 8 1 mcl12k 12288 77 0 77 10 9 1 1 0 8 1 mcl9k 9216 18 0 18 7 7 0 1 0 8 0 mcl8k 8192 220 0 220 9 8 1 1 0 8 1 mcl4k 4096 170 0 170 9 8 1 1 0 8 1 mcl2k2 2112 4 0 4 1 1 0 1 0 8 0 mcl2k 2048 28046 0 28004 33 24 9 11 0 8 2 mtagpl 80 164 0 154 4 3 1 2 0 8 0 mbufpl 256 104942 0 104854 35 24 11 18 0 8 1 bufpl 256 18702 0 11402 457 0 457 457 0 8 0 anonpl 16 407438 0 402197 139 92 47 55 0 62 20 amapchunkpl 152 20377 0 20299 43 39 4 24 0 158 0 amappl16 192 22380 0 22104 83 66 17 39 0 8 2 amappl15 184 2868 0 2867 2 1 1 1 0 8 0 amappl14 176 2079 0 2075 2 1 1 1 0 8 0 amappl13 168 263 0 262 1 0 1 1 0 8 0 amappl12 160 88 0 85 1 0 1 1 0 8 0 amappl11 152 72 0 61 1 0 1 1 0 8 0 amappl10 144 275 0 273 2 1 1 1 0 8 0 amappl9 136 842 0 836 1 0 1 1 0 8 0 amappl8 128 415 0 385 1 0 1 1 0 8 0 amappl7 120 333 0 326 1 0 1 1 0 8 0 amappl6 112 80 0 69 1 0 1 1 0 8 0 amappl5 104 339 0 329 1 0 1 1 0 8 0 amappl4 96 4992 0 4964 1 0 1 1 0 8 0 amappl3 88 2128 0 2123 1 0 1 1 0 8 0 amappl2 80 39901 0 39836 3 1 2 3 0 8 0 amappl1 72 88637 0 88229 25 14 11 20 0 8 0 amappl 80 10620 0 10590 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 139 0 15 2 0 2 2 0 8 0 uaddrrnd 24 4870 0 4840 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4870 0 4840 1 0 1 1 0 8 0 vmmpekpl 168 29351 0 29326 2 0 2 2 0 8 0 vmmpepl 168 558166 0 556895 145 66 79 85 0 357 15 vmsppl 272 4852 0 4840 3 2 1 2 0 8 0 pdppl 4096 9746 0 9714 6 1 5 6 0 8 0 pvpl 32 1393176 0 1384906 425 212 213 296 0 265 137 pmappl 200 4869 0 4857 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 681 0 90 17 0 17 17 0 8 0