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 117525 80049 0 0 0 1 syz-executor.1 *261780 80049 0 0 0x4000000 0K 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(ffff800021ba8960) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff8000229b6000,fffffd8062b39938,10,ffff8000000252f0,ffff800021ba8bc8) at alltraps_kern_meltdown+0x7b 0(b,ffff800021ba8b28,83,ffff800021ba8bc8,0,b) at 0 rt_clone(ffff800021ba8c38,fffffd806f6c8b70,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6c8b70,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6c8b70,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800021ba8d10,fffffd8071bf1320,fffffd806f6c8af0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6c8af0,fffffd8071bf1300) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd80719c0db0,4,0,fffffd8071bf1300,0,ffff800020ace298) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ace298,ffff800021ba8eb8,ffff800021ba8f00) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800021ba8f80) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021ba8f80) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,aa35f5a8010) at Xsyscall+0x128 end of kernel end trace frame: 0xaa60671e7a0, 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{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(ffff800021ba8960) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff8000229b6000,fffffd8062b39938,10,ffff8000000252f0,ffff800021ba8bc8) at alltraps_kern_meltdown+0x7b 0(b,ffff800021ba8b28,83,ffff800021ba8bc8,0,b) at 0 rt_clone(ffff800021ba8c38,fffffd806f6c8b70,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6c8b70,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6c8b70,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800021ba8d10,fffffd8071bf1320,fffffd806f6c8af0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6c8af0,fffffd8071bf1300) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd80719c0db0,4,0,fffffd8071bf1300,0,ffff800020ace298) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ace298,ffff800021ba8eb8,ffff800021ba8f00) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800021ba8f80) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021ba8f80) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,aa35f5a8010) at Xsyscall+0x128 end of kernel end trace frame: 0xaa60671e7a0, count: -14 ddb{0}> show registers rdi 0xffffffff818c8e87 db_enter+0x17 rsi 0x1dae __ALIGN_SIZE+0xdae rbp 0xffff800021ba87d0 rbx 0xffff800021ba8880 rdx 0x1daf __ALIGN_SIZE+0xdaf rcx 0xffff8000229b6000 rax 0xffff8000229b6000 r8 0xffffffff81ad2b6f kprintf+0x16f r9 0x1 r10 0x25 r11 0xecf38262092f9fbd r12 0x3000000008 r13 0xffff800021ba87e0 r14 0x100 r15 0x1 rip 0xffffffff818c8e88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021ba87c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=261780 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020aceef0,0xffffffff8265a258 process=0xffff800020a8b510 user=0xffff800021ba4000, vmspace=0xfffffd807f00b2e0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 80049 117525 74188 0 7 0 syz-executor.1 *80049 261780 74188 0 7 0x4000000 syz-executor.1 14125 169594 98343 0 2 0x2 syz-executor.0 74188 352587 98343 0 3 0x82 nanosleep syz-executor.1 57430 286495 0 0 3 0x14200 acct acct 14267 493722 1 0 3 0x100083 ttyin getty 90382 446644 0 0 3 0x14200 bored sosplice 98343 426594 87962 0 3 0x82 thrsleep syz-fuzzer 98343 310003 87962 0 2 0x4000482 syz-fuzzer 98343 401446 87962 0 3 0x4000082 thrsleep syz-fuzzer 98343 460917 87962 0 3 0x4000082 thrsleep syz-fuzzer 98343 1204 87962 0 3 0x4000082 thrsleep syz-fuzzer 98343 299537 87962 0 3 0x4000082 nanosleep syz-fuzzer 98343 363848 87962 0 3 0x4000082 thrsleep syz-fuzzer 98343 367478 87962 0 3 0x4000082 thrsleep syz-fuzzer 98343 252957 87962 0 3 0x4000082 thrsleep syz-fuzzer 98343 14759 87962 0 3 0x4000082 kqread syz-fuzzer 87962 493128 78750 0 3 0x10008a pause ksh 78750 92918 71598 0 3 0x92 select sshd 71598 168316 1 0 3 0x80 select sshd 61598 376966 9070 74 3 0x100092 bpf pflogd 9070 398589 1 0 3 0x80 netio pflogd 37528 376406 1685 73 3 0x100090 kqread syslogd 1685 512030 1 0 3 0x100082 netio syslogd 35747 386942 1 77 3 0x100090 poll dhclient 43100 38232 1 0 3 0x80 poll dhclient 57403 256815 0 0 3 0x14200 pgzero zerothread 49800 167196 0 0 3 0x14200 aiodoned aiodoned 3601 158640 0 0 3 0x14200 syncer update 18706 521983 0 0 3 0x14200 cleaner cleaner 56771 56931 0 0 3 0x14200 reaper reaper 10004 487219 0 0 3 0x14200 pgdaemon pagedaemon 17429 503238 0 0 3 0x14200 bored crynlk 28104 350567 0 0 3 0x14200 bored crypto 38038 20068 0 0 3 0x40014200 acpi0 acpi0 34040 11111 0 0 3 0x40014200 idle1 22682 120035 0 0 3 0x14200 bored softnet 78603 437633 0 0 3 0x14200 bored systqmp 51588 508639 0 0 3 0x14200 bored systq 821 431517 0 0 3 0x40014200 bored softclock 25458 257758 0 0 3 0x40014200 idle0 83684 239583 0 0 3 0x14200 bored smr 1 313581 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 80049 (syz-executor.1) thread 0xffff800020ace298 (261780) 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 Process 14125 (syz-executor.0) thread 0xffff800020ace510 (169594) exclusive rrwlock inode r = 0 (0xfffffd80691c9d58) #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 (0xfffffd80621e0920) #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 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9607 6650K 8265K 78643K 16487 0 0 pcb 13 8K 9K 78643K 657 0 0 rtable 129 13K 13K 78643K 1973 0 0 ifaddr 91 20K 22K 78643K 573 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1592 0 0 iov 0 0K 24K 78643K 568 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1228 77K 78K 78643K 3324 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 38 0 0 VM map 18 9K 9K 78643K 25 0 0 sem 12 0K 1K 78643K 633 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 2486 0 0 sigio 0 0K 0K 78643K 32 0 0 proc 62 63K 95K 78643K 1245 0 0 subproc 32 2K 2K 78643K 221 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 296 0 0 in_multi 32 2K 2K 78643K 378 0 0 ether_multi 1 0K 0K 78643K 37 0 0 mrt 0 0K 0K 78643K 15 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 576 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 147 125K 125K 78643K 9641 0 0 UVM aobj 130 9K 9K 78643K 137 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 2K 78643K 696 0 0 NDP 21 0K 0K 78643K 183 0 0 temp 236 3561K 3654K 78643K 82869 0 0 kqueue 0 0K 0K 78643K 26 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 78 0 71 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 212 0 210 1 0 1 1 0 8 0 rtentry 112 365 0 315 2 0 2 2 0 8 0 unpcb 120 1320 0 1308 2 1 1 2 0 8 0 syncache 264 13 0 13 6 6 0 1 0 8 0 tcpqe 32 2 0 2 1 1 0 1 0 8 0 tcpcb 544 1087 0 1080 6 5 1 3 0 8 0 inpcb 280 3679 0 3668 14 12 2 4 0 8 1 rttmr 72 6 0 5 1 0 1 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 44 0 41 2 1 1 1 0 8 0 pkpcb 40 31 0 31 8 8 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 73 0 73 9 8 1 1 0 8 1 pffrag 232 75 0 75 4 3 1 1 0 482 1 pffrnode 88 62 0 62 4 3 1 1 0 8 1 pffrent 40 2241 0 2241 4 3 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 254 0 195 1 0 1 1 0 8 0 pfstkey 112 254 0 195 3 0 3 3 0 8 0 pfstate 328 254 0 195 8 1 7 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 6 0 4 4 2 2 3 0 8 0 art_heap4 256 1512 0 1257 25 9 16 17 0 8 0 art_table 32 1518 0 1261 3 0 3 3 0 8 0 art_node 16 357 0 310 1 0 1 1 0 8 0 sysvmsgpl 40 27 0 22 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 631 0 621 1 0 1 1 0 8 0 shmpl 112 135 0 7 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5222 0 3809 46 0 46 46 0 8 0 ffsino 272 5222 0 3809 95 0 95 95 0 8 0 nchpl 144 10556 0 10086 61 41 20 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 35920 0 35919 3 2 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 16 0 0 2 0 2 2 0 8 0 vmpool 552 23 0 7 2 0 2 2 0 8 0 scxspl 192 29680 0 29680 20 17 3 6 0 8 3 plimitpl 152 229 0 221 1 0 1 1 0 8 0 sigapl 432 2653 0 2638 3 1 2 3 0 8 0 futexpl 56 55806 0 55806 1 0 1 1 0 8 1 knotepl 112 533 0 514 4 3 1 3 0 8 0 kqueuepl 104 702 0 700 1 0 1 1 0 8 0 pipepl 112 1746 0 1725 4 2 2 2 0 8 1 fdescpl 488 2654 0 2638 3 0 3 3 0 8 0 filepl 152 24748 0 24644 19 13 6 7 0 8 2 lockfpl 104 1241 0 1240 1 0 1 1 0 8 0 lockfspl 48 376 0 375 1 0 1 1 0 8 0 sessionpl 112 31 0 20 1 0 1 1 0 8 0 pgrppl 48 47 0 36 1 0 1 1 0 8 0 ucredpl 96 2554 0 2544 1 0 1 1 0 8 0 zombiepl 144 2638 0 2638 3 2 1 1 0 8 1 processpl 896 2671 0 2638 4 0 4 4 0 8 0 procpl 632 8221 0 8178 5 0 5 5 0 8 0 srpgc 64 12 0 12 5 5 0 1 0 8 0 sosppl 128 83 0 83 8 8 0 1 0 8 0 sockpl 384 5295 0 5271 20 16 4 7 0 8 0 mcl64k 65536 325 0 0 39 8 31 35 0 8 1 mcl16k 16384 12 0 0 2 0 2 2 0 8 0 mcl12k 12288 24 0 0 2 0 2 2 0 8 0 mcl9k 9216 12 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 27 0 0 3 1 2 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 187 0 0 23 1 22 23 0 8 0 mtagpl 80 52 0 0 1 0 1 1 0 8 0 mbufpl 256 896 0 0 54 0 54 54 0 8 0 bufpl 256 13358 0 6300 442 0 442 442 0 8 0 anonpl 16 320723 0 302690 157 68 89 103 0 124 0 amapchunkpl 152 18608 0 18450 37 29 8 21 0 158 0 amappl16 192 14539 0 13337 128 66 62 72 0 8 0 amappl15 184 9 0 8 1 0 1 1 0 8 0 amappl14 176 229 0 223 1 0 1 1 0 8 0 amappl13 168 22 0 21 1 0 1 1 0 8 0 amappl12 160 22 0 21 1 0 1 1 0 8 0 amappl11 152 627 0 612 1 0 1 1 0 8 0 amappl10 144 603 0 601 1 0 1 1 0 8 0 amappl9 136 1640 0 1635 1 0 1 1 0 8 0 amappl8 128 1219 0 1177 2 0 2 2 0 8 0 amappl7 120 677 0 668 1 0 1 1 0 8 0 amappl6 112 616 0 604 1 0 1 1 0 8 0 amappl5 104 241 0 227 1 0 1 1 0 8 0 amappl4 96 2985 0 2946 3 1 2 2 0 8 1 amappl3 88 300 0 295 1 0 1 1 0 8 0 amappl2 80 19689 0 19610 3 1 2 3 0 8 0 amappl1 72 68511 0 68072 26 16 10 20 0 8 0 amappl 80 8699 0 8644 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 136 0 7 3 0 3 3 0 8 0 uaddrrnd 24 2677 0 2638 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2677 0 2638 1 0 1 1 0 8 0 vmmpekpl 168 24933 0 24897 2 0 2 2 0 8 0 vmmpepl 168 341022 0 338591 261 110 151 161 0 357 37 vmsppl 368 2653 0 2638 2 0 2 2 0 8 0 pdppl 4096 5361 0 5306 9 1 8 8 0 8 0 pvpl 32 849438 0 829686 295 92 203 228 0 265 9 pmappl 232 2676 0 2645 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 717 0 32 20 0 20 20 0 8 0