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 *166620 7625 0 0 0x4000000 1K syz-executor.0 346938 91067 0 0 0x1 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+0x40b kerntrap(ffff800022b5ef20) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800021950000,fffffd80668d0d98,10,ffff8000000257f0,ffff800022b5f188) at alltraps_kern_meltdown+0x7b 0(b,ffff800022b5f0e8,83,ffff800022b5f188,0,b) at 0 rt_clone(ffff800022b5f1f8,fffffd806f6cceb8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cceb8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cceb8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800022b5f2d0,fffffd8065f2b320,fffffd806f6cce38) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cce38,fffffd8065f2b300) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd80728ce970,4,0,fffffd8065f2b300,0,ffff800020abe508) at udp_usrreq+0x560 sys_connect(ffff800020abe508,ffff800022b5f458,ffff800022b5f4a0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800022b5f520) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b5f520) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,157c025b010) at Xsyscall+0x128 end of kernel end trace frame: 0x15a99758980, count: 1 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic attempt to execute user address 0x0 in supervisor mode ddb{1}> 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(ffff800022b5ef20) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800021950000,fffffd80668d0d98,10,ffff8000000257f0,ffff800022b5f188) at alltraps_kern_meltdown+0x7b 0(b,ffff800022b5f0e8,83,ffff800022b5f188,0,b) at 0 rt_clone(ffff800022b5f1f8,fffffd806f6cceb8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cceb8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cceb8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800022b5f2d0,fffffd8065f2b320,fffffd806f6cce38) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cce38,fffffd8065f2b300) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd80728ce970,4,0,fffffd8065f2b300,0,ffff800020abe508) at udp_usrreq+0x560 sys_connect(ffff800020abe508,ffff800022b5f458,ffff800022b5f4a0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800022b5f520) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b5f520) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,157c025b010) at Xsyscall+0x128 end of kernel end trace frame: 0x15a99758980, count: -14 ddb{1}> show registers rdi 0xffffffff81e07517 db_enter+0x17 rsi 0x2409 __ALIGN_SIZE+0x1409 rbp 0xffff800022b5ed90 rbx 0xffff800022b5ee40 rdx 0x240a __ALIGN_SIZE+0x140a rcx 0xffff800021950000 rax 0xffff800021950000 r8 0xffffffff817fb7bf kprintf+0x16f r9 0x1 r10 0x25 r11 0x73c9ebf3f2024882 r12 0x3000000008 r13 0xffff800022b5eda0 r14 0x100 r15 0x1 rip 0xffffffff81e07518 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022b5ed80 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=166620 stat=onproc flags process=0 proc=4000000 pri=69, usrpri=69, nice=20 forw=0xffffffffffffffff, list=0xffff800020abe780,0xffffffff826286b0 process=0xffff800020addc00 user=0xffff800022b5a000, vmspace=0xfffffd807f00a5c0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 7625 453905 74120 0 2 0 syz-executor.0 * 7625 166620 74120 0 7 0x4000000 syz-executor.0 91067 346938 45589 0 7 0x1 syz-executor.1 91067 212738 45589 0 3 0x4000080 lockf syz-executor.1 74120 336330 91157 0 3 0x82 nanosleep syz-executor.0 45589 62555 91157 0 3 0x82 nanosleep syz-executor.1 9021 517730 1 0 3 0x100083 ttyin getty 49171 171774 0 0 3 0x14200 bored sosplice 91157 441147 10024 0 3 0x82 thrsleep syz-fuzzer 91157 162646 10024 0 3 0x4000082 nanosleep syz-fuzzer 91157 21577 10024 0 3 0x4000082 thrsleep syz-fuzzer 91157 376364 10024 0 3 0x4000082 thrsleep syz-fuzzer 91157 499606 10024 0 3 0x4000082 thrsleep syz-fuzzer 91157 389519 10024 0 3 0x4000082 thrsleep syz-fuzzer 91157 29597 10024 0 3 0x4000082 thrsleep syz-fuzzer 91157 282822 10024 0 3 0x4000082 thrsleep syz-fuzzer 91157 250501 10024 0 3 0x4000082 kqread syz-fuzzer 91157 83702 10024 0 3 0x4000082 thrsleep syz-fuzzer 10024 325602 53079 0 3 0x10008a pause ksh 53079 28645 89627 0 3 0x92 select sshd 89627 212112 1 0 3 0x80 select sshd 33602 14840 41188 74 3 0x100092 bpf pflogd 41188 181816 1 0 3 0x80 netio pflogd 27919 23764 69974 73 3 0x100090 kqread syslogd 69974 223636 1 0 3 0x100082 netio syslogd 1939 199238 1 77 3 0x100090 poll dhclient 83580 447336 1 0 3 0x80 poll dhclient 59713 165437 0 0 2 0x14200 zerothread 96429 517309 0 0 3 0x14200 aiodoned aiodoned 60786 440486 0 0 3 0x14200 syncer update 25129 355674 0 0 3 0x14200 cleaner cleaner 69456 266493 0 0 3 0x14200 reaper reaper 44267 106263 0 0 3 0x14200 pgdaemon pagedaemon 22665 33379 0 0 3 0x14200 bored crynlk 60627 360433 0 0 3 0x14200 bored crypto 18807 80656 0 0 3 0x40014200 acpi0 acpi0 23351 469834 0 0 3 0x40014200 idle1 6319 370133 0 0 3 0x14200 bored softnet 95131 440837 0 0 3 0x14200 bored systqmp 6316 161411 0 0 3 0x14200 bored systq 10134 233825 0 0 3 0x40014200 bored softclock 55929 236635 0 0 3 0x40014200 idle0 88768 491907 0 0 3 0x14200 bored smr 1 4990 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 7625 (syz-executor.0) thread 0xffff800020abe508 (166620) exclusive rwlock netlock r = 0 (0xffffffff82485b08) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sys_connect+0x6b sys/kern/uipc_syscalls.c:362 #3 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #3 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #4 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 2 (0xffffffff826408b0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555 #2 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9659 6510K 8144K 78643K 65633 0 0 pcb 13 12K 14K 78643K 3382 0 0 rtable 147 14K 14K 78643K 10922 0 0 ifaddr 121 33K 37K 78643K 3339 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2431 0 0 iov 0 0K 32K 78643K 3733 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1218 76K 77K 78643K 24412 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 171 0 0 VM map 2 1K 1K 78643K 95 0 0 sem 12 1K 1K 78643K 544 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 19255 0 0 sigio 0 0K 0K 78643K 268 0 0 proc 62 63K 95K 78643K 6587 0 0 subproc 32 2K 2K 78643K 1699 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 1371 0 0 in_multi 36 2K 2K 78643K 1841 0 0 ether_multi 1 0K 0K 78643K 58 0 0 mrt 0 0K 0K 78643K 83 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 132 583K 583K 78643K 132 0 0 exec 0 0K 1K 78643K 3411 0 0 pfkey data 0 0K 4K 78643K 10 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 150 24K 35K 78643K 78719 0 0 UVM aobj 130 9K 9K 78643K 188 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 3849 0 0 NDP 27 0K 1K 78643K 1078 0 0 temp 277 3558K 4197K 78643K 494221 0 0 kqueue 0 0K 0K 78643K 121 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 382 0 374 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1256 0 1254 1 0 1 1 0 8 0 rtentry 112 1757 0 1702 2 0 2 2 0 8 0 unpcb 120 9989 0 9966 13 12 1 2 0 8 0 syncache 264 57 0 57 33 33 0 1 0 8 0 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpqe 32 6360 0 6360 5 5 0 1 0 8 0 tcpcb 544 12179 0 12174 58 57 1 14 0 8 0 inpcb 280 35239 0 35224 105 103 2 13 0 8 0 rttmr 72 30 0 29 17 16 1 1 0 8 0 ip6q 72 3 0 3 3 3 0 1 0 8 0 ip6af 40 3 0 3 2 2 0 1 0 8 0 nd6 48 265 0 261 12 11 1 1 0 8 0 pkpcb 40 55 0 55 24 24 0 1 0 8 0 swfcl 56 15 0 0 1 0 1 1 0 8 0 ppxss 1128 487 0 487 117 116 1 1 0 8 1 pffrag 232 226 0 226 82 82 0 1 0 482 0 pffrnode 88 226 0 226 82 82 0 1 0 8 0 pffrent 40 558 0 558 85 85 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 1364 0 1338 1 0 1 1 0 8 0 pfstkey 112 1364 0 1338 4 2 2 2 0 8 0 pfstate 328 1364 0 1338 12 9 3 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 29 0 28 24 23 1 3 0 8 0 art_heap4 256 7657 0 7308 88 66 22 22 0 8 0 art_table 32 7686 0 7336 3 0 3 3 0 8 0 art_node 16 1739 0 1688 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 1 0 1 0 8 0 semupl 112 5 0 5 1 1 0 1 0 8 0 semapl 112 542 0 532 1 0 1 1 0 8 0 shmpl 112 186 0 58 5 1 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 35282 0 33823 49 1 48 48 0 8 0 ffsino 272 35282 0 33823 99 1 98 98 0 8 0 nchpl 144 65421 0 64915 61 40 21 61 0 8 0 uvmvnodes 72 7460 0 0 136 0 136 136 0 8 0 vnodes 208 7460 0 0 393 0 393 393 0 8 0 namei 1024 268021 0 268021 7 6 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 93 0 93 44 44 0 1 0 8 0 scsiplug 64 19 0 19 16 16 0 1 0 8 0 scxspl 192 194140 0 194140 168 166 2 7 0 8 2 plimitpl 152 1652 0 1644 1 0 1 1 0 8 0 sigapl 432 19170 0 19154 6 4 2 3 0 8 0 futexpl 56 448256 0 448256 1 0 1 1 0 8 1 knotepl 112 4218 0 4199 6 5 1 3 0 8 0 kqueuepl 104 4804 0 4802 13 12 1 4 0 8 0 pipepl 112 11860 0 11841 46 45 1 3 0 8 0 fdescpl 488 19171 0 19154 3 0 3 3 0 8 0 filepl 152 199124 0 199019 181 176 5 14 0 8 0 lockfpl 104 66974 0 66970 1 0 1 1 0 8 0 lockfspl 48 15393 0 15390 1 0 1 1 0 8 0 sessionpl 112 121 0 110 1 0 1 1 0 8 0 pgrppl 48 267 0 256 1 0 1 1 0 8 0 ucredpl 96 58872 0 58863 1 0 1 1 0 8 0 zombiepl 144 19166 0 19166 5 4 1 1 0 8 1 processpl 896 19199 0 19166 6 2 4 5 0 8 0 procpl 632 73120 0 73076 10 5 5 6 0 8 0 srpgc 64 132 0 132 56 56 0 1 0 8 0 sosppl 128 216 0 216 66 66 0 1 0 8 0 sockpl 384 46707 0 46673 204 199 5 23 0 8 1 mcl64k 65536 1710 0 0 200 147 53 66 0 8 1 mcl16k 16384 59 0 0 7 5 2 3 0 8 0 mcl12k 12288 73 0 0 3 1 2 2 0 8 0 mcl9k 9216 56 0 0 3 1 2 2 0 8 0 mcl8k 8192 49 0 0 4 1 3 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 19 0 0 2 0 2 2 0 8 0 mcl2k 2048 226 0 0 17 6 11 17 0 8 0 mtagpl 80 1091 0 0 5 2 3 3 0 8 0 mbufpl 256 2856 0 0 55 11 44 44 0 8 0 bufpl 256 67131 0 59394 484 0 484 484 0 8 0 anonpl 16 2022439 0 2006280 646 571 75 90 0 124 3 amapchunkpl 152 154793 0 154680 268 257 11 19 0 158 5 amappl16 192 97814 0 96881 671 617 54 60 0 8 6 amappl15 184 3586 0 3586 14 14 0 1 0 8 0 amappl14 176 3205 0 3197 2 1 1 1 0 8 0 amappl13 168 1142 0 1142 15 15 0 1 0 8 0 amappl12 160 2040 0 2035 2 1 1 1 0 8 0 amappl11 152 3069 0 3054 1 0 1 1 0 8 0 amappl10 144 1955 0 1950 1 0 1 1 0 8 0 amappl9 136 5962 0 5956 1 0 1 1 0 8 0 amappl8 128 5580 0 5503 3 0 3 3 0 8 0 amappl7 120 2375 0 2365 1 0 1 1 0 8 0 amappl6 112 2929 0 2904 1 0 1 1 0 8 0 amappl5 104 2990 0 2974 1 0 1 1 0 8 0 amappl4 96 18175 0 18133 11 9 2 2 0 8 0 amappl3 88 3936 0 3929 1 0 1 1 0 8 0 amappl2 80 149350 0 149268 4 2 2 3 0 8 0 amappl1 72 450950 0 450493 26 16 10 20 0 8 0 amappl 80 74884 0 74844 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 187 0 58 3 0 3 3 0 8 0 uaddrrnd 24 19264 0 19154 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 19264 0 19154 1 0 1 1 0 8 0 vmmpekpl 168 182755 0 182715 3 0 3 3 0 8 0 vmmpepl 168 2437286 0 2435033 1595 1466 129 139 0 357 23 vmsppl 368 19170 0 19154 2 0 2 2 0 8 0 pdppl 4096 38535 0 38494 7 1 6 6 0 8 0 pvpl 32 5458053 0 5438542 1373 1190 183 216 0 265 17 pmappl 232 19263 0 19247 61 60 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1062 0 327 23 1 22 22 0 8 0