panic: kernel diagnostic assertion "sin6tosa(&ro->ro_dst)->sa_family == AF_INET6" failed: file "/syzkaller/managers/main/kernel/sys/netinet6/in6_src.c", line 328 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *473249 50067 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8285300a) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828d4920,ffffffff8282cbbd,148,ffffffff829229b7) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff800030e2d818,0,fffffd806c789cb8,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd8061b68700,0,fffffd806c789cb8,0,0,fffffd806c789d58) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e15670) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd805f8a1d00,fffffd8061b68000) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a6dcd48,ffff800030e2dcc0,ffff800030e2dc10) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff800030e2dcc0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf68aa866010, count: 5 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: kernel diagnostic assertion "sin6tosa(&ro->ro_dst)->sa_family == AF_INET6" failed: file "/syzkaller/managers/main/kernel/sys/netinet6/in6_src.c", line 328 ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8285300a) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828d4920,ffffffff8282cbbd,148,ffffffff829229b7) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff800030e2d818,0,fffffd806c789cb8,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd8061b68700,0,fffffd806c789cb8,0,0,fffffd806c789d58) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e15670) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd805f8a1d00,fffffd8061b68000) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a6dcd48,ffff800030e2dcc0,ffff800030e2dc10) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff800030e2dcc0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf68aa866010, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800030e2d670 rbx 0x2 rdx 0xffff800000dc5e40 rcx 0 rax 0xffff80002a6dcd48 r8 0 r9 0x8080808080808080 r10 0xbbf1402100f87293 r11 0x75eb2ce19b9f9153 r12 0 r13 0xffff800030e2d818 r14 0 r15 0x1 rip 0xffffffff813c0b6c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800030e2d660 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) tid=473249 pid=50067 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a6dc000,0xffff80002a6dd7f8 process=0xffff8000343c4448 user=0xffff800030e28000, vmspace=0xfffffd807a3e6e30 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 67884 310985 78578 0 2 0 syz-executor.0 67884 356048 78578 0 3 0x4000080 fsleep syz-executor.0 50067 1 40179 0 2 0 syz-executor.1 *50067 473249 40179 0 7 0x4000000 syz-executor.1 57385 354441 80113 0 2 0 syz-executor.5 57385 213542 80113 0 2 0x4000000 syz-executor.5 58181 198068 10997 0 2 0 syz-executor.2 58181 138889 10997 0 3 0x4000080 fsleep syz-executor.2 15235 320746 92330 0 2 0x480 syz-executor.3 15235 96514 92330 0 3 0x4000080 netcon syz-executor.3 15235 207378 92330 0 3 0x4000080 fsleep syz-executor.3 15235 52480 92330 0 3 0x4000080 fsleep syz-executor.3 36330 77556 0 0 3 0x14280 nfsidl nfsio 96245 447415 0 0 3 0x14280 nfsidl nfsio 96129 207737 0 0 3 0x14280 nfsidl nfsio 30924 128869 0 0 3 0x14280 nfsidl nfsio 24046 269700 0 0 3 0x14280 nfsidl nfsio 99379 221069 0 0 3 0x14280 nfsidl nfsio 72130 201284 0 0 3 0x14280 nfsidl nfsio 47864 200737 0 0 3 0x14280 nfsidl nfsio 64981 422481 0 0 3 0x14280 nfsidl nfsio 24653 267290 0 0 3 0x14280 nfsidl nfsio 56912 343925 0 0 3 0x14280 nfsidl nfsio 18655 204952 0 0 3 0x14280 nfsidl nfsio 83232 326620 0 0 3 0x14280 nfsidl nfsio 54741 381957 0 0 3 0x14280 nfsidl nfsio 21682 196928 0 0 3 0x14280 nfsidl nfsio 79995 492183 0 0 3 0x14280 nfsidl nfsio 35611 196512 0 0 3 0x14280 nfsidl nfsio 33780 127170 0 0 3 0x14280 nfsidl nfsio 64781 514860 0 0 3 0x14280 nfsidl nfsio 44030 266457 0 0 3 0x14280 nfsidl nfsio 83171 30029 49152 0 2 0x482 syz-executor.7 80113 202402 49152 0 2 0x482 syz-executor.5 40179 247444 49152 0 2 0x482 syz-executor.1 57045 138290 49152 0 2 0x2 syz-executor.4 92330 227511 49152 0 2 0x482 syz-executor.3 78578 282451 49152 0 2 0x482 syz-executor.0 90372 380702 49152 0 2 0x482 syz-executor.6 10997 485510 49152 0 2 0x482 syz-executor.2 43652 517321 1 0 3 0x100083 ttyopn getty 9169 270024 0 0 3 0x14200 acct acct 14803 178524 0 0 3 0x14200 bored sosplice 49152 356074 96556 0 3 0x2000082 wait syz-fuzzer 49152 360319 96556 0 2 0x6000482 syz-fuzzer 49152 319091 96556 0 3 0x6000082 wait syz-fuzzer 49152 225544 96556 0 3 0x6000082 thrsleep syz-fuzzer 49152 450641 96556 0 3 0x6000082 wait syz-fuzzer 49152 265133 96556 0 3 0x6000082 thrsleep syz-fuzzer 49152 167944 96556 0 3 0x6000082 wait syz-fuzzer 49152 412996 96556 0 3 0x6000082 wait syz-fuzzer 49152 458787 96556 0 3 0x6000082 wait syz-fuzzer 49152 477704 96556 0 3 0x6000082 thrsleep syz-fuzzer 49152 278597 96556 0 3 0x6000082 thrsleep syz-fuzzer 49152 95221 96556 0 3 0x6000082 kqread syz-fuzzer 49152 440035 96556 0 3 0x6000082 wait syz-fuzzer 49152 374796 96556 0 3 0x6000082 wait syz-fuzzer 96556 64094 55625 0 3 0x10008a sigsusp ksh 55625 51564 75166 0 3 0x9a kqread sshd 75166 47965 1 0 3 0x88 kqread sshd 86830 63534 24223 73 3 0x1100090 kqread syslogd 24223 32393 1 0 3 0x100082 netio syslogd 95799 377989 1 0 3 0x100080 kqread resolvd 28408 275534 50022 77 3 0x100092 kqread dhcpleased 64818 319809 50022 77 3 0x100092 kqread dhcpleased 50022 329683 1 0 3 0x80 kqread dhcpleased 79056 373903 0 0 3 0x14200 bored smr 65243 196348 0 0 2 0x14200 zerothread 86787 87498 0 0 3 0x14200 aiodoned aiodoned 69826 21278 0 0 3 0x14200 syncer update 54494 430421 0 0 3 0x14200 cleaner cleaner 27860 203845 0 0 3 0x14200 reaper reaper 88501 126450 0 0 3 0x14200 pgdaemon pagedaemon 20989 21460 0 0 3 0x14200 bored viomb 65020 52536 0 0 3 0x40014200 acpi0 acpi0 92057 353765 0 0 3 0x14200 bored softnet3 43606 157225 0 0 3 0x14200 bored softnet2 94820 369104 0 0 3 0x14200 bored softnet1 6629 475345 0 0 3 0x14200 bored softnet0 66545 127036 0 0 3 0x14200 bored systqmp 95070 320476 0 0 3 0x14200 bored systq 86153 452532 0 0 3 0x40014200 tmoslp softclock 43183 15193 0 0 3 0x40014200 idle0 1 99580 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10232 6443K 7546K 166960K 30204 0 pcb 15 20K 23K 166960K 1224 0 rtable 177 13K 16K 166960K 3743 0 pf 29 8K 10K 166960K 487 0 ifaddr 34 11K 13K 166960K 519 0 ifgroup 50 2K 2K 166960K 814 0 sysctl 4 1K 3K 166960K 8 0 counters 30 17K 18K 166960K 231 0 ioctlops 0 0K 2K 166960K 708 0 iov 0 0K 16K 166960K 1321 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1532 96K 96K 166960K 9057 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 161 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 1465 0 dirhash 12 2K 2K 166960K 87 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 15 53K 85K 166960K 12611 0 sigio 1 0K 0K 166960K 364 0 proc 58 59K 100K 166960K 3352 0 subproc 104 6K 6K 166960K 1238 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 954 0 in_multi 66 4K 7K 166960K 1160 0 ether_multi 1 0K 0K 166960K 7 0 mrt 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 223 996K 996K 166960K 223 0 exec 0 0K 1K 166960K 3422 0 pfkey data 0 0K 0K 166960K 4 0 tdb 3 0K 0K 166960K 3 0 pagedep 1 8K 8K 166960K 1 0 inodedep 1 32K 32K 166960K 1 0 newblk 1 0K 0K 166960K 1 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 459 540K 549K 166960K 114314 0 UVM aobj 131 4K 4K 166960K 134 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 630 0 NDP 11 0K 2K 166960K 405 0 temp 75 6704K 6832K 166960K 144460 0 kqueue 12 18K 28K 166960K 826 0 SYN cache 2 1236K 1244K 166960K 3 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 1042 0 1039 11 10 1 3 0 8 0 rtentry 112 1172 0 1095 7 3 4 4 0 8 0 unpcb 144 8000 0 7984 65 63 2 7 0 8 1 syncache 320 147 0 147 28 27 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 319 0 319 23 22 1 1 0 8 1 tcpcb 808 4546 0 4534 110 108 2 14 0 8 0 arp 88 221 0 209 1 0 1 1 0 8 0 ipq 40 79 0 78 6 5 1 1 0 8 0 ipqe 40 168 0 167 6 5 1 1 0 8 0 inpcb 344 11124 0 11107 166 158 8 24 0 8 6 nd6 104 298 0 283 1 0 1 1 0 8 0 pkpcb 40 31 0 31 6 6 0 1 0 8 0 kcovpl 48 95 0 87 1 0 1 1 0 8 0 ppxss 1072 48 0 48 15 15 0 1 0 8 0 art_heap8 4096 2 0 1 2 1 1 2 0 8 0 art_heap4 256 4643 0 4316 81 59 22 31 0 8 0 art_table 32 4645 0 4317 4 0 4 4 0 8 0 art_node 16 1158 0 1088 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 7 1 1 0 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 1457 0 1447 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 67 0 50 3 0 3 3 0 8 0 dino2pl 256 17215 0 15713 95 0 95 95 0 8 0 ffsino 240 17215 0 15713 89 0 89 89 0 8 0 nchpl 144 33666 0 32032 63 0 63 63 0 8 0 uvmvnodes 80 6626 0 0 136 0 136 136 0 8 0 vnodes 216 6626 0 0 369 0 369 369 0 8 0 namei 1024 123674 0 123674 15 14 1 2 0 8 1 vcpupl 2048 129 0 0 17 0 17 17 0 8 0 vmpool 664 162 0 33 13 2 11 11 0 8 0 kstatmem 264 424 0 402 3 1 2 3 0 8 0 scxspl 216 119274 0 119274 42 40 2 8 1 8 2 plimitpl 152 1469 0 1454 1 0 1 1 0 8 0 sigapl 424 13309 0 13243 10 2 8 9 0 8 0 futexpl 64 111972 0 111968 7 6 1 1 0 8 0 knotepl 120 107078 0 106996 43 39 4 11 0 8 0 kqueuepl 184 2699 0 2691 38 34 4 4 0 8 3 pipepl 288 2748 0 2720 66 61 5 11 0 8 2 fdescpl 432 12691 0 12665 4 0 4 4 0 8 0 filepl 120 76448 0 76167 122 109 13 15 0 8 4 lockfpl 104 3443 0 3409 4 3 1 2 0 8 0 lockfspl 48 1446 0 1412 1 0 1 1 0 8 0 sessionpl 144 114 0 98 1 0 1 1 0 8 0 pgrppl 48 479 0 463 1 0 1 1 0 8 0 ucredpl 104 9461 0 9449 1 0 1 1 0 8 0 zombiepl 144 13245 0 13243 3 2 1 1 0 8 0 processpl 1072 13309 0 13243 5 0 5 5 0 8 0 procpl 680 30636 0 30550 27 18 9 9 0 8 0 sosppl 168 118 0 118 15 15 0 1 0 8 0 sockpl 456 20264 0 20228 364 352 12 36 0 8 7 mcl64k 65536 596 0 596 33 32 1 1 0 8 1 mcl16k 16384 249 0 249 30 29 1 1 0 8 1 mcl12k 12288 498 0 498 28 27 1 1 0 8 1 mcl9k 9216 224 0 224 35 34 1 1 0 8 1 mcl8k 8192 743 0 743 33 32 1 9 0 8 1 mcl4k 4096 1311 0 1311 22 21 1 1 0 8 1 mcl2k2 2112 72 0 72 27 26 1 1 0 8 1 mcl2k 2048 94679 0 94631 71 63 8 29 0 8 1 mtagpl 96 1462 0 1402 24 22 2 10 0 8 0 mbufpl 256 263334 0 263178 271 247 24 78 0 8 8 bufpl 288 30078 0 23451 474 0 474 474 0 8 0 anonpl 24 1327700 0 1313322 199 98 101 112 0 188 0 amapchunkpl 152 365358 0 364477 114 72 42 47 0 158 0 amappl16 200 25848 0 25372 133 105 28 39 0 8 0 amappl15 192 11 0 11 1 1 0 1 0 8 0 amappl14 184 495 0 481 2 1 1 2 0 8 0 amappl13 176 130 0 128 1 0 1 1 0 8 0 amappl12 168 14626 0 14597 2 0 2 2 0 8 0 amappl11 160 56 0 46 1 0 1 1 0 8 0 amappl10 152 175 0 163 2 1 1 1 0 8 0 amappl9 144 236 0 235 1 0 1 1 0 8 0 amappl8 136 714 0 614 4 0 4 4 0 8 0 amappl7 128 423 0 399 2 0 2 2 0 8 0 amappl6 120 1588 0 1575 1 0 1 1 0 8 0 amappl5 112 430 0 421 1 0 1 1 0 8 0 amappl4 104 1109 0 1083 2 1 1 2 0 8 0 amappl3 96 70718 0 70629 3 0 3 3 0 8 0 amappl2 88 13897 0 13823 3 1 2 3 0 8 0 amappl1 80 59719 0 59207 24 12 12 22 0 8 0 amappl 88 112792 0 112523 7 0 7 7 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 12853 0 12698 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 12853 0 12698 1 0 1 1 0 8 0 vmmpekpl 168 93267 0 93184 5 0 5 5 0 8 0 vmmpepl 168 792846 0 790438 419 298 121 138 0 357 0 vmsppl 352 12852 0 12698 15 0 15 15 0 8 0 rwobjpl 24 185259 0 176919 53 1 52 52 0 8 0 pdppl 4096 25712 0 25525 849 656 193 193 0 8 6 pvpl 32 3628468 0 3608301 562 374 188 334 0 265 6 pmappl 216 12852 0 12698 9 0 9 9 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2291 0 1343 29 0 29 29 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8285300a) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828d4920,ffffffff8282cbbd,148,ffffffff829229b7) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff800030e2d818,0,fffffd806c789cb8,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd8061b68700,0,fffffd806c789cb8,0,0,fffffd806c789d58) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e15670) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd805f8a1d00,fffffd8061b68000) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a6dcd48,ffff800030e2dcc0,ffff800030e2dc10) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff800030e2dcc0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf68aa866010, count: -10 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8285300a) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828d4920,ffffffff8282cbbd,148,ffffffff829229b7) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff800030e2d818,0,fffffd806c789cb8,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd8061b68700,0,fffffd806c789cb8,0,0,fffffd806c789d58) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e15670) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd805f8a1d00,fffffd8061b68000) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a6dcd48,ffff800030e2dcc0,ffff800030e2dc10) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff800030e2dcc0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf68aa866010, count: -10