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 *138752 74800 0 0 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(ffff80001774a240) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800014d0b000,fffffd803d292388,10,ffff80000005be40,ffff80001774a4a8) at alltraps_kern_meltdown+0x7b 0(b,ffff80001774a408,83,ffff80001774a4a8,0,b) at 0 rt_match(fffffd803d421828,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803d421828,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff80001774a580,fffffd803f02da20,fffffd803d4217a8) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd803d4217a8,fffffd803f02da00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd802ebb2df8,4,0,fffffd803f02da00,0,ffff8000ffff2ee8) at udp_usrreq+0x560 sys_connect(ffff8000ffff2ee8,ffff80001774a708,ffff80001774a750) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff80001774a7d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffecf,0,3,7c93077f010) at Xsyscall+0x128 end of kernel end trace frame: 0x7cbe9461db0, 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(ffff80001774a240) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800014d0b000,fffffd803d292388,10,ffff80000005be40,ffff80001774a4a8) at alltraps_kern_meltdown+0x7b 0(b,ffff80001774a408,83,ffff80001774a4a8,0,b) at 0 rt_match(fffffd803d421828,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803d421828,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff80001774a580,fffffd803f02da20,fffffd803d4217a8) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd803d4217a8,fffffd803f02da00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd802ebb2df8,4,0,fffffd803f02da00,0,ffff8000ffff2ee8) at udp_usrreq+0x560 sys_connect(ffff8000ffff2ee8,ffff80001774a708,ffff80001774a750) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff80001774a7d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffecf,0,3,7c93077f010) at Xsyscall+0x128 end of kernel end trace frame: 0x7cbe9461db0, count: -13 ddb> show registers rdi 0xffffffff811edc87 db_enter+0x17 rsi 0x22c1 __ALIGN_SIZE+0x12c1 rbp 0xffff80001774a0b0 rbx 0xffff80001774a160 rdx 0x22c2 __ALIGN_SIZE+0x12c2 rcx 0xffff800014d0b000 rax 0xffff800014d0b000 r8 0xffff80001774a070 r9 0x1 r10 0xffff800000acce00 r11 0xe39b39a10e1cfb31 r12 0x3000000008 r13 0xffff80001774a0c0 r14 0x100 r15 0x1 rip 0xffffffff811edc88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001774a0a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=138752 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff29f8,0xffff8000ffff2790 process=0xffff8000ffff70f0 user=0xffff800017745000, 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 69934 100930 93297 0 3 0x80 nanosleep syz-executor.1 69934 477631 93297 0 3 0x4000080 netio syz-executor.1 69934 453722 93297 0 3 0x4000080 fsleep syz-executor.1 74800 197011 91169 0 2 0 syz-executor.0 *74800 138752 91169 0 7 0x4000000 syz-executor.0 93297 394991 28558 0 3 0x82 nanosleep syz-executor.1 91169 111964 28558 0 3 0x82 nanosleep syz-executor.0 80633 331561 1 0 3 0x100083 ttyin getty 86753 65655 0 0 3 0x14200 bored sosplice 28558 444936 44641 0 3 0x82 thrsleep syz-fuzzer 28558 339523 44641 0 3 0x4000082 thrsleep syz-fuzzer 28558 498873 44641 0 3 0x4000082 thrsleep syz-fuzzer 28558 226307 44641 0 3 0x4000082 thrsleep syz-fuzzer 28558 407042 44641 0 3 0x4000082 thrsleep syz-fuzzer 28558 148742 44641 0 3 0x4000082 thrsleep syz-fuzzer 28558 320273 44641 0 3 0x4000082 thrsleep syz-fuzzer 28558 39675 44641 0 3 0x4000082 kqread syz-fuzzer 28558 512648 44641 0 3 0x4000082 thrsleep syz-fuzzer 44641 359415 50702 0 3 0x10008a pause ksh 50702 329020 15128 0 3 0x92 select sshd 15128 269599 1 0 3 0x80 select sshd 80421 335880 57312 73 3 0x100090 kqread syslogd 57312 203741 1 0 3 0x100082 netio syslogd 69250 11665 1 77 3 0x100090 poll dhclient 76121 518681 1 0 3 0x80 poll dhclient 74249 430575 0 0 2 0x14200 zerothread 37739 129494 0 0 3 0x14200 aiodoned aiodoned 22390 216717 0 0 3 0x14200 syncer update 97800 301918 0 0 3 0x14200 cleaner cleaner 80247 63131 0 0 3 0x14200 reaper reaper 83914 497593 0 0 3 0x14200 pgdaemon pagedaemon 83217 225842 0 0 3 0x14200 bored crynlk 61507 259081 0 0 3 0x14200 bored crypto 83619 217505 0 0 3 0x40014200 acpi0 acpi0 8809 480487 0 0 3 0x14200 bored softnet 73280 325067 0 0 3 0x14200 bored systqmp 43917 430668 0 0 3 0x14200 bored systq 82823 68386 0 0 3 0x40014200 bored softclock 68748 244013 0 0 3 0x40014200 idle0 8105 405404 0 0 3 0x14200 bored smr 1 324278 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 9584 7021K 7793K 78643K 22178 0 0 pcb 13 10K 12K 78643K 1081 0 0 rtable 118 12K 13K 78643K 3857 0 0 ifaddr 87 19K 21K 78643K 1048 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 306 0 0 iov 0 0K 32K 78643K 1129 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1203 76K 77K 78643K 5862 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 132 0 0 VM map 2 0K 0K 78643K 48 0 0 sem 12 1K 1K 78643K 104 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 6016 0 0 sigio 0 0K 0K 78643K 140 0 0 proc 50 38K 63K 78643K 2423 0 0 subproc 32 2K 2K 78643K 699 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 335 0 0 in_multi 26 1K 2K 78643K 631 0 0 ether_multi 1 0K 0K 78643K 23 0 0 mrt 0 0K 0K 78643K 24 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 1250 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 113 22K 30K 78643K 15757 0 0 UVM aobj 130 4K 4K 78643K 143 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 1099 0 0 NDP 21 0K 1K 78643K 339 0 0 temp 233 3537K 4177K 78643K 99677 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 133 0 127 1 0 1 1 0 8 0 rtpcb 80 358 0 356 1 0 1 1 0 8 0 rtentry 112 663 0 621 2 0 2 2 0 8 0 unpcb 120 4923 0 4906 1 0 1 1 0 8 0 syncache 264 26 0 26 13 13 0 1 0 8 0 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpqe 32 8076 0 8076 8 8 0 2 0 8 0 tcpcb 544 7658 0 7650 45 44 1 15 0 8 0 ipq 40 36 0 36 13 13 0 1 0 8 0 ipqe 40 77 0 77 13 13 0 1 0 8 0 inpcb 280 12429 0 12414 42 40 2 9 0 8 0 rttmr 72 10 0 9 7 6 1 1 0 8 0 nd6 48 91 0 89 6 5 1 1 0 8 0 pkpcb 40 16 0 16 7 7 0 1 0 8 0 ppxss 1128 109 0 109 25 24 1 1 0 8 1 art_heap8 4096 8 0 7 4 3 1 2 0 8 0 art_heap4 256 2805 0 2584 47 31 16 17 0 8 2 art_table 32 2813 0 2591 5 3 2 3 0 8 0 art_node 16 656 0 617 1 0 1 1 0 8 0 sysvmsgpl 40 22 0 16 2 1 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 102 0 92 1 0 1 1 0 8 0 shmpl 112 141 0 13 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 10282 0 8884 46 0 46 46 0 8 0 ffsino 240 10282 0 8884 83 0 83 83 0 8 0 nchpl 144 19012 0 17368 61 0 61 61 0 8 0 uvmvnodes 72 8425 0 0 154 0 154 154 0 8 0 vnodes 208 8425 0 0 444 0 444 444 0 8 0 namei 1024 66205 0 66205 10 9 1 1 0 8 1 vmpool 520 46 0 46 16 15 1 1 0 8 1 scsiplug 64 4 0 4 3 3 0 1 0 8 0 scxspl 192 88856 0 88856 37 36 1 7 0 8 1 plimitpl 152 395 0 388 1 0 1 1 0 8 0 sigapl 432 6073 0 6059 2 0 2 2 0 8 0 futexpl 56 163895 0 163894 11 10 1 1 0 8 0 knotepl 112 1502 0 1483 1 0 1 1 0 8 0 kqueuepl 104 1444 0 1442 4 3 1 4 0 8 0 pipepl 112 3212 0 3191 10 9 1 2 0 8 0 fdescpl 424 6074 0 6059 2 0 2 2 0 8 0 filepl 120 51125 0 51016 37 33 4 11 0 8 0 lockfpl 104 2030 0 2028 1 0 1 1 0 8 0 lockfspl 48 711 0 709 1 0 1 1 0 8 0 sessionpl 112 59 0 49 1 0 1 1 0 8 0 pgrppl 48 107 0 97 1 0 1 1 0 8 0 ucredpl 96 5572 0 5565 1 0 1 1 0 8 0 zombiepl 144 6060 0 6060 4 3 1 1 0 8 1 processpl 864 6090 0 6060 4 0 4 4 0 8 0 procpl 632 13112 0 13071 6 2 4 5 0 8 0 sosppl 128 74 0 74 16 16 0 1 0 8 0 sockpl 384 17775 0 17743 58 54 4 14 0 8 0 mcl64k 65536 2591 0 2591 196 195 1 33 0 8 1 mcl16k 16384 194 0 194 19 18 1 1 0 8 1 mcl12k 12288 146 0 146 22 22 0 1 0 8 0 mcl9k 9216 119 0 119 24 23 1 1 0 8 1 mcl8k 8192 213 0 213 21 20 1 1 0 8 1 mcl4k 4096 460 0 458 13 12 1 1 0 8 0 mcl2k2 2112 51 0 51 20 19 1 1 0 8 1 mcl2k 2048 69541 0 69503 32 26 6 23 0 8 0 mtagpl 80 369 0 367 12 11 1 5 0 8 0 mbufpl 256 166765 0 166677 160 152 8 46 0 8 0 bufpl 256 30404 0 21977 527 0 527 527 0 8 0 anonpl 16 758355 0 742189 234 151 83 98 0 62 8 amapchunkpl 152 33508 0 33396 134 122 12 19 0 158 5 amappl16 192 37359 0 36441 325 271 54 59 0 8 8 amappl15 184 286 0 286 9 9 0 1 0 8 0 amappl14 176 2275 0 2270 2 1 1 1 0 8 0 amappl13 168 839 0 838 1 0 1 1 0 8 0 amappl12 160 933 0 930 1 0 1 1 0 8 0 amappl11 152 255 0 244 1 0 1 1 0 8 0 amappl10 144 1063 0 1060 1 0 1 1 0 8 0 amappl9 136 1330 0 1323 1 0 1 1 0 8 0 amappl8 128 826 0 793 2 0 2 2 0 8 0 amappl7 120 1201 0 1191 1 0 1 1 0 8 0 amappl6 112 197 0 187 1 0 1 1 0 8 0 amappl5 104 1606 0 1595 1 0 1 1 0 8 0 amappl4 96 6660 0 6628 1 0 1 1 0 8 0 amappl3 88 1979 0 1974 1 0 1 1 0 8 0 amappl2 80 45344 0 45269 4 2 2 3 0 8 0 amappl1 72 120821 0 120389 28 19 9 20 0 8 0 amappl 80 14000 0 13961 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 142 0 13 3 0 3 3 0 8 0 uaddrrnd 24 6120 0 6059 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6120 0 6059 1 0 1 1 0 8 0 vmmpekpl 168 38726 0 38698 2 0 2 2 0 8 0 vmmpepl 168 738851 0 736757 523 402 121 122 0 357 27 vmsppl 272 6073 0 6059 5 4 1 2 0 8 0 pdppl 4096 12246 0 12210 6 1 5 6 0 8 0 pvpl 32 2223674 0 2204200 745 549 196 304 0 265 31 pmappl 200 6119 0 6105 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1173 0 517 21 1 20 20 0 8 0