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 * 86522 92760 0 0 0x4000000 1K syz-executor.0 97704 19102 0 0 0 0 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(ffff80002398d3b0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020d5c000,fffffd8066c2de08,10,ffff80000005b870,ffff80002398d618) at alltraps_kern_meltdown+0x7b 0(b,ffff80002398d578,83,ffff80002398d618,0,b) at 0 rt_clone(ffff80002398d688,fffffd806f6d15f8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d15f8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d15f8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff80002398d760,fffffd807b817f20,fffffd806f6d1578) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d1578,fffffd807b817f00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8065ce7020,4,0,fffffd807b817f00,0,ffff800023b893e0) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800023b893e0,ffff80002398d908,ffff80002398d950) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff80002398d9d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff80002398d9d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffecf,0,3,b2664f85010) at Xsyscall+0x128 end of kernel end trace frame: 0xb28a3b2f730, 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(ffff80002398d3b0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020d5c000,fffffd8066c2de08,10,ffff80000005b870,ffff80002398d618) at alltraps_kern_meltdown+0x7b 0(b,ffff80002398d578,83,ffff80002398d618,0,b) at 0 rt_clone(ffff80002398d688,fffffd806f6d15f8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d15f8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d15f8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff80002398d760,fffffd807b817f20,fffffd806f6d1578) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d1578,fffffd807b817f00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8065ce7020,4,0,fffffd807b817f00,0,ffff800023b893e0) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800023b893e0,ffff80002398d908,ffff80002398d950) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff80002398d9d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff80002398d9d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffecf,0,3,b2664f85010) at Xsyscall+0x128 end of kernel end trace frame: 0xb28a3b2f730, count: -14 ddb{1}> show registers rdi 0xffffffff81e07517 db_enter+0x17 rsi 0x1f7c __ALIGN_SIZE+0xf7c rbp 0xffff80002398d220 rbx 0xffff80002398d2d0 rdx 0x1f7d __ALIGN_SIZE+0xf7d rcx 0xffff800020d5c000 rax 0xffff800020d5c000 r8 0xffffffff817fb7bf kprintf+0x16f r9 0x1 r10 0x25 r11 0xeced8068cf2c69eb r12 0x3000000008 r13 0xffff80002398d230 r14 0x100 r15 0x1 rip 0xffffffff81e07518 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002398d210 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=86522 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff800023b88ef0,0xffffffff826286b0 process=0xffff800020addc00 user=0xffff800023988000, vmspace=0xfffffd807f00ab80 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 92760 159387 26570 0 2 0 syz-executor.0 *92760 86522 26570 0 7 0x4000000 syz-executor.0 19102 97704 43932 0 7 0 syz-executor.1 19102 23194 43932 0 2 0x4000000 syz-executor.1 19102 397674 43932 0 2 0x4000000 syz-executor.1 43932 248858 95738 0 3 0x82 nanosleep syz-executor.1 26570 13912 95738 0 3 0x82 nanosleep syz-executor.0 35616 439749 1 0 3 0x100083 ttyin getty 28070 49436 0 0 3 0x14200 bored sosplice 95738 322 61063 0 3 0x82 thrsleep syz-fuzzer 95738 299214 61063 0 3 0x4000082 nanosleep syz-fuzzer 95738 460746 61063 0 3 0x4000082 thrsleep syz-fuzzer 95738 249468 61063 0 3 0x4000082 thrsleep syz-fuzzer 95738 516196 61063 0 3 0x4000082 thrsleep syz-fuzzer 95738 416548 61063 0 3 0x4000082 thrsleep syz-fuzzer 95738 395634 61063 0 3 0x4000082 thrsleep syz-fuzzer 95738 39051 61063 0 3 0x4000082 thrsleep syz-fuzzer 95738 25306 61063 0 3 0x4000082 thrsleep syz-fuzzer 95738 463953 61063 0 3 0x4000082 kqread syz-fuzzer 61063 355172 58323 0 3 0x10008a pause ksh 58323 69180 50076 0 3 0x92 select sshd 50076 12065 1 0 3 0x80 select sshd 96383 26705 89512 74 3 0x100092 bpf pflogd 89512 461895 1 0 3 0x80 netio pflogd 46076 111572 93176 73 3 0x100090 kqread syslogd 93176 77583 1 0 3 0x100082 netio syslogd 79065 142924 1 77 3 0x100090 poll dhclient 71033 165767 1 0 3 0x80 poll dhclient 89466 261814 0 0 2 0x14200 zerothread 68505 179543 0 0 3 0x14200 aiodoned aiodoned 54696 493449 0 0 3 0x14200 syncer update 31275 202863 0 0 3 0x14200 cleaner cleaner 63090 497738 0 0 3 0x14200 reaper reaper 41587 367725 0 0 3 0x14200 pgdaemon pagedaemon 27139 306190 0 0 3 0x14200 bored crynlk 45474 27977 0 0 3 0x14200 bored crypto 25190 223601 0 0 3 0x40014200 acpi0 acpi0 32777 375198 0 0 3 0x40014200 idle1 68456 114079 0 0 3 0x14200 bored softnet 89748 128921 0 0 3 0x14200 bored systqmp 87357 11912 0 0 3 0x14200 bored systq 58958 262195 0 0 3 0x40014200 bored softclock 61773 215201 0 0 3 0x40014200 idle0 28068 210164 0 0 3 0x14200 bored smr 1 419659 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 92760 (syz-executor.0) thread 0xffff800023b893e0 (86522) exclusive rwlock netlock r = 0 (0xffffffff82485b08) #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 (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 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9609 7215K 8766K 78643K 27493 0 0 pcb 13 10K 12K 78643K 1780 0 0 rtable 91 12K 13K 78643K 2022 0 0 ifaddr 90 20K 23K 78643K 674 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1625 0 0 iov 0 0K 28K 78643K 701 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1233 77K 77K 78643K 6572 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 27 0 0 VM map 2 1K 1K 78643K 25 0 0 sem 12 1K 1K 78643K 1074 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 3695 0 0 sigio 0 0K 0K 78643K 37 0 0 proc 61 63K 95K 78643K 2892 0 0 subproc 32 2K 2K 78643K 255 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 226 0 0 in_multi 13 0K 2K 78643K 374 0 0 ether_multi 1 0K 0K 78643K 21 0 0 mrt 0 0K 0K 78643K 9 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 108 477K 477K 78643K 108 0 0 exec 0 0K 1K 78643K 736 0 0 pfkey data 0 0K 4K 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 122 23K 26K 78643K 13307 0 0 UVM aobj 90 7K 7K 78643K 102 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 599 0 0 NDP 22 0K 1K 78643K 211 0 0 temp 243 3557K 4196K 78643K 113733 0 0 kqueue 0 0K 0K 78643K 12 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 65 0 60 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 225 0 223 1 0 1 1 0 8 0 rtentry 112 325 0 294 2 0 2 2 0 8 0 unpcb 120 3819 0 3804 5 3 2 2 0 8 1 syncache 264 12 0 12 5 5 0 1 0 8 0 tcpqe 32 6192 0 6192 3 3 0 2 0 8 0 tcpcb 544 1186 0 1181 13 12 1 12 0 8 0 inpcb 280 4782 0 4774 24 22 2 9 0 8 1 rttmr 72 2 0 2 2 1 1 1 0 8 1 nd6 48 46 0 46 4 3 1 1 0 8 1 pkpcb 40 8 0 8 4 4 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 92 0 90 15 14 1 1 0 8 0 pffrag 232 54 0 54 12 12 0 1 0 482 0 pffrnode 88 54 0 54 12 12 0 1 0 8 0 pffrent 40 123 0 123 12 12 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 323 0 272 1 0 1 1 0 8 0 pfstkey 112 323 0 272 5 1 4 5 0 8 0 pfstate 328 323 0 271 14 5 9 14 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 3 0 1 3 1 2 2 0 8 0 art_heap4 256 1381 0 1231 32 18 14 15 0 8 4 art_table 32 1384 0 1232 2 0 2 2 0 8 0 art_node 16 320 0 291 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 6 3 2 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 1072 0 1062 1 0 1 1 0 8 0 shmpl 112 100 0 12 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7217 0 5801 46 0 46 46 0 8 0 ffsino 272 7217 0 5801 96 1 95 95 0 8 0 nchpl 144 12948 0 12494 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 49211 0 49211 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 23 0 23 9 9 0 1 0 8 0 scsiplug 64 8 0 8 5 5 0 1 0 8 0 scxspl 192 45463 0 45463 32 29 3 7 0 8 3 plimitpl 152 268 0 259 1 0 1 1 0 8 0 sigapl 432 3857 0 3841 4 2 2 3 0 8 0 futexpl 56 81447 0 81447 2 1 1 1 0 8 1 knotepl 112 663 0 644 3 2 1 3 0 8 0 kqueuepl 104 912 0 910 4 3 1 4 0 8 0 pipepl 112 2960 0 2941 11 10 1 2 0 8 0 fdescpl 488 3858 0 3841 3 0 3 3 0 8 0 filepl 152 33848 0 33743 25 19 6 14 0 8 1 lockfpl 104 1346 0 1345 1 0 1 1 0 8 0 lockfspl 48 435 0 434 1 0 1 1 0 8 0 sessionpl 112 32 0 21 1 0 1 1 0 8 0 pgrppl 48 63 0 52 1 0 1 1 0 8 0 ucredpl 96 5598 0 5589 1 0 1 1 0 8 0 zombiepl 144 3842 0 3842 4 3 1 1 0 8 1 processpl 896 3875 0 3842 4 0 4 4 0 8 0 procpl 632 11813 0 11768 5 0 5 5 0 8 0 srpgc 64 21 0 21 8 7 1 1 0 8 1 sosppl 128 56 0 56 14 13 1 1 0 8 1 sockpl 384 8914 0 8889 28 23 5 14 0 8 2 mcl64k 65536 284 0 0 34 3 31 34 0 8 1 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 34 0 0 2 0 2 2 0 8 0 mcl9k 9216 10 0 0 1 0 1 1 0 8 0 mcl8k 8192 18 0 0 3 0 3 3 0 8 0 mcl4k 4096 15 0 0 2 0 2 2 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 224 0 0 26 5 21 26 0 8 0 mtagpl 80 62 0 0 1 0 1 1 0 8 0 mbufpl 256 535 0 0 23 0 23 23 0 8 0 bufpl 256 16292 0 9244 441 0 441 441 0 8 0 anonpl 16 425712 0 409600 170 100 70 84 0 124 1 amapchunkpl 152 25471 0 25357 64 52 12 19 0 158 5 amappl16 192 22232 0 21303 150 102 48 59 0 8 1 amappl15 184 74 0 74 2 2 0 1 0 8 0 amappl14 176 106 0 105 2 1 1 1 0 8 0 amappl13 168 1701 0 1699 4 3 1 1 0 8 0 amappl12 160 503 0 501 1 0 1 1 0 8 0 amappl11 152 260 0 242 1 0 1 1 0 8 0 amappl10 144 484 0 480 1 0 1 1 0 8 0 amappl9 136 897 0 889 1 0 1 1 0 8 0 amappl8 128 442 0 399 2 0 2 2 0 8 0 amappl7 120 561 0 553 1 0 1 1 0 8 0 amappl6 112 254 0 240 1 0 1 1 0 8 0 amappl5 104 742 0 727 1 0 1 1 0 8 0 amappl4 96 4295 0 4260 1 0 1 1 0 8 0 amappl3 88 683 0 678 1 0 1 1 0 8 0 amappl2 80 30775 0 30694 4 2 2 3 0 8 0 amappl1 72 92113 0 91646 27 17 10 21 0 8 0 amappl 80 12306 0 12266 1 0 1 1 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 101 0 12 2 0 2 2 0 8 0 uaddrrnd 24 3881 0 3841 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3881 0 3841 1 0 1 1 0 8 0 vmmpekpl 168 35093 0 35061 2 0 2 2 0 8 0 vmmpepl 168 484903 0 482696 334 215 119 132 0 357 21 vmsppl 368 3857 0 3841 2 0 2 2 0 8 0 pdppl 4096 7769 0 7728 7 1 6 6 0 8 0 pvpl 32 1397414 0 1377955 361 187 174 202 0 265 11 pmappl 232 3880 0 3864 10 9 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 696 0 47 19 0 19 19 0 8 0