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 *203450 89392 60929 0x10 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(ffff800015966770) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800014921000,fffffd803514d4d8,10,ffff8000000250c0,ffff8000159669d8) at alltraps_kern_meltdown+0x7b 0(b,ffff800015966938,83,ffff8000159669d8,0,b) at 0 rt_match(fffffd8039add940,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd8039add940,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff800015966ab0,fffffd802a57ec20,fffffd8039add8c0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd8039add8c0,fffffd802a57ec00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd8039ade900,4,0,fffffd802a57ec00,0,ffff8000ffff3650) at udp_usrreq+0x560 sys_connect(ffff8000ffff3650,ffff800015966c38,ffff800015966c80) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800015966d00) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,5291298010) at Xsyscall+0x128 end of kernel end trace frame: 0x5513d1e180, 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(ffff800015966770) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800014921000,fffffd803514d4d8,10,ffff8000000250c0,ffff8000159669d8) at alltraps_kern_meltdown+0x7b 0(b,ffff800015966938,83,ffff8000159669d8,0,b) at 0 rt_match(fffffd8039add940,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd8039add940,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff800015966ab0,fffffd802a57ec20,fffffd8039add8c0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd8039add8c0,fffffd802a57ec00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd8039ade900,4,0,fffffd802a57ec00,0,ffff8000ffff3650) at udp_usrreq+0x560 sys_connect(ffff8000ffff3650,ffff800015966c38,ffff800015966c80) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800015966d00) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,5291298010) at Xsyscall+0x128 end of kernel end trace frame: 0x5513d1e180, count: -13 ddb> show registers rdi 0xffffffff812241d7 db_enter+0x17 rsi 0x21af __ALIGN_SIZE+0x11af rbp 0xffff8000159665e0 rbx 0xffff800015966690 rdx 0x21b0 __ALIGN_SIZE+0x11b0 rcx 0xffff800014921000 rax 0xffff800014921000 r8 0xffff8000159665a0 r9 0x1 r10 0xffff800000ab8f80 r11 0xe49842bdcbabfe67 r12 0x3000000008 r13 0xffff8000159665f0 r14 0x100 r15 0x1 rip 0xffffffff812241d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000159665d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=203450 stat=onproc flags process=10 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2ee8,0xffffffff825686e0 process=0xffff8000ffffb0e8 user=0xffff800015961000, vmspace=0xfffffd803f013000 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 89392 473137 13882 60929 2 0x10 syz-executor.0 *89392 203450 13882 60929 7 0x4000010 syz-executor.0 46579 318985 15949 0 3 0x82 nanosleep syz-executor.1 35469 213274 0 0 3 0x14200 acct acct 13882 451502 15949 0 3 0x82 nanosleep syz-executor.0 43185 1839 0 0 3 0x14200 bored sosplice 15949 431724 13911 0 3 0x82 thrsleep syz-fuzzer 15949 48196 13911 0 3 0x4000082 nanosleep syz-fuzzer 15949 192596 13911 0 3 0x4000082 thrsleep syz-fuzzer 15949 447654 13911 0 3 0x4000082 thrsleep syz-fuzzer 15949 253290 13911 0 3 0x4000082 kqread syz-fuzzer 15949 359092 13911 0 3 0x4000082 thrsleep syz-fuzzer 15949 141408 13911 0 3 0x4000082 thrsleep syz-fuzzer 13911 441765 40537 0 3 0x10008a pause ksh 40537 348477 48498 0 3 0x92 select sshd 13829 262109 1 0 3 0x100083 ttyopn getty 48498 125686 1 0 3 0x80 select sshd 47843 173376 18788 73 3 0x100090 kqread syslogd 18788 372126 1 0 3 0x100082 netio syslogd 43306 247224 1 77 3 0x100090 poll dhclient 3273 378575 1 0 3 0x80 poll dhclient 60598 517484 0 0 2 0x14200 zerothread 47820 156820 0 0 3 0x14200 aiodoned aiodoned 40298 475414 0 0 3 0x14200 syncer update 57622 508142 0 0 3 0x14200 cleaner cleaner 13668 65246 0 0 3 0x14200 reaper reaper 44638 112317 0 0 3 0x14200 pgdaemon pagedaemon 63511 390379 0 0 3 0x14200 bored crynlk 3230 230851 0 0 3 0x14200 bored crypto 91113 152 0 0 3 0x40014200 acpi0 acpi0 68620 427910 0 0 3 0x14200 bored softnet 80348 115624 0 0 3 0x14200 bored systqmp 37078 211109 0 0 3 0x14200 bored systq 7143 443997 0 0 3 0x40014200 bored softclock 22491 230212 0 0 3 0x40014200 idle0 4345 401782 0 0 3 0x14200 bored smr 1 249712 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 9550 6369K 7115K 78643K 13765 0 0 pcb 13 8K 9K 78643K 284 0 0 rtable 105 12K 13K 78643K 861 0 0 ifaddr 65 14K 16K 78643K 251 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 62 0 0 iov 0 0K 28K 78643K 262 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1209 76K 77K 78643K 2446 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 22 0 0 VM map 2 0K 0K 78643K 14 0 0 sem 12 0K 0K 78643K 243 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 1252 0 0 sigio 0 0K 0K 78643K 21 0 0 proc 50 38K 63K 78643K 614 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 81 0 0 in_multi 19 1K 2K 78643K 120 0 0 ether_multi 1 0K 0K 78643K 6 0 0 mrt 0 0K 0K 78643K 14 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 174 768K 768K 78643K 174 0 0 exec 0 0K 1K 78643K 382 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 99 21K 31K 78643K 4090 0 0 UVM aobj 49 2K 2K 78643K 50 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 274 0 0 NDP 15 0K 0K 78643K 78 0 0 temp 191 3536K 3611K 78643K 35320 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 27 0 22 1 0 1 1 0 8 0 rtpcb 80 90 0 88 1 0 1 1 0 8 0 rtentry 112 155 0 117 2 0 2 2 0 8 0 unpcb 120 3019 0 3010 7 5 2 3 0 8 1 syncache 264 8 0 8 3 3 0 1 0 8 0 tcpqe 32 7858 0 7858 4 4 0 2 0 8 0 tcpcb 544 1371 0 1367 15 12 3 5 0 8 2 ipq 40 14 0 14 3 3 0 1 0 8 0 ipqe 40 36 0 36 3 3 0 1 0 8 0 inpcb 280 2347 0 2338 16 13 3 6 0 8 2 rttmr 72 6 0 6 3 3 0 1 0 8 0 nd6 48 17 0 16 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 ppxss 1128 29 0 29 6 5 1 1 0 8 1 art_heap8 4096 3 0 2 3 2 1 3 0 8 0 art_heap4 256 701 0 531 17 3 14 15 0 8 2 art_table 32 704 0 533 2 0 2 2 0 8 0 art_node 16 152 0 118 1 0 1 1 0 8 0 semapl 112 239 0 229 1 0 1 1 0 8 0 shmpl 112 48 0 1 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3749 0 2367 46 0 46 46 0 8 0 ffsino 240 3749 0 2367 83 0 83 83 0 8 0 nchpl 144 6294 0 4697 60 0 60 60 0 8 0 uvmvnodes 72 4517 0 0 83 0 83 83 0 8 0 vnodes 208 4517 0 0 238 0 238 238 0 8 0 namei 1024 20845 0 20845 3 2 1 1 0 8 1 vmpool 520 12 0 12 5 5 0 1 0 8 0 scsiplug 64 4 0 4 3 3 0 1 0 8 0 scxspl 192 17810 0 17810 14 13 1 7 0 8 1 plimitpl 152 116 0 109 1 0 1 1 0 8 0 sigapl 432 1414 0 1401 2 0 2 2 0 8 0 futexpl 56 38658 0 38658 1 0 1 1 0 8 1 knotepl 112 272 0 253 1 0 1 1 0 8 0 kqueuepl 104 368 0 366 1 0 1 1 0 8 0 pipepl 112 798 0 779 3 1 2 2 0 8 1 fdescpl 424 1415 0 1401 2 0 2 2 0 8 0 filepl 120 15143 0 15046 18 11 7 8 0 8 4 lockfpl 104 396 0 395 1 0 1 1 0 8 0 lockfspl 48 134 0 133 1 0 1 1 0 8 0 sessionpl 112 20 0 10 1 0 1 1 0 8 0 pgrppl 48 28 0 18 1 0 1 1 0 8 0 ucredpl 96 3263 0 3255 5 4 1 2 0 8 0 zombiepl 144 1402 0 1401 3 2 1 1 0 8 0 processpl 864 1432 0 1401 4 0 4 4 0 8 0 procpl 632 3174 0 3136 6 2 4 5 0 8 0 sosppl 128 22 0 22 3 3 0 1 0 8 0 sockpl 384 5617 0 5597 34 27 7 12 0 8 4 mcl64k 65536 128 0 128 3 2 1 1 0 8 1 mcl16k 16384 23 0 23 8 7 1 1 0 8 1 mcl12k 12288 30 0 30 4 3 1 1 0 8 1 mcl9k 9216 35 0 35 7 6 1 1 0 8 1 mcl8k 8192 64 0 64 1 0 1 1 0 8 1 mcl4k 4096 114 0 114 2 1 1 1 0 8 1 mcl2k2 2112 14 0 14 4 4 0 1 0 8 0 mcl2k 2048 53503 0 53463 31 25 6 26 0 8 0 mtagpl 80 59 0 59 2 1 1 1 0 8 1 mbufpl 256 104986 0 104912 53 43 10 29 0 8 1 bufpl 256 12049 0 5737 395 0 395 395 0 8 0 anonpl 16 186952 0 172525 128 51 77 80 0 62 12 amapchunkpl 152 8260 0 8153 37 31 6 15 0 158 1 amappl16 192 9440 0 8564 118 69 49 57 0 8 4 amappl15 184 37 0 35 1 0 1 1 0 8 0 amappl14 176 361 0 356 2 1 1 1 0 8 0 amappl13 168 131 0 131 2 1 1 1 0 8 1 amappl12 160 6 0 4 1 0 1 1 0 8 0 amappl11 152 56 0 45 1 0 1 1 0 8 0 amappl10 144 8 0 8 1 1 0 1 0 8 0 amappl9 136 905 0 896 1 0 1 1 0 8 0 amappl8 128 497 0 460 2 0 2 2 0 8 0 amappl7 120 48 0 43 1 0 1 1 0 8 0 amappl6 112 81 0 68 1 0 1 1 0 8 0 amappl5 104 186 0 176 1 0 1 1 0 8 0 amappl4 96 1656 0 1628 1 0 1 1 0 8 0 amappl3 88 490 0 485 1 0 1 1 0 8 0 amappl2 80 10560 0 10494 4 2 2 3 0 8 0 amappl1 72 35293 0 34880 26 16 10 20 0 8 0 amappl 80 3475 0 3439 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 49 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1427 0 1401 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1427 0 1401 1 0 1 1 0 8 0 vmmpekpl 168 13437 0 13413 2 0 2 2 0 8 0 vmmpepl 168 175250 0 173312 237 119 118 143 0 357 30 vmsppl 272 1414 0 1401 2 1 1 2 0 8 0 pdppl 4096 2860 0 2826 6 1 5 6 0 8 0 pvpl 32 505035 0 487478 314 102 212 269 0 265 59 pmappl 200 1426 0 1413 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 627 0 101 16 0 16 16 0 8 0