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 214152 67377 0 0 0 0 syz-executor.0 *431196 67377 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(ffff800023bd1700) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800021d6c000,fffffd80657e6e78,10,ffff80000005b6f0,ffff800023bd1968) at alltraps_kern_meltdown+0x7b 0(b,ffff800023bd18c8,83,ffff800023bd1968,0,b) at 0 rt_clone(ffff800023bd19d8,fffffd806f6d2940,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d2940,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d2940,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023bd1ab0,fffffd806d00ab20,fffffd806f6d28c0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d28c0,fffffd806d00ab00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd807cdcb628,4,0,fffffd806d00ab00,0,ffff800020ab13d8) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ab13d8,ffff800023bd1c58,ffff800023bd1ca0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023bd1d20) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bd1d20) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,1cc6d55e010) at Xsyscall+0x128 end of kernel end trace frame: 0x1cf0875fd60, 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(ffff800023bd1700) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800021d6c000,fffffd80657e6e78,10,ffff80000005b6f0,ffff800023bd1968) at alltraps_kern_meltdown+0x7b 0(b,ffff800023bd18c8,83,ffff800023bd1968,0,b) at 0 rt_clone(ffff800023bd19d8,fffffd806f6d2940,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d2940,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d2940,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023bd1ab0,fffffd806d00ab20,fffffd806f6d28c0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d28c0,fffffd806d00ab00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd807cdcb628,4,0,fffffd806d00ab00,0,ffff800020ab13d8) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ab13d8,ffff800023bd1c58,ffff800023bd1ca0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023bd1d20) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bd1d20) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,1cc6d55e010) at Xsyscall+0x128 end of kernel end trace frame: 0x1cf0875fd60, count: -14 ddb{1}> show registers rdi 0xffffffff814c4807 db_enter+0x17 rsi 0x1d44 __ALIGN_SIZE+0xd44 rbp 0xffff800023bd1570 rbx 0xffff800023bd1620 rdx 0x1d45 __ALIGN_SIZE+0xd45 rcx 0xffff800021d6c000 rax 0xffff800021d6c000 r8 0xffffffff8141f94f kprintf+0x16f r9 0x1 r10 0x25 r11 0xf2e1783a3f2b0857 r12 0x3000000008 r13 0xffff800023bd1580 r14 0x100 r15 0x1 rip 0xffffffff814c4808 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023bd1560 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=431196 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0290,0xffffffff8265b7c8 process=0xffff800020a8a390 user=0xffff800023bcc000, vmspace=0xfffffd806e7b1178 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 67377 214152 95361 0 7 0 syz-executor.0 *67377 431196 95361 0 7 0x4000000 syz-executor.0 15667 363 7920 0 3 0x80 nanosleep syz-executor.1 15667 470714 7920 0 3 0x4000080 ttyin syz-executor.1 15667 429707 7920 0 3 0x4000080 fsleep syz-executor.1 95361 343458 44145 0 3 0x82 nanosleep syz-executor.0 7920 181846 44145 0 3 0x82 nanosleep syz-executor.1 2622 186987 1 0 3 0x100083 ttyin getty 41584 467480 0 0 3 0x14200 bored sosplice 9588 177530 0 0 3 0x14200 acct acct 44145 78220 31380 0 3 0x82 thrsleep syz-fuzzer 44145 454357 31380 0 3 0x4000082 nanosleep syz-fuzzer 44145 368260 31380 0 3 0x4000082 thrsleep syz-fuzzer 44145 379186 31380 0 3 0x4000082 thrsleep syz-fuzzer 44145 401534 31380 0 3 0x4000082 thrsleep syz-fuzzer 44145 522984 31380 0 3 0x4000082 thrsleep syz-fuzzer 44145 374407 31380 0 3 0x4000082 thrsleep syz-fuzzer 44145 25740 31380 0 3 0x4000082 thrsleep syz-fuzzer 44145 337652 31380 0 3 0x4000082 nanosleep syz-fuzzer 44145 100936 31380 0 3 0x4000082 thrsleep syz-fuzzer 44145 211950 31380 0 3 0x4000082 kqread syz-fuzzer 31380 220367 19718 0 3 0x10008a pause ksh 19718 511757 50488 0 3 0x92 select sshd 50488 21445 1 0 3 0x80 select sshd 95509 242011 65422 74 3 0x100092 bpf pflogd 65422 375 1 0 3 0x80 netio pflogd 74320 366463 22015 73 3 0x100090 kqread syslogd 22015 30420 1 0 3 0x100082 netio syslogd 84069 140743 1 77 3 0x100090 poll dhclient 77553 473351 1 0 3 0x80 poll dhclient 83303 218879 0 0 3 0x14200 pgzero zerothread 53901 187393 0 0 3 0x14200 aiodoned aiodoned 8126 481580 0 0 3 0x14200 syncer update 63190 14857 0 0 3 0x14200 cleaner cleaner 99049 514380 0 0 3 0x14200 reaper reaper 10716 113496 0 0 3 0x14200 pgdaemon pagedaemon 55751 395518 0 0 3 0x14200 bored crynlk 63575 293606 0 0 3 0x14200 bored crypto 47345 199136 0 0 3 0x40014200 acpi0 acpi0 53774 276478 0 0 3 0x40014200 idle1 53142 421283 0 0 3 0x14200 bored softnet 79865 136853 0 0 3 0x14200 bored systqmp 9718 72116 0 0 3 0x14200 bored systq 99435 405395 0 0 3 0x40014200 bored softclock 19014 332485 0 0 3 0x40014200 idle0 4463 394062 0 0 3 0x14200 bored smr 1 521853 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 67377 (syz-executor.0) thread 0xffff800020ab13d8 (431196) exclusive rwlock netlock r = 0 (0xffffffff824dc718) #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 (0xffffffff82648ec0) #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 9574 7075K 8621K 78643K 19174 0 0 pcb 13 10K 12K 78643K 394 0 0 rtable 99 13K 14K 78643K 1264 0 0 ifaddr 75 16K 19K 78643K 384 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1529 0 0 iov 0 0K 28K 78643K 309 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1231 77K 78K 78643K 3814 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 24 0 0 VM map 13 6K 7K 78643K 23 0 0 sem 11 1K 1K 78643K 12 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 1573 0 0 sigio 0 0K 0K 78643K 20 0 0 proc 61 63K 95K 78643K 994 0 0 subproc 32 2K 2K 78643K 204 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 95 0 0 in_multi 12 0K 2K 78643K 230 0 0 ether_multi 1 0K 0K 78643K 19 0 0 mrt 0 0K 0K 78643K 11 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 531 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 148 109K 117K 78643K 6484 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 343 0 0 NDP 18 0K 0K 78643K 120 0 0 temp 214 3560K 4195K 78643K 28833 0 0 kqueue 0 0K 0K 78643K 20 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 39 0 35 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 144 0 142 1 0 1 1 0 8 0 rtentry 112 219 0 184 2 0 2 2 0 8 0 unpcb 120 1070 0 1056 6 4 2 2 0 8 1 syncache 264 12 0 12 4 4 0 1 0 8 0 tcpqe 32 9 0 9 3 3 0 1 0 8 0 tcpcb 544 835 0 830 13 12 1 11 0 8 0 inpcb 280 2433 0 2422 14 12 2 9 0 8 1 rttmr 72 2 0 2 1 1 0 1 0 8 0 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 6 0 6 1 1 0 1 0 8 0 nd6 48 31 0 31 2 1 1 1 0 8 1 pkpcb 40 8 0 8 4 4 0 1 0 8 0 ppxss 1128 45 0 45 5 4 1 1 0 8 1 pffrag 232 47 0 47 4 3 1 1 0 482 1 pffrnode 88 47 0 47 4 3 1 1 0 8 1 pffrent 40 1467 0 1467 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 133 0 74 1 0 1 1 0 8 0 pfstkey 112 133 0 74 3 0 3 3 0 8 0 pfstate 328 133 0 73 7 0 7 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 951 0 801 23 7 16 16 0 8 4 art_table 32 953 0 801 3 0 3 3 0 8 1 art_node 16 215 0 184 1 0 1 1 0 8 0 sysvmsgpl 40 37 0 20 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 10 0 1 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 3735 0 2323 46 0 46 46 0 8 0 ffsino 272 3735 0 2323 95 0 95 95 0 8 0 nchpl 144 6696 0 5089 61 0 61 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 22649 0 22649 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 12 0 1 2 0 2 2 0 8 0 vmpool 552 21 0 10 1 0 1 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 19322 0 19322 18 17 1 7 0 8 1 plimitpl 152 151 0 143 1 0 1 1 0 8 0 sigapl 432 1743 0 1727 4 2 2 3 0 8 0 futexpl 56 36960 0 36959 1 0 1 1 0 8 0 knotepl 112 421 0 402 2 1 1 2 0 8 0 kqueuepl 104 566 0 564 4 3 1 4 0 8 0 pipepl 112 1224 0 1205 2 1 1 2 0 8 0 fdescpl 488 1744 0 1727 3 0 3 3 0 8 0 filepl 152 15655 0 15549 19 13 6 14 0 8 1 lockfpl 104 558 0 557 1 0 1 1 0 8 0 lockfspl 48 197 0 196 1 0 1 1 0 8 0 sessionpl 112 30 0 19 1 0 1 1 0 8 0 pgrppl 48 46 0 35 1 0 1 1 0 8 0 ucredpl 96 1546 0 1537 1 0 1 1 0 8 0 zombiepl 144 1727 0 1727 1 0 1 1 0 8 1 processpl 896 1761 0 1727 5 1 4 5 0 8 0 procpl 632 5179 0 5132 5 0 5 5 0 8 0 srpgc 64 16 0 16 5 4 1 1 0 8 1 sosppl 128 46 0 46 7 6 1 1 0 8 1 sockpl 384 3675 0 3648 26 18 8 14 0 8 5 mcl64k 65536 25 0 0 4 1 3 3 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 7 0 0 1 0 1 1 0 8 0 mcl9k 9216 6 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 163 0 0 20 0 20 20 0 8 0 mtagpl 80 45 0 0 1 0 1 1 0 8 0 mbufpl 256 411 0 0 23 0 23 23 0 8 0 bufpl 256 10382 0 3324 442 0 442 442 0 8 0 anonpl 16 206538 0 185979 105 16 89 100 0 124 4 amapchunkpl 152 12464 0 12290 28 18 10 15 0 158 2 amappl16 192 8079 0 6938 77 18 59 70 0 8 0 amappl15 184 747 0 742 1 0 1 1 0 8 0 amappl14 176 109 0 104 1 0 1 1 0 8 0 amappl13 168 337 0 335 2 1 1 1 0 8 0 amappl12 160 199 0 199 3 3 0 1 0 8 0 amappl11 152 112 0 96 1 0 1 1 0 8 0 amappl10 144 211 0 204 1 0 1 1 0 8 0 amappl9 136 938 0 934 1 0 1 1 0 8 0 amappl8 128 511 0 463 2 0 2 2 0 8 0 amappl7 120 266 0 259 1 0 1 1 0 8 0 amappl6 112 78 0 66 1 0 1 1 0 8 0 amappl5 104 406 0 392 1 0 1 1 0 8 0 amappl4 96 2370 0 2331 1 0 1 1 0 8 0 amappl3 88 169 0 163 1 0 1 1 0 8 0 amappl2 80 12924 0 12839 3 1 2 3 0 8 0 amappl1 72 48401 0 47928 26 16 10 20 0 8 0 amappl 80 5626 0 5570 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 1765 0 1727 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1765 0 1727 1 0 1 1 0 8 0 vmmpekpl 168 18954 0 18920 3 0 3 3 0 8 0 vmmpepl 168 228525 0 226056 203 55 148 148 0 357 38 vmsppl 368 1743 0 1727 2 0 2 2 0 8 0 pdppl 4096 3537 0 3485 7 0 7 7 0 8 0 pvpl 32 589008 0 565329 249 38 211 232 0 265 18 pmappl 232 1764 0 1737 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 646 0 23 18 0 18 18 0 8 0