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 190157 21505 0 0 0 0 syz-executor.1 *114801 21505 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(ffff8000219a1280) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800021596000,fffffd806ca1b2a8,10,ffff80000005b3d0,ffff8000219a14e8) at alltraps_kern_meltdown+0x7b 0(b,ffff8000219a1448,83,ffff8000219a14e8,0,b) at 0 rt_clone(ffff8000219a1558,fffffd806f6c9828,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6c9828,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6c9828,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff8000219a1630,fffffd8068778120,fffffd806f6c97a8) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6c97a8,fffffd8068778100) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd80670a91b8,4,0,fffffd8068778100,0,ffff800020ace798) at udp_usrreq+0x560 sys_connect(ffff800020ace798,ffff8000219a17b8,ffff8000219a1800) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000219a1880) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000219a1880) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,9d9bbda9010) at Xsyscall+0x128 end of kernel end trace frame: 0x9dc732e7ca0, 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(ffff8000219a1280) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800021596000,fffffd806ca1b2a8,10,ffff80000005b3d0,ffff8000219a14e8) at alltraps_kern_meltdown+0x7b 0(b,ffff8000219a1448,83,ffff8000219a14e8,0,b) at 0 rt_clone(ffff8000219a1558,fffffd806f6c9828,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6c9828,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6c9828,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff8000219a1630,fffffd8068778120,fffffd806f6c97a8) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6c97a8,fffffd8068778100) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd80670a91b8,4,0,fffffd8068778100,0,ffff800020ace798) at udp_usrreq+0x560 sys_connect(ffff800020ace798,ffff8000219a17b8,ffff8000219a1800) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000219a1880) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000219a1880) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,9d9bbda9010) at Xsyscall+0x128 end of kernel end trace frame: 0x9dc732e7ca0, count: -14 ddb{1}> show registers rdi 0xffffffff81823987 db_enter+0x17 rsi 0x2178 __ALIGN_SIZE+0x1178 rbp 0xffff8000219a10f0 rbx 0xffff8000219a11a0 rdx 0x2179 __ALIGN_SIZE+0x1179 rcx 0xffff800021596000 rax 0xffff800021596000 r8 0xffffffff81cd62ff kprintf+0x16f r9 0x1 r10 0x25 r11 0xe3a61160498d1f79 r12 0x3000000008 r13 0xffff8000219a1100 r14 0x100 r15 0x1 rip 0xffffffff81823988 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000219a10e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=114801 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020acf178,0xffff800020acfb68 process=0xffff800020addc00 user=0xffff80002199c000, vmspace=0xfffffd807f00a2e0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 96857 521848 20760 0 2 0 syz-executor.0 96857 361554 20760 0 3 0x4000080 fsleep syz-executor.0 21505 190157 64215 0 7 0 syz-executor.1 *21505 114801 64215 0 7 0x4000000 syz-executor.1 64215 59895 1792 0 3 0x82 nanosleep syz-executor.1 20760 36299 1792 0 3 0x82 nanosleep syz-executor.0 91512 11248 1 0 3 0x100083 ttyopn getty 34273 262209 0 0 3 0x14200 bored sosplice 1792 73246 74784 0 3 0x82 thrsleep syz-fuzzer 1792 360147 74784 0 3 0x4000082 thrsleep syz-fuzzer 1792 328660 74784 0 3 0x4000082 thrsleep syz-fuzzer 1792 292231 74784 0 3 0x4000082 kqread syz-fuzzer 1792 435710 74784 0 3 0x4000082 thrsleep syz-fuzzer 1792 122622 74784 0 3 0x4000082 thrsleep syz-fuzzer 1792 430556 74784 0 3 0x4000082 thrsleep syz-fuzzer 1792 166028 74784 0 3 0x4000082 thrsleep syz-fuzzer 1792 114337 74784 0 3 0x4000082 thrsleep syz-fuzzer 1792 418970 74784 0 3 0x4000082 thrsleep syz-fuzzer 74784 368331 36327 0 3 0x10008a pause ksh 36327 395419 72237 0 3 0x92 select sshd 72237 191348 1 0 3 0x80 select sshd 16813 365342 39275 74 3 0x100092 bpf pflogd 39275 96287 1 0 3 0x80 netio pflogd 45669 489187 74817 73 3 0x100090 kqread syslogd 74817 518380 1 0 3 0x100082 netio syslogd 71092 466015 1 77 3 0x100090 poll dhclient 542 204481 1 0 3 0x80 poll dhclient 20536 501857 0 0 2 0x14200 zerothread 80475 388531 0 0 3 0x14200 aiodoned aiodoned 22326 307674 0 0 3 0x14200 syncer update 40378 423560 0 0 3 0x14200 cleaner cleaner 89042 173229 0 0 3 0x14200 reaper reaper 19435 446538 0 0 3 0x14200 pgdaemon pagedaemon 40758 355349 0 0 3 0x14200 bored crynlk 73084 425801 0 0 3 0x14200 bored crypto 96289 174475 0 0 3 0x40014200 acpi0 acpi0 31893 120462 0 0 3 0x40014200 idle1 27390 58563 0 0 3 0x14200 bored softnet 65063 43408 0 0 3 0x14200 bored systqmp 28224 205873 0 0 3 0x14200 bored systq 31453 273695 0 0 3 0x40014200 bored softclock 87865 34805 0 0 3 0x40014200 idle0 76660 162537 0 0 3 0x14200 bored smr 1 215340 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 21505 (syz-executor.1) thread 0xffff800020ace798 (114801) exclusive rwlock netlock r = 0 (0xffffffff824d6738) #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 (0xffffffff82666748) #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 9602 7101K 7620K 78643K 21573 0 0 pcb 13 10K 12K 78643K 960 0 0 rtable 109 13K 14K 78643K 3154 0 0 ifaddr 91 20K 22K 78643K 1051 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1724 0 0 iov 0 0K 40K 78643K 1149 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1221 77K 78K 78643K 5371 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 51 0 0 VM map 2 1K 1K 78643K 22 0 0 sem 12 1K 1K 78643K 301 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 6197 0 0 sigio 0 0K 0K 78643K 120 0 0 proc 61 63K 95K 78643K 2189 0 0 subproc 32 2K 2K 78643K 478 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 398 0 0 in_multi 23 1K 2K 78643K 543 0 0 ether_multi 1 0K 0K 78643K 21 0 0 mrt 0 0K 0K 78643K 34 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 1065 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 130 23K 32K 78643K 21138 0 0 UVM aobj 130 8K 8K 78643K 135 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 1065 0 0 NDP 21 0K 1K 78643K 331 0 0 temp 236 3561K 4201K 78643K 179099 0 0 kqueue 0 0K 0K 78643K 30 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 88 0 83 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 324 0 322 1 0 1 1 0 8 0 rtentry 112 515 0 479 2 0 2 2 0 8 0 unpcb 120 7304 0 7292 2 1 1 2 0 8 0 syncache 264 17 0 17 6 6 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 5654 0 5654 2 2 0 1 0 8 0 tcpcb 544 11981 0 11975 47 45 2 14 0 8 1 inpcb 280 15195 0 15183 36 33 3 9 0 8 2 rttmr 72 12 0 11 5 4 1 1 0 8 0 nd6 48 78 0 77 1 0 1 1 0 8 0 pkpcb 40 24 0 24 11 11 0 1 0 8 0 ppxss 1128 163 0 163 12 11 1 1 0 8 1 pffrag 232 74 0 74 15 15 0 1 0 482 0 pffrnode 88 74 0 74 15 15 0 1 0 8 0 pffrent 40 155 0 155 15 15 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 341 0 285 1 0 1 1 0 8 0 pfstkey 112 341 0 285 3 0 3 3 0 8 0 pfstate 328 341 0 285 7 0 7 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 12 0 10 11 8 3 3 0 8 1 art_heap4 256 2292 0 2079 32 17 15 19 0 8 0 art_table 32 2304 0 2089 5 2 3 3 0 8 0 art_node 16 513 0 479 1 0 1 1 0 8 0 sysvmsgpl 40 74 0 34 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 299 0 289 1 0 1 1 0 8 0 shmpl 112 133 0 5 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 10195 0 8773 48 1 47 47 0 8 0 ffsino 272 10195 0 8773 96 0 96 96 0 8 0 nchpl 144 20136 0 19665 61 41 20 61 0 8 0 uvmvnodes 72 6002 0 0 110 0 110 110 0 8 0 vnodes 208 6002 0 0 316 0 316 316 0 8 0 namei 1024 62324 0 62324 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 20 0 20 7 7 0 1 0 8 0 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 60032 0 60032 43 40 3 7 0 8 3 plimitpl 152 432 0 424 1 0 1 1 0 8 0 sigapl 432 6323 0 6307 3 1 2 3 0 8 0 futexpl 56 155158 0 155157 2 1 1 1 0 8 0 knotepl 112 1248 0 1229 3 2 1 2 0 8 0 kqueuepl 104 1549 0 1547 11 10 1 4 0 8 0 pipepl 112 2838 0 2819 13 12 1 2 0 8 0 fdescpl 488 6324 0 6307 3 0 3 3 0 8 0 filepl 152 53103 0 52998 51 45 6 14 0 8 1 lockfpl 104 1876 0 1875 1 0 1 1 0 8 0 lockfspl 48 617 0 616 1 0 1 1 0 8 0 sessionpl 112 48 0 37 1 0 1 1 0 8 0 pgrppl 48 116 0 105 1 0 1 1 0 8 0 ucredpl 96 4876 0 4866 1 0 1 1 0 8 0 zombiepl 144 6317 0 6317 3 2 1 1 0 8 1 processpl 896 6350 0 6317 4 0 4 4 0 8 0 procpl 632 18993 0 18949 7 2 5 5 0 8 0 srpgc 64 35 0 35 15 15 0 1 0 8 0 sosppl 128 64 0 64 15 15 0 1 0 8 0 sockpl 384 22876 0 22852 65 58 7 14 0 8 4 mcl64k 65536 268 0 0 34 25 9 34 0 8 0 mcl16k 16384 16 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 26 0 0 4 1 3 3 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 197 0 0 23 2 21 23 0 8 0 mtagpl 80 81 0 0 1 0 1 1 0 8 0 mbufpl 256 539 0 0 25 0 25 25 0 8 0 bufpl 256 22197 0 15149 441 0 441 441 0 8 0 anonpl 16 643154 0 626473 184 100 84 85 0 124 14 amapchunkpl 152 41937 0 41804 103 90 13 19 0 158 6 amappl16 192 31835 0 30904 165 110 55 59 0 8 8 amappl15 184 364 0 363 3 2 1 1 0 8 0 amappl14 176 559 0 555 2 1 1 1 0 8 0 amappl13 168 498 0 498 3 3 0 1 0 8 0 amappl12 160 1642 0 1642 5 5 0 1 0 8 0 amappl11 152 1520 0 1505 1 0 1 1 0 8 0 amappl10 144 843 0 839 1 0 1 1 0 8 0 amappl9 136 1567 0 1559 1 0 1 1 0 8 0 amappl8 128 1124 0 1082 5 3 2 2 0 8 0 amappl7 120 972 0 962 1 0 1 1 0 8 0 amappl6 112 1482 0 1468 1 0 1 1 0 8 0 amappl5 104 1999 0 1985 1 0 1 1 0 8 0 amappl4 96 5469 0 5436 1 0 1 1 0 8 0 amappl3 88 1942 0 1936 1 0 1 1 0 8 0 amappl2 80 50150 0 50068 4 2 2 3 0 8 0 amappl1 72 141650 0 141206 26 16 10 20 0 8 0 amappl 80 19716 0 19672 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 134 0 5 3 0 3 3 0 8 0 uaddrrnd 24 6344 0 6307 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6344 0 6307 1 0 1 1 0 8 0 vmmpekpl 168 49425 0 49393 2 0 2 2 0 8 0 vmmpepl 168 782405 0 780226 302 199 103 128 0 357 3 vmsppl 368 6323 0 6307 2 0 2 2 0 8 0 pdppl 4096 12695 0 12654 8 2 6 6 0 8 0 pvpl 32 1719799 0 1699811 384 184 200 205 0 265 36 pmappl 232 6343 0 6327 8 7 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 739 0 106 19 0 19 19 0 8 0