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 304630 72252 0 0 0 0 syz-executor.0 *403892 72252 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(ffff800020d4ac10) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b46000,fffffd80652902a8,10,ffff80000005bfb0,ffff800020d4ae78) at alltraps_kern_meltdown+0x7b 0(b,ffff800020d4add8,83,ffff800020d4ae78,0,b) at 0 rt_clone(ffff800020d4aee8,fffffd806f6ceeb8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6ceeb8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6ceeb8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800020d4afc0,fffffd806f249c20,fffffd806f6cee38) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cee38,fffffd806f249c00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd806f6cf180,4,0,fffffd806f249c00,0,ffff800020ab0ee8) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ab0ee8,ffff800020d4b168,ffff800020d4b1b0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800020d4b230) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020d4b230) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,d1621a8a010) at Xsyscall+0x128 end of kernel end trace frame: 0xd18d803fe60, 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(ffff800020d4ac10) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b46000,fffffd80652902a8,10,ffff80000005bfb0,ffff800020d4ae78) at alltraps_kern_meltdown+0x7b 0(b,ffff800020d4add8,83,ffff800020d4ae78,0,b) at 0 rt_clone(ffff800020d4aee8,fffffd806f6ceeb8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6ceeb8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6ceeb8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800020d4afc0,fffffd806f249c20,fffffd806f6cee38) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cee38,fffffd806f249c00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd806f6cf180,4,0,fffffd806f249c00,0,ffff800020ab0ee8) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ab0ee8,ffff800020d4b168,ffff800020d4b1b0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800020d4b230) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020d4b230) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,d1621a8a010) at Xsyscall+0x128 end of kernel end trace frame: 0xd18d803fe60, count: -14 ddb{1}> show registers rdi 0xffffffff81e07517 db_enter+0x17 rsi 0x2522 __ALIGN_SIZE+0x1522 rbp 0xffff800020d4aa80 rbx 0xffff800020d4ab30 rdx 0x2523 __ALIGN_SIZE+0x1523 rcx 0xffff800020b46000 rax 0xffff800020b46000 r8 0xffffffff817fb7bf kprintf+0x16f r9 0x1 r10 0x25 r11 0x6a33620c78ff0674 r12 0x3000000008 r13 0xffff800020d4aa90 r14 0x100 r15 0x1 rip 0xffffffff81e07518 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020d4aa70 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=403892 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ac0778,0xffffffff826286b0 process=0xffff800020a8b190 user=0xffff800020d46000, vmspace=0xfffffd807f00a5c0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 72252 304630 15872 0 7 0 syz-executor.0 *72252 403892 15872 0 7 0x4000000 syz-executor.0 75225 132426 98611 0 3 0x80 nanosleep syz-executor.1 75225 441106 98611 0 3 0x4000080 netio syz-executor.1 75225 108704 98611 0 3 0x4000080 fsleep syz-executor.1 98611 174399 31510 0 3 0x82 nanosleep syz-executor.1 15872 510116 31510 0 3 0x82 nanosleep syz-executor.0 88833 397010 1 0 3 0x100083 ttyin getty 76956 327703 0 0 3 0x14200 bored sosplice 31510 194927 55942 0 3 0x82 thrsleep syz-fuzzer 31510 492131 55942 0 3 0x4000082 nanosleep syz-fuzzer 31510 217675 55942 0 3 0x4000082 thrsleep syz-fuzzer 31510 217714 55942 0 3 0x4000082 thrsleep syz-fuzzer 31510 93773 55942 0 3 0x4000082 kqread syz-fuzzer 31510 169601 55942 0 3 0x4000082 thrsleep syz-fuzzer 31510 264088 55942 0 3 0x4000082 thrsleep syz-fuzzer 31510 325581 55942 0 3 0x4000082 thrsleep syz-fuzzer 31510 30392 55942 0 3 0x4000082 thrsleep syz-fuzzer 31510 53483 55942 0 3 0x4000082 nanosleep syz-fuzzer 55942 396654 59604 0 3 0x10008a pause ksh 59604 273803 3137 0 3 0x92 select sshd 3137 24500 1 0 3 0x80 select sshd 72857 129497 60734 74 3 0x100092 bpf pflogd 60734 450716 1 0 3 0x80 netio pflogd 17484 127632 40754 73 3 0x100090 kqread syslogd 40754 422231 1 0 3 0x100082 netio syslogd 26615 502340 0 0 2 0x14200 zerothread 55000 483850 0 0 3 0x14200 aiodoned aiodoned 84300 453017 0 0 3 0x14200 syncer update 57822 288859 0 0 3 0x14200 cleaner cleaner 61711 479735 0 0 3 0x14200 reaper reaper 95865 518614 0 0 3 0x14200 pgdaemon pagedaemon 82441 501212 0 0 3 0x14200 bored crynlk 37681 36783 0 0 3 0x14200 bored crypto 51528 512209 0 0 3 0x40014200 acpi0 acpi0 14023 174750 0 0 3 0x40014200 idle1 13278 417867 0 0 3 0x14200 bored softnet 86369 14857 0 0 3 0x14200 bored systqmp 26956 82951 0 0 3 0x14200 bored systq 87243 117135 0 0 3 0x40014200 bored softclock 8412 73673 0 0 3 0x40014200 idle0 78546 90964 0 0 3 0x14200 bored smr 1 511001 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 72252 (syz-executor.0) thread 0xffff800020ab0ee8 (403892) exclusive rwlock netlock r = 0 (0xffffffff82485b08) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 uvn_io+0x3b2 sys/uvm/uvm_vnode.c:1206 #2 uvn_get+0x226 sys/uvm/uvm_vnode.c:1049 #3 uvm_fault+0x11cc sys/uvm/uvm_fault.c:1023 #4 pageflttrap+0x20b sys/arch/amd64/amd64/trap.c:199 #5 kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 #6 alltraps_kern_meltdown+0x7b #7 copyin+0x4b #8 sys_connect+0x9c sys/kern/uipc_syscalls.c:367 #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 kernel_lock &kernel_lock r = 2 (0xffffffff826408b0) #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 9636 6532K 9015K 78643K 62849 0 0 pcb 13 10K 12K 78643K 1670 0 0 rtable 115 13K 15K 78643K 2846 0 0 ifaddr 115 29K 31K 78643K 1714 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1857 0 0 iov 0 0K 28K 78643K 1920 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1224 77K 78K 78643K 15567 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 121 0 0 VM map 2 1K 1K 78643K 22 0 0 sem 12 1K 1K 78643K 1102 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 8887 0 0 sigio 0 0K 0K 78643K 84 0 0 proc 57 51K 95K 78643K 3173 0 0 subproc 32 2K 2K 78643K 705 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 679 0 0 in_multi 25 1K 2K 78643K 823 0 0 ether_multi 1 0K 0K 78643K 41 0 0 mrt 0 0K 0K 78643K 50 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 1628 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 136 23K 33K 78643K 31916 0 0 UVM aobj 130 9K 9K 78643K 139 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 1692 0 0 NDP 27 1K 1K 78643K 533 0 0 temp 263 3557K 4199K 78643K 221702 0 0 kqueue 0 0K 0K 78643K 49 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 153 0 147 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 536 0 536 18 17 1 1 0 8 1 rtentry 112 820 0 780 2 0 2 2 0 8 0 unpcb 120 8921 0 8901 22 21 1 2 0 8 0 syncache 264 45 0 45 19 19 0 1 0 8 0 tcpqe 32 6126 0 6126 2 2 0 2 0 8 0 tcpcb 544 3307 0 3301 28 27 1 12 0 8 0 inpcb 280 15394 0 15386 41 39 2 9 0 8 1 rttmr 72 17 0 17 11 11 0 1 0 8 0 ip6q 72 1 0 0 1 0 1 1 0 8 0 ip6af 40 1 0 0 1 0 1 1 0 8 0 nd6 48 113 0 111 3 2 1 1 0 8 0 pkpcb 40 24 0 24 11 11 0 1 0 8 0 swfcl 56 6 0 0 1 0 1 1 0 8 0 ppxss 1128 264 0 264 26 25 1 1 0 8 1 pffrag 232 109 0 109 34 33 1 1 0 482 1 pffrnode 88 109 0 109 34 33 1 1 0 8 1 pffrent 40 255 0 255 35 34 1 1 0 8 1 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfstitem 24 581 0 525 1 0 1 1 0 8 0 pfstkey 112 581 0 525 2 0 2 2 0 8 0 pfstate 328 581 0 525 9 3 6 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 14 0 13 11 10 1 3 0 8 0 art_heap4 256 3421 0 3206 48 32 16 17 0 8 2 art_table 32 3435 0 3219 3 0 3 3 0 8 0 art_node 16 799 0 762 1 0 1 1 0 8 0 sysvmsgpl 40 136 0 132 1 0 1 1 0 8 0 semupl 112 6 0 6 1 1 0 1 0 8 0 semapl 112 1098 0 1088 1 0 1 1 0 8 0 shmpl 112 137 0 9 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 15012 0 13576 48 1 47 47 0 8 0 ffsino 272 15012 0 13576 98 1 97 97 0 8 0 nchpl 144 28328 0 27860 61 41 20 61 0 8 0 uvmvnodes 72 6474 0 0 118 0 118 118 0 8 0 vnodes 208 6474 0 0 341 0 341 341 0 8 0 namei 1024 101062 0 101062 7 6 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 20 0 20 11 11 0 1 0 8 0 scsiplug 64 9 0 9 5 5 0 1 0 8 0 scxspl 192 91125 0 91125 67 65 2 7 0 8 2 plimitpl 152 870 0 863 1 0 1 1 0 8 0 sigapl 432 8975 0 8961 3 1 2 3 0 8 0 futexpl 56 200335 0 200334 4 3 1 1 0 8 0 knotepl 112 1944 0 1925 6 5 1 3 0 8 0 kqueuepl 104 2354 0 2352 7 6 1 4 0 8 0 pipepl 112 5302 0 5283 7 5 2 2 0 8 0 fdescpl 488 8976 0 8961 3 0 3 3 0 8 0 filepl 152 79423 0 79325 55 50 5 13 0 8 1 lockfpl 104 3283 0 3283 6 5 1 1 0 8 1 lockfspl 48 1066 0 1066 6 5 1 1 0 8 1 sessionpl 112 62 0 53 1 0 1 1 0 8 0 pgrppl 48 140 0 131 1 0 1 1 0 8 0 ucredpl 96 8462 0 8453 1 0 1 1 0 8 0 zombiepl 144 8966 0 8966 8 7 1 1 0 8 1 processpl 896 8997 0 8966 4 0 4 4 0 8 0 procpl 632 29010 0 28967 32 28 4 5 0 8 0 srpgc 64 44 0 44 21 20 1 1 0 8 1 sosppl 128 123 0 123 35 34 1 1 0 8 1 sockpl 384 24946 0 24920 82 78 4 14 0 8 1 mcl64k 65536 625 0 0 72 42 30 65 0 8 0 mcl16k 16384 41 0 0 6 3 3 3 0 8 0 mcl12k 12288 57 0 0 2 0 2 2 0 8 0 mcl9k 9216 33 0 0 2 0 2 2 0 8 0 mcl8k 8192 20 0 0 3 1 2 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 270 0 0 27 11 16 27 0 8 0 mtagpl 80 148 0 0 1 0 1 1 0 8 0 mbufpl 256 1126 0 0 39 1 38 38 0 8 0 bufpl 256 32869 0 25821 441 0 441 441 0 8 0 anonpl 16 953145 0 940102 255 176 79 84 0 124 7 amapchunkpl 152 62500 0 62391 105 99 6 18 0 158 0 amappl16 192 45846 0 44909 293 237 56 60 0 8 8 amappl15 184 1397 0 1397 6 5 1 1 0 8 1 amappl14 176 2032 0 2028 2 1 1 1 0 8 0 amappl13 168 342 0 339 1 0 1 1 0 8 0 amappl12 160 1898 0 1895 1 0 1 1 0 8 0 amappl11 152 770 0 760 1 0 1 1 0 8 0 amappl10 144 1164 0 1158 1 0 1 1 0 8 0 amappl9 136 2905 0 2898 1 0 1 1 0 8 0 amappl8 128 2520 0 2466 2 0 2 2 0 8 0 amappl7 120 1319 0 1311 1 0 1 1 0 8 0 amappl6 112 666 0 653 1 0 1 1 0 8 0 amappl5 104 2363 0 2351 1 0 1 1 0 8 0 amappl4 96 8346 0 8310 2 1 1 2 0 8 0 amappl3 88 3298 0 3291 1 0 1 1 0 8 0 amappl2 80 69490 0 69419 4 2 2 3 0 8 0 amappl1 72 208666 0 208227 27 17 10 20 0 8 0 amappl 80 29980 0 29944 2 1 1 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 138 0 9 3 0 3 3 0 8 0 uaddrrnd 24 8996 0 8961 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8996 0 8961 1 0 1 1 0 8 0 vmmpekpl 168 70136 0 70099 2 0 2 2 0 8 0 vmmpepl 168 1122633 0 1120485 527 401 126 138 0 357 28 vmsppl 368 8975 0 8961 2 0 2 2 0 8 0 pdppl 4096 17999 0 17962 7 1 6 6 0 8 0 pvpl 32 2554289 0 2538010 546 358 188 200 0 265 21 pmappl 232 8995 0 8981 3 2 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 799 0 138 22 2 20 20 0 8 0