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 *317499 37164 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(ffff8000169d2f90) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800016b48000,fffffd803ccfd9d8,10,ffff800000a4cb20,ffff8000169d31f8) at alltraps_kern_meltdown+0x7b 0(b,ffff8000169d3158,83,ffff8000169d31f8,0,b) at 0 rt_match(fffffd803b824610,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803b824610,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff8000169d32d0,fffffd803f02b020,fffffd803b824590) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd803b824590,fffffd803f02b000) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8039a35958,4,0,fffffd803f02b000,0,ffff800014914780) at tcp_usrreq+0xada sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800014914780,ffff8000169d3478,ffff8000169d34c0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000169d3540) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,7add637c010) at Xsyscall+0x128 end of kernel end trace frame: 0x7b07c14ca30, 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(ffff8000169d2f90) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800016b48000,fffffd803ccfd9d8,10,ffff800000a4cb20,ffff8000169d31f8) at alltraps_kern_meltdown+0x7b 0(b,ffff8000169d3158,83,ffff8000169d31f8,0,b) at 0 rt_match(fffffd803b824610,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803b824610,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff8000169d32d0,fffffd803f02b020,fffffd803b824590) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd803b824590,fffffd803f02b000) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8039a35958,4,0,fffffd803f02b000,0,ffff800014914780) at tcp_usrreq+0xada sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800014914780,ffff8000169d3478,ffff8000169d34c0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000169d3540) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,7add637c010) at Xsyscall+0x128 end of kernel end trace frame: 0x7b07c14ca30, count: -13 ddb> show registers rdi 0xffffffff8186dab7 db_enter+0x17 rsi 0x217e __ALIGN_SIZE+0x117e rbp 0xffff8000169d2e00 rbx 0xffff8000169d2eb0 rdx 0x217f __ALIGN_SIZE+0x117f rcx 0xffff800016b48000 rax 0xffff800016b48000 r8 0xffff8000169d2dc0 r9 0x1 r10 0xffff800000aeb880 r11 0x59942099ede187b0 r12 0x3000000008 r13 0xffff8000169d2e10 r14 0x100 r15 0x1 rip 0xffffffff8186dab8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000169d2df0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=317499 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800014914c70,0xffffffff825607a0 process=0xffff8000ffff66d0 user=0xffff8000169ce000, vmspace=0xfffffd803f012440 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 37164 37578 68458 0 2 0 syz-executor.1 *37164 317499 68458 0 7 0x4000000 syz-executor.1 28932 321275 65278 0 2 0x2 syz-executor.0 68458 150908 65278 0 3 0x82 nanosleep syz-executor.1 43075 31748 0 0 3 0x14200 acct acct 38706 251544 1 0 3 0x100083 ttyin getty 78016 486086 0 0 3 0x14200 bored sosplice 65278 184737 82547 0 3 0x82 thrsleep syz-fuzzer 65278 230748 82547 0 3 0x4000082 nanosleep syz-fuzzer 65278 454753 82547 0 3 0x4000082 thrsleep syz-fuzzer 65278 168893 82547 0 3 0x4000082 thrsleep syz-fuzzer 65278 181706 82547 0 3 0x4000082 thrsleep syz-fuzzer 65278 227798 82547 0 3 0x4000082 kqread syz-fuzzer 65278 201614 82547 0 3 0x4000082 thrsleep syz-fuzzer 65278 188695 82547 0 3 0x4000082 thrsleep syz-fuzzer 65278 405102 82547 0 3 0x4000082 thrsleep syz-fuzzer 82547 151017 86703 0 3 0x10008a pause ksh 86703 295650 97488 0 3 0x92 select sshd 97488 40454 1 0 3 0x80 select sshd 15937 37701 37687 73 3 0x100090 kqread syslogd 37687 474790 1 0 3 0x100082 netio syslogd 76960 520564 0 0 2 0x14200 zerothread 57018 431747 0 0 3 0x14200 aiodoned aiodoned 60401 80490 0 0 3 0x14200 syncer update 92876 492360 0 0 3 0x14200 cleaner cleaner 20287 483980 0 0 3 0x14200 reaper reaper 33640 50048 0 0 3 0x14200 pgdaemon pagedaemon 67047 38691 0 0 3 0x14200 bored crynlk 79224 60352 0 0 3 0x14200 bored crypto 63027 272884 0 0 3 0x40014200 acpi0 acpi0 64813 232229 0 0 3 0x14200 bored softnet 7728 74878 0 0 3 0x14200 bored systqmp 70438 39581 0 0 3 0x14200 bored systq 82788 332499 0 0 3 0x40014200 bored softclock 7977 361259 0 0 3 0x40014200 idle0 76233 304724 0 0 3 0x14200 bored smr 1 99258 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 9651 6418K 10010K 78643K 77297 0 0 pcb 13 11K 12K 78643K 2926 0 0 rtable 202 17K 17K 78643K 6215 0 0 ifaddr 129 32K 33K 78643K 1727 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 1139 0 0 iov 0 0K 32K 78643K 3082 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1240 78K 78K 78643K 20775 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 172 0 0 VM map 110 27K 27K 78643K 179 0 0 sem 12 0K 1K 78643K 3085 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1794 195K 288K 78643K 12646 0 0 file desc 5 13K 25K 78643K 11971 0 0 sigio 0 0K 0K 78643K 203 0 0 proc 45 30K 63K 78643K 4315 0 0 subproc 32 2K 2K 78643K 1238 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 1345 0 0 in_multi 44 2K 3K 78643K 1326 0 0 ether_multi 1 0K 0K 78643K 116 0 0 mrt 1 0K 0K 78643K 85 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 192 848K 848K 78643K 192 0 0 exec 0 0K 1K 78643K 2468 0 0 pfkey data 0 0K 0K 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 282 844K 848K 78643K 31808 0 0 UVM aobj 130 6K 6K 78643K 136 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 2852 0 0 NDP 26 0K 1K 78643K 561 0 0 temp 268 3545K 4185K 78643K 436100 0 0 kqueue 0 0K 0K 78643K 151 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 191 0 175 1 0 1 1 0 8 0 rtpcb 80 2290 0 2290 5 4 1 1 0 8 1 rtentry 112 1165 0 1083 8 5 3 3 0 8 0 unpcb 120 15426 0 15407 26 25 1 2 0 8 0 syncache 264 76 0 76 30 30 0 1 0 8 0 tcpqe 32 242 0 242 17 17 0 1 0 8 0 tcpcb 544 6094 0 6089 79 78 1 15 0 8 0 ipq 40 166 0 166 52 51 1 1 0 8 1 ipqe 40 4708 0 4708 52 51 1 1 0 8 1 inpcb 280 16598 0 16581 94 92 2 9 0 8 0 rttmr 72 24 0 23 4 3 1 1 0 8 0 ip6q 72 4 0 4 3 3 0 1 0 8 0 ip6af 40 9 0 9 2 2 0 1 0 8 0 nd6 48 168 0 166 10 9 1 1 0 8 0 pkpcb 40 53 0 53 22 22 0 1 0 8 0 swfcl 56 7 0 0 1 0 1 1 0 8 0 ppxss 1128 204 0 204 49 48 1 1 0 8 1 art_heap8 4096 44 0 40 27 23 4 6 0 8 0 art_heap4 256 5021 0 4679 61 39 22 22 0 8 0 art_table 32 5065 0 4719 5 2 3 3 0 8 0 art_node 16 1158 0 1094 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 9 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 3083 0 3073 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 19590 0 18175 46 0 46 46 0 8 0 ffsino 240 19590 0 18175 84 0 84 84 0 8 0 nchpl 144 37075 0 36618 60 40 20 60 0 8 0 uvmvnodes 72 8280 0 0 151 0 151 151 0 8 0 vnodes 208 8280 0 0 436 0 436 436 0 8 0 namei 1024 153761 0 153761 7 6 1 1 0 8 1 vcpupl 1984 111 0 3 14 0 14 14 0 8 0 vmpool 520 177 0 69 14 6 8 8 0 8 0 scsiplug 64 14 0 14 10 10 0 1 0 8 0 scxspl 192 146873 0 146873 57 56 1 7 0 8 1 plimitpl 152 993 0 987 1 0 1 1 0 8 0 sigapl 432 11933 0 11922 2 0 2 2 0 8 0 futexpl 56 375916 0 375916 9 8 1 1 0 8 1 knotepl 112 2843 0 2824 12 11 1 3 0 8 0 kqueuepl 104 4290 0 4288 16 15 1 4 0 8 0 pipepl 112 18136 0 18117 48 46 2 2 0 8 1 fdescpl 424 11934 0 11922 2 0 2 2 0 8 0 filepl 120 135572 0 135487 91 87 4 11 0 8 1 lockfpl 104 4924 0 4924 5 4 1 1 0 8 1 lockfspl 48 1493 0 1493 5 4 1 1 0 8 1 sessionpl 112 89 0 81 1 0 1 1 0 8 0 pgrppl 48 273 0 265 1 0 1 1 0 8 0 ucredpl 96 23654 0 23648 1 0 1 1 0 8 0 zombiepl 144 11935 0 11935 1 0 1 1 0 8 1 processpl 864 11963 0 11935 4 0 4 4 0 8 0 procpl 632 27225 0 27188 10 6 4 5 0 8 0 sosppl 128 232 0 232 47 47 0 1 0 8 0 sockpl 384 34662 0 34637 118 114 4 15 0 8 0 mcl64k 65536 3281 0 3281 233 232 1 65 0 8 1 mcl16k 16384 171 0 171 47 46 1 1 0 8 1 mcl12k 12288 349 0 349 35 34 1 1 0 8 1 mcl9k 9216 214 0 214 53 52 1 1 0 8 1 mcl8k 8192 587 0 587 25 24 1 1 0 8 1 mcl4k 4096 1618 0 1618 12 11 1 1 0 8 1 mcl2k2 2112 147 0 147 51 51 0 1 0 8 0 mcl2k 2048 92432 0 92382 30 22 8 17 0 8 0 mtagpl 80 596 0 573 11 10 1 1 0 8 0 mbufpl 256 267886 0 267705 441 414 27 42 0 8 14 bufpl 256 52953 0 44673 518 0 518 518 0 8 0 anonpl 16 1509794 0 1487573 424 320 104 110 0 62 9 amapchunkpl 152 67995 0 67761 220 207 13 24 0 158 3 amappl16 192 74237 0 72987 586 515 71 75 0 8 6 amappl15 184 3081 0 3080 1 0 1 1 0 8 0 amappl14 176 2341 0 2336 1 0 1 1 0 8 0 amappl13 168 1598 0 1596 10 9 1 1 0 8 0 amappl12 160 1001 0 1001 14 14 0 1 0 8 0 amappl11 152 1670 0 1666 1 0 1 1 0 8 0 amappl10 144 945 0 942 1 0 1 1 0 8 0 amappl9 136 3587 0 3584 1 0 1 1 0 8 0 amappl8 128 3140 0 3061 3 0 3 3 0 8 0 amappl7 120 1258 0 1249 1 0 1 1 0 8 0 amappl6 112 1461 0 1442 1 0 1 1 0 8 0 amappl5 104 1812 0 1804 1 0 1 1 0 8 0 amappl4 96 11896 0 11866 1 0 1 1 0 8 0 amappl3 88 2799 0 2786 1 0 1 1 0 8 0 amappl2 80 93134 0 93058 3 1 2 3 0 8 0 amappl1 72 231875 0 231501 27 18 9 20 0 8 0 amappl 80 28736 0 28642 5 2 3 3 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 18 0 17 1 0 1 1 0 8 0 aobjpl 64 135 0 6 3 0 3 3 0 8 0 uaddrrnd 24 12111 0 11922 3 1 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 12111 0 11922 3 1 2 2 0 8 0 vmmpekpl 168 92698 0 92651 3 0 3 3 0 8 0 vmmpepl 168 1472155 0 1469558 877 717 160 164 0 357 37 vmsppl 272 11933 0 11922 13 12 1 2 0 8 0 pdppl 4096 24228 0 24090 24 6 18 18 0 8 0 pvpl 32 4236986 0 4214896 1126 906 220 327 0 265 25 pmappl 200 12110 0 11991 10 3 7 7 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 1606 0 915 26 5 21 22 0 8 0