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 * 40972 15008 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(ffff80001777f860) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff80001573f000,fffffd8038dd50e8,10,ffff80000005b570,ffff80001777fac8) at alltraps_kern_meltdown+0x7b 0(b,ffff80001777fa28,83,ffff80001777fac8,0,b) at 0 rt_match(fffffd803a8b9eb8,fffffd803eb453f8,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803a8b9eb8,fffffd803eb453f8,1,0) at rt_match+0xbe sys/net/route.c:242 ip_output(fffffd803eb45300,0,fffffd803a8b9ea8,20,0,fffffd803a8b9e38) at ip_output+0x4d2 sys/netinet/ip_output.c:204 rip_output(fffffd803eb45300,fffffd803d03c188,ffff80001777fcd8,ffff80001573f000) at rip_output+0x22b sys/netinet/raw_ip.c:289 rip_usrreq(fffffd803d03c188,9,fffffd803eb45300,0,0,ffff8000ffff3b40) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd803d03c188,0,ffff80001777ff60,0,0,0) at sosend+0x63d sys/kern/uipc_socket.c:524 dofilewritev(ffff8000ffff3b40,4,ffff80001777ff60,0,ffff800017780050) at dofilewritev+0x1ac sys/kern/sys_generic.c:364 sys_writev(ffff8000ffff3b40,ffff800017780008,ffff800017780050) at sys_writev+0xa7 sys/kern/sys_generic.c:311 syscall(ffff8000177800d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 end trace frame: 0xffff800017780150, count: 0 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(ffff80001777f860) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff80001573f000,fffffd8038dd50e8,10,ffff80000005b570,ffff80001777fac8) at alltraps_kern_meltdown+0x7b 0(b,ffff80001777fa28,83,ffff80001777fac8,0,b) at 0 rt_match(fffffd803a8b9eb8,fffffd803eb453f8,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803a8b9eb8,fffffd803eb453f8,1,0) at rt_match+0xbe sys/net/route.c:242 ip_output(fffffd803eb45300,0,fffffd803a8b9ea8,20,0,fffffd803a8b9e38) at ip_output+0x4d2 sys/netinet/ip_output.c:204 rip_output(fffffd803eb45300,fffffd803d03c188,ffff80001777fcd8,ffff80001573f000) at rip_output+0x22b sys/netinet/raw_ip.c:289 rip_usrreq(fffffd803d03c188,9,fffffd803eb45300,0,0,ffff8000ffff3b40) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd803d03c188,0,ffff80001777ff60,0,0,0) at sosend+0x63d sys/kern/uipc_socket.c:524 dofilewritev(ffff8000ffff3b40,4,ffff80001777ff60,0,ffff800017780050) at dofilewritev+0x1ac sys/kern/sys_generic.c:364 sys_writev(ffff8000ffff3b40,ffff800017780008,ffff800017780050) at sys_writev+0xa7 sys/kern/sys_generic.c:311 syscall(ffff8000177800d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,d,0,3,e283d220010) at Xsyscall+0x128 end of kernel end trace frame: 0xe2a7787d3b0, count: -15 ddb> show registers rdi 0xffffffff8186dab7 db_enter+0x17 rsi 0x223c __ALIGN_SIZE+0x123c rbp 0xffff80001777f6d0 rbx 0xffff80001777f780 rdx 0x223d __ALIGN_SIZE+0x123d rcx 0xffff80001573f000 rax 0xffff80001573f000 r8 0xffff80001777f690 r9 0x1 r10 0xffff800000afbec0 r11 0xf913af513e2deb9f r12 0x3000000008 r13 0xffff80001777f6e0 r14 0x100 r15 0x1 rip 0xffffffff8186dab8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001777f6c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=40972 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff29f8,0xffffffff825607a0 process=0xffff8000ffff77b0 user=0xffff80001777b000, vmspace=0xfffffd803f013330 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 15008 198897 81329 0 2 0 syz-executor.0 *15008 40972 81329 0 7 0x4000000 syz-executor.0 82718 287903 71374 0 3 0x82 nanosleep syz-executor.1 81329 175661 71374 0 3 0x82 nanosleep syz-executor.0 88180 426874 0 0 3 0x14200 bored sosplice 71374 361163 52194 0 3 0x82 thrsleep syz-fuzzer 71374 263176 52194 0 3 0x4000082 thrsleep syz-fuzzer 71374 292216 52194 0 3 0x4000082 kqread syz-fuzzer 71374 19273 52194 0 3 0x4000082 thrsleep syz-fuzzer 71374 481525 52194 0 3 0x4000082 thrsleep syz-fuzzer 71374 431906 52194 0 3 0x4000082 thrsleep syz-fuzzer 71374 385684 52194 0 3 0x4000082 thrsleep syz-fuzzer 71374 288357 52194 0 3 0x4000082 thrsleep syz-fuzzer 52194 474774 63910 0 3 0x10008a pause ksh 63910 10756 32823 0 3 0x92 select sshd 98608 134820 1 0 3 0x100083 ttyin getty 32823 140055 1 0 3 0x80 select sshd 4549 272142 71401 73 3 0x100090 kqread syslogd 71401 511369 1 0 3 0x100082 netio syslogd 71474 130729 1 77 3 0x100090 poll dhclient 6739 428498 1 0 3 0x80 poll dhclient 47370 367598 0 0 2 0x14200 zerothread 23194 376679 0 0 3 0x14200 aiodoned aiodoned 86790 335077 0 0 3 0x14200 syncer update 85349 365735 0 0 3 0x14200 cleaner cleaner 27625 467283 0 0 3 0x14200 reaper reaper 21 211084 0 0 3 0x14200 pgdaemon pagedaemon 17975 446494 0 0 3 0x14200 bored crynlk 42814 388831 0 0 3 0x14200 bored crypto 51769 409542 0 0 3 0x40014200 acpi0 acpi0 87118 18250 0 0 3 0x14200 bored softnet 72021 70564 0 0 3 0x14200 bored systqmp 63067 275465 0 0 3 0x14200 bored systq 18596 156534 0 0 3 0x40014200 bored softclock 193 242783 0 0 3 0x40014200 idle0 7346 211914 0 0 3 0x14200 bored smr 1 348816 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 9543 6489K 7577K 78643K 16012 0 0 pcb 13 9K 9K 78643K 1919 0 0 rtable 95 3K 4K 78643K 5486 0 0 ifaddr 61 13K 14K 78643K 230 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 86 0 0 iov 0 0K 24K 78643K 245 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1234 78K 78K 78643K 2430 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 132 0 0 VM map 2 0K 0K 78643K 4 0 0 sem 12 1K 1K 78643K 12 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 4165 0 0 sigio 0 0K 1K 78643K 2288 0 0 proc 49 38K 63K 78643K 661 0 0 subproc 32 2K 2K 78643K 120 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 90 0 0 in_multi 23 1K 2K 78643K 151 0 0 ether_multi 1 0K 0K 78643K 6 0 0 mrt 0 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 3152 0 0 pfkey data 0 0K 1K 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 127 23K 32K 78643K 9981 0 0 UVM aobj 123 4K 4K 78643K 318 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 1284 0 0 NDP 13 0K 0K 78643K 74 0 0 temp 177 3543K 4178K 78643K 43301 0 0 kqueue 0 0K 0K 78643K 17 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 355 0 351 1 0 1 1 0 8 0 rtpcb 80 6485 0 6483 2 1 1 2 0 8 0 rtentry 112 1131 0 1095 2 0 2 2 0 8 0 unpcb 120 697 0 686 1 0 1 1 0 8 0 syncache 264 6 0 6 2 2 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 26 0 26 1 1 0 1 0 8 0 tcpcb 544 689 0 685 1 0 1 1 0 8 0 ipq 40 14 0 14 8 8 0 1 0 8 0 ipqe 40 377 0 377 8 8 0 1 0 8 0 inpcb 280 4041 0 4031 13 11 2 4 0 8 1 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 6 0 6 1 1 0 1 0 8 0 nd6 48 20 0 18 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 ppxss 1128 20 0 20 5 4 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 971 0 793 20 6 14 15 0 8 2 art_table 32 972 0 793 2 0 2 2 0 8 0 art_node 16 1130 0 1097 1 0 1 1 0 8 0 sysvmsgpl 40 31 0 31 1 1 0 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 316 0 195 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 6767 0 5372 46 0 46 46 0 8 0 ffsino 240 6767 0 5372 83 0 83 83 0 8 0 nchpl 144 16595 0 16118 61 38 23 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 46217 0 46217 1 0 1 1 0 8 1 vmpool 520 2 0 2 1 1 0 1 0 8 0 scxspl 192 35803 0 35803 15 14 1 7 0 8 1 plimitpl 152 126 0 119 1 0 1 1 0 8 0 sigapl 432 4320 0 4307 2 0 2 2 0 8 0 futexpl 56 140556 0 140556 1 0 1 1 0 8 1 knotepl 112 585 0 566 3 2 1 2 0 8 0 kqueuepl 104 700 0 698 1 0 1 1 0 8 0 pipepl 112 3204 0 3183 3 2 1 2 0 8 0 fdescpl 424 4321 0 4307 2 0 2 2 0 8 0 filepl 120 35745 0 35645 12 8 4 6 0 8 0 lockfpl 104 1545 0 1544 1 0 1 1 0 8 0 lockfspl 48 425 0 424 1 0 1 1 0 8 0 sessionpl 112 22 0 12 1 0 1 1 0 8 0 pgrppl 48 42 0 32 1 0 1 1 0 8 0 ucredpl 96 3292 0 3283 1 0 1 1 0 8 0 zombiepl 144 4308 0 4307 1 0 1 1 0 8 0 processpl 864 4337 0 4307 4 0 4 4 0 8 0 procpl 632 9000 0 8962 4 0 4 4 0 8 0 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 384 11235 0 11211 29 23 6 7 0 8 2 mcl64k 65536 672 0 672 73 68 5 33 0 8 5 mcl16k 16384 17 0 17 5 5 0 1 0 8 0 mcl12k 12288 109 0 109 7 6 1 1 0 8 1 mcl9k 9216 260 0 260 6 5 1 1 0 8 1 mcl8k 8192 142 0 142 9 8 1 1 0 8 1 mcl4k 4096 1458 0 1458 2 1 1 1 0 8 1 mcl2k2 2112 52 0 52 8 7 1 1 0 8 1 mcl2k 2048 75049 0 75000 26 19 7 14 0 8 0 mtagpl 80 45 0 45 3 3 0 1 0 8 0 mbufpl 256 171468 0 171275 104 74 30 49 0 8 1 bufpl 256 13065 0 8018 316 0 316 316 0 8 0 anonpl 16 350666 0 334110 134 55 79 96 0 62 0 amapchunkpl 152 15776 0 15640 23 16 7 14 0 158 0 amappl16 192 21400 0 20323 119 63 56 66 0 8 1 amappl15 184 9 0 9 1 0 1 1 0 8 1 amappl14 176 1391 0 1385 1 0 1 1 0 8 0 amappl13 168 1 0 0 1 0 1 1 0 8 0 amappl12 160 6 0 5 1 0 1 1 0 8 0 amappl11 152 377 0 366 1 0 1 1 0 8 0 amappl10 144 1528 0 1527 1 0 1 1 0 8 0 amappl9 136 1246 0 1243 1 0 1 1 0 8 0 amappl8 128 887 0 843 2 0 2 2 0 8 0 amappl7 120 1578 0 1571 1 0 1 1 0 8 0 amappl6 112 394 0 381 1 0 1 1 0 8 0 amappl5 104 248 0 237 1 0 1 1 0 8 0 amappl4 96 4556 0 4527 1 0 1 1 0 8 0 amappl3 88 1769 0 1763 1 0 1 1 0 8 0 amappl2 80 33580 0 33513 3 1 2 3 0 8 0 amappl1 72 83941 0 83523 27 18 9 20 0 8 0 amappl 80 9311 0 9266 2 0 2 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 317 0 195 2 0 2 2 0 8 0 uaddrrnd 24 4323 0 4307 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4323 0 4307 1 0 1 1 0 8 0 vmmpekpl 168 29807 0 29783 2 0 2 2 0 8 0 vmmpepl 168 504395 0 502230 292 154 138 138 0 357 39 vmsppl 272 4320 0 4307 2 1 1 2 0 8 0 pdppl 4096 8652 0 8618 6 1 5 6 0 8 0 pvpl 32 1000892 0 981240 298 103 195 226 0 265 12 pmappl 200 4322 0 4309 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 654 0 185 15 0 15 15 0 8 0