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 352887 26317 0 0 0 0 syz-executor.1 *474101 26317 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(ffff800022be8e80) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800021580000,fffffd80651c9708,10,ffff8000000252e0,ffff800022be90e8) at alltraps_kern_meltdown+0x7b 0(b,ffff800022be9048,83,ffff800022be90e8,0,b) at 0 rt_clone(ffff800022be9158,fffffd80710490a8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd80710490a8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd80710490a8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800022be9230,fffffd8061eadd20,fffffd8071049028) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd8071049028,fffffd8061eadd00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8071047920,4,0,fffffd8061eadd00,0,ffff800020ace510) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ace510,ffff800022be93d8,ffff800022be9420) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800022be94a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022be94a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,263b387d010) at Xsyscall+0x128 end of kernel end trace frame: 0x266b282dc20, 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(ffff800022be8e80) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800021580000,fffffd80651c9708,10,ffff8000000252e0,ffff800022be90e8) at alltraps_kern_meltdown+0x7b 0(b,ffff800022be9048,83,ffff800022be90e8,0,b) at 0 rt_clone(ffff800022be9158,fffffd80710490a8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd80710490a8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd80710490a8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800022be9230,fffffd8061eadd20,fffffd8071049028) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd8071049028,fffffd8061eadd00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8071047920,4,0,fffffd8061eadd00,0,ffff800020ace510) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ace510,ffff800022be93d8,ffff800022be9420) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800022be94a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022be94a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,263b387d010) at Xsyscall+0x128 end of kernel end trace frame: 0x266b282dc20, count: -14 ddb{1}> show registers rdi 0xffffffff8120bfe7 db_enter+0x17 rsi 0x2478 __ALIGN_SIZE+0x1478 rbp 0xffff800022be8cf0 rbx 0xffff800022be8da0 rdx 0x2479 __ALIGN_SIZE+0x1479 rcx 0xffff800021580000 rax 0xffff800021580000 r8 0xffffffff81d00c7f kprintf+0x16f r9 0x1 r10 0x25 r11 0xc56922d33389efe6 r12 0x3000000008 r13 0xffff800022be8d00 r14 0x100 r15 0x1 rip 0xffffffff8120bfe8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022be8ce0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=474101 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020acf3e0,0xffffffff8266a260 process=0xffff800020a4bc08 user=0xffff800022be4000, vmspace=0xfffffd807f00a000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 26317 352887 17514 0 7 0 syz-executor.1 *26317 474101 17514 0 7 0x4000000 syz-executor.1 85377 138532 70557 0 3 0x2 biowait syz-executor.0 17514 398680 70557 0 3 0x82 nanosleep syz-executor.1 84952 301386 0 0 3 0x14200 acct acct 26311 59412 0 0 3 0x14200 bored sosplice 70557 416534 26995 0 3 0x82 thrsleep syz-fuzzer 70557 78439 26995 0 3 0x4000082 nanosleep syz-fuzzer 70557 312958 26995 0 3 0x4000082 thrsleep syz-fuzzer 70557 204295 26995 0 3 0x4000082 thrsleep syz-fuzzer 70557 465192 26995 0 3 0x4000082 thrsleep syz-fuzzer 70557 179029 26995 0 3 0x4000082 kqread syz-fuzzer 70557 424068 26995 0 3 0x4000082 thrsleep syz-fuzzer 70557 373358 26995 0 3 0x4000082 thrsleep syz-fuzzer 70557 428903 26995 0 3 0x4000082 thrsleep syz-fuzzer 70557 106382 26995 0 3 0x4000082 thrsleep syz-fuzzer 26995 163123 95570 0 3 0x10008a pause ksh 95570 180864 73167 0 3 0x92 select sshd 77966 114410 1 0 3 0x100083 ttyin getty 73167 46783 1 0 3 0x80 select sshd 87338 249975 87470 74 3 0x100092 bpf pflogd 87470 377970 1 0 3 0x80 netio pflogd 1146 48870 9765 73 3 0x100090 kqread syslogd 9765 522516 1 0 3 0x100082 netio syslogd 46144 407217 1 77 3 0x100090 poll dhclient 49369 20481 1 0 3 0x80 poll dhclient 69873 428319 0 0 3 0x14200 pgzero zerothread 11851 81292 0 0 3 0x14200 aiodoned aiodoned 18537 294911 0 0 3 0x14200 syncer update 4373 380955 0 0 3 0x14200 cleaner cleaner 19435 500778 0 0 3 0x14200 reaper reaper 4927 200370 0 0 3 0x14200 pgdaemon pagedaemon 48677 109196 0 0 3 0x14200 bored crynlk 51835 388544 0 0 3 0x14200 bored crypto 10511 400568 0 0 3 0x40014200 acpi0 acpi0 27864 118483 0 0 3 0x40014200 idle1 47820 307586 0 0 3 0x14200 bored softnet 93639 476902 0 0 3 0x14200 bored systqmp 65577 56831 0 0 3 0x14200 bored systq 65703 161963 0 0 3 0x40014200 bored softclock 64335 514408 0 0 3 0x40014200 idle0 7046 123108 0 0 3 0x14200 bored smr 1 12093 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 26317 (syz-executor.1) thread 0xffff800020ace510 (474101) exclusive rwlock netlock r = 0 (0xffffffff824c0f78) #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 (0xffffffff82623a10) #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 85377 (syz-executor.0) thread 0xffff800020acec78 (138532) exclusive rrwlock inode r = 0 (0xfffffd806f7474d8) #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 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 (0xfffffd806e1695f8) #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 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 9636 7561K 8021K 78643K 26517 0 0 pcb 15 10K 12K 78643K 776 0 0 rtable 114 6K 6K 78643K 2012 0 0 ifaddr 87 20K 22K 78643K 654 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1687 0 0 iov 0 0K 16K 78643K 636 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1224 77K 78K 78643K 6667 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 31 0 0 VM map 37 18K 18K 78643K 47 0 0 sem 12 0K 0K 78643K 1254 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 3051 0 0 sigio 0 0K 0K 78643K 49 0 0 proc 62 63K 95K 78643K 1412 0 0 subproc 32 2K 2K 78643K 272 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 231 0 0 in_multi 17 1K 2K 78643K 375 0 0 ether_multi 1 0K 0K 78643K 31 0 0 mrt 2 0K 0K 78643K 27 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 676 0 0 pfkey data 0 0K 0K 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 182 317K 326K 78643K 11838 0 0 UVM aobj 130 9K 9K 78643K 136 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 699 0 0 NDP 20 0K 0K 78643K 203 0 0 temp 229 3559K 4197K 78643K 85771 0 0 kqueue 0 0K 0K 78643K 38 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 58 0 53 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 279 0 276 1 0 1 1 0 8 0 rtentry 112 337 0 293 2 0 2 2 0 8 0 unpcb 120 1817 0 1800 3 2 1 2 0 8 0 syncache 264 14 0 14 6 6 0 1 0 8 0 tcpqe 32 42 0 42 4 4 0 1 0 8 0 tcpcb 544 4584 0 4573 30 26 4 14 0 8 3 inpcb 280 7739 0 7722 24 20 4 9 0 8 2 rttmr 72 9 0 9 7 7 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 44 0 44 2 2 0 1 0 8 0 pkpcb 40 26 0 26 8 8 0 1 0 8 0 ppxss 1128 90 0 90 6 5 1 1 0 8 1 pffrag 232 98 0 98 4 3 1 1 0 482 1 pffrnode 88 94 0 94 4 3 1 1 0 8 1 pffrent 40 3298 0 3298 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 362 0 252 2 0 2 2 0 8 0 pfstkey 112 362 0 252 5 0 5 5 0 8 0 pfstate 328 362 0 252 15 3 12 15 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 7 0 3 6 2 4 4 0 8 0 art_heap4 256 1411 0 1241 33 20 13 16 0 8 0 art_table 32 1418 0 1244 3 1 2 3 0 8 0 art_node 16 334 0 298 1 0 1 1 0 8 0 sysvmsgpl 40 37 0 22 1 0 1 1 0 8 0 semupl 112 5 0 5 2 2 0 1 0 8 0 semapl 112 1252 0 1242 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 6104 0 4689 46 0 46 46 0 8 0 ffsino 272 6104 0 4689 95 0 95 95 0 8 0 nchpl 144 11332 0 10849 61 40 21 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 41563 0 41563 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 35 0 0 5 0 5 5 0 8 0 vmpool 552 45 0 10 4 1 3 3 0 8 0 scsiplug 64 6 0 6 4 4 0 1 0 8 0 scxspl 192 34439 0 34438 24 23 1 6 0 8 0 plimitpl 152 239 0 231 1 0 1 1 0 8 0 sigapl 432 3207 0 3192 3 1 2 3 0 8 0 futexpl 56 84281 0 84281 2 1 1 1 0 8 1 knotepl 112 709 0 689 3 2 1 2 0 8 0 kqueuepl 104 1023 0 1020 6 5 1 4 0 8 0 pipepl 112 1900 0 1875 3 2 1 2 0 8 0 fdescpl 488 3208 0 3192 3 0 3 3 0 8 0 filepl 152 33351 0 33225 28 22 6 14 0 8 0 lockfpl 104 1252 0 1251 1 0 1 1 0 8 0 lockfspl 48 464 0 463 1 0 1 1 0 8 0 sessionpl 112 32 0 21 1 0 1 1 0 8 0 pgrppl 48 76 0 65 1 0 1 1 0 8 0 ucredpl 96 3023 0 3014 1 0 1 1 0 8 0 zombiepl 144 3192 0 3192 2 1 1 1 0 8 1 processpl 896 3225 0 3192 4 0 4 4 0 8 0 procpl 632 10285 0 10242 5 0 5 5 0 8 0 srpgc 64 23 0 23 9 9 0 1 0 8 0 sosppl 128 187 0 181 9 8 1 1 0 8 0 sockpl 384 9897 0 9860 43 36 7 14 0 8 3 mcl64k 65536 28 0 0 3 0 3 3 0 8 0 mcl16k 16384 14 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 14 0 0 1 0 1 1 0 8 0 mcl8k 8192 29 0 0 4 2 2 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 183 0 0 21 3 18 21 0 8 1 mtagpl 80 110 0 0 2 0 2 2 0 8 0 mbufpl 256 794 0 0 48 0 48 48 0 8 0 bufpl 256 14361 0 7303 442 0 442 442 0 8 0 anonpl 16 363739 0 342207 142 39 103 103 0 124 12 amapchunkpl 152 22308 0 22116 45 32 13 15 0 158 4 amappl16 192 16298 0 15082 116 46 70 73 0 8 8 amappl15 184 74 0 73 1 0 1 1 0 8 0 amappl14 176 1489 0 1481 1 0 1 1 0 8 0 amappl13 168 54 0 54 2 2 0 1 0 8 0 amappl12 160 214 0 213 2 1 1 1 0 8 0 amappl11 152 427 0 411 1 0 1 1 0 8 0 amappl10 144 773 0 766 1 0 1 1 0 8 0 amappl9 136 930 0 927 1 0 1 1 0 8 0 amappl8 128 518 0 467 2 0 2 2 0 8 0 amappl7 120 840 0 831 1 0 1 1 0 8 0 amappl6 112 386 0 370 1 0 1 1 0 8 0 amappl5 104 480 0 465 1 0 1 1 0 8 0 amappl4 96 2840 0 2808 1 0 1 1 0 8 0 amappl3 88 2140 0 2128 1 0 1 1 0 8 0 amappl2 80 24044 0 23967 3 1 2 3 0 8 0 amappl1 72 81043 0 80606 25 15 10 20 0 8 0 amappl 80 10799 0 10731 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 135 0 6 3 0 3 3 0 8 0 uaddrrnd 24 3253 0 3192 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3253 0 3192 1 0 1 1 0 8 0 vmmpekpl 168 30257 0 30215 2 0 2 2 0 8 0 vmmpepl 168 412862 0 410403 266 128 138 157 0 357 25 vmsppl 368 3207 0 3192 2 0 2 2 0 8 0 pdppl 4096 6513 0 6439 11 1 10 10 0 8 0 pvpl 32 998003 0 974061 320 89 231 231 0 265 34 pmappl 232 3252 0 3202 5 1 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 708 0 57 19 0 19 19 0 8 0