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 7407 24227 0 0 0 0 syz-executor.0 * 91898 19691 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(ffff800021b95370) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800022d82000,fffffd80646d5008,10,ffff80000005bdd0,ffff800021b955d8) at alltraps_kern_meltdown+0x7b 0(b,ffff800021b95538,83,ffff800021b955d8,0,b) at 0 rt_clone(ffff800021b95648,fffffd806f6cdda0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cdda0,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cdda0,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800021b95720,fffffd8061f4d820,fffffd806f6cdd20) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cdd20,fffffd8061f4d800) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd806423b348,4,0,fffffd8061f4d800,0,ffff800020acfb48) at udp_usrreq+0x560 sys_connect(ffff800020acfb48,ffff800021b958a8,ffff800021b958f0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800021b95970) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b95970) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,a2a491c5010) at Xsyscall+0x128 end of kernel end trace frame: 0xa2c77e6c800, 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(ffff800021b95370) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800022d82000,fffffd80646d5008,10,ffff80000005bdd0,ffff800021b955d8) at alltraps_kern_meltdown+0x7b 0(b,ffff800021b95538,83,ffff800021b955d8,0,b) at 0 rt_clone(ffff800021b95648,fffffd806f6cdda0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cdda0,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cdda0,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800021b95720,fffffd8061f4d820,fffffd806f6cdd20) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cdd20,fffffd8061f4d800) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd806423b348,4,0,fffffd8061f4d800,0,ffff800020acfb48) at udp_usrreq+0x560 sys_connect(ffff800020acfb48,ffff800021b958a8,ffff800021b958f0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800021b95970) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b95970) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,a2a491c5010) at Xsyscall+0x128 end of kernel end trace frame: 0xa2c77e6c800, count: -14 ddb{1}> show registers rdi 0xffffffff818c8e87 db_enter+0x17 rsi 0x2709 __ALIGN_SIZE+0x1709 rbp 0xffff800021b951e0 rbx 0xffff800021b95290 rdx 0x270a __ALIGN_SIZE+0x170a rcx 0xffff800022d82000 rax 0xffff800022d82000 r8 0xffffffff81ad2b6f kprintf+0x16f r9 0x1 r10 0x25 r11 0xc0cd28d4672a7ad4 r12 0x3000000008 r13 0xffff800021b951f0 r14 0x100 r15 0x1 rip 0xffffffff818c8e88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021b951d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=91898 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020aceef0,0xffff800020acea10 process=0xffff800020a8aa90 user=0xffff800021b90000, vmspace=0xfffffd807f00b5c0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 24227 7407 22450 0 7 0 syz-executor.0 24227 454467 22450 0 3 0x4000000 biowait syz-executor.0 19691 516894 52292 0 2 0 syz-executor.1 *19691 91898 52292 0 7 0x4000000 syz-executor.1 19691 26992 52292 0 3 0x4000080 fsleep syz-executor.1 13356 277949 1 0 3 0x100083 ttyin getty 52292 13926 9997 0 3 0x82 nanosleep syz-executor.1 65083 261097 0 0 3 0x14200 acct acct 69058 235015 0 0 3 0x14200 bored sosplice 22450 19407 9997 0 3 0x82 nanosleep syz-executor.0 9997 131357 1901 0 3 0x82 thrsleep syz-fuzzer 9997 416185 1901 0 3 0x4000082 nanosleep syz-fuzzer 9997 8557 1901 0 3 0x4000082 nanosleep syz-fuzzer 9997 362914 1901 0 3 0x4000082 kqread syz-fuzzer 9997 113813 1901 0 3 0x4000082 thrsleep syz-fuzzer 9997 367072 1901 0 3 0x4000082 thrsleep syz-fuzzer 9997 326014 1901 0 3 0x4000082 thrsleep syz-fuzzer 9997 443713 1901 0 3 0x4000082 thrsleep syz-fuzzer 9997 92505 1901 0 3 0x4000082 thrsleep syz-fuzzer 9997 470957 1901 0 3 0x4000082 thrsleep syz-fuzzer 1901 509185 15592 0 3 0x10008a pause ksh 15592 60315 1229 0 3 0x92 select sshd 1229 408984 1 0 3 0x80 select sshd 84490 348833 6282 74 3 0x100092 bpf pflogd 6282 211411 1 0 3 0x80 netio pflogd 34279 292688 44763 73 3 0x100090 kqread syslogd 44763 344744 1 0 3 0x100082 netio syslogd 15502 296978 1 77 3 0x100090 poll dhclient 26563 462298 1 0 3 0x80 poll dhclient 56670 491896 0 0 3 0x14200 pgzero zerothread 43978 18582 0 0 3 0x14200 aiodoned aiodoned 46912 387268 0 0 3 0x14200 syncer update 97897 509129 0 0 3 0x14200 cleaner cleaner 40924 445973 0 0 3 0x14200 reaper reaper 15722 434225 0 0 3 0x14200 pgdaemon pagedaemon 4873 241312 0 0 3 0x14200 bored crynlk 31098 420942 0 0 3 0x14200 bored crypto 72179 264611 0 0 3 0x40014200 acpi0 acpi0 77118 390783 0 0 3 0x40014200 idle1 89481 87711 0 0 3 0x14200 bored softnet 28769 495076 0 0 3 0x14200 bored systqmp 40030 254490 0 0 3 0x14200 bored systq 81671 115555 0 0 3 0x40014200 bored softclock 49219 363866 0 0 3 0x40014200 idle0 28185 386238 0 0 3 0x14200 bored smr 1 494677 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 24227 (syz-executor.0) thread 0xffff800020acf658 (454467) exclusive rrwlock inode r = 0 (0xfffffd8064596e70) #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 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1352 #5 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164 #7 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #8 domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 #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 rrwlock inode r = 0 (0xfffffd8064596920) #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:574 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:2968 #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 Process 19691 (syz-executor.1) thread 0xffff800020acfb48 (91898) 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 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 (0xffffffff8265b1d8) #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 9543 6414K 6849K 78643K 11269 0 0 pcb 13 8K 8K 78643K 154 0 0 rtable 100 3K 4K 78643K 412 0 0 ifaddr 68 14K 14K 78643K 119 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1492 0 0 iov 0 0K 24K 78643K 100 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1222 77K 77K 78643K 1452 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 11 0 0 VM map 6 3K 3K 78643K 8 0 0 sem 12 0K 0K 78643K 118 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 477 0 0 sigio 0 0K 0K 78643K 6 0 0 proc 60 63K 95K 78643K 544 0 0 subproc 32 2K 2K 78643K 51 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 37 0 0 in_multi 24 1K 2K 78643K 70 0 0 ether_multi 1 0K 0K 78643K 8 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 276 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 114 54K 58K 78643K 2610 0 0 UVM aobj 72 5K 5K 78643K 76 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 134 0 0 NDP 15 0K 0K 78643K 31 0 0 temp 193 3560K 3640K 78643K 6141 0 0 kqueue 0 0K 0K 78643K 7 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 20 0 12 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 51 0 49 1 0 1 1 0 8 0 rtentry 112 84 0 44 2 0 2 2 0 8 0 unpcb 120 300 0 290 1 0 1 1 0 8 0 syncache 264 6 0 6 3 2 1 1 0 8 1 tcpqe 32 133 0 133 3 2 1 1 0 8 1 tcpcb 544 676 0 672 4 2 2 2 0 8 1 inpcb 280 1429 0 1420 7 3 4 4 0 8 3 nd6 48 7 0 5 1 0 1 1 0 8 0 ppxss 1128 8 0 8 2 2 0 1 0 8 0 pffrag 232 3 0 3 1 1 0 1 0 482 0 pffrnode 88 3 0 3 1 1 0 1 0 8 0 pffrent 40 92 0 92 1 1 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 55 0 11 1 0 1 1 0 8 0 pfstkey 112 56 0 12 2 0 2 2 0 8 0 pfstate 328 56 0 12 4 0 4 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 348 0 156 14 2 12 14 0 8 0 art_table 32 349 0 156 2 0 2 2 0 8 0 art_node 16 82 0 45 1 0 1 1 0 8 0 sysvmsgpl 40 35 0 24 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 112 0 102 1 0 1 1 0 8 0 shmpl 112 74 0 4 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2108 0 697 46 0 46 46 0 8 0 ffsino 272 2108 0 697 95 0 95 95 0 8 0 nchpl 144 3161 0 1553 61 0 61 61 0 8 0 uvmvnodes 72 2284 0 0 42 0 42 42 0 8 0 vnodes 208 2284 0 0 121 0 121 121 0 8 0 namei 1024 9597 0 9596 1 0 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 552 6 0 2 1 0 1 1 0 8 0 scxspl 192 9308 0 9307 10 9 1 7 0 8 0 plimitpl 152 51 0 43 1 0 1 1 0 8 0 sigapl 432 673 0 657 3 1 2 3 0 8 0 futexpl 56 12582 0 12581 1 0 1 1 0 8 0 knotepl 112 110 0 91 1 0 1 1 0 8 0 kqueuepl 104 115 0 113 1 0 1 1 0 8 0 pipepl 112 664 0 645 3 1 2 2 0 8 1 fdescpl 488 674 0 657 3 0 3 3 0 8 0 filepl 152 6032 0 5929 9 2 7 8 0 8 2 lockfpl 104 173 0 172 1 0 1 1 0 8 0 lockfspl 48 63 0 62 1 0 1 1 0 8 0 sessionpl 112 20 0 9 1 0 1 1 0 8 0 pgrppl 48 25 0 14 1 0 1 1 0 8 0 ucredpl 96 609 0 600 1 0 1 1 0 8 0 zombiepl 144 657 0 657 1 0 1 1 0 8 1 processpl 896 691 0 657 4 0 4 4 0 8 0 procpl 632 1773 0 1727 5 0 5 5 0 8 0 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 7 0 7 2 2 0 1 0 8 0 sockpl 384 1813 0 1792 10 3 7 7 0 8 4 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 6 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 193 0 0 24 0 24 24 0 8 0 mtagpl 80 18 0 0 1 0 1 1 0 8 0 mbufpl 256 280 0 0 16 0 16 16 0 8 0 bufpl 256 7588 0 1311 393 0 393 393 0 8 0 anonpl 16 91202 0 71112 111 14 97 98 0 124 11 amapchunkpl 152 4481 0 4319 21 3 18 20 0 158 11 amappl16 192 3808 0 2676 75 10 65 68 0 8 8 amappl14 176 208 0 203 1 0 1 1 0 8 0 amappl13 168 219 0 217 1 0 1 1 0 8 0 amappl12 160 11 0 9 2 1 1 1 0 8 0 amappl11 152 132 0 114 1 0 1 1 0 8 0 amappl10 144 14 0 9 1 0 1 1 0 8 0 amappl9 136 627 0 621 1 0 1 1 0 8 0 amappl8 128 184 0 158 1 0 1 1 0 8 0 amappl7 120 42 0 37 1 0 1 1 0 8 0 amappl6 112 121 0 108 1 0 1 1 0 8 0 amappl5 104 147 0 130 1 0 1 1 0 8 0 amappl4 96 1162 0 1128 1 0 1 1 0 8 0 amappl3 88 286 0 281 1 0 1 1 0 8 0 amappl2 80 4443 0 4359 3 0 3 3 0 8 0 amappl1 72 24407 0 23952 25 15 10 20 0 8 0 amappl 80 2051 0 2002 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 75 0 4 2 0 2 2 0 8 0 uaddrrnd 24 680 0 657 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 680 0 657 1 0 1 1 0 8 0 vmmpekpl 168 10056 0 10022 2 0 2 2 0 8 0 vmmpepl 168 90934 0 88522 170 30 140 144 0 357 34 vmsppl 368 673 0 657 2 0 2 2 0 8 0 pdppl 4096 1367 0 1322 6 0 6 6 0 8 0 pvpl 32 264836 0 241688 238 16 222 228 0 265 23 pmappl 232 679 0 659 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 570 0 7 17 0 17 17 0 8 0