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 467516 62893 0 0 0 0 syz-executor.0 *135676 62893 0 0 0x4000000 1K syz-executor.0 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(ffff800022d789a0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b58000,fffffd806500d468,10,ffff8000000256c0,ffff800022d78c08) at alltraps_kern_meltdown+0x7b 0(b,ffff800022d78b68,83,ffff800022d78c08,0,b) at 0 rt_clone(ffff800022d78c78,fffffd806588eee0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806588eee0,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806588eee0,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800022d78d50,fffffd806d5ee020,fffffd806588ee60) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806588ee60,fffffd806d5ee000) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8062fa2de0,4,0,fffffd806d5ee000,0,ffff800020ace020) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ace020,ffff800022d78ef8,ffff800022d78f40) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800022d78fc0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d78fc0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,f01f29010) at Xsyscall+0x128 end of kernel end trace frame: 0x11e0a90f60, 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(ffff800022d789a0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b58000,fffffd806500d468,10,ffff8000000256c0,ffff800022d78c08) at alltraps_kern_meltdown+0x7b 0(b,ffff800022d78b68,83,ffff800022d78c08,0,b) at 0 rt_clone(ffff800022d78c78,fffffd806588eee0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806588eee0,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806588eee0,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800022d78d50,fffffd806d5ee020,fffffd806588ee60) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806588ee60,fffffd806d5ee000) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8062fa2de0,4,0,fffffd806d5ee000,0,ffff800020ace020) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ace020,ffff800022d78ef8,ffff800022d78f40) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800022d78fc0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d78fc0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,f01f29010) at Xsyscall+0x128 end of kernel end trace frame: 0x11e0a90f60, count: -14 ddb{1}> show registers rdi 0xffffffff81e07517 db_enter+0x17 rsi 0x2a38 __ALIGN_SIZE+0x1a38 rbp 0xffff800022d78810 rbx 0xffff800022d788c0 rdx 0x2a39 __ALIGN_SIZE+0x1a39 rcx 0xffff800020b58000 rax 0xffff800020b58000 r8 0xffffffff817fb7bf kprintf+0x16f r9 0x1 r10 0x25 r11 0xe9f58ca6a22aade r12 0x3000000008 r13 0xffff800022d78820 r14 0x100 r15 0x1 rip 0xffffffff81e07518 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022d78800 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=135676 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace788,0xffffffff826286b0 process=0xffff800020add880 user=0xffff800022d74000, vmspace=0xfffffd807f00a000 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 62893 467516 1 0 7 0 syz-executor.0 *62893 135676 1 0 7 0x4000000 syz-executor.0 37257 281144 81599 0 3 0x2 biowait syz-executor.1 91141 207013 0 0 3 0x14200 acct acct 93031 518774 0 0 3 0x14200 bored sosplice 81599 464187 89903 0 3 0x82 thrsleep syz-fuzzer 81599 176490 89903 0 3 0x4000082 nanosleep syz-fuzzer 81599 250307 89903 0 3 0x4000082 thrsleep syz-fuzzer 81599 128871 89903 0 3 0x4000082 thrsleep syz-fuzzer 81599 368236 89903 0 3 0x4000082 thrsleep syz-fuzzer 81599 442510 89903 0 3 0x4000082 thrsleep syz-fuzzer 81599 1161 89903 0 3 0x4000082 thrsleep syz-fuzzer 81599 519295 89903 0 3 0x4000082 thrsleep syz-fuzzer 81599 150747 89903 0 3 0x4000082 thrsleep syz-fuzzer 81599 144314 89903 0 3 0x4000082 kqread syz-fuzzer 89903 145893 59192 0 3 0x10008a pause ksh 59192 218364 75507 0 3 0x92 select sshd 13157 85420 1 0 3 0x100083 ttyin getty 75507 397199 1 0 3 0x80 select sshd 95399 62539 43582 74 3 0x100092 bpf pflogd 43582 26317 1 0 3 0x80 netio pflogd 67711 10277 26974 73 3 0x100090 kqread syslogd 26974 208806 1 0 3 0x100082 netio syslogd 70938 174159 1 77 3 0x100090 poll dhclient 28667 225329 1 0 3 0x80 poll dhclient 52290 192729 0 0 3 0x14200 pgzero zerothread 89217 439279 0 0 3 0x14200 aiodoned aiodoned 30305 461455 0 0 3 0x14200 syncer update 90923 181621 0 0 3 0x14200 cleaner cleaner 55079 487774 0 0 3 0x14200 reaper reaper 56292 19584 0 0 3 0x14200 pgdaemon pagedaemon 78487 168837 0 0 3 0x14200 bored crynlk 70560 370234 0 0 3 0x14200 bored crypto 9710 331268 0 0 3 0x40014200 acpi0 acpi0 87305 476425 0 0 3 0x40014200 idle1 59986 419931 0 0 3 0x14200 bored softnet 56489 243696 0 0 3 0x14200 bored systqmp 51898 451999 0 0 3 0x14200 bored systq 9699 376376 0 0 3 0x40014200 bored softclock 33899 489581 0 0 3 0x40014200 idle0 15534 383612 0 0 3 0x14200 bored smr 1 84719 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 62893 (syz-executor.0) thread 0xffff800020ace020 (135676) exclusive rwlock netlock r = 0 (0xffffffff82485b08) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 uvn_io+0x3b2 sys/uvm/uvm_vnode.c:1206 #2 uvn_get+0x226 sys/uvm/uvm_vnode.c:1049 #3 uvm_fault+0x11cc sys/uvm/uvm_fault.c:1023 #4 pageflttrap+0x20b sys/arch/amd64/amd64/trap.c:199 #5 kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 #6 alltraps_kern_meltdown+0x7b #7 copyin+0x4b #8 sys_connect+0x9c sys/kern/uipc_syscalls.c:367 #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 kernel_lock &kernel_lock r = 2 (0xffffffff826408b0) #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 37257 (syz-executor.1) thread 0xffff800020acf658 (281144) exclusive rrwlock inode r = 0 (0xfffffd8064cc2700) #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 (0xfffffd8064cc2e70) #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 9597 6442K 7014K 78643K 14947 0 0 pcb 13 10K 12K 78643K 352 0 0 rtable 105 12K 12K 78643K 1186 0 0 ifaddr 90 18K 19K 78643K 378 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1538 0 0 iov 0 0K 32K 78643K 1531 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1208 76K 77K 78643K 2998 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 12 0 0 VM map 2 1K 1K 78643K 9 0 0 sem 12 1K 1K 78643K 12 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 4 9K 25K 78643K 1758 0 0 sigio 0 0K 0K 78643K 22 0 0 proc 62 63K 95K 78643K 907 0 0 subproc 32 2K 2K 78643K 153 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 158 0 0 in_multi 25 1K 2K 78643K 223 0 0 ether_multi 1 0K 0K 78643K 11 0 0 mrt 0 0K 0K 78643K 6 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 463 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 119 22K 32K 78643K 7430 0 0 UVM aobj 53 4K 5K 78643K 55 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 355 0 0 NDP 21 0K 0K 78643K 119 0 0 temp 235 3557K 3653K 78643K 56136 0 0 kqueue 0 0K 0K 78643K 2 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 41 0 34 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 120 0 118 1 0 1 1 0 8 0 rtentry 112 199 0 158 2 0 2 2 0 8 0 unpcb 120 1196 0 1185 2 1 1 2 0 8 0 syncache 264 10 0 10 4 4 0 1 0 8 0 tcpqe 32 6740 0 6740 3 3 0 2 0 8 0 tcpcb 544 779 0 774 13 12 1 12 0 8 0 inpcb 280 1993 0 1984 15 13 2 9 0 8 0 rttmr 72 2 0 2 2 2 0 1 0 8 0 nd6 48 28 0 26 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 1 0 1 0 8 0 ppxss 1128 45 0 45 9 9 0 1 0 8 0 pffrag 232 11 0 11 5 5 0 1 0 482 0 pffrnode 88 11 0 11 5 5 0 1 0 8 0 pffrent 40 24 0 24 5 5 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 124 0 98 1 0 1 1 0 8 0 pfstkey 112 125 0 99 2 0 2 2 0 8 0 pfstate 328 125 0 99 5 1 4 5 0 8 1 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 827 0 642 18 4 14 16 0 8 0 art_table 32 828 0 642 2 0 2 2 0 8 0 art_node 16 197 0 160 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 53 0 2 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4528 0 3131 46 0 46 46 0 8 0 ffsino 272 4528 0 3131 95 0 95 95 0 8 0 nchpl 144 7407 0 6935 61 39 22 61 0 8 0 uvmvnodes 72 5629 0 0 103 0 103 103 0 8 0 vnodes 208 5629 0 0 297 0 297 297 0 8 0 namei 1024 30700 0 30700 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 7 0 7 4 4 0 1 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 21726 0 21725 15 14 1 7 0 8 0 plimitpl 152 164 0 156 1 0 1 1 0 8 0 sigapl 432 1937 0 1923 3 1 2 3 0 8 0 futexpl 56 36554 0 36554 1 0 1 1 0 8 1 knotepl 112 491 0 472 4 3 1 3 0 8 0 kqueuepl 104 562 0 560 5 4 1 4 0 8 0 pipepl 112 1100 0 1083 4 3 1 2 0 8 0 fdescpl 488 1938 0 1923 3 0 3 3 0 8 0 filepl 152 19269 0 19169 23 18 5 13 0 8 1 lockfpl 104 2053 0 2052 1 0 1 1 0 8 0 lockfspl 48 519 0 518 1 0 1 1 0 8 0 sessionpl 112 25 0 14 1 0 1 1 0 8 0 pgrppl 48 34 0 23 1 0 1 1 0 8 0 ucredpl 96 5996 0 5987 1 0 1 1 0 8 0 zombiepl 144 1923 0 1922 3 2 1 1 0 8 0 processpl 896 1955 0 1922 4 0 4 4 0 8 0 procpl 632 6283 0 6240 5 0 5 5 0 8 0 srpgc 64 10 0 10 4 4 0 1 0 8 0 sosppl 128 22 0 22 5 5 0 1 0 8 0 sockpl 384 3322 0 3301 24 21 3 14 0 8 0 mcl64k 65536 269 0 0 34 3 31 34 0 8 0 mcl16k 16384 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 16 0 0 2 0 2 2 0 8 0 mcl9k 9216 7 0 0 1 0 1 1 0 8 0 mcl8k 8192 12 0 0 2 0 2 2 0 8 0 mcl4k 4096 10 0 0 2 0 2 2 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 256 0 0 29 2 27 29 0 8 0 mtagpl 80 52 0 0 1 0 1 1 0 8 0 mbufpl 256 654 0 0 31 0 31 31 0 8 0 bufpl 256 11239 0 4191 441 0 441 441 0 8 0 anonpl 16 214808 0 198371 121 39 82 84 0 124 11 amapchunkpl 152 14290 0 14181 57 47 10 19 0 158 4 amappl16 192 9968 0 8983 105 48 57 61 0 8 7 amappl15 184 17 0 16 3 2 1 1 0 8 0 amappl14 176 161 0 158 2 1 1 1 0 8 0 amappl13 168 13 0 12 1 0 1 1 0 8 0 amappl12 160 157 0 157 3 3 0 1 0 8 0 amappl11 152 551 0 535 1 0 1 1 0 8 0 amappl10 144 368 0 360 1 0 1 1 0 8 0 amappl9 136 1105 0 1099 1 0 1 1 0 8 0 amappl8 128 655 0 619 2 0 2 2 0 8 0 amappl7 120 416 0 410 1 0 1 1 0 8 0 amappl6 112 550 0 536 1 0 1 1 0 8 0 amappl5 104 368 0 354 1 0 1 1 0 8 0 amappl4 96 1962 0 1931 1 0 1 1 0 8 0 amappl3 88 510 0 504 1 0 1 1 0 8 0 amappl2 80 14234 0 14164 4 2 2 3 0 8 0 amappl1 72 53220 0 52781 26 16 10 20 0 8 0 amappl 80 6643 0 6607 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 54 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1945 0 1923 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1945 0 1923 1 0 1 1 0 8 0 vmmpekpl 168 19403 0 19368 2 0 2 2 0 8 0 vmmpepl 168 248852 0 246784 256 133 123 131 0 357 24 vmsppl 368 1937 0 1923 2 0 2 2 0 8 0 pdppl 4096 3897 0 3860 7 1 6 6 0 8 1 pvpl 32 601559 0 581478 301 105 196 199 0 265 30 pmappl 232 1944 0 1930 4 3 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 686 0 27 20 0 20 20 0 8 0