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 586 82740 0 0 0 0 syz-executor.1 *257797 82740 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(ffff800022818cb0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800021d7c000,fffffd8079dda700,10,ffff800000025160,ffff800022818f18) at alltraps_kern_meltdown+0x7b 0(b,ffff800022818e78,83,ffff800022818f18,0,b) at 0 rt_clone(ffff800022818f88,fffffd80654471a0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd80654471a0,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd80654471a0,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800022819060,fffffd8061fa7f20,fffffd8065447120) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd8065447120,fffffd8061fa7f00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd807e6ff610,4,0,fffffd8061fa7f00,0,ffff800020acf168) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020acf168,ffff800022819208,ffff800022819250) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000228192d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000228192d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,eb842538010) at Xsyscall+0x128 end of kernel end trace frame: 0xebad3995e40, 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(ffff800022818cb0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800021d7c000,fffffd8079dda700,10,ffff800000025160,ffff800022818f18) at alltraps_kern_meltdown+0x7b 0(b,ffff800022818e78,83,ffff800022818f18,0,b) at 0 rt_clone(ffff800022818f88,fffffd80654471a0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd80654471a0,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd80654471a0,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800022819060,fffffd8061fa7f20,fffffd8065447120) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd8065447120,fffffd8061fa7f00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd807e6ff610,4,0,fffffd8061fa7f00,0,ffff800020acf168) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020acf168,ffff800022819208,ffff800022819250) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000228192d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000228192d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,eb842538010) at Xsyscall+0x128 end of kernel end trace frame: 0xebad3995e40, count: -14 ddb{1}> show registers rdi 0xffffffff81a8d2c7 db_enter+0x17 rsi 0x224a __ALIGN_SIZE+0x124a rbp 0xffff800022818b20 rbx 0xffff800022818bd0 rdx 0x224b __ALIGN_SIZE+0x124b rcx 0xffff800021d7c000 rax 0xffff800021d7c000 r8 0xffffffff818b4cbf kprintf+0x16f r9 0x1 r10 0x25 r11 0x610890f1a84817c4 r12 0x3000000008 r13 0xffff800022818b30 r14 0x100 r15 0x1 rip 0xffffffff81a8d2c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022818b10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=257797 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020acfb48,0xffffffff82666280 process=0xffff800020a8a390 user=0xffff800022814000, vmspace=0xfffffd807f00ba10 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 82740 586 91400 0 7 0 syz-executor.1 *82740 257797 91400 0 7 0x4000000 syz-executor.1 70537 416680 59181 0 2 0 syz-executor.0 70537 234553 59181 0 3 0x4000080 fsleep syz-executor.0 70537 191725 59181 0 3 0x4000080 netcon syz-executor.0 70537 25968 59181 0 3 0x4000080 fsleep syz-executor.0 91400 335939 81224 0 3 0x82 nanosleep syz-executor.1 59181 173612 81224 0 3 0x82 nanosleep syz-executor.0 42166 220211 1 0 3 0x100083 ttyin getty 93142 261853 0 0 3 0x14200 acct acct 62343 269670 0 0 3 0x14200 bored sosplice 81224 165878 77664 0 3 0x82 thrsleep syz-fuzzer 81224 449044 77664 0 3 0x4000082 nanosleep syz-fuzzer 81224 520878 77664 0 3 0x4000082 thrsleep syz-fuzzer 81224 14500 77664 0 3 0x4000082 kqread syz-fuzzer 81224 222132 77664 0 3 0x4000082 thrsleep syz-fuzzer 81224 162341 77664 0 3 0x4000082 thrsleep syz-fuzzer 81224 493798 77664 0 3 0x4000082 thrsleep syz-fuzzer 81224 150864 77664 0 3 0x4000082 thrsleep syz-fuzzer 81224 307616 77664 0 3 0x4000082 thrsleep syz-fuzzer 81224 360471 77664 0 3 0x4000082 thrsleep syz-fuzzer 81224 122412 77664 0 3 0x4000082 thrsleep syz-fuzzer 77664 396094 95443 0 3 0x10008a pause ksh 95443 456971 17635 0 3 0x92 select sshd 17635 459050 1 0 3 0x80 select sshd 74978 474178 44818 74 3 0x100092 bpf pflogd 44818 113684 1 0 3 0x80 netio pflogd 71371 1229 70967 73 3 0x100090 kqread syslogd 70967 323259 1 0 3 0x100082 netio syslogd 82870 32109 1 77 3 0x100090 poll dhclient 80787 254839 1 0 3 0x80 poll dhclient 61929 1912 0 0 2 0x14200 zerothread 5053 67759 0 0 3 0x14200 aiodoned aiodoned 15159 479425 0 0 3 0x14200 syncer update 34683 257910 0 0 3 0x14200 cleaner cleaner 16811 355559 0 0 3 0x14200 reaper reaper 51185 108987 0 0 3 0x14200 pgdaemon pagedaemon 80332 273091 0 0 3 0x14200 bored crynlk 60930 487383 0 0 3 0x14200 bored crypto 4986 256536 0 0 3 0x40014200 acpi0 acpi0 7709 238983 0 0 3 0x40014200 idle1 57809 212809 0 0 3 0x14200 bored softnet 10163 159398 0 0 3 0x14200 bored systqmp 20366 202655 0 0 3 0x14200 bored systq 74915 387714 0 0 3 0x40014200 bored softclock 57170 57344 0 0 3 0x40014200 idle0 18068 113949 0 0 3 0x14200 bored smr 1 288837 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 82740 (syz-executor.1) thread 0xffff800020acf168 (257797) exclusive rwlock netlock r = 0 (0xffffffff824d26b8) #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 (0xffffffff82644940) #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 9611 7091K 8583K 78643K 46006 0 0 pcb 13 10K 12K 78643K 1405 0 0 rtable 127 15K 16K 78643K 4354 0 0 ifaddr 108 28K 33K 78643K 1304 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1892 0 0 iov 0 0K 28K 78643K 1308 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1233 77K 78K 78643K 11908 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 104 0 0 VM map 57 28K 28K 78643K 79 0 0 sem 12 0K 0K 78643K 1696 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 6707 0 0 sigio 0 0K 0K 78643K 81 0 0 proc 61 63K 95K 78643K 3118 0 0 subproc 32 2K 2K 78643K 854 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 481 0 0 in_multi 19 1K 2K 78643K 851 0 0 ether_multi 1 0K 0K 78643K 70 0 0 mrt 1 0K 0K 78643K 45 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 1525 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 236 444K 444K 78643K 24637 0 0 UVM aobj 130 7K 7K 78643K 138 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 2 0K 2K 78643K 4021 0 0 NDP 23 0K 1K 78643K 409 0 0 temp 250 3561K 4201K 78643K 133409 0 0 kqueue 0 0K 0K 78643K 88 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 132 0 125 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 648 0 646 1 0 1 1 0 8 0 rtentry 112 764 0 718 2 0 2 2 0 8 0 unpcb 120 3791 0 3770 6 5 1 2 0 8 0 syncache 264 38 0 38 17 16 1 1 0 8 1 sackhl 24 2 0 2 1 1 0 1 0 8 0 tcpqe 32 34 0 34 9 9 0 1 0 8 0 tcpcb 544 6049 0 6036 69 62 7 13 0 8 6 inpcb 280 12421 0 12401 57 50 7 10 0 8 5 rttmr 72 14 0 13 11 10 1 1 0 8 0 ip6q 72 3 0 3 2 2 0 1 0 8 0 ip6af 40 9 0 9 2 2 0 1 0 8 0 nd6 48 131 0 131 4 3 1 1 0 8 1 pkpcb 40 40 0 40 13 12 1 1 0 8 1 ppxss 1128 181 0 181 21 20 1 1 0 8 1 pffrag 232 162 0 162 25 24 1 1 0 482 1 pffrnode 88 159 0 159 25 24 1 1 0 8 1 pffrent 40 4729 0 4729 24 23 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 634 0 570 1 0 1 1 0 8 0 pfstkey 112 636 0 572 5 2 3 3 0 8 0 pfstate 328 636 0 572 13 6 7 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 12 0 10 10 8 2 4 0 8 0 art_heap4 256 3591 0 3370 54 34 20 21 0 8 2 art_table 32 3603 0 3380 4 1 3 3 0 8 0 art_node 16 759 0 721 1 0 1 1 0 8 0 sysvmsgpl 40 23 0 6 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 1694 0 1684 1 0 1 1 0 8 0 shmpl 112 136 0 8 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 12578 0 11150 47 0 47 47 0 8 0 ffsino 272 12578 0 11150 96 0 96 96 0 8 0 nchpl 144 23415 0 22963 62 42 20 61 0 8 0 uvmvnodes 72 6570 0 0 120 0 120 120 0 8 0 vnodes 208 6570 0 0 346 0 346 346 0 8 0 namei 1024 95739 0 95739 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 55 0 0 7 0 7 7 0 8 0 vmpool 552 77 0 22 5 1 4 4 0 8 0 scsiplug 64 13 0 13 9 9 0 1 0 8 0 scxspl 192 78898 0 78898 53 50 3 7 0 8 3 plimitpl 152 641 0 633 1 0 1 1 0 8 0 sigapl 432 6765 0 6749 4 2 2 3 0 8 0 futexpl 56 170916 0 170914 4 3 1 1 0 8 0 knotepl 112 1835 0 1816 11 8 3 3 0 8 2 kqueuepl 104 2697 0 2695 19 17 2 4 0 8 1 pipepl 112 4246 0 4227 12 11 1 2 0 8 0 fdescpl 488 6766 0 6749 3 0 3 3 0 8 0 filepl 152 66688 0 66576 81 71 10 14 0 8 5 lockfpl 104 2120 0 2119 1 0 1 1 0 8 0 lockfspl 48 726 0 725 1 0 1 1 0 8 0 sessionpl 112 70 0 59 1 0 1 1 0 8 0 pgrppl 48 151 0 140 1 0 1 1 0 8 0 ucredpl 96 9101 0 9092 1 0 1 1 0 8 0 zombiepl 144 6749 0 6749 3 2 1 1 0 8 1 processpl 896 6783 0 6749 5 1 4 5 0 8 0 procpl 632 21255 0 21207 5 0 5 5 0 8 0 srpgc 64 141 0 141 22 21 1 1 0 8 1 sosppl 128 178 0 178 24 23 1 1 0 8 1 sockpl 384 17077 0 17034 99 89 10 16 0 8 5 mcl64k 65536 770 0 0 86 52 34 66 0 8 0 mcl16k 16384 37 0 0 5 3 2 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 28 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 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 219 0 0 22 8 14 22 0 8 0 mtagpl 80 82 0 0 1 0 1 1 0 8 0 mbufpl 256 931 0 0 43 1 42 43 0 8 0 bufpl 256 32218 0 25160 442 0 442 442 0 8 0 anonpl 16 887557 0 864957 278 176 102 107 0 124 11 amapchunkpl 152 51668 0 51491 89 77 12 15 0 158 4 amappl16 192 39362 0 38092 269 196 73 75 0 8 8 amappl15 184 620 0 619 1 0 1 1 0 8 0 amappl14 176 870 0 865 1 0 1 1 0 8 0 amappl13 168 786 0 785 8 7 1 1 0 8 0 amappl12 160 1055 0 1053 1 0 1 1 0 8 0 amappl11 152 1762 0 1747 1 0 1 1 0 8 0 amappl10 144 452 0 445 1 0 1 1 0 8 0 amappl9 136 2024 0 2017 1 0 1 1 0 8 0 amappl8 128 1592 0 1523 4 1 3 3 0 8 0 amappl7 120 664 0 653 1 0 1 1 0 8 0 amappl6 112 1643 0 1626 1 0 1 1 0 8 0 amappl5 104 1630 0 1616 1 0 1 1 0 8 0 amappl4 96 7016 0 6981 1 0 1 1 0 8 0 amappl3 88 1546 0 1534 1 0 1 1 0 8 0 amappl2 80 51088 0 51002 3 1 2 3 0 8 0 amappl1 72 162667 0 162192 26 16 10 20 0 8 0 amappl 80 22458 0 22378 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 137 0 8 3 0 3 3 0 8 0 uaddrrnd 24 6843 0 6749 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6843 0 6749 1 0 1 1 0 8 0 vmmpekpl 168 57352 0 57306 4 1 3 3 0 8 0 vmmpepl 168 888177 0 885390 439 279 160 164 0 357 36 vmsppl 368 6765 0 6749 2 0 2 2 0 8 0 pdppl 4096 13693 0 13597 14 1 13 13 0 8 0 pvpl 32 2328427 0 2304798 485 257 228 234 0 265 32 pmappl 232 6842 0 6771 6 1 5 5 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 860 0 175 21 0 21 21 0 8 0