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 256792 13490 0 0 0 0 syz-executor.0 *360765 13490 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(ffff800021ff0730) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020f56000,fffffd806f5d6540,10,ffff80000005bf70,ffff800021ff0998) at alltraps_kern_meltdown+0x7b 0(b,ffff800021ff08f8,83,ffff800021ff0998,0,b) at 0 rt_clone(ffff800021ff0a08,fffffd806f6d0da0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d0da0,fffffd80647a1ff4,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d0da0,fffffd80647a1ff4,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd80647a1f00,0,fffffd806f6d0d90,20,0,fffffd806f6d0d20) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd8066aaf700,fffffd8063f9f078,ffff800021ff0c18,ffff800020f56000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd8063f9f078,9,fffffd8066aaf700,0,0,ffff800020acea08) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd8063f9f078,0,ffff800021ff0e38,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020acea08,5,ffff800021ff0e38,0,ffff800021ff0f20) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020acea08,ffff800021ff0ed8,ffff800021ff0f20) at sys_write+0x83 sys/kern/sys_generic.c:284 end trace frame: 0xffff800021ff0f90, 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{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(ffff800021ff0730) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020f56000,fffffd806f5d6540,10,ffff80000005bf70,ffff800021ff0998) at alltraps_kern_meltdown+0x7b 0(b,ffff800021ff08f8,83,ffff800021ff0998,0,b) at 0 rt_clone(ffff800021ff0a08,fffffd806f6d0da0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d0da0,fffffd80647a1ff4,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d0da0,fffffd80647a1ff4,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd80647a1f00,0,fffffd806f6d0d90,20,0,fffffd806f6d0d20) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd8066aaf700,fffffd8063f9f078,ffff800021ff0c18,ffff800020f56000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd8063f9f078,9,fffffd8066aaf700,0,0,ffff800020acea08) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd8063f9f078,0,ffff800021ff0e38,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020acea08,5,ffff800021ff0e38,0,ffff800021ff0f20) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020acea08,ffff800021ff0ed8,ffff800021ff0f20) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800021ff0fa0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021ff0fa0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,100bdfc4010) at Xsyscall+0x128 end of kernel end trace frame: 0x1036b374120, count: -16 ddb{1}> show registers rdi 0xffffffff814c4807 db_enter+0x17 rsi 0x1efc __ALIGN_SIZE+0xefc rbp 0xffff800021ff05a0 rbx 0xffff800021ff0650 rdx 0x1efd __ALIGN_SIZE+0xefd rcx 0xffff800020f56000 rax 0xffff800020f56000 r8 0xffffffff8141f94f kprintf+0x16f r9 0x1 r10 0x25 r11 0xb248f18d5c280437 r12 0x3000000008 r13 0xffff800021ff05b0 r14 0x100 r15 0x1 rip 0xffffffff814c4808 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021ff0590 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=360765 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020aceef8,0xffffffff8265b7c8 process=0xffff800020add180 user=0xffff800021fec000, vmspace=0xfffffd807f00aa10 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 13490 256792 57029 0 7 0 syz-executor.0 *13490 360765 57029 0 7 0x4000000 syz-executor.0 66704 116189 13598 0 3 0x80 nanosleep syz-executor.1 66704 476442 13598 0 3 0x4000080 netio syz-executor.1 66704 347138 13598 0 3 0x4000080 fsleep syz-executor.1 13598 239634 17508 0 3 0x82 nanosleep syz-executor.1 57029 385491 17508 0 3 0x82 nanosleep syz-executor.0 26382 428248 1 0 3 0x100083 ttyin getty 19008 158588 0 0 3 0x14200 bored sosplice 40186 211556 0 0 3 0x14200 acct acct 17508 429084 81451 0 3 0x82 thrsleep syz-fuzzer 17508 389499 81451 0 3 0x4000082 nanosleep syz-fuzzer 17508 175022 81451 0 3 0x4000082 nanosleep syz-fuzzer 17508 270651 81451 0 3 0x4000082 thrsleep syz-fuzzer 17508 46052 81451 0 3 0x4000082 thrsleep syz-fuzzer 17508 204068 81451 0 3 0x4000082 kqread syz-fuzzer 17508 470683 81451 0 3 0x4000082 thrsleep syz-fuzzer 17508 454664 81451 0 3 0x4000082 thrsleep syz-fuzzer 17508 414349 81451 0 3 0x4000082 thrsleep syz-fuzzer 17508 140899 81451 0 3 0x4000082 thrsleep syz-fuzzer 81451 154388 66827 0 3 0x10008a pause ksh 66827 468304 34652 0 3 0x92 select sshd 34652 505531 1 0 3 0x80 select sshd 25807 508653 2184 74 3 0x100092 bpf pflogd 2184 478996 1 0 3 0x80 netio pflogd 25647 445841 91266 73 3 0x100090 kqread syslogd 91266 322134 1 0 3 0x100082 netio syslogd 52269 372950 1 77 3 0x100090 poll dhclient 37608 441177 1 0 3 0x80 poll dhclient 5257 249792 0 0 3 0x14200 pgzero zerothread 19613 62100 0 0 3 0x14200 aiodoned aiodoned 20677 348862 0 0 3 0x14200 syncer update 76615 243863 0 0 3 0x14200 cleaner cleaner 95410 520156 0 0 3 0x14200 reaper reaper 9802 228557 0 0 3 0x14200 pgdaemon pagedaemon 29452 222699 0 0 3 0x14200 bored crynlk 22860 245169 0 0 3 0x14200 bored crypto 35754 50448 0 0 3 0x40014200 acpi0 acpi0 41918 75585 0 0 3 0x40014200 idle1 23033 123665 0 0 3 0x14200 bored softnet 82342 66439 0 0 3 0x14200 bored systqmp 80532 117538 0 0 3 0x14200 bored systq 21053 511981 0 0 3 0x40014200 bored softclock 76579 103290 0 0 3 0x40014200 idle0 91509 128763 0 0 3 0x14200 bored smr 1 390046 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 13490 (syz-executor.0) thread 0xffff800020acea08 (360765) 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 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #8 sys_write+0x83 sys/kern/sys_generic.c:284 #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 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #4 sys_write+0x83 sys/kern/sys_generic.c:284 #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9609 7112K 8231K 78643K 21419 0 0 pcb 13 11K 13K 78643K 917 0 0 rtable 160 16K 16K 78643K 2640 0 0 ifaddr 103 23K 25K 78643K 744 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1716 0 0 iov 0 0K 32K 78643K 1241 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1222 77K 77K 78643K 5100 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 38 19K 19K 78643K 55 0 0 sem 12 0K 1K 78643K 1483 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 3946 0 0 sigio 0 0K 0K 78643K 71 0 0 proc 61 63K 95K 78643K 1890 0 0 subproc 32 2K 2K 78643K 442 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 284 0 0 in_multi 31 2K 2K 78643K 521 0 0 ether_multi 1 0K 0K 78643K 44 0 0 mrt 0 0K 0K 78643K 26 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 948 0 0 pfkey data 0 0K 4K 78643K 4 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 195 273K 277K 78643K 15098 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 890 0 0 NDP 24 0K 1K 78643K 238 0 0 temp 242 3561K 4201K 78643K 139858 0 0 kqueue 0 0K 0K 78643K 15 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 87 0 79 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 377 0 375 1 0 1 1 0 8 0 rtentry 112 479 0 415 2 0 2 2 0 8 0 unpcb 120 3167 0 3151 7 5 2 2 0 8 1 syncache 264 18 0 18 7 6 1 1 0 8 1 tcpqe 32 5 0 5 3 2 1 1 0 8 1 tcpcb 544 1957 0 1953 32 31 1 13 0 8 0 inpcb 280 9607 0 9597 31 28 3 10 0 8 2 rttmr 72 9 0 9 5 5 0 1 0 8 0 ip6q 72 2 0 1 2 1 1 1 0 8 0 nd6 48 69 0 67 2 1 1 1 0 8 0 pkpcb 40 14 0 14 7 6 1 1 0 8 1 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 95 0 95 14 13 1 1 0 8 1 pffrag 232 84 0 84 12 11 1 1 0 482 1 pffrnode 88 84 0 84 12 11 1 1 0 8 1 pffrent 40 2525 0 2525 12 11 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 1251 0 1162 1 0 1 1 0 8 0 pfstkey 112 1251 0 1162 4 1 3 3 0 8 0 pfstate 328 1251 0 1132 13 2 11 11 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 16 0 8 12 4 8 8 0 8 0 art_heap4 256 2098 0 1845 34 16 18 25 0 8 0 art_table 32 2114 0 1853 4 0 4 4 0 8 0 art_node 16 476 0 423 1 0 1 1 0 8 0 sysvmsgpl 40 23 0 13 1 0 1 1 0 8 0 semupl 112 3 0 3 2 2 0 1 0 8 0 semapl 112 1481 0 1471 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 7504 0 6089 46 0 46 46 0 8 0 ffsino 272 7504 0 6089 95 0 95 95 0 8 0 nchpl 144 13594 0 13113 62 42 20 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 47288 0 47288 5 4 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 36 0 0 5 0 5 5 0 8 0 vmpool 552 53 0 17 4 1 3 3 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 44666 0 44666 28 25 3 5 0 8 3 plimitpl 152 342 0 334 1 0 1 1 0 8 0 sigapl 432 4077 0 4061 4 2 2 3 0 8 0 futexpl 56 103362 0 103361 3 2 1 1 0 8 0 knotepl 112 765 0 746 4 3 1 3 0 8 0 kqueuepl 104 1174 0 1172 7 6 1 4 0 8 0 pipepl 112 3558 0 3539 4 3 1 2 0 8 0 fdescpl 488 4078 0 4061 3 0 3 3 0 8 0 filepl 152 37969 0 37860 35 29 6 14 0 8 1 lockfpl 104 1680 0 1677 1 0 1 1 0 8 0 lockfspl 48 553 0 551 1 0 1 1 0 8 0 sessionpl 112 47 0 36 1 0 1 1 0 8 0 pgrppl 48 375 0 364 1 0 1 1 0 8 0 ucredpl 96 4180 0 4171 1 0 1 1 0 8 0 zombiepl 144 4061 0 4061 2 1 1 1 0 8 1 processpl 896 4095 0 4061 5 1 4 5 0 8 0 procpl 632 12905 0 12859 6 1 5 5 0 8 0 srpgc 64 46 0 46 15 14 1 1 0 8 1 sosppl 128 131 0 131 14 13 1 1 0 8 1 sockpl 384 13385 0 13357 54 46 8 15 0 8 4 mcl64k 65536 466 0 0 44 10 34 34 0 8 1 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 19 0 0 3 0 3 3 0 8 1 mcl4k 4096 24 0 0 3 0 3 3 0 8 0 mcl2k2 2112 10 0 0 1 0 1 1 0 8 0 mcl2k 2048 184 0 0 21 3 18 21 0 8 0 mtagpl 80 80 0 0 1 0 1 1 0 8 0 mbufpl 256 925 0 0 43 0 43 43 0 8 0 bufpl 256 18438 0 11380 442 0 442 442 0 8 0 anonpl 16 508998 0 491878 180 80 100 105 0 124 13 amapchunkpl 152 31865 0 31706 52 37 15 15 0 158 5 amappl16 192 21257 0 20073 168 100 68 72 0 8 8 amappl15 184 1420 0 1420 5 5 0 1 0 8 0 amappl14 176 964 0 957 1 0 1 1 0 8 0 amappl13 168 253 0 252 1 0 1 1 0 8 0 amappl12 160 376 0 374 5 4 1 1 0 8 0 amappl11 152 204 0 186 1 0 1 1 0 8 0 amappl10 144 483 0 475 1 0 1 1 0 8 0 amappl9 136 1530 0 1527 1 0 1 1 0 8 0 amappl8 128 1127 0 1068 4 1 3 3 0 8 0 amappl7 120 581 0 573 1 0 1 1 0 8 0 amappl6 112 157 0 137 1 0 1 1 0 8 0 amappl5 104 733 0 715 1 0 1 1 0 8 0 amappl4 96 4569 0 4532 1 0 1 1 0 8 0 amappl3 88 477 0 471 1 0 1 1 0 8 0 amappl2 80 31129 0 31047 3 1 2 3 0 8 0 amappl1 72 102061 0 101599 26 16 10 20 0 8 0 amappl 80 13672 0 13607 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 4131 0 4061 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4131 0 4061 1 0 1 1 0 8 0 vmmpekpl 168 39174 0 39130 3 0 3 3 0 8 0 vmmpepl 168 526954 0 524391 290 135 155 159 0 357 38 vmsppl 368 4077 0 4061 2 0 2 2 0 8 0 pdppl 4096 8269 0 8192 15 5 10 10 0 8 0 pvpl 32 1326407 0 1305554 368 139 229 244 0 265 33 pmappl 232 4130 0 4078 5 1 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 761 0 76 20 0 20 20 0 8 0