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 424287 50961 0 0 0 0 syz-executor.0 *258107 29637 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(ffff800020b3d8b0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b50000,fffffd8064fbc698,10,ffff80000005b2c0,ffff800020b3db18) at alltraps_kern_meltdown+0x7b 0(b,ffff800020b3da78,83,ffff800020b3db18,0,b) at 0 rt_clone(ffff800020b3db88,fffffd806f6d3eb8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d3eb8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d3eb8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800020b3dc60,fffffd806ffdeb20,fffffd806f6d3e38) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d3e38,fffffd806ffdeb00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8075959db0,4,0,fffffd806ffdeb00,0,ffff800020acf178) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020acf178,ffff800020b3de08,ffff800020b3de50) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800020b3ded0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b3ded0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffecf,0,3,6de5e2b7010) at Xsyscall+0x128 end of kernel end trace frame: 0x6e11a4d2c00, 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(ffff800020b3d8b0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b50000,fffffd8064fbc698,10,ffff80000005b2c0,ffff800020b3db18) at alltraps_kern_meltdown+0x7b 0(b,ffff800020b3da78,83,ffff800020b3db18,0,b) at 0 rt_clone(ffff800020b3db88,fffffd806f6d3eb8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d3eb8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d3eb8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800020b3dc60,fffffd806ffdeb20,fffffd806f6d3e38) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d3e38,fffffd806ffdeb00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8075959db0,4,0,fffffd806ffdeb00,0,ffff800020acf178) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020acf178,ffff800020b3de08,ffff800020b3de50) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800020b3ded0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b3ded0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffecf,0,3,6de5e2b7010) at Xsyscall+0x128 end of kernel end trace frame: 0x6e11a4d2c00, count: -14 ddb{1}> show registers rdi 0xffffffff812a1087 db_enter+0x17 rsi 0x2aeb __ALIGN_SIZE+0x1aeb rbp 0xffff800020b3d720 rbx 0xffff800020b3d7d0 rdx 0x2aec __ALIGN_SIZE+0x1aec rcx 0xffff800020b50000 rax 0xffff800020b50000 r8 0xffffffff81af3fcf kprintf+0x16f r9 0x1 r10 0x25 r11 0xf6a06ed48553663c r12 0x3000000008 r13 0xffff800020b3d730 r14 0x100 r15 0x1 rip 0xffffffff812a1088 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b3d710 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=258107 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020acea10,0xffff800020ace530 process=0xffff800020a4b888 user=0xffff800020b38000, vmspace=0xfffffd807f00b5c0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 50961 424287 97908 0 7 0 syz-executor.0 29637 143815 74250 0 2 0 syz-executor.1 *29637 258107 74250 0 7 0x4000000 syz-executor.1 74250 279612 9024 0 3 0x82 nanosleep syz-executor.1 97908 4497 9024 0 3 0x82 nanosleep syz-executor.0 19521 257912 1 0 3 0x100083 ttyin getty 70850 193846 0 0 3 0x14200 acct acct 87156 177572 0 0 3 0x14200 bored sosplice 9024 451319 50992 0 3 0x82 nanosleep syz-fuzzer 9024 440397 50992 0 3 0x4000082 nanosleep syz-fuzzer 9024 368876 50992 0 3 0x4000082 thrsleep syz-fuzzer 9024 33396 50992 0 3 0x4000082 thrsleep syz-fuzzer 9024 400079 50992 0 3 0x4000082 thrsleep syz-fuzzer 9024 272137 50992 0 3 0x4000082 thrsleep syz-fuzzer 9024 335230 50992 0 3 0x4000082 thrsleep syz-fuzzer 9024 260451 50992 0 3 0x4000082 thrsleep syz-fuzzer 9024 71622 50992 0 3 0x4000082 kqread syz-fuzzer 9024 472126 50992 0 3 0x4000082 thrsleep syz-fuzzer 50992 423641 60937 0 3 0x10008a pause ksh 60937 221789 61856 0 3 0x92 select sshd 61856 507579 1 0 3 0x80 select sshd 42614 511316 77320 74 3 0x100092 bpf pflogd 77320 100110 1 0 3 0x80 netio pflogd 14211 168088 68179 73 3 0x100090 kqread syslogd 68179 396268 1 0 3 0x100082 netio syslogd 99616 148006 1 77 3 0x100090 poll dhclient 75089 220719 1 0 3 0x80 poll dhclient 3030 427980 0 0 2 0x14200 zerothread 44823 421052 0 0 3 0x14200 aiodoned aiodoned 16254 450824 0 0 3 0x14200 syncer update 61079 409681 0 0 3 0x14200 cleaner cleaner 86665 434806 0 0 3 0x14200 reaper reaper 57088 349254 0 0 3 0x14200 pgdaemon pagedaemon 36336 65913 0 0 3 0x14200 bored crynlk 31765 446928 0 0 3 0x14200 bored crypto 62128 108662 0 0 3 0x40014200 acpi0 acpi0 87337 415429 0 0 3 0x40014200 idle1 49227 396879 0 0 3 0x14200 bored softnet 40907 412725 0 0 3 0x14200 bored systqmp 51071 187051 0 0 3 0x14200 bored systq 65430 169953 0 0 3 0x40014200 bored softclock 44648 401664 0 0 3 0x40014200 idle0 37753 139345 0 0 3 0x14200 bored smr 1 239909 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 29637 (syz-executor.1) thread 0xffff800020acf178 (258107) exclusive rwlock netlock r = 0 (0xffffffff824c5738) #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 (0xffffffff82660e88) #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 9637 6508K 14979K 78643K 61743 0 0 pcb 13 12K 14K 78643K 4380 0 0 rtable 146 14K 14K 78643K 13012 0 0 ifaddr 121 34K 40K 78643K 3793 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 11959 0 0 iov 0 0K 40K 78643K 4604 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1213 76K 77K 78643K 20546 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 241 0 0 VM map 2 1K 1K 78643K 104 0 0 sem 12 0K 0K 78643K 5644 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 22873 0 0 sigio 0 0K 1K 78643K 32958 0 0 proc 62 63K 95K 78643K 8211 0 0 subproc 32 2K 2K 78643K 2201 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 1216 0 0 in_multi 40 2K 3K 78643K 2505 0 0 ether_multi 1 0K 0K 78643K 105 0 0 mrt 0 0K 0K 78643K 172 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 120 530K 530K 78643K 120 0 0 exec 0 0K 1K 78643K 4192 0 0 pfkey data 0 0K 4K 78643K 7 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 157 25K 34K 78643K 81204 0 0 UVM aobj 130 6K 6K 78643K 140 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 4954 0 0 NDP 25 0K 1K 78643K 1271 0 0 temp 263 3557K 4197K 78643K 501003 0 0 kqueue 0 0K 0K 78643K 206 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 431 0 421 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1411 0 1409 1 0 1 1 0 8 0 rtentry 112 2269 0 2214 2 0 2 2 0 8 0 unpcb 120 8677 0 8651 10 8 2 2 0 8 0 syncache 264 76 0 76 36 36 0 1 0 8 0 tcpqe 32 5785 0 5785 5 5 0 1 0 8 0 tcpcb 544 8453 0 8448 58 57 1 15 0 8 0 inpcb 280 24305 0 24293 116 114 2 13 0 8 1 rttmr 72 51 0 50 10 9 1 1 0 8 0 ip6q 72 2 0 2 2 2 0 1 0 8 0 ip6af 40 1 0 1 1 1 0 1 0 8 0 nd6 48 352 0 349 5 4 1 1 0 8 0 pkpcb 40 107 0 107 40 40 0 1 0 8 0 swfcl 56 7 0 0 1 0 1 1 0 8 0 ppxss 1128 556 0 556 47 46 1 1 0 8 1 pffrag 232 307 0 307 67 67 0 1 0 482 0 pffrnode 88 307 0 307 67 67 0 1 0 8 0 pffrent 40 693 0 693 67 67 0 1 0 8 0 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfstitem 24 1407 0 1349 1 0 1 1 0 8 0 pfstkey 112 1409 0 1351 5 3 2 3 0 8 0 pfstate 328 1409 0 1351 16 10 6 9 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 43 0 41 26 24 2 3 0 8 0 art_heap4 256 10180 0 9825 80 56 24 24 0 8 0 art_table 32 10223 0 9866 9 5 4 4 0 8 0 art_node 16 2262 0 2210 1 0 1 1 0 8 0 sysvmsgpl 40 29 0 21 1 0 1 1 0 8 0 semapl 112 5642 0 5632 1 0 1 1 0 8 0 shmpl 112 138 0 10 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 35988 0 34458 51 1 50 50 0 8 0 ffsino 272 35988 0 34458 104 1 103 103 0 8 0 nchpl 144 74061 0 73595 61 40 21 61 0 8 0 uvmvnodes 72 9621 0 0 175 0 175 175 0 8 0 vnodes 208 9621 0 0 507 0 507 507 0 8 0 namei 1024 246242 0 246242 9 8 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 102 0 102 38 38 0 1 0 8 0 scsiplug 64 39 0 39 28 28 0 1 0 8 0 scxspl 192 224974 0 224974 129 128 1 7 0 8 1 plimitpl 152 1894 0 1886 1 0 1 1 0 8 0 sigapl 432 22699 0 22683 7 5 2 3 0 8 0 futexpl 56 546166 0 546166 4 3 1 1 0 8 1 knotepl 112 5216 0 5197 7 6 1 3 0 8 0 kqueuepl 104 5616 0 5614 13 12 1 4 0 8 0 pipepl 112 61220 0 61201 53 51 2 2 0 8 0 fdescpl 488 22700 0 22683 3 0 3 3 0 8 0 filepl 152 212906 0 212803 131 126 5 14 0 8 1 lockfpl 104 7905 0 7904 1 0 1 1 0 8 0 lockfspl 48 2677 0 2676 1 0 1 1 0 8 0 sessionpl 112 152 0 141 1 0 1 1 0 8 0 pgrppl 48 329 0 318 1 0 1 1 0 8 0 ucredpl 96 22700 0 22690 1 0 1 1 0 8 0 zombiepl 144 22684 0 22684 4 3 1 1 0 8 1 processpl 896 22718 0 22684 8 4 4 5 0 8 0 procpl 632 73825 0 73781 7 2 5 5 0 8 0 srpgc 64 175 0 175 56 56 0 1 0 8 0 sosppl 128 284 0 284 62 62 0 1 0 8 0 sockpl 384 34723 0 34687 94 89 5 23 0 8 0 mcl64k 65536 1262 0 0 137 105 32 67 0 8 1 mcl16k 16384 49 0 0 3 0 3 3 0 8 0 mcl12k 12288 81 0 0 3 1 2 2 0 8 0 mcl9k 9216 49 0 0 4 2 2 2 0 8 0 mcl8k 8192 49 0 0 4 1 3 3 0 8 0 mcl4k 4096 57 0 0 6 3 3 3 0 8 0 mcl2k2 2112 21 0 0 2 0 2 2 0 8 0 mcl2k 2048 190 0 0 15 3 12 15 0 8 0 mtagpl 80 342 0 0 1 0 1 1 0 8 0 mbufpl 256 1559 0 0 40 8 32 37 0 8 0 bufpl 256 76094 0 66473 602 0 602 602 0 8 0 anonpl 16 2432192 0 2415598 394 313 81 89 0 124 8 amapchunkpl 152 164031 0 163920 247 241 6 19 0 158 1 amappl16 192 114149 0 113214 451 393 58 59 0 8 8 amappl15 184 3846 0 3844 15 14 1 1 0 8 0 amappl14 176 4251 0 4249 2 1 1 1 0 8 0 amappl13 168 3948 0 3947 19 18 1 1 0 8 0 amappl12 160 2617 0 2611 1 0 1 1 0 8 0 amappl11 152 3066 0 3050 1 0 1 1 0 8 0 amappl10 144 2878 0 2872 1 0 1 1 0 8 0 amappl9 136 4823 0 4815 1 0 1 1 0 8 0 amappl8 128 4517 0 4442 3 0 3 3 0 8 0 amappl7 120 3412 0 3402 1 0 1 1 0 8 0 amappl6 112 2815 0 2799 1 0 1 1 0 8 0 amappl5 104 3939 0 3925 1 0 1 1 0 8 0 amappl4 96 23133 0 23093 7 5 2 2 0 8 1 amappl3 88 6478 0 6473 1 0 1 1 0 8 0 amappl2 80 179507 0 179429 3 1 2 3 0 8 0 amappl1 72 516606 0 516168 25 15 10 20 0 8 0 amappl 80 76351 0 76312 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 139 0 10 3 0 3 3 0 8 0 uaddrrnd 24 22802 0 22683 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 22802 0 22683 1 0 1 1 0 8 0 vmmpekpl 168 295956 0 295925 3 0 3 3 0 8 0 vmmpepl 168 2862553 0 2860342 747 616 131 140 0 357 23 vmsppl 368 22699 0 22683 2 0 2 2 0 8 0 pdppl 4096 45611 0 45570 7 1 6 6 0 8 0 pvpl 32 6423348 0 6403456 867 674 193 213 0 265 24 pmappl 232 22801 0 22785 31 30 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1100 0 270 25 1 24 24 0 8 0