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 418856 15235 0 0 0x4000080 1 syz-executor.1 *522497 3288 0 0 0x4000000 0K 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+0x40b kerntrap(ffff800021bff140) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b52000,fffffd8076477638,10,ffff8000000257f0,ffff800021bff3a8) at alltraps_kern_meltdown+0x7b 0(b,ffff800021bff308,83,ffff800021bff3a8,0,b) at 0 rt_clone(ffff800021bff418,fffffd806f6d2a58,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d2a58,fffffd8074d9e5f8,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d2a58,fffffd8074d9e5f8,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd8074d9e500,0,fffffd806f6d2a48,20,0,fffffd806f6d29d8) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd8074d9e500,fffffd8061886348,ffff800021bff628,ffff800020b52000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd8061886348,9,fffffd8074d9e500,0,0,ffff800020ab0508) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd8061886348,0,ffff800021bff848,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ab0508,3,ffff800021bff848,0,ffff800021bff930) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ab0508,ffff800021bff8e8,ffff800021bff930) at sys_write+0x83 sys/kern/sys_generic.c:284 end trace frame: 0xffff800021bff9a0, 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(ffff800021bff140) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b52000,fffffd8076477638,10,ffff8000000257f0,ffff800021bff3a8) at alltraps_kern_meltdown+0x7b 0(b,ffff800021bff308,83,ffff800021bff3a8,0,b) at 0 rt_clone(ffff800021bff418,fffffd806f6d2a58,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d2a58,fffffd8074d9e5f8,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d2a58,fffffd8074d9e5f8,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd8074d9e500,0,fffffd806f6d2a48,20,0,fffffd806f6d29d8) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd8074d9e500,fffffd8061886348,ffff800021bff628,ffff800020b52000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd8061886348,9,fffffd8074d9e500,0,0,ffff800020ab0508) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd8061886348,0,ffff800021bff848,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ab0508,3,ffff800021bff848,0,ffff800021bff930) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ab0508,ffff800021bff8e8,ffff800021bff930) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800021bff9b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021bff9b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,22983bbc010) at Xsyscall+0x128 end of kernel end trace frame: 0x22bc8277860, count: -16 ddb{0}> show registers rdi 0xffffffff8163efc7 db_enter+0x17 rsi 0x217f __ALIGN_SIZE+0x117f rbp 0xffff800021bfefb0 rbx 0xffff800021bff060 rdx 0x2180 __ALIGN_SIZE+0x1180 rcx 0xffff800020b52000 rax 0xffff800020b52000 r8 0xffffffff8178440f kprintf+0x16f r9 0x1 r10 0x25 r11 0x388ecc905d32ad50 r12 0x3000000008 r13 0xffff800021bfefc0 r14 0x100 r15 0x1 rip 0xffffffff8163efc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021bfefa0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=522497 stat=onproc flags process=0 proc=4000000 pri=71, usrpri=71, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1160,0xffff800020ab0028 process=0xffff800020addc00 user=0xffff800021bfa000, vmspace=0xfffffd807f00a000 estcpu=21, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 15235 19056 40129 0 2 0 syz-executor.1 15235 418856 40129 0 7 0x4000080 syz-executor.1 3288 277545 31837 0 2 0 syz-executor.0 * 3288 522497 31837 0 7 0x4000000 syz-executor.0 40129 442279 68382 0 3 0x82 nanosleep syz-executor.1 31837 255502 68382 0 3 0x82 nanosleep syz-executor.0 9577 39371 1 0 3 0x100083 ttyin getty 52246 334025 0 0 3 0x14200 acct acct 28610 7430 0 0 3 0x14200 bored sosplice 68382 475133 49036 0 3 0x82 thrsleep syz-fuzzer 68382 63791 49036 0 3 0x4000082 thrsleep syz-fuzzer 68382 259759 49036 0 3 0x4000082 thrsleep syz-fuzzer 68382 390297 49036 0 3 0x4000082 thrsleep syz-fuzzer 68382 520499 49036 0 3 0x4000082 thrsleep syz-fuzzer 68382 300447 49036 0 3 0x4000082 kqread syz-fuzzer 68382 383845 49036 0 3 0x4000082 thrsleep syz-fuzzer 68382 360936 49036 0 3 0x4000082 thrsleep syz-fuzzer 68382 184612 49036 0 3 0x4000082 thrsleep syz-fuzzer 68382 71814 49036 0 3 0x4000082 thrsleep syz-fuzzer 49036 189211 44107 0 3 0x10008a pause ksh 44107 226297 86094 0 3 0x92 select sshd 86094 314793 1 0 3 0x80 select sshd 32810 24182 55329 74 3 0x100092 bpf pflogd 55329 13291 1 0 3 0x80 netio pflogd 45293 431259 19323 73 3 0x100090 kqread syslogd 19323 83907 1 0 3 0x100082 netio syslogd 84846 167230 1 77 3 0x100090 poll dhclient 99620 4265 1 0 3 0x80 poll dhclient 87291 133279 0 0 2 0x14200 zerothread 72210 329271 0 0 3 0x14200 aiodoned aiodoned 30829 238119 0 0 3 0x14200 syncer update 1878 280960 0 0 3 0x14200 cleaner cleaner 27710 256386 0 0 3 0x14200 reaper reaper 95183 496452 0 0 3 0x14200 pgdaemon pagedaemon 65910 498062 0 0 3 0x14200 bored crynlk 17359 447122 0 0 3 0x14200 bored crypto 76806 141852 0 0 3 0x40014200 acpi0 acpi0 14340 366456 0 0 3 0x40014200 idle1 73029 158853 0 0 3 0x14200 bored softnet 77229 76455 0 0 3 0x14200 bored systqmp 91758 54121 0 0 3 0x14200 bored systq 56659 211328 0 0 3 0x40014200 bored softclock 2958 114437 0 0 3 0x40014200 idle0 85091 339704 0 0 3 0x14200 bored smr 1 107401 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 3288 (syz-executor.0) thread 0xffff800020ab0508 (522497) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff82677638) #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 (0xffffffff824d4548) #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 9635 6484K 7941K 78643K 28278 0 0 pcb 13 10K 12K 78643K 7840 0 0 rtable 191 18K 18K 78643K 5763 0 0 ifaddr 123 31K 32K 78643K 1618 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1814 0 0 iov 0 0K 28K 78643K 3688 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1222 77K 78K 78643K 11007 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 227 0 0 VM map 50 25K 25K 78643K 78 0 0 sem 12 1K 1K 78643K 16 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 10529 0 0 sigio 0 0K 0K 78643K 73 0 0 proc 62 63K 95K 78643K 4327 0 0 subproc 32 2K 2K 78643K 1279 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 1K 78643K 4158 0 0 in_multi 51 3K 3K 78643K 1773 0 0 ether_multi 1 0K 0K 78643K 101 0 0 mrt 0 0K 0K 78643K 22 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 138 609K 609K 78643K 138 0 0 exec 0 0K 1K 78643K 1962 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 239 445K 446K 78643K 36382 0 0 UVM aobj 130 6K 6K 78643K 336 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 5K 78643K 4495 0 0 NDP 25 0K 1K 78643K 538 0 0 temp 239 3561K 3645K 78643K 251662 0 0 kqueue 0 0K 0K 78643K 65 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 184 0 179 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 677 0 675 1 0 1 1 0 8 0 rtentry 112 1073 0 997 4 1 3 3 0 8 0 unpcb 120 13897 0 13884 32 31 1 2 0 8 0 syncache 264 58 0 58 25 25 0 1 0 8 0 tcpqe 32 190 0 190 12 12 0 1 0 8 0 tcpcb 544 4147 0 4143 64 63 1 14 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 31722 0 31714 59 57 2 9 0 8 1 rttmr 72 5 0 4 5 4 1 1 0 8 0 ip6q 72 4 0 4 2 2 0 1 0 8 0 ip6af 40 8 0 8 2 2 0 1 0 8 0 nd6 48 173 0 169 10 9 1 1 0 8 0 pkpcb 40 29 0 29 10 10 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 205 0 205 44 43 1 1 0 8 1 pffrag 232 187 0 187 38 38 0 1 0 482 0 pffrnode 88 187 0 187 38 38 0 1 0 8 0 pffrent 40 5823 0 5823 38 38 0 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 641 0 609 1 0 1 1 0 8 0 pfstkey 112 642 0 610 3 1 2 2 0 8 0 pfstate 328 642 0 610 10 4 6 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 9 0 5 9 5 4 6 0 8 0 art_heap4 256 4559 0 4253 74 54 20 20 0 8 0 art_table 32 4568 0 4258 10 7 3 3 0 8 0 art_node 16 1069 0 1015 1 0 1 1 0 8 0 sysvmsgpl 40 54 0 45 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 14 0 4 1 0 1 1 0 8 0 shmpl 112 334 0 206 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 18390 0 16942 47 0 47 47 0 8 0 ffsino 272 18390 0 16942 98 1 97 97 0 8 0 nchpl 144 36942 0 36482 61 42 19 61 0 8 0 uvmvnodes 72 6879 0 0 126 0 126 126 0 8 0 vnodes 208 6879 0 0 363 0 363 363 0 8 0 namei 1024 149953 0 149953 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 48 0 0 6 0 6 6 0 8 0 vmpool 552 76 0 28 5 1 4 4 0 8 0 scsiplug 64 12 0 12 9 9 0 1 0 8 0 scxspl 192 98526 0 98526 61 58 3 7 0 8 3 plimitpl 152 689 0 680 1 0 1 1 0 8 0 sigapl 432 10514 0 10498 3 1 2 3 0 8 0 futexpl 56 373762 0 373762 3 2 1 1 0 8 1 knotepl 112 2051 0 2032 8 7 1 3 0 8 0 kqueuepl 104 2500 0 2498 13 12 1 4 0 8 0 pipepl 112 5932 0 5913 16 15 1 2 0 8 0 fdescpl 488 10515 0 10498 3 0 3 3 0 8 0 filepl 152 131871 0 131768 93 88 5 14 0 8 1 lockfpl 104 2798 0 2797 1 0 1 1 0 8 0 lockfspl 48 898 0 897 1 0 1 1 0 8 0 sessionpl 112 97 0 86 1 0 1 1 0 8 0 pgrppl 48 212 0 201 1 0 1 1 0 8 0 ucredpl 96 41712 0 41702 1 0 1 1 0 8 0 zombiepl 144 10501 0 10501 2 1 1 1 0 8 1 processpl 896 10535 0 10501 4 0 4 4 0 8 0 procpl 632 31811 0 31766 12 7 5 5 0 8 0 srpgc 64 134 0 134 43 42 1 1 0 8 1 sosppl 128 211 0 211 34 34 0 1 0 8 0 sockpl 384 46477 0 46451 132 127 5 15 0 8 1 mcl64k 65536 505 0 0 51 24 27 35 0 8 1 mcl16k 16384 33 0 0 4 1 3 3 0 8 0 mcl12k 12288 35 0 0 2 0 2 2 0 8 0 mcl9k 9216 18 0 0 2 0 2 2 0 8 0 mcl8k 8192 33 0 0 4 1 3 3 0 8 0 mcl4k 4096 25 0 0 4 1 3 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 243 0 0 20 8 12 20 0 8 0 mtagpl 80 98 0 0 1 0 1 1 0 8 0 mbufpl 256 1140 0 0 38 1 37 38 0 8 0 bufpl 256 33022 0 25964 442 0 442 442 0 8 0 anonpl 16 1233335 0 1207053 374 251 123 137 0 124 1 amapchunkpl 152 72531 0 71859 125 96 29 34 0 158 0 amappl16 192 54070 0 52840 403 329 74 74 0 8 12 amappl15 184 2213 0 2211 8 7 1 1 0 8 0 amappl14 176 2352 0 2344 1 0 1 1 0 8 0 amappl13 168 752 0 750 11 10 1 1 0 8 0 amappl12 160 1325 0 1321 1 0 1 1 0 8 0 amappl11 152 1261 0 1246 1 0 1 1 0 8 0 amappl10 144 914 0 909 1 0 1 1 0 8 0 amappl9 136 2919 0 2915 1 0 1 1 0 8 0 amappl8 128 2471 0 2395 3 0 3 3 0 8 0 amappl7 120 1243 0 1234 1 0 1 1 0 8 0 amappl6 112 1101 0 1087 1 0 1 1 0 8 0 amappl5 104 2171 0 2154 1 0 1 1 0 8 0 amappl4 96 11833 0 11797 1 0 1 1 0 8 0 amappl3 88 3296 0 3286 1 0 1 1 0 8 0 amappl2 80 80394 0 80303 3 1 2 3 0 8 0 amappl1 72 242149 0 241710 26 16 10 20 0 8 0 amappl 80 33472 0 33390 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 335 0 206 3 0 3 3 0 8 0 uaddrrnd 24 10591 0 10498 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 10591 0 10498 1 0 1 1 0 8 0 vmmpekpl 168 84471 0 84431 2 0 2 2 0 8 0 vmmpepl 168 1351957 0 1349343 682 524 158 165 0 357 38 vmsppl 368 10514 0 10498 2 0 2 2 0 8 0 pdppl 4096 21189 0 21100 16 4 12 12 0 8 0 pvpl 32 3235961 0 3215503 650 445 205 232 0 265 5 pmappl 232 10590 0 10526 6 2 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 836 0 168 20 0 20 20 0 8 0