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 101373 3050 0 0 0 1 syz-executor.1 *211553 3050 0 0 0x4000000 0K 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+0x40b kerntrap(ffff800023c32b60) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b56000,fffffd80651ef0e8,10,ffff80000005b530,ffff800023c32dc8) at alltraps_kern_meltdown+0x7b 0(b,ffff800023c32d28,83,ffff800023c32dc8,0,b) at 0 rt_clone(ffff800023c32e38,fffffd8060743b80,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd8060743b80,fffffd80659862f4,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd8060743b80,fffffd80659862f4,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd8065986200,0,fffffd8060743b70,20,0,fffffd8060743b00) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd806123a700,fffffd8067e12c18,ffff800023c33048,ffff800020b56000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd8067e12c18,9,fffffd806123a700,0,0,ffff800020acec88) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd8067e12c18,0,ffff800023c33268,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020acec88,3,ffff800023c33268,0,ffff800023c33350) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020acec88,ffff800023c33308,ffff800023c33350) at sys_write+0x83 sys/kern/sys_generic.c:284 end trace frame: 0xffff800023c333c0, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic attempt to execute user address 0x0 in supervisor mode ddb{0}> 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+0x40b kerntrap(ffff800023c32b60) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b56000,fffffd80651ef0e8,10,ffff80000005b530,ffff800023c32dc8) at alltraps_kern_meltdown+0x7b 0(b,ffff800023c32d28,83,ffff800023c32dc8,0,b) at 0 rt_clone(ffff800023c32e38,fffffd8060743b80,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd8060743b80,fffffd80659862f4,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd8060743b80,fffffd80659862f4,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd8065986200,0,fffffd8060743b70,20,0,fffffd8060743b00) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd806123a700,fffffd8067e12c18,ffff800023c33048,ffff800020b56000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd8067e12c18,9,fffffd806123a700,0,0,ffff800020acec88) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd8067e12c18,0,ffff800023c33268,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020acec88,3,ffff800023c33268,0,ffff800023c33350) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020acec88,ffff800023c33308,ffff800023c33350) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800023c333d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023c333d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,4e912ac010) at Xsyscall+0x128 end of kernel end trace frame: 0x50d8abcd50, count: -16 ddb{0}> show registers rdi 0xffffffff818c8e87 db_enter+0x17 rsi 0x1d9a __ALIGN_SIZE+0xd9a rbp 0xffff800023c329d0 rbx 0xffff800023c32a80 rdx 0x1d9b __ALIGN_SIZE+0xd9b rcx 0xffff800020b56000 rax 0xffff800020b56000 r8 0xffffffff81ad2b6f kprintf+0x16f r9 0x1 r10 0x25 r11 0x437e1b492f14635c r12 0x3000000008 r13 0xffff800023c329e0 r14 0x100 r15 0x1 rip 0xffffffff818c8e88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023c329c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=211553 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace2a8,0xffffffff8265a258 process=0xffff800020adce00 user=0xffff800023c2e000, vmspace=0xfffffd807f00b2e0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 3050 101373 90082 0 7 0 syz-executor.1 * 3050 211553 90082 0 7 0x4000000 syz-executor.1 29399 442497 30690 0 3 0x82 nanosleep syz-executor.0 90082 165580 30690 0 3 0x82 nanosleep syz-executor.1 98953 84362 1 0 3 0x100083 ttyin getty 7903 493972 0 0 3 0x14200 bored sosplice 30690 446056 6190 0 3 0x82 kqread syz-fuzzer 30690 333217 6190 0 3 0x4000082 thrsleep syz-fuzzer 30690 380426 6190 0 3 0x4000082 thrsleep syz-fuzzer 30690 411292 6190 0 3 0x4000082 thrsleep syz-fuzzer 30690 40363 6190 0 3 0x4000082 thrsleep syz-fuzzer 30690 152993 6190 0 3 0x4000082 thrsleep syz-fuzzer 30690 75512 6190 0 3 0x4000082 thrsleep syz-fuzzer 30690 451016 6190 0 3 0x4000082 thrsleep syz-fuzzer 30690 163162 6190 0 3 0x4000082 thrsleep syz-fuzzer 30690 45148 6190 0 3 0x4000082 thrsleep syz-fuzzer 6190 188658 1044 0 3 0x10008a pause ksh 1044 187031 36119 0 3 0x92 select sshd 36119 79525 1 0 3 0x80 select sshd 89292 291604 6896 74 3 0x100092 bpf pflogd 6896 42242 1 0 3 0x80 netio pflogd 22963 127907 65290 73 3 0x100090 kqread syslogd 65290 391986 1 0 3 0x100082 netio syslogd 96265 345607 1 77 3 0x100090 poll dhclient 66081 206514 1 0 3 0x80 poll dhclient 5710 433321 0 0 2 0x14200 zerothread 90955 469826 0 0 3 0x14200 aiodoned aiodoned 56154 244137 0 0 3 0x14200 syncer update 3625 505438 0 0 3 0x14200 cleaner cleaner 97019 284126 0 0 3 0x14200 reaper reaper 65869 231083 0 0 3 0x14200 pgdaemon pagedaemon 36230 293613 0 0 3 0x14200 bored crynlk 26197 47186 0 0 3 0x14200 bored crypto 38448 466831 0 0 3 0x40014200 acpi0 acpi0 89642 274942 0 0 3 0x40014200 idle1 4158 197993 0 0 3 0x14200 bored softnet 22488 9692 0 0 3 0x14200 bored systqmp 20502 125213 0 0 3 0x14200 bored systq 98647 100133 0 0 3 0x40014200 bored softclock 1112 485473 0 0 3 0x40014200 idle0 18565 478722 0 0 3 0x14200 bored smr 1 75694 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 3050 (syz-executor.1) thread 0xffff800020acec88 (211553) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff8265b1d8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rt_clone+0x5c sys/net/route.c:266 #2 rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] #2 rtalloc_mpath+0xba sys/net/route.c:359 #3 ip_output+0x4f2 sys/netinet/ip_output.c:204 #4 rip_output+0x252 sys/netinet/raw_ip.c:289 #5 rip_usrreq+0x46a sys/netinet/raw_ip.c:538 #6 sosend+0x645 sys/kern/uipc_socket.c:524 #7 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #8 sys_write+0x83 sys/kern/sys_generic.c:284 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #10 Xsyscall+0x128 exclusive rwlock netlock r = 0 (0xffffffff824d1b18) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sosend+0x51b sys/kern/uipc_socket.c:512 #3 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #4 sys_write+0x83 sys/kern/sys_generic.c:284 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9614 7121K 9682K 78643K 39744 0 0 pcb 13 11K 12K 78643K 1212 0 0 rtable 129 14K 15K 78643K 3664 0 0 ifaddr 100 26K 30K 78643K 1105 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1785 0 0 iov 0 0K 24K 78643K 1081 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1246 78K 79K 78643K 9425 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 100 0 0 VM map 92 46K 46K 78643K 116 0 0 sem 12 1K 1K 78643K 1247 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 5067 0 0 sigio 0 0K 0K 78643K 54 0 0 proc 62 63K 95K 78643K 2281 0 0 subproc 32 2K 2K 78643K 510 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 659 0 0 in_multi 32 2K 2K 78643K 698 0 0 ether_multi 1 0K 0K 78643K 57 0 0 mrt 0 0K 0K 78643K 33 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 1073 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 284 979K 979K 78643K 18952 0 0 UVM aobj 130 6K 6K 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 2K 78643K 1209 0 0 NDP 25 0K 1K 78643K 351 0 0 temp 249 3561K 4201K 78643K 210890 0 0 kqueue 0 0K 0K 78643K 55 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 118 0 112 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 496 0 494 1 0 1 1 0 8 0 rtentry 112 625 0 579 2 0 2 2 0 8 0 unpcb 120 2908 0 2894 3 2 1 2 0 8 0 syncache 264 51 0 51 18 17 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 109 0 109 11 10 1 1 0 8 1 tcpcb 544 2418 0 2411 25 24 1 12 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 2 0 2 1 1 0 1 0 8 0 inpcb 280 7824 0 7813 32 28 4 9 0 8 2 rttmr 72 11 0 11 7 7 0 1 0 8 0 nd6 48 89 0 87 3 2 1 1 0 8 0 pkpcb 40 14 0 14 5 5 0 1 0 8 0 swfcl 56 6 0 0 1 0 1 1 0 8 0 ppxss 1128 151 0 151 14 13 1 1 0 8 1 pffrag 232 138 0 133 16 15 1 1 0 482 0 pffrnode 88 131 0 130 16 15 1 1 0 8 0 pffrent 40 4003 0 3975 16 15 1 1 0 8 0 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfstitem 24 439 0 351 1 0 1 1 0 8 0 pfstkey 112 440 0 352 4 1 3 3 0 8 0 pfstate 328 440 0 352 10 2 8 8 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 12 0 10 7 5 2 4 0 8 0 art_heap4 256 2630 0 2408 37 22 15 17 0 8 1 art_table 32 2642 0 2418 3 1 2 3 0 8 0 art_node 16 619 0 580 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 11 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 1245 0 1235 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 9244 0 7802 47 0 47 47 0 8 0 ffsino 272 9244 0 7802 98 1 97 97 0 8 0 nchpl 144 18614 0 18167 61 41 20 61 0 8 0 uvmvnodes 72 6042 0 0 110 0 110 110 0 8 0 vnodes 208 6042 0 0 318 0 318 318 0 8 0 namei 1024 66098 0 66098 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 90 0 0 12 0 12 12 0 8 0 vmpool 552 114 0 24 7 0 7 7 0 8 0 scsiplug 64 4 0 4 4 4 0 1 0 8 0 scxspl 192 57904 0 57904 40 37 3 4 0 8 3 plimitpl 152 432 0 424 1 0 1 1 0 8 0 sigapl 432 5187 0 5172 3 1 2 3 0 8 0 futexpl 56 120746 0 120746 1 0 1 1 0 8 1 knotepl 112 1208 0 1189 7 6 1 3 0 8 0 kqueuepl 104 1424 0 1422 5 4 1 4 0 8 0 pipepl 112 3304 0 3285 6 5 1 2 0 8 0 fdescpl 488 5188 0 5172 3 0 3 3 0 8 0 filepl 152 48136 0 48035 41 35 6 14 0 8 2 lockfpl 104 1839 0 1838 1 0 1 1 0 8 0 lockfspl 48 609 0 608 1 0 1 1 0 8 0 sessionpl 112 52 0 41 1 0 1 1 0 8 0 pgrppl 48 92 0 81 1 0 1 1 0 8 0 ucredpl 96 5177 0 5168 1 0 1 1 0 8 0 zombiepl 144 5176 0 5175 3 2 1 1 0 8 0 processpl 896 5208 0 5175 4 0 4 4 0 8 0 procpl 632 16500 0 16457 7 2 5 5 0 8 0 srpgc 64 36 0 36 14 13 1 1 0 8 1 sosppl 128 99 0 99 21 20 1 1 0 8 1 sockpl 384 11321 0 11294 46 39 7 15 0 8 3 mcl64k 65536 587 0 0 68 16 52 65 0 8 1 mcl16k 16384 25 0 0 4 1 3 3 0 8 0 mcl12k 12288 31 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 27 0 0 4 1 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 187 0 0 20 3 17 20 0 8 0 mtagpl 80 101 0 0 1 0 1 1 0 8 0 mbufpl 256 1097 0 0 60 0 60 60 0 8 0 bufpl 256 22145 0 15087 442 0 442 442 0 8 0 anonpl 16 628688 0 610739 187 92 95 101 0 124 3 amapchunkpl 152 37982 0 37818 73 61 12 20 0 158 4 amappl16 192 27589 0 26365 191 129 62 72 0 8 0 amappl15 184 906 0 906 4 3 1 1 0 8 1 amappl14 176 1786 0 1782 1 0 1 1 0 8 0 amappl13 168 235 0 232 1 0 1 1 0 8 0 amappl12 160 730 0 729 1 0 1 1 0 8 0 amappl11 152 949 0 934 1 0 1 1 0 8 0 amappl10 144 141 0 134 1 0 1 1 0 8 0 amappl9 136 1239 0 1235 1 0 1 1 0 8 0 amappl8 128 838 0 782 2 0 2 2 0 8 0 amappl7 120 275 0 265 1 0 1 1 0 8 0 amappl6 112 874 0 861 1 0 1 1 0 8 0 amappl5 104 1108 0 1094 1 0 1 1 0 8 0 amappl4 96 3992 0 3953 1 0 1 1 0 8 0 amappl3 88 3240 0 3235 1 0 1 1 0 8 0 amappl2 80 39838 0 39750 3 1 2 3 0 8 0 amappl1 72 128036 0 127596 25 15 10 20 0 8 0 amappl 80 17366 0 17259 3 0 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 142 0 13 3 0 3 3 0 8 0 uaddrrnd 24 5302 0 5172 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5302 0 5172 1 0 1 1 0 8 0 vmmpekpl 168 43877 0 43830 3 0 3 3 0 8 0 vmmpepl 168 669685 0 667119 345 189 156 161 0 357 39 vmsppl 368 5187 0 5172 2 0 2 2 0 8 0 pdppl 4096 10611 0 10482 17 0 17 17 0 8 0 pvpl 32 1651735 0 1632126 371 161 210 229 0 265 16 pmappl 232 5301 0 5196 8 1 7 7 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 798 0 79 21 0 21 21 0 8 0