panic: attempt to execute user address 0x20cf4000 in supervisor mode Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 352149 23928 0 0 0 0 syz-executor.1 *460298 23928 0 0 0x4000000 1K 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(ffff800023ba33b0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800021b6c000,fffffd8064b77ee8,10,ffff80000005be20,ffff800023ba3618) at alltraps_kern_meltdown+0x7b __kernel_end_phys(b,ffff800023ba3578,83,ffff800023ba3618,0,b) at 0x20cf4000 rt_clone(ffff800023ba3688,fffffd806f6d12b0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d12b0,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d12b0,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023ba3760,fffffd806796a920,fffffd806f6d1230) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d1230,fffffd806796a900) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd807213dc58,4,0,fffffd806796a900,0,ffff800020abec70) at udp_usrreq+0x560 sys_connect(ffff800020abec70,ffff800023ba38e8,ffff800023ba3930) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023ba39b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023ba39b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,a24c1c5f010) at Xsyscall+0x128 end of kernel end trace frame: 0xa2716c7b850, 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 0x20cf4000 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(ffff800023ba33b0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800021b6c000,fffffd8064b77ee8,10,ffff80000005be20,ffff800023ba3618) at alltraps_kern_meltdown+0x7b __kernel_end_phys(b,ffff800023ba3578,83,ffff800023ba3618,0,b) at 0x20cf4000 rt_clone(ffff800023ba3688,fffffd806f6d12b0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d12b0,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d12b0,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023ba3760,fffffd806796a920,fffffd806f6d1230) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d1230,fffffd806796a900) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd807213dc58,4,0,fffffd806796a900,0,ffff800020abec70) at udp_usrreq+0x560 sys_connect(ffff800020abec70,ffff800023ba38e8,ffff800023ba3930) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023ba39b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023ba39b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,a24c1c5f010) at Xsyscall+0x128 end of kernel end trace frame: 0xa2716c7b850, count: -14 ddb{1}> show registers rdi 0xffffffff81c5afd7 db_enter+0x17 rsi 0x2759 __ALIGN_SIZE+0x1759 rbp 0xffff800023ba3220 rbx 0xffff800023ba32d0 rdx 0x275a __ALIGN_SIZE+0x175a rcx 0xffff800021b6c000 rax 0xffff800021b6c000 r8 0xffffffff81ebdc8f kprintf+0x16f r9 0x1 r10 0x25 r11 0xf719694f88c4d04e r12 0x3000000008 r13 0xffff800023ba3230 r14 0x100 r15 0x1 rip 0xffffffff81c5afd8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023ba3210 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=460298 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020abe018,0xffffffff8266d488 process=0xffff800020a8aa90 user=0xffff800023b9e000, vmspace=0xfffffd807f00c000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 23928 352149 8519 0 7 0 syz-executor.1 *23928 460298 8519 0 7 0x4000000 syz-executor.1 8519 92752 60611 0 3 0x82 nanosleep syz-executor.1 85307 506481 60611 0 3 0x2 biowait syz-executor.0 3206 7641 1 0 3 0x100083 ttyin getty 23494 23207 0 0 3 0x14200 acct acct 64946 111741 0 0 3 0x14200 bored sosplice 60611 338831 73594 0 3 0x82 nanosleep syz-fuzzer 60611 160924 73594 0 3 0x4000082 nanosleep syz-fuzzer 60611 175075 73594 0 3 0x4000082 thrsleep syz-fuzzer 60611 520231 73594 0 3 0x4000082 thrsleep syz-fuzzer 60611 520130 73594 0 3 0x4000082 kqread syz-fuzzer 60611 99049 73594 0 3 0x4000082 thrsleep syz-fuzzer 60611 174936 73594 0 3 0x4000082 thrsleep syz-fuzzer 60611 75769 73594 0 3 0x4000082 thrsleep syz-fuzzer 60611 480567 73594 0 3 0x4000082 thrsleep syz-fuzzer 60611 403209 73594 0 3 0x4000082 thrsleep syz-fuzzer 73594 229731 23969 0 3 0x10008a pause ksh 23969 251183 58116 0 3 0x92 select sshd 58116 170280 1 0 3 0x80 select sshd 71318 157068 95932 74 3 0x100092 bpf pflogd 95932 503539 1 0 3 0x80 netio pflogd 63920 380955 74328 73 3 0x100090 kqread syslogd 74328 154020 1 0 3 0x100082 netio syslogd 11001 266083 1 77 3 0x100090 poll dhclient 19660 34812 1 0 3 0x80 poll dhclient 63127 223213 0 0 3 0x14200 pgzero zerothread 59201 496856 0 0 3 0x14200 aiodoned aiodoned 8351 342008 0 0 3 0x14200 syncer update 89720 511240 0 0 3 0x14200 cleaner cleaner 35517 69885 0 0 3 0x14200 reaper reaper 41098 172279 0 0 3 0x14200 pgdaemon pagedaemon 58056 329356 0 0 3 0x14200 bored crynlk 91621 499376 0 0 3 0x14200 bored crypto 83601 431670 0 0 3 0x40014200 acpi0 acpi0 42728 172651 0 0 3 0x40014200 idle1 73357 9202 0 0 3 0x14200 bored softnet 12557 113006 0 0 3 0x14200 bored systqmp 37275 287427 0 0 3 0x14200 bored systq 55581 477917 0 0 3 0x40014200 bored softclock 45841 58083 0 0 3 0x40014200 idle0 64104 229665 0 0 3 0x14200 bored smr 1 326820 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 23928 (syz-executor.1) thread 0xffff800020abec70 (460298) exclusive rwlock netlock r = 0 (0xffffffff824ad538) #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 (0xffffffff82623840) #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 Process 85307 (syz-executor.0) thread 0xffff800020abf650 (506481) exclusive rrwlock inode r = 0 (0xfffffd8073272a38) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:562 #5 vget+0x1c3 sys/kern/vfs_subr.c:672 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1323 #8 ufs_lookup+0x14b4 sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:91 #10 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568 #11 namei+0x63c sys/kern/vfs_lookup.c:249 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785 #13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806e19ea28) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:562 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9648 6488K 7575K 78643K 30958 0 0 pcb 13 10K 12K 78643K 2280 0 0 rtable 136 14K 14K 78643K 3956 0 0 ifaddr 105 27K 29K 78643K 1246 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1872 0 0 iov 0 0K 32K 78643K 1024 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1222 77K 78K 78643K 9516 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 111 0 0 VM map 2 1K 1K 78643K 14 0 0 sem 12 0K 1K 78643K 3871 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 10433 0 0 sigio 0 0K 0K 78643K 118 0 0 proc 62 63K 95K 78643K 2901 0 0 subproc 32 2K 2K 78643K 716 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 1362 0 0 in_multi 40 2K 2K 78643K 1296 0 0 ether_multi 1 0K 0K 78643K 46 0 0 mrt 1 0K 0K 78643K 37 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 210 927K 927K 78643K 210 0 0 exec 0 0K 1K 78643K 1492 0 0 pfkey data 0 0K 0K 78643K 8 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 33K 78643K 36659 0 0 UVM aobj 130 4K 4K 78643K 141 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 1482 0 0 NDP 24 0K 1K 78643K 387 0 0 temp 256 3557K 4197K 78643K 173869 0 0 kqueue 0 0K 0K 78643K 70 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 73 0 67 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 578 0 576 1 0 1 1 0 8 0 rtentry 112 503 0 454 2 0 2 2 0 8 0 unpcb 120 5235 0 5205 16 14 2 2 0 8 0 syncache 264 24 0 24 12 12 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 5682 0 5682 5 5 0 1 0 8 0 tcpcb 544 2712 0 2707 5 4 1 3 0 8 0 inpcb 280 11109 0 11100 33 31 2 13 0 8 1 rttmr 72 6 0 6 6 6 0 1 0 8 0 nd6 48 86 0 82 1 0 1 1 0 8 0 pkpcb 40 58 0 58 20 19 1 1 0 8 1 ppxss 1128 189 0 189 22 21 1 1 0 8 1 pffrag 232 22 0 22 11 11 0 1 0 482 0 pffrnode 88 22 0 22 11 11 0 1 0 8 0 pffrent 40 52 0 52 11 11 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 299 0 284 1 0 1 1 0 8 0 pfstkey 112 299 0 284 2 1 1 2 0 8 0 pfstate 328 299 0 284 5 2 3 4 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 2156 0 1900 27 10 17 17 0 8 0 art_table 32 2157 0 1900 3 0 3 3 0 8 0 art_node 16 468 0 423 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 5 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 3867 0 3857 1 0 1 1 0 8 0 shmpl 112 139 0 11 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 20238 0 18808 48 1 47 47 0 8 0 ffsino 272 20238 0 18808 96 0 96 96 0 8 0 nchpl 144 37962 0 36339 62 0 62 62 0 8 0 uvmvnodes 72 6133 0 0 112 0 112 112 0 8 0 vnodes 208 6133 0 0 323 0 323 323 0 8 0 namei 1024 131717 0 131717 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 12 0 12 5 5 0 1 0 8 0 scsiplug 64 17 0 17 10 10 0 1 0 8 0 scxspl 192 120092 0 120091 44 42 2 7 0 8 1 plimitpl 152 944 0 936 1 0 1 1 0 8 0 sigapl 432 10518 0 10503 3 1 2 3 0 8 0 futexpl 56 200043 0 200043 2 1 1 1 0 8 1 knotepl 112 2023 0 2004 3 2 1 2 0 8 0 kqueuepl 104 2460 0 2458 1 0 1 1 0 8 0 pipepl 112 5686 0 5667 22 21 1 2 0 8 0 fdescpl 488 10519 0 10503 3 0 3 3 0 8 0 filepl 152 87607 0 87506 49 44 5 14 0 8 1 lockfpl 104 20881 0 20880 1 0 1 1 0 8 0 lockfspl 48 5206 0 5205 1 0 1 1 0 8 0 sessionpl 112 63 0 52 1 0 1 1 0 8 0 pgrppl 48 158 0 147 1 0 1 1 0 8 0 ucredpl 96 11609 0 11598 1 0 1 1 0 8 0 zombiepl 144 10504 0 10504 4 3 1 1 0 8 1 processpl 896 10537 0 10504 4 0 4 4 0 8 0 procpl 632 33923 0 33880 6 1 5 5 0 8 0 srpgc 64 75 0 75 29 28 1 1 0 8 1 sosppl 128 123 0 123 31 30 1 1 0 8 1 sockpl 384 17307 0 17266 35 12 23 23 0 8 18 mcl64k 65536 274 0 0 34 19 15 34 0 8 1 mcl16k 16384 39 0 0 5 3 2 3 0 8 0 mcl12k 12288 41 0 0 2 0 2 2 0 8 0 mcl9k 9216 34 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 3 0 3 3 0 8 0 mcl2k2 2112 10 0 0 1 0 1 1 0 8 0 mcl2k 2048 191 0 0 21 1 20 21 0 8 0 mtagpl 80 144 0 0 2 0 2 2 0 8 0 mbufpl 256 724 0 0 25 0 25 25 0 8 0 bufpl 256 31753 0 24705 441 0 441 441 0 8 0 anonpl 16 978532 0 963696 214 146 68 78 0 124 0 amapchunkpl 152 67424 0 67314 49 43 6 12 0 158 0 amappl16 192 50454 0 49575 195 149 46 57 0 8 0 amappl15 184 424 0 424 3 3 0 1 0 8 0 amappl14 176 1856 0 1852 2 1 1 1 0 8 0 amappl13 168 2332 0 2332 7 7 0 1 0 8 0 amappl12 160 1829 0 1828 2 1 1 1 0 8 0 amappl11 152 1281 0 1266 1 0 1 1 0 8 0 amappl10 144 151 0 146 1 0 1 1 0 8 0 amappl9 136 2704 0 2697 1 0 1 1 0 8 0 amappl8 128 2163 0 2113 2 0 2 2 0 8 0 amappl7 120 297 0 288 1 0 1 1 0 8 0 amappl6 112 1194 0 1182 1 0 1 1 0 8 0 amappl5 104 2356 0 2340 1 0 1 1 0 8 0 amappl4 96 12110 0 12072 5 4 1 2 0 8 0 amappl3 88 2036 0 2031 1 0 1 1 0 8 0 amappl2 80 81396 0 81321 3 1 2 3 0 8 0 amappl1 72 243451 0 243008 25 15 10 20 0 8 0 amappl 80 34822 0 34784 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 dma64 64 259 0 259 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 140 0 11 3 0 3 3 0 8 0 uaddrrnd 24 10531 0 10503 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 10531 0 10503 1 0 1 1 0 8 0 vmmpekpl 168 86480 0 86450 2 0 2 2 0 8 0 vmmpepl 168 1298748 0 1296709 475 351 124 124 0 357 24 vmsppl 368 10518 0 10503 2 0 2 2 0 8 0 pdppl 4096 21069 0 21030 7 1 6 6 0 8 0 pvpl 32 2622295 0 2604225 495 317 178 190 0 265 18 pmappl 232 10530 0 10515 5 4 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 680 0 43 19 0 19 19 0 8 0