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 *201205 12244 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(ffff80001591bab0) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800016b45000,fffffd8036d68e00,10,ffff80000005b380,ffff80001591bd18) at alltraps_kern_meltdown+0x7b 0(b,ffff80001591bc78,83,ffff80001591bd18,0,b) at 0 rt_match(fffffd8037012b70,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd8037012b70,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff80001591bdf0,fffffd803e69db20,fffffd8037012af0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd8037012af0,fffffd803e69db00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd80292add98,4,0,fffffd803e69db00,0,ffff8000ffff2508) at udp_usrreq+0x560 sys_connect(ffff8000ffff2508,ffff80001591bf78,ffff80001591bfc0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff80001591c040) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffecf,0,3,6c306684010) at Xsyscall+0x128 end of kernel end trace frame: 0x6c583358fc0, 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(ffff80001591bab0) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800016b45000,fffffd8036d68e00,10,ffff80000005b380,ffff80001591bd18) at alltraps_kern_meltdown+0x7b 0(b,ffff80001591bc78,83,ffff80001591bd18,0,b) at 0 rt_match(fffffd8037012b70,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd8037012b70,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff80001591bdf0,fffffd803e69db20,fffffd8037012af0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd8037012af0,fffffd803e69db00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd80292add98,4,0,fffffd803e69db00,0,ffff8000ffff2508) at udp_usrreq+0x560 sys_connect(ffff8000ffff2508,ffff80001591bf78,ffff80001591bfc0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff80001591c040) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffecf,0,3,6c306684010) at Xsyscall+0x128 end of kernel end trace frame: 0x6c583358fc0, count: -13 ddb> show registers rdi 0xffffffff812241d7 db_enter+0x17 rsi 0x2436 __ALIGN_SIZE+0x1436 rbp 0xffff80001591b920 rbx 0xffff80001591b9d0 rdx 0x2437 __ALIGN_SIZE+0x1437 rcx 0xffff800016b45000 rax 0xffff800016b45000 r8 0xffff80001591b8e0 r9 0x1 r10 0xffff800000a63c00 r11 0xbc80b8485797ba69 r12 0x3000000008 r13 0xffff80001591b930 r14 0x100 r15 0x1 rip 0xffffffff812241d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001591b910 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=201205 stat=onproc flags process=0 proc=4000000 pri=65, usrpri=65, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff38c8,0xffffffff825686e0 process=0xffff8000ffff70f0 user=0xffff800015917000, vmspace=0xfffffd803f013ee0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 12244 476351 85549 0 2 0 syz-executor.1 *12244 201205 85549 0 7 0x4000000 syz-executor.1 51246 255438 72700 0 2 0x2 syz-executor.0 85549 486079 72700 0 3 0x82 nanosleep syz-executor.1 6705 51132 0 0 3 0x14200 acct acct 89470 320615 1 0 3 0x100083 ttyin getty 50155 520294 0 0 3 0x14200 bored sosplice 72700 112405 25971 0 3 0x82 thrsleep syz-fuzzer 72700 2187 25971 0 3 0x4000082 thrsleep syz-fuzzer 72700 456087 25971 0 3 0x4000082 kqread syz-fuzzer 72700 212299 25971 0 3 0x4000082 thrsleep syz-fuzzer 72700 79621 25971 0 3 0x4000082 thrsleep syz-fuzzer 72700 437766 25971 0 3 0x4000082 thrsleep syz-fuzzer 72700 482067 25971 0 3 0x4000082 thrsleep syz-fuzzer 72700 478849 25971 0 3 0x4000082 thrsleep syz-fuzzer 25971 423538 21383 0 3 0x10008a pause ksh 21383 354205 98827 0 3 0x92 select sshd 98827 321222 1 0 3 0x80 select sshd 81497 197916 45856 73 3 0x100090 kqread syslogd 45856 509130 1 0 3 0x100082 netio syslogd 9537 241963 1 77 3 0x100090 poll dhclient 76564 177894 1 0 3 0x80 poll dhclient 84190 476207 0 0 3 0x14200 pgzero zerothread 82447 192451 0 0 3 0x14200 aiodoned aiodoned 77128 242982 0 0 3 0x14200 syncer update 48131 420781 0 0 3 0x14200 cleaner cleaner 40133 305677 0 0 3 0x14200 reaper reaper 70806 326541 0 0 3 0x14200 pgdaemon pagedaemon 28216 84751 0 0 3 0x14200 bored crynlk 26790 509106 0 0 3 0x14200 bored crypto 8134 63334 0 0 3 0x40014200 acpi0 acpi0 49799 448571 0 0 3 0x14200 bored softnet 39929 86559 0 0 3 0x14200 bored systqmp 60731 380712 0 0 3 0x14200 bored systq 68861 372328 0 0 3 0x40014200 bored softclock 42312 369625 0 0 3 0x40014200 idle0 3107 140541 0 0 3 0x14200 bored smr 1 312433 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 9572 6373K 8493K 78643K 34178 0 0 pcb 13 10K 12K 78643K 1992 0 0 rtable 128 9K 10K 78643K 9556 0 0 ifaddr 122 32K 36K 78643K 1528 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 194 0 0 iov 0 0K 32K 78643K 676 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1227 77K 77K 78643K 8389 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 59 0 0 VM map 2 0K 0K 78643K 8 0 0 sem 12 0K 1K 78643K 632 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 10261 0 0 sigio 0 0K 0K 78643K 87 0 0 proc 50 38K 63K 78643K 1501 0 0 subproc 32 2K 2K 78643K 342 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 377 0 0 in_multi 23 1K 2K 78643K 854 0 0 ether_multi 1 0K 0K 78643K 26 0 0 mrt 0 0K 0K 78643K 39 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 753 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 164 25K 31K 78643K 24283 0 0 UVM aobj 130 6K 6K 78643K 162 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 3427 0 0 NDP 21 0K 1K 78643K 355 0 0 temp 233 3537K 4176K 78643K 121934 0 0 kqueue 0 0K 0K 78643K 19 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 575 0 568 1 0 1 1 0 8 0 rtpcb 80 281 0 279 1 0 1 1 0 8 0 rtentry 112 2893 0 2845 2 0 2 2 0 8 0 unpcb 120 2360 0 2339 2 1 1 2 0 8 0 syncache 264 163 0 163 15 15 0 1 0 8 0 tcpqe 32 245 0 245 17 17 0 1 0 8 0 tcpcb 544 4728 0 4724 16 15 1 15 0 8 0 ipq 40 18 0 18 8 7 1 1 0 8 1 ipqe 40 45 0 45 8 7 1 1 0 8 1 inpcb 280 13413 0 13405 25 24 1 9 0 8 0 rttmr 72 10 0 10 5 5 0 1 0 8 0 nd6 48 64 0 63 5 4 1 1 0 8 0 pkpcb 40 22 0 22 5 5 0 1 0 8 0 ppxss 1128 118 0 118 21 20 1 1 0 8 1 art_heap8 4096 38 0 35 11 8 3 4 0 8 0 art_heap4 256 6423 0 6207 35 16 19 19 0 8 3 art_table 32 6461 0 6242 3 0 3 3 0 8 0 art_node 16 2332 0 2293 1 0 1 1 0 8 0 sysvmsgpl 40 42 0 2 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 630 0 620 1 0 1 1 0 8 0 shmpl 112 160 0 32 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 15372 0 13977 46 0 46 46 0 8 0 ffsino 240 15372 0 13977 83 0 83 83 0 8 0 nchpl 144 29078 0 27466 61 0 61 61 0 8 0 uvmvnodes 72 7449 0 0 136 0 136 136 0 8 0 vnodes 208 7449 0 0 393 0 393 393 0 8 0 namei 1024 85483 0 85482 8 7 1 1 0 8 0 vmpool 520 6 0 6 2 1 1 1 0 8 1 scsiplug 64 13 0 13 6 6 0 1 0 8 0 scxspl 192 95524 0 95524 22 21 1 7 0 8 1 plimitpl 152 485 0 478 1 0 1 1 0 8 0 sigapl 432 10382 0 10369 2 0 2 2 0 8 0 futexpl 56 175088 0 175088 8 7 1 1 0 8 1 knotepl 112 1268 0 1249 1 0 1 1 0 8 0 kqueuepl 104 1408 0 1406 4 3 1 4 0 8 0 pipepl 112 5162 0 5143 20 18 2 2 0 8 1 fdescpl 424 10383 0 10369 2 0 2 2 0 8 0 filepl 120 58529 0 58431 22 18 4 11 0 8 1 lockfpl 104 1875 0 1873 1 0 1 1 0 8 0 lockfspl 48 629 0 627 1 0 1 1 0 8 0 sessionpl 112 39 0 29 1 0 1 1 0 8 0 pgrppl 48 48 0 38 1 0 1 1 0 8 0 ucredpl 96 7801 0 7794 1 0 1 1 0 8 0 zombiepl 144 10371 0 10371 2 1 1 1 0 8 1 processpl 864 10401 0 10371 4 0 4 4 0 8 0 procpl 632 22469 0 22431 4 0 4 4 0 8 0 sosppl 128 80 0 80 13 12 1 1 0 8 1 sockpl 384 16134 0 16103 24 19 5 15 0 8 1 mcl64k 65536 300 0 297 9 8 1 1 0 8 0 mcl16k 16384 57 0 57 18 18 0 1 0 8 0 mcl12k 12288 194 0 194 22 21 1 1 0 8 1 mcl9k 9216 71 0 71 21 20 1 1 0 8 1 mcl8k 8192 171 0 171 24 23 1 1 0 8 1 mcl4k 4096 506 0 506 15 14 1 1 0 8 1 mcl2k2 2112 46 0 46 18 18 0 1 0 8 0 mcl2k 2048 39581 0 39535 57 49 8 12 0 8 1 mtagpl 80 687 0 683 14 13 1 6 0 8 0 mbufpl 256 163524 0 163339 85 66 19 42 0 8 1 bufpl 256 30059 0 21767 519 0 519 519 0 8 0 anonpl 16 1153137 0 1147194 199 161 38 50 0 62 10 amapchunkpl 152 56281 0 56194 92 87 5 24 0 158 0 amappl16 192 58364 0 58033 195 169 26 29 0 8 8 amappl15 184 8 0 8 1 1 0 1 0 8 0 amappl14 176 1073 0 1068 2 1 1 1 0 8 0 amappl13 168 848 0 848 3 3 0 1 0 8 0 amappl12 160 234 0 229 1 0 1 1 0 8 0 amappl11 152 3486 0 3474 1 0 1 1 0 8 0 amappl10 144 1509 0 1505 4 3 1 1 0 8 0 amappl9 136 2777 0 2771 1 0 1 1 0 8 0 amappl8 128 2471 0 2386 3 0 3 3 0 8 0 amappl7 120 1553 0 1547 1 0 1 1 0 8 0 amappl6 112 3499 0 3485 1 0 1 1 0 8 0 amappl5 104 600 0 589 1 0 1 1 0 8 0 amappl4 96 11473 0 11437 1 0 1 1 0 8 0 amappl3 88 1344 0 1336 1 0 1 1 0 8 0 amappl2 80 81197 0 81126 4 2 2 3 0 8 0 amappl1 72 177825 0 177417 28 19 9 20 0 8 0 amappl 80 23076 0 23043 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 161 0 32 3 0 3 3 0 8 0 uaddrrnd 24 10389 0 10369 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 10389 0 10369 1 0 1 1 0 8 0 vmmpekpl 168 59629 0 59599 2 0 2 2 0 8 0 vmmpepl 168 1182669 0 1181221 232 153 79 79 0 357 8 vmsppl 272 10382 0 10369 5 4 1 2 0 8 0 pdppl 4096 20784 0 20750 7 2 5 6 0 8 0 pvpl 32 3581596 0 3572412 662 559 103 273 0 265 23 pmappl 200 10388 0 10375 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 897 0 232 20 0 20 20 0 8 0