panic: kernel diagnostic assertion "(rt->rt_flags & RTF_MPATH) || mrt->rt_priority != prio" failed: file "/syzkaller/managers/main/kernel/sys/net/rtable.c", line 569 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *118960 2491 0 0 0x4000000 0 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:212 __assert(ffffffff81f7c399,ffffffff81f3aad6,239,ffffffff81f16fee) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff800000995900,0,ffff800000a0e690,38,fffffd803c6743f8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800017a0dbd0,38,ffff800017a0db48,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff800000a0e600,ffff800017a0dc78,ffff800017a0dbd0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803f030000,fffffd8037016300,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd8037016300,9,fffffd803f030000,0,0,ffff8000ffff8260) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd8037016300,0,ffff800017a0de70,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000ffff8260,3,ffff800017a0df50,0,ffff800017a0e060) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000ffff8260,ffff800017a0dff8,ffff800017a0e060) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800017a0e0d0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,713e9940010) at Xsyscall+0x128 end of kernel end trace frame: 0x71613114660, count: 2 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 kernel diagnostic assertion "(rt->rt_flags & RTF_MPATH) || mrt->rt_priority != prio" failed: file "/syzkaller/managers/main/kernel/sys/net/rtable.c", line 569 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:212 __assert(ffffffff81f7c399,ffffffff81f3aad6,239,ffffffff81f16fee) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff800000995900,0,ffff800000a0e690,38,fffffd803c6743f8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800017a0dbd0,38,ffff800017a0db48,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff800000a0e600,ffff800017a0dc78,ffff800017a0dbd0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803f030000,fffffd8037016300,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd8037016300,9,fffffd803f030000,0,0,ffff8000ffff8260) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd8037016300,0,ffff800017a0de70,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000ffff8260,3,ffff800017a0df50,0,ffff800017a0e060) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000ffff8260,ffff800017a0dff8,ffff800017a0e060) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800017a0e0d0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,713e9940010) at Xsyscall+0x128 end of kernel end trace frame: 0x71613114660, count: -13 ddb> show registers rdi 0xffffffff81db3e57 db_enter+0x17 rsi 0x4901 __ALIGN_SIZE+0x3901 rbp 0xffff800017a0d890 rbx 0xffff800017a0d940 rdx 0x4902 __ALIGN_SIZE+0x3902 rcx 0xffff800015a03000 rax 0xffff800015a03000 r8 0xffff800017a0d850 r9 0x1 r10 0xffff80000099c7c0 r11 0xb3793223c09d1c8d r12 0x3000000008 r13 0xffff800017a0d8a0 r14 0x100 r15 0x1 rip 0xffffffff81db3e58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800017a0d880 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=118960 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff8bc0,0xffffffff822b7b98 process=0xffff8000ffff6d30 user=0xffff800017a09000, vmspace=0xfffffd803f014840 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 2491 144224 26349 0 2 0 syz-executor.1 * 2491 118960 26349 0 7 0x4000000 syz-executor.1 44092 183312 1066 0 2 0 syz-executor.0 44092 180418 1066 0 2 0x4000000 syz-executor.0 26349 442673 98545 0 2 0x482 syz-executor.1 1066 228730 98545 0 2 0x482 syz-executor.0 82911 296581 0 0 3 0x14200 bored sosplice 98545 50069 34278 0 3 0x82 thrsleep syz-fuzzer 98545 179636 34278 0 3 0x4000082 thrsleep syz-fuzzer 98545 221515 34278 0 3 0x4000082 thrsleep syz-fuzzer 98545 122816 34278 0 3 0x4000082 thrsleep syz-fuzzer 98545 360056 34278 0 3 0x4000082 kqread syz-fuzzer 98545 107313 34278 0 3 0x4000082 thrsleep syz-fuzzer 98545 308267 34278 0 3 0x4000082 thrsleep syz-fuzzer 98545 488180 34278 0 3 0x4000082 thrsleep syz-fuzzer 34278 218654 81069 0 3 0x10008a pause ksh 81069 251884 39419 0 3 0x92 select sshd 45373 73071 1 0 3 0x100083 ttyin getty 39419 347758 1 0 3 0x80 select sshd 54343 426237 50908 73 3 0x100090 kqread syslogd 50908 424662 1 0 3 0x100082 netio syslogd 82665 207021 0 0 2 0x14200 zerothread 82780 507617 0 0 3 0x14200 aiodoned aiodoned 81879 410938 0 0 3 0x14200 syncer update 40704 336336 0 0 3 0x14200 cleaner cleaner 15363 497489 0 0 3 0x14200 reaper reaper 89701 294411 0 0 3 0x14200 pgdaemon pagedaemon 3116 31608 0 0 3 0x14200 bored crynlk 82697 175629 0 0 3 0x14200 bored crypto 24010 295870 0 0 3 0x40014200 acpi0 acpi0 13118 274398 0 0 3 0x14200 bored softnet 85736 375780 0 0 2 0x14200 systqmp 26419 194312 0 0 3 0x14200 bored systq 83455 168240 0 0 3 0x40014200 bored softclock 89235 478886 0 0 3 0x40014200 idle0 20807 4215 0 0 3 0x14200 bored smr 1 409400 0 0 3 0x82 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 Kern Lim devbuf 9543 6437K 14685K 78643K 27691 0 0 pcb 20 9K 11K 78643K 5421 0 0 rtable 128 5K 5K 78643K 2483 0 0 ifaddr 66 17K 19K 78643K 1029 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 429 0 0 iov 1 12K 32K 78643K 1507 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1205 76K 76K 78643K 9635 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 122 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 628 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 11024 0 0 sigio 0 0K 0K 78643K 172 0 0 proc 42 30K 55K 78643K 1964 0 0 subproc 32 2K 2K 78643K 318 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 1086 0 0 in_multi 33 2K 2K 78643K 557 0 0 ether_multi 1 0K 0K 78643K 66 0 0 mrt 0 0K 0K 78643K 16 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 120 530K 530K 78643K 120 0 0 exec 0 0K 1K 78643K 1222 0 0 pfkey data 0 0K 0K 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 86 20K 38K 78643K 26759 0 0 UVM aobj 130 6K 6K 78643K 152 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 458 0 0 NDP 14 0K 0K 78643K 290 0 0 temp 190 2715K 3355K 78643K 35997 0 0 kqueue 0 0K 0K 78643K 101 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 38 0 32 1 0 1 1 0 8 0 inpcbpl 280 4373 0 4369 1 0 1 1 0 8 0 plimitpl 152 298 0 292 1 0 1 1 0 8 0 rtentry 112 260 0 214 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 1576 0 1572 1 0 1 1 0 8 0 nd6 48 54 0 48 1 0 1 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 190 0 190 25 24 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 945 0 748 13 0 13 13 0 8 0 art_table 32 946 0 748 2 0 2 2 0 8 0 art_node 16 222 0 180 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 6 1 0 1 1 0 8 0 semapl 112 626 0 616 1 0 1 1 0 8 0 shmpl 112 150 0 22 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 19795 0 18261 50 0 50 50 0 8 0 ffsino 240 19795 0 18261 91 0 91 91 0 8 0 nchpl 144 35148 0 33524 61 0 61 61 0 8 0 uvmvnodes 72 6004 0 0 110 0 110 110 0 8 0 vnodes 200 6004 0 0 316 0 316 316 0 8 0 namei 1024 112663 0 112663 6 5 1 1 0 8 1 scsiplug 64 11 0 11 9 9 0 1 0 8 0 scxspl 192 118622 0 118622 66 63 3 6 0 8 3 sigapl 432 11147 0 11135 2 0 2 2 0 8 0 futexpl 56 164501 0 164501 4 3 1 1 0 8 1 knotepl 112 2207 0 2188 1 0 1 1 0 8 0 kqueuepl 104 2639 0 2637 1 0 1 1 0 8 0 pipepl 112 6206 0 6187 20 19 1 2 0 8 0 fdescpl 424 11148 0 11135 2 0 2 2 0 8 0 filepl 120 65563 0 65477 16 12 4 5 0 8 1 lockfpl 104 3662 0 3661 5 4 1 1 0 8 0 lockfspl 48 1257 0 1256 5 4 1 1 0 8 0 sessionpl 112 33 0 25 1 0 1 1 0 8 0 pgrppl 48 173 0 165 1 0 1 1 0 8 0 ucredpl 96 15923 0 15917 1 0 1 1 0 8 0 zombiepl 144 11135 0 11135 3 2 1 1 0 8 1 processpl 840 11163 0 11135 4 0 4 4 0 8 0 procpl 600 24970 0 24933 7 3 4 4 0 8 1 sosppl 128 128 0 128 28 28 0 1 0 8 0 sockpl 384 9214 0 9203 10 8 2 4 0 8 0 mcl64k 65536 3161 0 3161 288 260 28 129 0 8 28 mcl16k 16384 28 0 28 22 22 0 1 0 8 0 mcl12k 12288 199 0 199 27 26 1 1 0 8 1 mcl9k 9216 184 0 184 29 28 1 1 0 8 1 mcl8k 8192 144 0 144 29 28 1 1 0 8 1 mcl4k 4096 412 0 412 14 13 1 1 0 8 1 mcl2k2 2112 67 0 67 29 28 1 1 0 8 1 mcl2k 2048 68655 0 68613 26 20 6 11 0 8 0 mtagpl 80 14 0 14 6 6 0 1 0 8 0 mbufpl 256 166204 0 166124 160 149 11 69 0 8 5 bufpl 256 36179 0 30176 376 0 376 376 0 8 0 anonpl 16 926492 0 917663 314 269 45 56 0 62 3 amapchunkpl 152 47413 0 47331 109 104 5 14 0 158 0 amappl16 192 57939 0 57432 309 278 31 38 0 8 5 amappl15 184 67 0 67 5 5 0 1 0 8 0 amappl14 176 190 0 189 2 1 1 1 0 8 0 amappl13 168 8918 0 8918 2 2 0 1 0 8 0 amappl12 160 32 0 29 1 0 1 1 0 8 0 amappl11 152 856 0 849 1 0 1 1 0 8 0 amappl10 144 165 0 163 2 1 1 1 0 8 0 amappl9 136 760 0 757 1 0 1 1 0 8 0 amappl8 128 275 0 258 1 0 1 1 0 8 0 amappl7 120 154 0 147 1 0 1 1 0 8 0 amappl6 112 794 0 784 1 0 1 1 0 8 0 amappl5 104 336 0 328 1 0 1 1 0 8 0 amappl4 96 11127 0 11106 1 0 1 1 0 8 0 amappl3 88 709 0 698 1 0 1 1 0 8 0 amappl2 80 91405 0 91337 4 2 2 3 0 8 0 amappl1 72 205219 0 204823 28 20 8 19 0 8 0 amappl 80 25504 0 25473 1 0 1 1 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 dma64 64 259 0 259 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 151 0 22 3 0 3 3 0 8 0 uaddrrnd 24 11148 0 11135 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 11148 0 11135 1 0 1 1 0 8 0 vmmpekpl 168 62777 0 62754 2 0 2 2 0 8 0 vmmpepl 168 1094404 0 1092915 300 228 72 81 0 357 4 vmsppl 264 11147 0 11135 3 2 1 2 0 8 0 pdppl 4096 22302 0 22270 7 2 5 6 0 8 0 pvpl 32 2741395 0 2729433 679 462 217 245 0 265 113 pmappl 200 11147 0 11135 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1039 0 501 21 5 16 20 0 8 0