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 500731 34184 0 0x10 0 1 syz-executor.0 * 33057 34184 0 0x10 0x4000000 0 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(ffff800021b873b0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800023bbc000,fffffd80644a98c8,10,ffff80000005b090,ffff800021b87618) at alltraps_kern_meltdown+0x7b 0(b,ffff800021b87578,83,ffff800021b87618,0,b) at 0 rt_clone(ffff800021b87688,fffffd806f6d4da0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d4da0,fffffd807cf948f0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d4da0,fffffd807cf948f0,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd807cf94800,0,fffffd806f6d4d90,20,0,fffffd806f6d4d20) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd807cf94800,fffffd807db1e7a0,ffff800021b87898,ffff800023bbc000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd807db1e7a0,9,fffffd807cf94800,0,0,ffff800020acf660) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd807db1e7a0,0,ffff800021b87a00,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 sendit(ffff800020acf660,d,ffff800021b87ae0,0,ffff800021b87bc0) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020acf660,ffff800021b87b78,ffff800021b87bc0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 end trace frame: 0xffff800021b87c30, count: 0 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic attempt to execute user address 0x0 in supervisor mode ddb{0}> 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(ffff800021b873b0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800023bbc000,fffffd80644a98c8,10,ffff80000005b090,ffff800021b87618) at alltraps_kern_meltdown+0x7b 0(b,ffff800021b87578,83,ffff800021b87618,0,b) at 0 rt_clone(ffff800021b87688,fffffd806f6d4da0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d4da0,fffffd807cf948f0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d4da0,fffffd807cf948f0,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd807cf94800,0,fffffd806f6d4d90,20,0,fffffd806f6d4d20) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd807cf94800,fffffd807db1e7a0,ffff800021b87898,ffff800023bbc000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd807db1e7a0,9,fffffd807cf94800,0,0,ffff800020acf660) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd807db1e7a0,0,ffff800021b87a00,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 sendit(ffff800020acf660,d,ffff800021b87ae0,0,ffff800021b87bc0) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020acf660,ffff800021b87b78,ffff800021b87bc0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800021b87c40) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b87c40) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd7,0,6,9aabb262010) at Xsyscall+0x128 end of kernel end trace frame: 0x9ad108d2e40, count: -16 ddb{0}> show registers rdi 0xffffffff814c4807 db_enter+0x17 rsi 0x1ef9 __ALIGN_SIZE+0xef9 rbp 0xffff800021b87220 rbx 0xffff800021b872d0 rdx 0x1efa __ALIGN_SIZE+0xefa rcx 0xffff800023bbc000 rax 0xffff800023bbc000 r8 0xffffffff8141f94f kprintf+0x16f r9 0x1 r10 0x25 r11 0xc82069d240eea13b r12 0x3000000008 r13 0xffff800021b87230 r14 0x100 r15 0x1 rip 0xffffffff814c4808 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021b87210 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=33057 stat=onproc flags process=10 proc=4000000 pri=77, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff800020acec80,0xffffffff8265b7c8 process=0xffff800020addc00 user=0xffff800021b82000, vmspace=0xfffffd807f00a450 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 34184 500731 74337 0 7 0x10 syz-executor.0 *34184 33057 74337 0 7 0x4000010 syz-executor.0 86428 87460 39362 0 2 0 syz-executor.1 86428 294219 39362 0 2 0x4000000 syz-executor.1 39362 411081 60920 0 3 0x82 nanosleep syz-executor.1 74337 443060 60920 0 3 0x82 nanosleep syz-executor.0 9030 85771 1 0 3 0x100083 ttyin getty 50720 304650 0 0 3 0x14200 acct acct 2780 124060 0 0 3 0x14200 bored sosplice 60920 36589 90147 0 3 0x82 thrsleep syz-fuzzer 60920 178472 90147 0 3 0x4000082 nanosleep syz-fuzzer 60920 87869 90147 0 3 0x4000082 thrsleep syz-fuzzer 60920 406758 90147 0 3 0x4000082 thrsleep syz-fuzzer 60920 385610 90147 0 3 0x4000082 thrsleep syz-fuzzer 60920 430808 90147 0 3 0x4000082 thrsleep syz-fuzzer 60920 11896 90147 0 3 0x4000082 thrsleep syz-fuzzer 60920 63059 90147 0 3 0x4000082 thrsleep syz-fuzzer 60920 374703 90147 0 3 0x4000082 thrsleep syz-fuzzer 60920 85060 90147 0 3 0x4000082 kqread syz-fuzzer 90147 408148 91625 0 3 0x10008a pause ksh 91625 465474 74864 0 3 0x92 select sshd 74864 2432 1 0 3 0x80 select sshd 64293 27322 62988 74 3 0x100092 bpf pflogd 62988 144892 1 0 3 0x80 netio pflogd 30953 450915 66354 73 3 0x100090 kqread syslogd 66354 246281 1 0 3 0x100082 netio syslogd 61158 267803 1 77 3 0x100090 poll dhclient 88653 178266 1 0 3 0x80 poll dhclient 7758 427786 0 0 2 0x14200 zerothread 69242 371731 0 0 3 0x14200 aiodoned aiodoned 68628 305046 0 0 3 0x14200 syncer update 4114 100010 0 0 3 0x14200 cleaner cleaner 19519 208183 0 0 3 0x14200 reaper reaper 17335 146599 0 0 3 0x14200 pgdaemon pagedaemon 39278 493467 0 0 3 0x14200 bored crynlk 96029 461359 0 0 3 0x14200 bored crypto 19016 389669 0 0 3 0x40014200 acpi0 acpi0 43333 516203 0 0 3 0x40014200 idle1 86982 417275 0 0 3 0x14200 bored softnet 52940 196637 0 0 3 0x14200 bored systqmp 13840 3538 0 0 3 0x14200 bored systq 5674 483856 0 0 3 0x40014200 bored softclock 38414 219977 0 0 3 0x40014200 idle0 55237 338688 0 0 3 0x14200 bored smr 1 47514 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 34184 (syz-executor.0) thread 0xffff800020acf660 (33057) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff82648ec0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rt_clone+0x5c sys/net/route.c:266 #2 rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] #2 rtalloc_mpath+0xba sys/net/route.c:359 #3 ip_output+0x4f2 sys/netinet/ip_output.c:204 #4 rip_output+0x252 sys/netinet/raw_ip.c:289 #5 rip_usrreq+0x46a sys/netinet/raw_ip.c:538 #6 sosend+0x645 sys/kern/uipc_socket.c:524 #7 sendit+0x52b sys/kern/uipc_syscalls.c:662 #8 sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 #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 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 sosend+0x51b sys/kern/uipc_socket.c:512 #3 sendit+0x52b sys/kern/uipc_syscalls.c:662 #4 sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9627 7109K 7559K 78643K 17641 0 0 pcb 14 10K 12K 78643K 566 0 0 rtable 132 14K 14K 78643K 1915 0 0 ifaddr 98 19K 20K 78643K 567 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1603 0 0 iov 0 0K 24K 78643K 5039 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1230 77K 78K 78643K 3939 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 42 0 0 VM map 18 9K 9K 78643K 28 0 0 sem 12 1K 1K 78643K 584 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 2847 0 0 sigio 0 0K 0K 78643K 34 0 0 proc 61 63K 95K 78643K 1473 0 0 subproc 32 2K 2K 78643K 323 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 293 0 0 in_multi 33 2K 2K 78643K 449 0 0 ether_multi 1 0K 0K 78643K 46 0 0 mrt 0 0K 0K 78643K 27 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 168 742K 742K 78643K 168 0 0 exec 0 0K 1K 78643K 743 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 169 171K 180K 78643K 11113 0 0 UVM aobj 130 6K 6K 78643K 136 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 649 0 0 NDP 25 0K 1K 78643K 182 0 0 temp 250 3561K 4201K 78643K 58506 0 0 kqueue 0 0K 0K 78643K 33 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 60 0 53 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 236 0 234 1 0 1 1 0 8 0 rtentry 112 366 0 316 2 0 2 2 0 8 0 unpcb 120 1920 0 1908 7 5 2 2 0 8 1 syncache 264 20 0 20 7 7 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 303 0 303 5 5 0 1 0 8 0 tcpcb 544 1696 0 1690 30 26 4 13 0 8 3 inpcb 280 4368 0 4357 24 20 4 9 0 8 3 rttmr 72 10 0 10 5 5 0 1 0 8 0 ip6q 72 1 0 0 1 0 1 1 0 8 0 nd6 48 55 0 52 3 2 1 1 0 8 0 pkpcb 40 9 0 9 4 4 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 69 0 69 10 9 1 1 0 8 1 pffrag 232 55 0 55 7 6 1 1 0 482 1 pffrnode 88 55 0 55 7 6 1 1 0 8 1 pffrent 40 1947 0 1947 7 6 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 192 0 129 1 0 1 1 0 8 0 pfstkey 112 192 0 129 2 0 2 2 0 8 0 pfstate 328 192 0 129 6 0 6 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 7 0 4 6 3 3 4 0 8 0 art_heap4 256 1610 0 1376 32 16 16 16 0 8 0 art_table 32 1617 0 1380 4 1 3 3 0 8 0 art_node 16 364 0 317 1 0 1 1 0 8 0 sysvmsgpl 40 50 0 31 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 582 0 572 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5820 0 4409 46 0 46 46 0 8 0 ffsino 272 5820 0 4409 95 0 95 95 0 8 0 nchpl 144 11571 0 11117 61 32 29 61 0 8 8 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 40515 0 40515 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 16 0 0 2 0 2 2 0 8 0 vmpool 552 26 0 10 2 0 2 2 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 34802 0 34802 32 29 3 7 0 8 3 plimitpl 152 236 0 228 1 0 1 1 0 8 0 sigapl 432 2995 0 2979 3 1 2 3 0 8 0 futexpl 56 70580 0 70580 2 1 1 1 0 8 1 knotepl 112 708 0 689 3 2 1 2 0 8 0 kqueuepl 104 1004 0 1001 7 6 1 4 0 8 0 pipepl 112 1760 0 1731 1 0 1 1 0 8 0 fdescpl 488 2996 0 2979 3 0 3 3 0 8 0 filepl 152 29429 0 29273 32 26 6 14 0 8 0 lockfpl 104 1106 0 1105 1 0 1 1 0 8 0 lockfspl 48 378 0 377 1 0 1 1 0 8 0 sessionpl 112 36 0 25 1 0 1 1 0 8 0 pgrppl 48 62 0 51 1 0 1 1 0 8 0 ucredpl 96 3834 0 3820 1 0 1 1 0 8 0 zombiepl 144 2979 0 2979 2 1 1 1 0 8 1 processpl 896 3013 0 2979 4 0 4 4 0 8 0 procpl 632 9382 0 9337 6 1 5 5 0 8 0 srpgc 64 21 0 21 5 4 1 1 0 8 1 sosppl 128 85 0 85 9 9 0 1 0 8 0 sockpl 384 6574 0 6549 42 35 7 14 0 8 4 mcl64k 65536 512 0 0 64 7 57 64 0 8 0 mcl16k 16384 18 0 0 3 1 2 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 13 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 15 0 0 2 0 2 2 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 193 0 0 23 0 23 23 0 8 0 mtagpl 80 67 0 0 2 0 2 2 0 8 0 mbufpl 256 658 0 0 38 0 38 38 0 8 0 bufpl 256 16213 0 9155 442 0 442 442 0 8 0 anonpl 16 370006 0 353183 147 61 86 100 0 124 1 amapchunkpl 152 22636 0 22498 44 33 11 14 0 158 1 amappl16 192 15504 0 14333 115 55 60 71 0 8 1 amappl15 184 350 0 349 3 2 1 1 0 8 0 amappl14 176 584 0 574 1 0 1 1 0 8 0 amappl13 168 92 0 92 4 4 0 1 0 8 0 amappl12 160 427 0 424 1 0 1 1 0 8 0 amappl11 152 759 0 743 1 0 1 1 0 8 0 amappl10 144 508 0 500 1 0 1 1 0 8 0 amappl9 136 1102 0 1098 1 0 1 1 0 8 0 amappl8 128 689 0 634 2 0 2 2 0 8 0 amappl7 120 595 0 585 1 0 1 1 0 8 0 amappl6 112 718 0 704 1 0 1 1 0 8 0 amappl5 104 705 0 690 1 0 1 1 0 8 0 amappl4 96 2970 0 2936 1 0 1 1 0 8 0 amappl3 88 1120 0 1112 1 0 1 1 0 8 0 amappl2 80 22204 0 22122 3 0 3 3 0 8 0 amappl1 72 77501 0 77042 25 15 10 20 0 8 0 amappl 80 9975 0 9919 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 135 0 6 3 0 3 3 0 8 0 uaddrrnd 24 3022 0 2979 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3022 0 2979 1 0 1 1 0 8 0 vmmpekpl 168 27328 0 27287 3 0 3 3 0 8 0 vmmpepl 168 388648 0 386159 234 83 151 160 0 357 39 vmsppl 368 2995 0 2979 2 0 2 2 0 8 0 pdppl 4096 6051 0 5994 9 1 8 8 0 8 0 pvpl 32 972357 0 952696 323 106 217 231 0 265 23 pmappl 232 3021 0 2989 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 759 0 59 21 0 21 21 0 8 0