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 *311702 81104 0 0 0x4000000 0 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:212 __assert(ffffffff81f7c399,ffffffff81f3aad6,239,ffffffff81f16fee) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff800000998c40,0,ffff8000009d8a90,38,fffffd8030271388) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800015a30cf0,38,ffff800015a30c68,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009d8a00,ffff800015a30d98,ffff800015a30cf0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8030375400,fffffd80363e0d88,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363e0d88,9,fffffd8030375400,0,0,ffff800015a15080) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363e0d88,0,ffff800015a30f90,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800015a15080,3,ffff800015a31070,0,ffff800015a31180) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800015a15080,ffff800015a31118,ffff800015a31180) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800015a311f0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,3e9da5a010) at Xsyscall+0x128 end of kernel end trace frame: 0x4158c82bb0, 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,ffff800000998c40,0,ffff8000009d8a90,38,fffffd8030271388) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800015a30cf0,38,ffff800015a30c68,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009d8a00,ffff800015a30d98,ffff800015a30cf0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8030375400,fffffd80363e0d88,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363e0d88,9,fffffd8030375400,0,0,ffff800015a15080) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363e0d88,0,ffff800015a30f90,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800015a15080,3,ffff800015a31070,0,ffff800015a31180) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800015a15080,ffff800015a31118,ffff800015a31180) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800015a311f0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,3e9da5a010) at Xsyscall+0x128 end of kernel end trace frame: 0x4158c82bb0, count: -13 ddb> show registers rdi 0xffffffff81db3e57 db_enter+0x17 rsi 0x4b54 __ALIGN_SIZE+0x3b54 rbp 0xffff800015a309b0 rbx 0xffff800015a30a60 rdx 0x4b55 __ALIGN_SIZE+0x3b55 rcx 0xffff8000149ef000 rax 0xffff8000149ef000 r8 0xffff800015a30970 r9 0x1 r10 0xffff80000098f9c0 r11 0x705756026a63aaf8 r12 0x3000000008 r13 0xffff800015a309c0 r14 0x100 r15 0x1 rip 0xffffffff81db3e58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015a309a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=311702 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800015a14978,0xffffffff822b7b98 process=0xffff8000ffff6010 user=0xffff800015a2c000, vmspace=0xfffffd803f014630 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 81104 416931 38067 0 2 0 syz-executor.0 *81104 311702 38067 0 7 0x4000000 syz-executor.0 58511 175234 92413 0 2 0 syz-executor.1 58511 284370 92413 0 3 0x4000080 nanosleep syz-executor.1 11692 245741 0 0 3 0x14200 bored sosplice 92413 200936 38466 0 3 0x82 nanosleep syz-executor.1 38067 146765 38466 0 3 0x82 nanosleep syz-executor.0 38466 455534 10389 0 3 0x82 thrsleep syz-fuzzer 38466 216905 10389 0 3 0x4000082 thrsleep syz-fuzzer 38466 476316 10389 0 3 0x4000082 thrsleep syz-fuzzer 38466 130783 10389 0 3 0x4000082 thrsleep syz-fuzzer 38466 31481 10389 0 3 0x4000082 thrsleep syz-fuzzer 38466 72041 10389 0 3 0x4000082 kqread syz-fuzzer 38466 62664 10389 0 3 0x4000082 thrsleep syz-fuzzer 38466 324810 10389 0 3 0x4000082 thrsleep syz-fuzzer 10389 169273 69903 0 3 0x10008a pause ksh 69903 321277 86474 0 3 0x92 select sshd 48046 251865 1 0 3 0x100083 ttyin getty 86474 274180 1 0 3 0x80 select sshd 56559 13838 57940 73 3 0x100090 kqread syslogd 57940 513286 1 0 3 0x100082 netio syslogd 39967 505416 1 77 3 0x100090 poll dhclient 14882 330941 1 0 3 0x80 poll dhclient 73785 448429 0 0 2 0x14200 zerothread 9346 183169 0 0 3 0x14200 aiodoned aiodoned 76227 212003 0 0 3 0x14200 syncer update 3204 319528 0 0 3 0x14200 cleaner cleaner 56315 193092 0 0 3 0x14200 reaper reaper 92893 431354 0 0 3 0x14200 pgdaemon pagedaemon 76369 518805 0 0 3 0x14200 bored crynlk 73916 193313 0 0 3 0x14200 bored crypto 79471 212271 0 0 3 0x40014200 acpi0 acpi0 8687 339635 0 0 3 0x14200 bored softnet 96492 160763 0 0 2 0x14200 systqmp 1592 240697 0 0 3 0x14200 bored systq 67896 304799 0 0 3 0x40014200 bored softclock 23442 333732 0 0 3 0x40014200 idle0 444 131252 0 0 3 0x14200 bored smr 1 119934 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 9488 6978K 7364K 78643K 11771 0 0 pcb 24 9K 11K 78643K 438 0 0 rtable 116 4K 4K 78643K 327 0 0 ifaddr 52 12K 13K 78643K 107 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 41 0 0 iov 0 0K 16K 78643K 74 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1208 76K 76K 78643K 1742 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 11 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 36 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 725 0 0 sigio 1 0K 0K 78643K 8 0 0 proc 42 30K 54K 78643K 397 0 0 subproc 32 2K 2K 78643K 34 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 71 0 0 in_multi 33 2K 2K 78643K 68 0 0 ether_multi 1 0K 0K 78643K 8 0 0 mrt 0 0K 0K 78643K 3 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 246 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 81 20K 29K 78643K 2498 0 0 UVM aobj 36 2K 2K 78643K 41 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 56 0 0 NDP 10 0K 0K 78643K 28 0 0 temp 158 2711K 3348K 78643K 5096 0 0 kqueue 0 0K 0K 78643K 2 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 347 0 340 1 0 1 1 0 8 0 plimitpl 152 38 0 31 1 0 1 1 0 8 0 rtentry 112 54 0 8 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 12 0 12 1 1 0 1 0 8 0 tcpcb 544 140 0 136 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 11 0 11 2 1 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 194 0 0 13 0 13 13 0 8 0 art_table 32 195 0 0 2 0 2 2 0 8 0 art_node 16 46 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 1 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 34 0 24 1 0 1 1 0 8 0 shmpl 112 39 0 5 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2546 0 1134 46 0 46 46 0 8 0 ffsino 240 2546 0 1134 84 0 84 84 0 8 0 nchpl 144 3714 0 2079 61 0 61 61 0 8 0 uvmvnodes 72 2894 0 0 53 0 53 53 0 8 0 vnodes 200 2894 0 0 153 0 153 153 0 8 0 namei 1024 10468 0 10468 2 1 1 1 0 8 1 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 10707 0 10707 11 10 1 6 0 8 1 sigapl 432 896 0 882 2 0 2 2 0 8 0 futexpl 56 10298 0 10298 1 0 1 1 0 8 1 knotepl 112 167 0 148 1 0 1 1 0 8 0 kqueuepl 104 188 0 186 1 0 1 1 0 8 0 pipepl 112 510 0 491 4 3 1 2 0 8 0 fdescpl 424 897 0 882 2 0 2 2 0 8 0 filepl 120 4801 0 4706 6 2 4 5 0 8 1 lockfpl 104 205 0 205 2 1 1 1 0 8 1 lockfspl 48 82 0 82 2 1 1 1 0 8 1 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 21 0 11 1 0 1 1 0 8 0 ucredpl 96 768 0 761 1 0 1 1 0 8 0 zombiepl 144 882 0 882 2 1 1 1 0 8 1 processpl 840 912 0 882 4 0 4 4 0 8 0 procpl 600 1803 0 1764 4 0 4 4 0 8 0 sosppl 128 9 0 9 2 2 0 1 0 8 0 sockpl 384 723 0 705 4 1 3 4 0 8 1 mcl64k 65536 526 0 526 68 5 63 65 0 8 63 mcl16k 16384 2 0 2 2 2 0 1 0 8 0 mcl12k 12288 10 0 10 3 2 1 1 0 8 1 mcl9k 9216 13 0 13 3 2 1 1 0 8 1 mcl8k 8192 10 0 10 3 2 1 1 0 8 1 mcl4k 4096 30 0 30 3 3 0 1 0 8 0 mcl2k2 2112 4 0 4 2 2 0 1 0 8 0 mcl2k 2048 52799 0 52759 12 6 6 10 0 8 0 mtagpl 80 6 0 4 2 1 1 1 0 8 0 mbufpl 256 89875 0 89802 42 27 15 37 0 8 8 bufpl 256 7413 0 2627 300 0 300 300 0 8 0 anonpl 16 92264 0 83162 74 21 53 53 0 62 15 amapchunkpl 152 3909 0 3825 20 13 7 9 0 158 3 amappl16 192 5030 0 4536 63 30 33 37 0 8 8 amappl14 176 36 0 34 2 1 1 1 0 8 0 amappl13 168 1 0 1 1 1 0 1 0 8 0 amappl12 160 10 0 9 1 0 1 1 0 8 0 amappl11 152 408 0 392 1 0 1 1 0 8 0 amappl10 144 62 0 60 1 0 1 1 0 8 0 amappl9 136 511 0 508 1 0 1 1 0 8 0 amappl8 128 124 0 110 1 0 1 1 0 8 0 amappl7 120 31 0 28 1 0 1 1 0 8 0 amappl6 112 415 0 406 1 0 1 1 0 8 0 amappl5 104 209 0 199 1 0 1 1 0 8 0 amappl4 96 1027 0 1003 1 0 1 1 0 8 0 amappl3 88 198 0 186 1 0 1 1 0 8 0 amappl2 80 6393 0 6318 4 2 2 3 0 8 0 amappl1 72 24964 0 24528 26 17 9 19 0 8 0 amappl 80 2038 0 2004 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 40 0 5 1 0 1 1 0 8 0 uaddrrnd 24 897 0 882 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 897 0 882 1 0 1 1 0 8 0 vmmpekpl 168 9370 0 9344 2 0 2 2 0 8 0 vmmpepl 168 98433 0 96878 114 35 79 79 0 357 11 vmsppl 264 896 0 882 2 1 1 2 0 8 0 pdppl 4096 1800 0 1764 6 1 5 6 0 8 0 pvpl 32 271928 0 259724 167 31 136 136 0 265 36 pmappl 200 896 0 882 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 542 0 49 15 0 15 15 0 8 0