""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 *324768 30980 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(ffffffff81f7aa47,ffffffff81f39f83,239,ffffffff81f1656f) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff8000009858c0,ffff80000096a298,ffff80000096a290,8,fffffd803036a708) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800015a1e6f0,0,ffff800015a1e668,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff80000096a200,ffff800015a1e798,ffff800015a1e6f0,0,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803f028100,fffffd80363e4c08,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363e4c08,9,fffffd803f028100,0,0,ffff8000ffff9778) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363e4c08,0,ffff800015a1e990,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000ffff9778,3,ffff800015a1ea70,0,ffff800015a1eb80) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000ffff9778,ffff800015a1eb18,ffff800015a1eb80) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800015a1ebf0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,fe087265010) at Xsyscall+0x128 end of kernel end trace frame: 0xfe2b6d24330, 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(ffffffff81f7aa47,ffffffff81f39f83,239,ffffffff81f1656f) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff8000009858c0,ffff80000096a298,ffff80000096a290,8,fffffd803036a708) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800015a1e6f0,0,ffff800015a1e668,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff80000096a200,ffff800015a1e798,ffff800015a1e6f0,0,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803f028100,fffffd80363e4c08,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363e4c08,9,fffffd803f028100,0,0,ffff8000ffff9778) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363e4c08,0,ffff800015a1e990,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000ffff9778,3,ffff800015a1ea70,0,ffff800015a1eb80) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000ffff9778,ffff800015a1eb18,ffff800015a1eb80) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800015a1ebf0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,fe087265010) at Xsyscall+0x128 end of kernel end trace frame: 0xfe2b6d24330, count: -13 ddb> show registers rdi 0xffffffff81e3dd87 db_enter+0x17 rsi 0x4c85 __ALIGN_SIZE+0x3c85 rbp 0xffff800015a1e3b0 rbx 0xffff800015a1e460 rdx 0x4c86 __ALIGN_SIZE+0x3c86 rcx 0xffff8000149f1000 rax 0xffff8000149f1000 r8 0xffff800015a1e370 r9 0x1 r10 0xffff80000098fd40 r11 0x7b174dd76439e669 r12 0x3000000008 r13 0xffff800015a1e3c0 r14 0x100 r15 0x1 rip 0xffffffff81e3dd88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015a1e3a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=324768 stat=onproc flags process=0 proc=4000000 pri=77, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff8260,0xffffffff822b6920 process=0xffff8000ffff69e8 user=0xffff800015a19000, vmspace=0xfffffd803f00ce70 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 30980 323602 98045 0 2 0 syz-executor.1 *30980 324768 98045 0 7 0x4000000 syz-executor.1 64190 199789 11172 0 2 0 syz-executor.0 64190 238781 11172 0 3 0x4000080 ttyin syz-executor.0 75201 405942 0 0 3 0x14200 bored sosplice 11172 184240 43449 0 3 0x82 nanosleep syz-executor.0 98045 386663 43449 0 2 0x482 syz-executor.1 43449 437444 89245 0 3 0x82 thrsleep syz-fuzzer 43449 52665 89245 0 3 0x4000082 thrsleep syz-fuzzer 43449 287561 89245 0 3 0x4000082 thrsleep syz-fuzzer 43449 454314 89245 0 3 0x4000082 kqread syz-fuzzer 43449 444389 89245 0 3 0x4000082 thrsleep syz-fuzzer 43449 521266 89245 0 3 0x4000082 thrsleep syz-fuzzer 43449 331609 89245 0 3 0x4000082 thrsleep syz-fuzzer 89245 90937 55743 0 3 0x10008a pause ksh 55743 519573 84357 0 3 0x92 select sshd 18658 290085 1 0 3 0x100083 ttyin getty 84357 79288 1 0 3 0x80 select sshd 88541 435799 48183 73 3 0x100090 kqread syslogd 48183 172431 1 0 3 0x100082 netio syslogd 46951 93989 1 77 3 0x100090 poll dhclient 37736 26683 1 0 3 0x80 poll dhclient 60662 474547 0 0 2 0x14200 zerothread 83325 301598 0 0 3 0x14200 aiodoned aiodoned 85657 482902 0 0 3 0x14200 syncer update 91323 250139 0 0 3 0x14200 cleaner cleaner 92774 93920 0 0 3 0x14200 reaper reaper 73764 377594 0 0 3 0x14200 pgdaemon pagedaemon 34152 106575 0 0 3 0x14200 bored crynlk 32032 192822 0 0 3 0x14200 bored crypto 42791 134104 0 0 3 0x40014200 acpi0 acpi0 78031 177191 0 0 3 0x14200 bored softnet 33983 347812 0 0 2 0x14200 systqmp 34755 19407 0 0 3 0x14200 bored systq 27957 492417 0 0 3 0x40014200 bored softclock 94859 410192 0 0 3 0x40014200 idle0 44282 250782 0 0 3 0x14200 bored smr 1 393185 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 9478 6968K 7101K 78643K 12101 0 0 pcb 24 9K 10K 78643K 431 0 0 rtable 111 4K 4K 78643K 362 0 0 ifaddr 50 12K 13K 78643K 134 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 45 0 0 iov 0 0K 24K 78643K 136 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1214 76K 77K 78643K 1928 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 18 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 68 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 935 0 0 sigio 0 0K 0K 78643K 12 0 0 proc 41 30K 54K 78643K 367 0 0 subproc 32 2K 2K 78643K 38 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 144 0 0 in_multi 33 2K 2K 78643K 88 0 0 ether_multi 1 0K 0K 78643K 6 0 0 mrt 0 0K 0K 78643K 6 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 240 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 84 20K 29K 78643K 3020 0 0 UVM aobj 51 2K 2K 78643K 58 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 26 0 0 NDP 9 0K 0K 78643K 35 0 0 temp 144 2713K 3353K 78643K 5745 0 0 kqueue 0 0K 0K 78643K 6 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 6 0 0 1 0 1 1 0 8 0 inpcbpl 280 436 0 429 2 1 1 2 0 8 0 plimitpl 152 32 0 25 1 0 1 1 0 8 0 rtentry 112 46 0 1 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 4 0 4 1 1 0 1 0 8 0 tcpcb 544 160 0 156 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 18 0 18 3 2 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 189 0 0 12 0 12 12 0 8 0 art_table 32 190 0 0 2 0 2 2 0 8 0 art_node 16 45 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 0 1 0 1 1 0 8 0 semapl 112 64 0 54 1 0 1 1 0 8 0 shmpl 112 56 0 7 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2970 0 1553 46 0 46 46 0 8 0 ffsino 240 2970 0 1553 84 0 84 84 0 8 0 nchpl 144 4422 0 2788 61 0 61 61 0 8 0 uvmvnodes 72 3386 0 0 62 0 62 62 0 8 0 vnodes 200 3386 0 0 179 0 179 179 0 8 0 namei 1024 12933 0 12933 2 1 1 1 0 8 1 scxspl 192 12288 0 12288 11 8 3 6 0 8 3 sigapl 432 1106 0 1092 2 0 2 2 0 8 0 futexpl 56 14210 0 14210 1 0 1 1 0 8 1 knotepl 112 269 0 250 1 0 1 1 0 8 0 kqueuepl 104 234 0 232 1 0 1 1 0 8 0 pipepl 112 562 0 543 2 1 1 1 0 8 0 fdescpl 424 1107 0 1092 2 0 2 2 0 8 0 filepl 120 6337 0 6240 4 0 4 4 0 8 1 lockfpl 104 314 0 314 2 1 1 1 0 8 1 lockfspl 48 107 0 107 2 1 1 1 0 8 1 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 37 0 27 1 0 1 1 0 8 0 ucredpl 96 1541 0 1534 1 0 1 1 0 8 0 zombiepl 144 1092 0 1092 2 1 1 1 0 8 1 processpl 840 1122 0 1092 4 0 4 4 0 8 0 procpl 600 2321 0 2283 4 0 4 4 0 8 1 sosppl 128 8 0 8 4 4 0 1 0 8 0 sockpl 384 788 0 770 3 0 3 3 0 8 1 mcl64k 65536 628 0 628 71 46 25 47 0 8 25 mcl16k 16384 3 0 3 3 3 0 1 0 8 0 mcl12k 12288 13 0 13 3 2 1 1 0 8 1 mcl9k 9216 15 0 15 5 4 1 1 0 8 1 mcl8k 8192 9 0 9 4 4 0 1 0 8 0 mcl4k 4096 44 0 44 2 1 1 1 0 8 1 mcl2k2 2112 5 0 5 4 3 1 1 0 8 1 mcl2k 2048 53603 0 53557 15 8 7 12 0 8 0 mtagpl 80 8 0 6 2 1 1 1 0 8 0 mbufpl 256 92450 0 92386 47 37 10 28 0 8 4 bufpl 256 8262 0 3470 300 0 300 300 0 8 0 anonpl 16 102386 0 92833 73 29 44 54 0 62 5 amapchunkpl 152 4597 0 4509 19 14 5 9 0 158 0 amappl16 192 5308 0 4790 52 22 30 38 0 8 4 amappl14 176 37 0 34 2 1 1 1 0 8 0 amappl13 168 453 0 451 1 0 1 1 0 8 0 amappl12 160 14 0 11 1 0 1 1 0 8 0 amappl11 152 513 0 496 1 0 1 1 0 8 0 amappl10 144 61 0 60 2 1 1 1 0 8 0 amappl9 136 552 0 549 1 0 1 1 0 8 0 amappl8 128 123 0 110 1 0 1 1 0 8 0 amappl7 120 31 0 28 1 0 1 1 0 8 0 amappl6 112 502 0 494 1 0 1 1 0 8 0 amappl5 104 132 0 121 1 0 1 1 0 8 0 amappl4 96 1234 0 1212 1 0 1 1 0 8 0 amappl3 88 202 0 191 1 0 1 1 0 8 0 amappl2 80 8150 0 8075 4 2 2 3 0 8 0 amappl1 72 28984 0 28553 24 15 9 19 0 8 0 amappl 80 2553 0 2518 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 57 0 7 1 0 1 1 0 8 0 uaddrrnd 24 1107 0 1092 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1107 0 1092 1 0 1 1 0 8 0 vmmpekpl 168 9987 0 9964 2 0 2 2 0 8 0 vmmpepl 168 117370 0 115802 103 31 72 78 0 357 3 vmsppl 264 1106 0 1092 2 1 1 2 0 8 0 pdppl 4096 2221 0 2184 6 1 5 6 0 8 0 pvpl 32 301925 0 289266 162 45 117 137 0 265 14 pmappl 200 1106 0 1092 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 553 0 103 14 0 14 14 0 8 0