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 * 30583 33025 60929 0x10 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(ffff800016141ba0) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff80001799a000,fffffd802eb08078,10,ffff80000005b360,ffff800016141e08) at alltraps_kern_meltdown+0x7b 0(b,ffff800016141d68,83,ffff800016141e08,0,b) at 0 rt_match(fffffd803dc214e0,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803dc214e0,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff800016141ee0,fffffd803bc7fd20,fffffd803dc21460) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd803dc21460,fffffd803bc7fd00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd803dc22480,4,0,fffffd803bc7fd00,0,ffff8000ffff2290) at udp_usrreq+0x560 sys_connect(ffff8000ffff2290,ffff800016142068,ffff8000161420b0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800016142130) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,da32d00b010) at Xsyscall+0x128 end of kernel end trace frame: 0xda5aa43ad20, 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(ffff800016141ba0) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff80001799a000,fffffd802eb08078,10,ffff80000005b360,ffff800016141e08) at alltraps_kern_meltdown+0x7b 0(b,ffff800016141d68,83,ffff800016141e08,0,b) at 0 rt_match(fffffd803dc214e0,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803dc214e0,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff800016141ee0,fffffd803bc7fd20,fffffd803dc21460) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd803dc21460,fffffd803bc7fd00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd803dc22480,4,0,fffffd803bc7fd00,0,ffff8000ffff2290) at udp_usrreq+0x560 sys_connect(ffff8000ffff2290,ffff800016142068,ffff8000161420b0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800016142130) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,da32d00b010) at Xsyscall+0x128 end of kernel end trace frame: 0xda5aa43ad20, count: -13 ddb> show registers rdi 0xffffffff81b07ef7 db_enter+0x17 rsi 0x2141 __ALIGN_SIZE+0x1141 rbp 0xffff800016141a10 rbx 0xffff800016141ac0 rdx 0x2142 __ALIGN_SIZE+0x1142 rcx 0xffff80001799a000 rax 0xffff80001799a000 r8 0xffff8000161419d0 r9 0x1 r10 0xffff800000a9c080 r11 0x32d2558db2bc778b r12 0x3000000008 r13 0xffff800016141a20 r14 0x100 r15 0x1 rip 0xffffffff81b07ef8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800016141a00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=30583 stat=onproc flags process=10 proc=4000000 pri=75, usrpri=75, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2ee8,0xffffffff8255bd20 process=0xffff8000ffff6370 user=0xffff80001613d000, vmspace=0xfffffd803f013aa0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 33025 232277 76513 60929 2 0x10 syz-executor.1 *33025 30583 76513 60929 7 0x4000010 syz-executor.1 42249 448301 57396 0 2 0 syz-executor.0 42249 109018 57396 0 3 0x4000080 lockf syz-executor.0 76513 381309 39035 0 3 0x82 nanosleep syz-executor.1 57396 273249 39035 0 3 0x82 nanosleep syz-executor.0 50480 457893 1 0 3 0x100083 ttyopn getty 75 103069 0 0 3 0x14200 acct acct 40095 488784 0 0 3 0x14200 bored sosplice 39035 506445 24134 0 3 0x82 thrsleep syz-fuzzer 39035 340500 24134 0 3 0x4000082 thrsleep syz-fuzzer 39035 263726 24134 0 3 0x4000082 thrsleep syz-fuzzer 39035 44125 24134 0 3 0x4000082 kqread syz-fuzzer 39035 47326 24134 0 3 0x4000082 thrsleep syz-fuzzer 39035 521385 24134 0 3 0x4000082 thrsleep syz-fuzzer 39035 24289 24134 0 3 0x4000082 thrsleep syz-fuzzer 24134 435343 9623 0 3 0x10008a pause ksh 9623 91923 48530 0 3 0x92 select sshd 48530 463034 1 0 3 0x80 select sshd 37383 75342 44142 73 3 0x100090 kqread syslogd 44142 421478 1 0 3 0x100082 netio syslogd 26710 138814 1 77 3 0x100090 poll dhclient 71364 228474 1 0 3 0x80 poll dhclient 32535 275628 0 0 2 0x14200 zerothread 23756 218329 0 0 3 0x14200 aiodoned aiodoned 84447 299677 0 0 3 0x14200 syncer update 48381 185626 0 0 3 0x14200 cleaner cleaner 29625 518781 0 0 3 0x14200 reaper reaper 91777 522058 0 0 3 0x14200 pgdaemon pagedaemon 94886 182921 0 0 3 0x14200 bored crynlk 43097 84106 0 0 3 0x14200 bored crypto 73497 94124 0 0 3 0x40014200 acpi0 acpi0 60388 298137 0 0 3 0x14200 bored softnet 39202 442880 0 0 3 0x14200 bored systqmp 87200 503562 0 0 3 0x14200 bored systq 72008 332098 0 0 3 0x40014200 bored softclock 30916 410549 0 0 3 0x40014200 idle0 54331 501180 0 0 3 0x14200 bored smr 1 98871 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 9548 6994K 7341K 78643K 12220 0 0 pcb 13 10K 12K 78643K 609 0 0 rtable 109 8K 9K 78643K 1728 0 0 ifaddr 75 16K 16K 78643K 473 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 135 0 0 iov 0 0K 24K 78643K 615 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1218 77K 78K 78643K 2510 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 45 0 0 VM map 2 0K 0K 78643K 22 0 0 sem 12 1K 1K 78643K 334 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 2811 0 0 sigio 0 0K 0K 78643K 44 0 0 proc 49 38K 63K 78643K 1132 0 0 subproc 32 2K 2K 78643K 263 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 157 0 0 in_multi 20 1K 2K 78643K 302 0 0 ether_multi 1 0K 0K 78643K 7 0 0 mrt 0 0K 0K 78643K 17 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 595 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 122 22K 31K 78643K 7803 0 0 UVM aobj 76 8K 8K 78643K 104 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 601 0 0 NDP 19 0K 0K 78643K 153 0 0 temp 212 3536K 4175K 78643K 90637 0 0 kqueue 0 0K 0K 78643K 8 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 71 0 66 1 0 1 1 0 8 0 rtpcb 80 200 0 198 1 0 1 1 0 8 0 rtentry 112 335 0 298 2 0 2 2 0 8 0 unpcb 120 1082 0 1067 1 0 1 1 0 8 0 syncache 264 15 0 15 5 5 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 6902 0 6902 4 4 0 1 0 8 0 tcpcb 544 978 0 973 15 14 1 15 0 8 0 ipq 40 10 0 10 5 5 0 1 0 8 0 ipqe 40 22 0 22 5 5 0 1 0 8 0 inpcb 280 2979 0 2970 19 18 1 9 0 8 0 rttmr 72 6 0 5 1 0 1 1 0 8 0 nd6 48 43 0 42 1 0 1 1 0 8 0 pkpcb 40 16 0 16 6 6 0 1 0 8 0 ppxss 1128 51 0 51 11 10 1 1 0 8 1 art_heap8 4096 3 0 2 2 1 1 2 0 8 0 art_heap4 256 1389 0 1194 22 7 15 17 0 8 0 art_table 32 1392 0 1196 3 0 3 3 0 8 0 art_node 16 329 0 294 1 0 1 1 0 8 0 sysvmsgpl 40 38 0 26 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 332 0 322 1 0 1 1 0 8 0 shmpl 112 102 0 28 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5856 0 4460 46 0 46 46 0 8 0 ffsino 240 5856 0 4460 83 0 83 83 0 8 0 nchpl 144 11559 0 9956 60 0 60 60 0 8 0 uvmvnodes 72 6343 0 0 116 0 116 116 0 8 0 vnodes 208 6343 0 0 334 0 334 334 0 8 0 namei 1024 36928 0 36928 4 3 1 1 0 8 1 vmpool 520 20 0 20 5 5 0 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 40375 0 40375 21 20 1 7 0 8 1 plimitpl 152 224 0 217 1 0 1 1 0 8 0 sigapl 432 2946 0 2932 2 0 2 2 0 8 0 futexpl 56 68689 0 68689 2 1 1 1 0 8 1 knotepl 112 831 0 812 1 0 1 1 0 8 0 kqueuepl 104 1199 0 1197 4 3 1 4 0 8 0 pipepl 112 3324 0 3305 12 10 2 3 0 8 1 fdescpl 424 2947 0 2932 2 0 2 2 0 8 0 filepl 120 26410 0 26312 20 16 4 10 0 8 1 lockfpl 104 1015 0 1012 1 0 1 1 0 8 0 lockfspl 48 333 0 331 1 0 1 1 0 8 0 sessionpl 112 33 0 23 1 0 1 1 0 8 0 pgrppl 48 53 0 43 1 0 1 1 0 8 0 ucredpl 96 3180 0 3172 1 0 1 1 0 8 0 zombiepl 144 2934 0 2934 3 2 1 1 0 8 1 processpl 864 2965 0 2934 4 0 4 4 0 8 0 procpl 632 6381 0 6342 5 1 4 5 0 8 0 sosppl 128 15 0 15 3 3 0 1 0 8 0 sockpl 384 4321 0 4295 25 21 4 14 0 8 1 mcl64k 65536 932 0 932 90 89 1 33 0 8 1 mcl16k 16384 24 0 24 12 12 0 1 0 8 0 mcl12k 12288 53 0 53 9 8 1 1 0 8 1 mcl9k 9216 43 0 43 13 12 1 1 0 8 1 mcl8k 8192 98 0 98 6 5 1 1 0 8 1 mcl4k 4096 255 0 255 4 3 1 1 0 8 1 mcl2k2 2112 19 0 19 10 9 1 1 0 8 1 mcl2k 2048 57303 0 57256 16 9 7 14 0 8 0 mtagpl 80 24 0 24 3 3 0 1 0 8 0 mbufpl 256 114040 0 113877 67 55 12 26 0 8 0 bufpl 256 19441 0 13031 401 0 401 401 0 8 0 anonpl 16 375975 0 360670 150 74 76 80 0 62 11 amapchunkpl 152 16209 0 16096 57 44 13 19 0 158 7 amappl16 192 18926 0 18043 165 114 51 57 0 8 6 amappl15 184 269 0 269 3 3 0 1 0 8 0 amappl14 176 286 0 283 2 1 1 1 0 8 0 amappl13 168 557 0 557 3 2 1 1 0 8 1 amappl12 160 869 0 865 2 1 1 1 0 8 0 amappl11 152 85 0 74 1 0 1 1 0 8 0 amappl10 144 477 0 476 1 0 1 1 0 8 0 amappl9 136 733 0 727 1 0 1 1 0 8 0 amappl8 128 301 0 262 3 1 2 2 0 8 0 amappl7 120 553 0 546 1 0 1 1 0 8 0 amappl6 112 95 0 79 1 0 1 1 0 8 0 amappl5 104 1127 0 1115 1 0 1 1 0 8 0 amappl4 96 2818 0 2791 1 0 1 1 0 8 0 amappl3 88 604 0 597 1 0 1 1 0 8 0 amappl2 80 22614 0 22542 4 2 2 3 0 8 0 amappl1 72 63205 0 62776 26 16 10 20 0 8 0 amappl 80 6845 0 6806 2 1 1 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 103 0 28 2 0 2 2 0 8 0 uaddrrnd 24 2967 0 2932 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2967 0 2932 1 0 1 1 0 8 0 vmmpekpl 168 24953 0 24928 2 0 2 2 0 8 0 vmmpepl 168 361722 0 359671 282 164 118 118 0 357 28 vmsppl 272 2946 0 2932 2 1 1 2 0 8 0 pdppl 4096 5940 0 5904 6 1 5 6 0 8 0 pvpl 32 1037461 0 1018956 393 162 231 290 0 265 76 pmappl 200 2966 0 2952 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 735 0 202 17 0 17 17 0 8 0