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 *163426 94092 0 0 0x4000000 0K syz-executor.1 504955 54427 0 0x14000 0x200 1 reaper 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(ffff800023bccef0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b50000,fffffd806416b4d8,10,ffff80000005bfc0,ffff800023bcd158) at alltraps_kern_meltdown+0x7b 0(b,ffff800023bcd0b8,83,ffff800023bcd158,0,b) at 0 rt_clone(ffff800023bcd1c8,fffffd806f6ca2b0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6ca2b0,fffffd806d52a6f8,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6ca2b0,fffffd806d52a6f8,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd806d52a600,0,fffffd806f6ca2a0,20,0,fffffd806f6ca230) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd806d52a600,fffffd80650de650,ffff800023bcd3d8,ffff800020b50000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd80650de650,9,fffffd806d52a600,0,0,ffff800020abf650) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd80650de650,0,ffff800023bcd5f8,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020abf650,3,ffff800023bcd5f8,0,ffff800023bcd6e0) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020abf650,ffff800023bcd698,ffff800023bcd6e0) at sys_write+0x83 sys/kern/sys_generic.c:284 end trace frame: 0xffff800023bcd750, 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(ffff800023bccef0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b50000,fffffd806416b4d8,10,ffff80000005bfc0,ffff800023bcd158) at alltraps_kern_meltdown+0x7b 0(b,ffff800023bcd0b8,83,ffff800023bcd158,0,b) at 0 rt_clone(ffff800023bcd1c8,fffffd806f6ca2b0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6ca2b0,fffffd806d52a6f8,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6ca2b0,fffffd806d52a6f8,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd806d52a600,0,fffffd806f6ca2a0,20,0,fffffd806f6ca230) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd806d52a600,fffffd80650de650,ffff800023bcd3d8,ffff800020b50000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd80650de650,9,fffffd806d52a600,0,0,ffff800020abf650) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd80650de650,0,ffff800023bcd5f8,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020abf650,3,ffff800023bcd5f8,0,ffff800023bcd6e0) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020abf650,ffff800023bcd698,ffff800023bcd6e0) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800023bcd760) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bcd760) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,ad7ada90010) at Xsyscall+0x128 end of kernel end trace frame: 0xada997aaca0, count: -16 ddb{0}> show registers rdi 0xffffffff81800b47 db_enter+0x17 rsi 0x2225 __ALIGN_SIZE+0x1225 rbp 0xffff800023bccd60 rbx 0xffff800023bcce10 rdx 0x2226 __ALIGN_SIZE+0x1226 rcx 0xffff800020b50000 rax 0xffff800020b50000 r8 0xffffffff8149825f kprintf+0x16f r9 0x1 r10 0x25 r11 0x9f7977db7e14e9da r12 0x3000000008 r13 0xffff800023bccd70 r14 0x100 r15 0x1 rip 0xffffffff81800b48 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023bccd50 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=163426 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020abec70,0xffffffff82662210 process=0xffff800020a8b510 user=0xffff800023bc8000, vmspace=0xfffffd807f00a730 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 94092 501672 51145 0 2 0 syz-executor.1 *94092 163426 51145 0 7 0x4000000 syz-executor.1 51145 33125 40476 0 3 0x82 nanosleep syz-executor.1 55660 451935 40476 0 3 0x82 nanosleep syz-executor.0 30176 234155 0 0 3 0x14200 acct acct 48448 64529 0 0 3 0x14200 bored sosplice 40476 131526 54130 0 3 0x82 thrsleep syz-fuzzer 40476 252519 54130 0 3 0x4000082 thrsleep syz-fuzzer 40476 304431 54130 0 3 0x4000082 thrsleep syz-fuzzer 40476 410127 54130 0 3 0x4000082 thrsleep syz-fuzzer 40476 356024 54130 0 3 0x4000082 thrsleep syz-fuzzer 40476 345699 54130 0 3 0x4000082 thrsleep syz-fuzzer 40476 311782 54130 0 3 0x4000082 thrsleep syz-fuzzer 40476 310482 54130 0 3 0x4000082 thrsleep syz-fuzzer 40476 316964 54130 0 3 0x4000082 thrsleep syz-fuzzer 40476 112862 54130 0 3 0x4000082 kqread syz-fuzzer 54130 13829 33855 0 3 0x10008a pause ksh 33855 39100 87077 0 3 0x92 select sshd 99388 244004 1 0 3 0x100083 ttyopn getty 87077 109255 1 0 3 0x80 select sshd 82663 115479 54574 74 3 0x100092 bpf pflogd 54574 433606 1 0 3 0x80 netio pflogd 35630 173522 69136 73 3 0x100090 kqread syslogd 69136 72113 1 0 3 0x100082 netio syslogd 99495 460379 1 77 3 0x100090 poll dhclient 69100 103513 1 0 3 0x80 poll dhclient 69759 314014 0 0 2 0x14200 zerothread 8989 55679 0 0 3 0x14200 aiodoned aiodoned 50678 30836 0 0 3 0x14200 syncer update 71039 226552 0 0 3 0x14200 cleaner cleaner 54427 504955 0 0 7 0x14200 reaper 28304 310334 0 0 3 0x14200 pgdaemon pagedaemon 21838 304430 0 0 3 0x14200 bored crynlk 47544 11059 0 0 3 0x14200 bored crypto 3098 328387 0 0 3 0x40014200 acpi0 acpi0 43063 333610 0 0 3 0x40014200 idle1 55044 514680 0 0 3 0x14200 bored softnet 40356 486823 0 0 3 0x14200 bored systqmp 77202 474493 0 0 2 0x14200 systq 59490 103300 0 0 3 0x40014200 bored softclock 49512 200021 0 0 3 0x40014200 idle0 58138 352938 0 0 3 0x14200 bored smr 1 401755 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 1: exclusive mutex &(curpg)->mdpage.pv_mtx r = 0 (0xfffffd8006d1c558) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 pmap_remove_ptes+0x233 pmap_remove_pv sys/arch/amd64/amd64/pmap.c:979 [inline] #3 pmap_remove_ptes+0x233 sys/arch/amd64/amd64/pmap.c:1572 #4 pmap_do_remove+0x401 sys/arch/amd64/amd64/pmap.c:1780 #5 uvm_map_teardown+0x195 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:206 [inline] #5 uvm_map_teardown+0x195 sys/uvm/uvm_map.c:2719 #6 uvmspace_free+0x86 sys/uvm/uvm_map.c:3592 #7 uvm_exit+0x29 sys/uvm/uvm_glue.c:297 #8 reaper+0x189 sys/kern/kern_exit.c:442 #9 proc_trampoline+0x1c exclusive mutex &pmap->pm_mtx r = 0 (0xfffffd80756e43c0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 pmap_do_remove+0x88 rcr3 machine/cpufunc.h:141 [inline] #3 pmap_do_remove+0x88 pmap_map_ptes sys/arch/amd64/amd64/pmap.c:414 [inline] #3 pmap_do_remove+0x88 sys/arch/amd64/amd64/pmap.c:1684 #4 uvm_map_teardown+0x195 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:206 [inline] #4 uvm_map_teardown+0x195 sys/uvm/uvm_map.c:2719 #5 uvmspace_free+0x86 sys/uvm/uvm_map.c:3592 #6 uvm_exit+0x29 sys/uvm/uvm_glue.c:297 #7 reaper+0x189 sys/kern/kern_exit.c:442 #8 proc_trampoline+0x1c Process 94092 (syz-executor.1) thread 0xffff800020abf650 (163426) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff82624c28) #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 (0xffffffff8250cdb8) #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9634 7168K 8849K 78643K 20843 0 0 pcb 13 10K 12K 78643K 3328 0 0 rtable 158 16K 18K 78643K 2421 0 0 ifaddr 108 23K 25K 78643K 741 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1717 0 0 iov 0 0K 24K 78643K 847 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1234 77K 78K 78643K 5054 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 65 0 0 VM map 30 15K 15K 78643K 49 0 0 sem 12 0K 0K 78643K 1109 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 4168 0 0 sigio 1 0K 0K 78643K 118 0 0 proc 61 63K 95K 78643K 1726 0 0 subproc 32 2K 2K 78643K 412 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 272 0 0 in_multi 34 2K 3K 78643K 520 0 0 ether_multi 1 0K 0K 78643K 58 0 0 mrt 1 0K 0K 78643K 32 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 174 768K 768K 78643K 174 0 0 exec 0 0K 1K 78643K 980 0 0 pfkey data 0 0K 0K 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 179 220K 224K 78643K 15491 0 0 UVM aobj 130 7K 7K 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 2K 78643K 2889 0 0 NDP 24 0K 1K 78643K 227 0 0 temp 234 3565K 4200K 78643K 104924 0 0 kqueue 0 0K 0K 78643K 37 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 62 0 56 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 309 0 307 1 0 1 1 0 8 0 rtentry 112 420 0 362 2 0 2 2 0 8 0 unpcb 120 7437 0 7423 6 5 1 2 0 8 0 syncache 264 24 0 24 9 9 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 56 0 56 6 6 0 1 0 8 0 tcpcb 544 4451 0 4447 31 30 1 14 0 8 0 inpcb 280 10830 0 10822 27 25 2 9 0 8 1 rttmr 72 10 0 9 5 4 1 1 0 8 0 ip6q 72 7 0 7 5 4 1 1 0 8 1 ip6af 40 17 0 17 4 3 1 1 0 8 1 nd6 48 67 0 65 4 3 1 1 0 8 0 pkpcb 40 6 0 6 4 4 0 1 0 8 0 swfcl 56 7 0 0 1 0 1 1 0 8 0 ppxss 1128 102 0 102 14 13 1 1 0 8 1 pffrag 232 111 0 111 13 12 1 1 0 482 1 pffrnode 88 111 0 111 13 12 1 1 0 8 1 pffrent 40 3119 0 3119 13 12 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 342 0 290 1 0 1 1 0 8 0 pfstkey 112 342 0 290 3 0 3 3 0 8 0 pfstate 328 342 0 289 7 0 7 7 0 8 1 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 11 0 7 7 3 4 6 0 8 0 art_heap4 256 1855 0 1615 33 17 16 19 0 8 0 art_table 32 1866 0 1622 3 0 3 3 0 8 0 art_node 16 413 0 366 1 0 1 1 0 8 0 sysvmsgpl 40 40 0 23 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 1107 0 1097 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 7652 0 6229 46 0 46 46 0 8 0 ffsino 272 7652 0 6229 96 0 96 96 0 8 0 nchpl 144 13800 0 13281 61 41 20 60 0 8 0 uvmvnodes 72 6635 0 0 121 0 121 121 0 8 0 vnodes 208 6635 0 0 350 0 350 350 0 8 0 namei 1024 46650 0 46650 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 29 0 1 4 0 4 4 0 8 0 vmpool 552 47 0 19 5 2 3 3 0 8 1 scsiplug 64 4 0 4 3 3 0 1 0 8 0 scxspl 192 44673 0 44673 27 26 1 7 0 8 1 plimitpl 152 312 0 304 1 0 1 1 0 8 0 sigapl 432 4300 0 4285 3 1 2 3 0 8 0 futexpl 56 107716 0 107716 1 0 1 1 0 8 1 knotepl 112 854 0 835 2 1 1 2 0 8 0 kqueuepl 104 1345 0 1343 7 6 1 4 0 8 0 pipepl 112 2590 0 2571 6 5 1 2 0 8 0 fdescpl 488 4301 0 4285 3 0 3 3 0 8 0 filepl 152 42443 0 42341 35 29 6 14 0 8 2 lockfpl 104 1530 0 1529 1 0 1 1 0 8 0 lockfspl 48 515 0 514 1 0 1 1 0 8 0 sessionpl 112 40 0 29 1 0 1 1 0 8 0 pgrppl 48 128 0 117 1 0 1 1 0 8 0 ucredpl 96 4500 0 4491 1 0 1 1 0 8 0 zombiepl 144 4287 0 4286 1 0 1 1 0 8 0 processpl 896 4320 0 4286 4 0 4 4 0 8 0 procpl 632 13441 0 13397 6 1 5 5 0 8 1 srpgc 64 42 0 42 11 10 1 1 0 8 1 sosppl 128 150 0 150 13 13 0 1 0 8 0 sockpl 384 18631 0 18607 51 47 4 14 0 8 0 mcl64k 65536 33 0 0 5 2 3 4 0 8 0 mcl16k 16384 22 0 0 3 1 2 3 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 21 0 0 3 0 3 3 0 8 0 mcl4k 4096 33 0 0 5 2 3 3 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 167 0 0 20 2 18 20 0 8 0 mtagpl 80 64 0 0 1 0 1 1 0 8 0 mbufpl 256 561 0 0 26 1 25 26 0 8 0 bufpl 256 23108 0 16050 442 0 442 442 0 8 0 anonpl 16 524615 0 501329 199 81 118 118 0 124 13 amapchunkpl 152 33484 0 33078 98 77 21 30 0 158 3 amappl16 192 23151 0 21859 198 125 73 77 0 8 8 amappl15 184 1371 0 1371 3 3 0 1 0 8 0 amappl14 176 1528 0 1523 1 0 1 1 0 8 0 amappl13 168 522 0 520 5 4 1 1 0 8 0 amappl12 160 286 0 284 1 0 1 1 0 8 0 amappl11 152 295 0 279 1 0 1 1 0 8 0 amappl10 144 89 0 82 1 0 1 1 0 8 0 amappl9 136 1017 0 1014 1 0 1 1 0 8 0 amappl8 128 604 0 546 3 0 3 3 0 8 1 amappl7 120 238 0 230 1 0 1 1 0 8 0 amappl6 112 302 0 283 1 0 1 1 0 8 0 amappl5 104 654 0 639 1 0 1 1 0 8 0 amappl4 96 4250 0 4215 1 0 1 1 0 8 0 amappl3 88 1914 0 1909 1 0 1 1 0 8 0 amappl2 80 33128 0 33042 3 1 2 3 0 8 0 amappl1 72 105231 0 104772 25 14 11 20 0 8 0 amappl 80 14151 0 14090 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 4348 0 4285 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4348 0 4285 1 0 1 1 0 8 0 vmmpekpl 168 36845 0 36807 4 1 3 3 0 8 0 vmmpepl 168 550721 0 548072 328 167 161 162 0 357 41 vmsppl 368 4300 0 4284 2 0 2 2 0 8 0 pdppl 4096 8703 0 8634 10 1 9 9 0 8 0 pvpl 32 1387313 0 1366178 394 170 224 235 0 265 24 pmappl 232 4347 0 4303 3 0 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 691 0 62 19 0 19 19 0 8 0