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 *373190 97548 0 0 0x4000000 1K syz-executor.1 481859 13957 0 0x14000 0x200 0 reaper 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(ffff8000239a95e0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b56000,fffffd80641eeee8,10,ffff80000005b600,ffff8000239a9848) at alltraps_kern_meltdown+0x7b 0(b,ffff8000239a97a8,83,ffff8000239a9848,0,b) at 0 rt_clone(ffff8000239a98b8,fffffd806f6db828,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6db828,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6db828,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff8000239a9990,fffffd8060831620,fffffd806f6db7a8) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6db7a8,fffffd8060831600) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd806f6dc480,4,0,fffffd8060831600,0,ffff800020ab0508) at udp_usrreq+0x560 sys_connect(ffff800020ab0508,ffff8000239a9b18,ffff8000239a9b60) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000239a9be0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000239a9be0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,c30870b7010) at Xsyscall+0x128 end of kernel end trace frame: 0xc3325698090, 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(ffff8000239a95e0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b56000,fffffd80641eeee8,10,ffff80000005b600,ffff8000239a9848) at alltraps_kern_meltdown+0x7b 0(b,ffff8000239a97a8,83,ffff8000239a9848,0,b) at 0 rt_clone(ffff8000239a98b8,fffffd806f6db828,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6db828,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6db828,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff8000239a9990,fffffd8060831620,fffffd806f6db7a8) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6db7a8,fffffd8060831600) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd806f6dc480,4,0,fffffd8060831600,0,ffff800020ab0508) at udp_usrreq+0x560 sys_connect(ffff800020ab0508,ffff8000239a9b18,ffff8000239a9b60) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000239a9be0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000239a9be0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,c30870b7010) at Xsyscall+0x128 end of kernel end trace frame: 0xc3325698090, count: -14 ddb{1}> show registers rdi 0xffffffff81d97467 db_enter+0x17 rsi 0x20e2 __ALIGN_SIZE+0x10e2 rbp 0xffff8000239a9450 rbx 0xffff8000239a9500 rdx 0x20e3 __ALIGN_SIZE+0x10e3 rcx 0xffff800020b56000 rax 0xffff800020b56000 r8 0xffffffff815fe7df kprintf+0x16f r9 0x1 r10 0x25 r11 0x2cd041368e0042d4 r12 0x3000000008 r13 0xffff8000239a9460 r14 0x100 r15 0x1 rip 0xffffffff81d97468 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000239a9440 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=373190 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0780,0xffffffff8265ca30 process=0xffff800020addc00 user=0xffff8000239a4000, vmspace=0xfffffd807f00b450 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 97548 300237 19749 0 2 0 syz-executor.1 *97548 373190 19749 0 7 0x4000000 syz-executor.1 19749 369779 22163 0 3 0x82 nanosleep syz-executor.1 73997 246882 22163 0 3 0x82 nanosleep syz-executor.0 3246 364053 0 0 3 0x14200 bored sosplice 70081 238108 0 0 3 0x14200 acct acct 22163 472065 42927 0 3 0x82 thrsleep syz-fuzzer 22163 200142 42927 0 3 0x4000082 nanosleep syz-fuzzer 22163 269685 42927 0 3 0x4000082 thrsleep syz-fuzzer 22163 56544 42927 0 3 0x4000082 kqread syz-fuzzer 22163 307033 42927 0 3 0x4000082 thrsleep syz-fuzzer 22163 37418 42927 0 3 0x4000082 thrsleep syz-fuzzer 22163 256199 42927 0 3 0x4000082 thrsleep syz-fuzzer 22163 238459 42927 0 3 0x4000082 thrsleep syz-fuzzer 22163 400753 42927 0 3 0x4000082 thrsleep syz-fuzzer 22163 345594 42927 0 3 0x4000082 thrsleep syz-fuzzer 42927 232476 5606 0 3 0x10008a pause ksh 5606 99708 37774 0 3 0x92 select sshd 91634 481696 1 0 3 0x100083 ttyin getty 37774 288783 1 0 3 0x80 select sshd 72483 367223 90916 74 3 0x100092 bpf pflogd 90916 425750 1 0 3 0x80 netio pflogd 13923 156531 29250 73 3 0x100090 kqread syslogd 29250 90580 1 0 3 0x100082 netio syslogd 72733 60709 1 77 3 0x100090 poll dhclient 62233 294369 1 0 3 0x80 poll dhclient 9036 63689 0 0 2 0x14200 zerothread 57990 36444 0 0 3 0x14200 aiodoned aiodoned 469 363726 0 0 3 0x14200 syncer update 71700 41806 0 0 3 0x14200 cleaner cleaner 13957 481859 0 0 7 0x14200 reaper 76344 145 0 0 3 0x14200 pgdaemon pagedaemon 85913 354926 0 0 3 0x14200 bored crynlk 12521 13044 0 0 3 0x14200 bored crypto 41049 395652 0 0 3 0x40014200 acpi0 acpi0 28855 406077 0 0 3 0x40014200 idle1 33936 307196 0 0 3 0x14200 bored softnet 37896 145345 0 0 3 0x14200 bored systqmp 60194 93763 0 0 3 0x14200 bored systq 92202 424824 0 0 3 0x40014200 bored softclock 68022 207826 0 0 3 0x40014200 idle0 30863 153738 0 0 3 0x14200 bored smr 1 400254 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 0: exclusive mutex pvpl r = 0 (0xffffffff82670240) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 pool_put+0x64 sys/kern/subr_pool.c:800 #4 pmap_do_remove+0x61b sys/arch/amd64/amd64/pmap.c:1798 #5 uvm_map_teardown+0x195 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:206 [inline] #5 uvm_map_teardown+0x195 sys/uvm/uvm_map.c:2715 #6 uvmspace_free+0x86 sys/uvm/uvm_map.c:3588 #7 uvm_exit+0x29 sys/uvm/uvm_glue.c:297 #8 reaper+0x189 sys/kern/kern_exit.c:442 #9 proc_trampoline+0x1c Process 97548 (syz-executor.1) thread 0xffff800020ab0508 (373190) exclusive rwlock netlock r = 0 (0xffffffff824ef928) #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 (0xffffffff82670948) #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 9572 6429K 7784K 78643K 13654 0 0 pcb 13 10K 12K 78643K 204 0 0 rtable 93 11K 12K 78643K 4669 0 0 ifaddr 73 15K 16K 78643K 267 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1525 0 0 iov 0 0K 16K 78643K 165 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1221 77K 78K 78643K 2542 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 22 0 0 VM map 8 4K 4K 78643K 12 0 0 sem 12 0K 0K 78643K 542 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 1480 0 0 sigio 0 0K 0K 78643K 34 0 0 proc 60 63K 95K 78643K 885 0 0 subproc 32 2K 2K 78643K 170 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 80 0 0 in_multi 24 1K 2K 78643K 148 0 0 ether_multi 1 0K 0K 78643K 10 0 0 mrt 0 0K 0K 78643K 2 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 423 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 137 56K 60K 78643K 5754 0 0 UVM aobj 110 7K 7K 78643K 114 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 3K 78643K 1768 0 0 NDP 17 0K 0K 78643K 83 0 0 temp 207 3564K 4203K 78643K 47165 0 0 kqueue 0 0K 0K 78643K 472 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 410 0 405 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 115 0 113 1 0 1 1 0 8 0 rtentry 112 1287 0 1252 2 0 2 2 0 8 0 unpcb 120 690 0 680 1 0 1 1 0 8 0 syncache 264 11 0 11 4 3 1 1 0 8 1 tcpqe 32 19 0 19 4 3 1 1 0 8 1 tcpcb 544 2233 0 2229 17 11 6 11 0 8 5 inpcb 280 4356 0 4348 13 7 6 9 0 8 5 rttmr 72 1 0 1 1 1 0 1 0 8 0 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 4 0 4 1 1 0 1 0 8 0 nd6 48 20 0 18 2 1 1 1 0 8 0 pkpcb 40 8 0 8 4 4 0 1 0 8 0 ppxss 1128 25 0 25 8 7 1 1 0 8 1 pffrag 232 32 0 32 5 4 1 1 0 482 1 pffrnode 88 32 0 32 5 4 1 1 0 8 1 pffrent 40 921 0 921 5 4 1 1 0 8 1 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 108 0 59 1 0 1 1 0 8 0 pfstkey 112 108 0 59 2 0 2 2 0 8 0 pfstate 328 108 0 59 5 0 5 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2118 0 1944 20 5 15 15 0 8 2 art_table 32 2119 0 1944 2 0 2 2 0 8 0 art_node 16 1286 0 1254 1 0 1 1 0 8 0 sysvmsgpl 40 57 0 35 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 540 0 530 1 0 1 1 0 8 0 shmpl 112 112 0 4 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3435 0 2025 46 0 46 46 0 8 0 ffsino 272 3435 0 2025 95 0 95 95 0 8 0 nchpl 144 5736 0 5280 61 42 19 61 0 8 0 uvmvnodes 72 4536 0 0 83 0 83 83 0 8 0 vnodes 208 4536 0 0 239 0 239 239 0 8 0 namei 1024 18593 0 18593 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 6 0 0 1 0 1 1 0 8 0 vmpool 552 10 0 4 3 2 1 1 0 8 0 scxspl 192 18057 0 18057 14 12 2 7 0 8 2 plimitpl 152 112 0 103 1 0 1 1 0 8 0 sigapl 432 1654 0 1639 3 1 2 3 0 8 0 futexpl 56 35706 0 35706 1 0 1 1 0 8 1 knotepl 112 1172 0 1153 1 0 1 1 0 8 0 kqueuepl 104 891 0 889 4 3 1 4 0 8 0 pipepl 112 802 0 783 5 4 1 2 0 8 0 fdescpl 488 1655 0 1639 3 0 3 3 0 8 0 filepl 152 14605 0 14504 18 9 9 14 0 8 5 lockfpl 104 421 0 420 1 0 1 1 0 8 0 lockfspl 48 150 0 149 1 0 1 1 0 8 0 sessionpl 112 26 0 15 1 0 1 1 0 8 0 pgrppl 48 44 0 32 1 0 1 1 0 8 0 ucredpl 96 1302 0 1293 1 0 1 1 0 8 0 zombiepl 144 1639 0 1638 1 0 1 1 0 8 0 processpl 896 1672 0 1638 4 0 4 4 0 8 0 procpl 632 4564 0 4520 7 2 5 5 0 8 1 srpgc 64 19 0 19 6 5 1 1 0 8 1 sosppl 128 21 0 21 4 4 0 1 0 8 0 sockpl 384 5210 0 5190 18 11 7 14 0 8 5 mcl64k 65536 270 0 0 34 0 34 34 0 8 1 mcl16k 16384 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 12 0 0 2 0 2 2 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 13 0 0 2 0 2 2 0 8 0 mcl4k 4096 15 0 0 2 0 2 2 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 165 0 0 20 0 20 20 0 8 0 mtagpl 80 24 0 0 1 0 1 1 0 8 0 mbufpl 256 591 0 0 32 0 32 32 0 8 0 bufpl 256 10192 0 3134 442 0 442 442 0 8 0 anonpl 16 198465 0 178003 107 8 99 99 0 124 16 amapchunkpl 152 10758 0 10597 20 8 12 14 0 158 5 amappl16 192 8806 0 7689 93 29 64 68 0 8 7 amappl15 184 324 0 321 1 0 1 1 0 8 0 amappl14 176 288 0 281 1 0 1 1 0 8 0 amappl13 168 181 0 180 2 1 1 1 0 8 0 amappl12 160 236 0 233 2 1 1 1 0 8 0 amappl11 152 73 0 58 1 0 1 1 0 8 0 amappl10 144 92 0 85 1 0 1 1 0 8 0 amappl9 136 1065 0 1059 1 0 1 1 0 8 0 amappl8 128 643 0 603 2 0 2 2 0 8 0 amappl7 120 163 0 156 1 0 1 1 0 8 0 amappl6 112 62 0 49 1 0 1 1 0 8 0 amappl5 104 438 0 424 1 0 1 1 0 8 0 amappl4 96 1719 0 1685 1 0 1 1 0 8 0 amappl3 88 499 0 493 1 0 1 1 0 8 0 amappl2 80 12328 0 12245 3 0 3 3 0 8 0 amappl1 72 46514 0 46055 25 15 10 20 0 8 0 amappl 80 4968 0 4915 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 113 0 4 2 0 2 2 0 8 0 uaddrrnd 24 1665 0 1639 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1665 0 1639 1 0 1 1 0 8 0 vmmpekpl 168 15801 0 15765 3 1 2 2 0 8 0 vmmpepl 168 215549 0 213141 183 43 140 144 0 357 33 vmsppl 368 1654 0 1638 2 0 2 2 0 8 0 pdppl 4096 3337 0 3290 6 0 6 6 0 8 0 pvpl 32 553450 0 530296 249 23 226 226 0 265 37 pmappl 232 1664 0 1642 4 2 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 683 0 20 20 0 20 20 0 8 0