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 *407822 59173 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,ffff80000099c140,0,ffff800000a06e90,38,fffffd8030373318) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800015a32e30,38,ffff800015a32da8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff800000a06e00,ffff800015a32ed8,ffff800015a32e30,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd80308b4e00,fffffd8036fde600,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd8036fde600,9,fffffd80308b4e00,0,0,ffff8000159e8bd0) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd8036fde600,0,ffff800015a330d0,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000159e8bd0,3,ffff800015a331b0,0,ffff800015a332c0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000159e8bd0,ffff800015a33258,ffff800015a332c0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800015a33330) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,aba61e4e010) at Xsyscall+0x128 end of kernel end trace frame: 0xabce7f2e220, 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,ffff80000099c140,0,ffff800000a06e90,38,fffffd8030373318) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800015a32e30,38,ffff800015a32da8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff800000a06e00,ffff800015a32ed8,ffff800015a32e30,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd80308b4e00,fffffd8036fde600,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd8036fde600,9,fffffd80308b4e00,0,0,ffff8000159e8bd0) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd8036fde600,0,ffff800015a330d0,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000159e8bd0,3,ffff800015a331b0,0,ffff800015a332c0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000159e8bd0,ffff800015a33258,ffff800015a332c0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800015a33330) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,aba61e4e010) at Xsyscall+0x128 end of kernel end trace frame: 0xabce7f2e220, count: -13 ddb> show registers rdi 0xffffffff81e3dd87 db_enter+0x17 rsi 0x418b __ALIGN_SIZE+0x318b rbp 0xffff800015a32af0 rbx 0xffff800015a32ba0 rdx 0x418c __ALIGN_SIZE+0x318c rcx 0xffff800016bcf000 rax 0xffff800016bcf000 r8 0xffff800015a32ab0 r9 0x1 r10 0xffff800000994980 r11 0x1a8cc4c0bfaff0d1 r12 0x3000000008 r13 0xffff800015a32b00 r14 0x100 r15 0x1 rip 0xffffffff81e3dd88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015a32ae0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=407822 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000159e8270,0xffffffff822b6920 process=0xffff8000ffff73c0 user=0xffff800015a2e000, vmspace=0xfffffd803f00c948 estcpu=32, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 59173 116833 5092 0 2 0 syz-executor.1 *59173 407822 5092 0 7 0x4000000 syz-executor.1 24138 410771 22181 0 2 0 syz-executor.0 24138 439 22181 0 2 0x4000000 syz-executor.0 24138 304948 22181 0 3 0x4000080 poll syz-executor.0 5092 512169 19602 0 3 0x82 nanosleep syz-executor.1 72646 436920 1 0 3 0x100083 ttyin getty 31510 31782 0 0 3 0x14200 bored sosplice 22181 218796 19602 0 3 0x82 nanosleep syz-executor.0 19602 71683 96397 0 3 0x82 kqread syz-fuzzer 19602 501185 96397 0 3 0x4000082 thrsleep syz-fuzzer 19602 156678 96397 0 3 0x4000082 thrsleep syz-fuzzer 19602 99375 96397 0 3 0x4000082 thrsleep syz-fuzzer 19602 195568 96397 0 3 0x4000082 thrsleep syz-fuzzer 19602 312137 96397 0 3 0x4000082 thrsleep syz-fuzzer 19602 101042 96397 0 3 0x4000082 thrsleep syz-fuzzer 19602 208228 96397 0 3 0x4000082 thrsleep syz-fuzzer 96397 357479 15588 0 3 0x10008a pause ksh 15588 9550 39186 0 3 0x92 select sshd 39186 290740 1 0 3 0x80 select sshd 82470 169797 16992 73 3 0x100090 kqread syslogd 16992 205770 1 0 3 0x100082 netio syslogd 6322 396444 1 77 3 0x100090 poll dhclient 89204 385493 1 0 3 0x80 poll dhclient 40939 451338 0 0 2 0x14200 zerothread 74098 339005 0 0 3 0x14200 aiodoned aiodoned 28367 108990 0 0 3 0x14200 syncer update 65927 95494 0 0 3 0x14200 cleaner cleaner 7761 494651 0 0 3 0x14200 reaper reaper 92086 15255 0 0 3 0x14200 pgdaemon pagedaemon 65569 422336 0 0 3 0x14200 bored crynlk 72704 395423 0 0 3 0x14200 bored crypto 22771 140941 0 0 3 0x40014200 acpi0 acpi0 75976 252871 0 0 3 0x14200 bored softnet 99622 419224 0 0 2 0x14200 systqmp 14989 192504 0 0 3 0x14200 bored systq 40718 312679 0 0 3 0x40014200 bored softclock 60638 70029 0 0 3 0x40014200 idle0 92804 520465 0 0 3 0x14200 bored smr 1 75794 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 9546 6364K 7325K 78643K 25486 0 0 pcb 24 9K 10K 78643K 4116 0 0 rtable 129 5K 5K 78643K 1705 0 0 ifaddr 68 17K 20K 78643K 782 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 336 0 0 iov 0 0K 24K 78643K 1080 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1192 75K 76K 78643K 7955 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 106 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 504 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 8791 0 0 sigio 0 0K 0K 78643K 147 0 0 proc 42 30K 54K 78643K 1234 0 0 subproc 32 2K 2K 78643K 57 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 890 0 0 in_multi 33 2K 2K 78643K 370 0 0 ether_multi 1 0K 0K 78643K 45 0 0 mrt 0 0K 0K 78643K 28 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 877 0 0 pfkey data 0 0K 4K 78643K 10 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 91 20K 30K 78643K 21355 0 0 UVM aobj 130 6K 7K 78643K 150 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 425 0 0 NDP 15 0K 0K 78643K 208 0 0 temp 196 2716K 3356K 78643K 28502 0 0 kqueue 0 0K 0K 78643K 67 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 8 0 2 1 0 1 1 0 8 0 inpcbpl 280 3662 0 3655 1 0 1 1 0 8 0 plimitpl 152 217 0 210 1 0 1 1 0 8 0 rtentry 112 93 0 45 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 9 0 9 1 1 0 1 0 8 0 tcpcb 544 1324 0 1320 1 0 1 1 0 8 0 nd6 48 9 0 3 1 0 1 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 156 0 156 30 29 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 241 0 44 13 0 13 13 0 8 0 art_table 32 242 0 44 2 0 2 2 0 8 0 art_node 16 59 0 17 1 0 1 1 0 8 0 sysvmsgpl 40 19 0 15 1 0 1 1 0 8 0 semapl 112 502 0 492 1 0 1 1 0 8 0 shmpl 112 148 0 20 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 16163 0 14637 50 0 50 50 0 8 0 ffsino 240 16163 0 14637 90 0 90 90 0 8 0 nchpl 144 28550 0 26932 61 0 61 61 0 8 0 uvmvnodes 72 5941 0 0 109 0 109 109 0 8 0 vnodes 200 5941 0 0 313 0 313 313 0 8 0 namei 1024 90041 0 90041 3 2 1 1 0 8 1 scsiplug 64 13 0 13 10 9 1 1 0 8 1 scxspl 192 94483 0 94483 58 56 2 6 0 8 2 sigapl 432 8963 0 8949 2 0 2 2 0 8 0 futexpl 56 133384 0 133384 4 3 1 1 0 8 1 knotepl 112 1735 0 1716 1 0 1 1 0 8 0 kqueuepl 104 2322 0 2320 1 0 1 1 0 8 0 pipepl 112 4666 0 4647 12 11 1 2 0 8 0 fdescpl 424 8964 0 8949 2 0 2 2 0 8 0 filepl 120 53062 0 52965 7 3 4 5 0 8 1 lockfpl 104 2907 0 2907 5 4 1 1 0 8 1 lockfspl 48 963 0 963 5 4 1 1 0 8 1 sessionpl 112 22 0 12 1 0 1 1 0 8 0 pgrppl 48 128 0 118 1 0 1 1 0 8 0 ucredpl 96 13289 0 13282 1 0 1 1 0 8 0 zombiepl 144 8949 0 8949 3 2 1 1 0 8 1 processpl 840 8979 0 8949 4 0 4 4 0 8 0 procpl 600 20256 0 20216 4 0 4 4 0 8 0 sosppl 128 127 0 127 26 26 0 1 0 8 0 sockpl 384 7228 0 7210 6 3 3 3 0 8 1 mcl64k 65536 2045 0 2045 166 165 1 65 0 8 1 mcl16k 16384 30 0 30 23 23 0 1 0 8 0 mcl12k 12288 134 0 134 26 26 0 1 0 8 0 mcl9k 9216 123 0 123 33 32 1 1 0 8 1 mcl8k 8192 110 0 110 39 39 0 1 0 8 0 mcl4k 4096 305 0 305 18 17 1 1 0 8 1 mcl2k2 2112 44 0 44 24 24 0 1 0 8 0 mcl2k 2048 64803 0 64760 32 26 6 11 0 8 0 mtagpl 80 14 0 14 6 6 0 1 0 8 0 mbufpl 256 148452 0 148397 92 87 5 37 0 8 0 bufpl 256 30564 0 24626 372 0 372 372 0 8 0 anonpl 16 798257 0 788993 322 275 47 55 0 62 5 amapchunkpl 152 36379 0 36279 81 76 5 14 0 158 0 amappl16 192 49332 0 48838 348 322 26 37 0 8 1 amappl15 184 545 0 543 1 0 1 1 0 8 0 amappl14 176 4911 0 4905 2 1 1 1 0 8 0 amappl12 160 11 0 10 1 0 1 1 0 8 0 amappl11 152 52 0 38 1 0 1 1 0 8 0 amappl10 144 3934 0 3933 1 0 1 1 0 8 0 amappl9 136 557 0 554 1 0 1 1 0 8 0 amappl8 128 157 0 137 1 0 1 1 0 8 0 amappl7 120 3900 0 3896 1 0 1 1 0 8 0 amappl6 112 56 0 49 1 0 1 1 0 8 0 amappl5 104 222 0 211 1 0 1 1 0 8 0 amappl4 96 9100 0 9077 1 0 1 1 0 8 0 amappl3 88 4756 0 4744 1 0 1 1 0 8 0 amappl2 80 71739 0 71663 4 2 2 3 0 8 0 amappl1 72 158702 0 158267 26 17 9 19 0 8 0 amappl 80 20591 0 20553 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 149 0 20 3 0 3 3 0 8 0 uaddrrnd 24 8964 0 8949 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8964 0 8949 1 0 1 1 0 8 0 vmmpekpl 168 52555 0 52533 2 0 2 2 0 8 0 vmmpepl 168 895415 0 893851 273 201 72 81 0 357 0 vmsppl 264 8963 0 8949 2 1 1 2 0 8 0 pdppl 4096 17935 0 17898 6 1 5 6 0 8 0 pvpl 32 2354545 0 2342047 587 454 133 202 0 265 25 pmappl 200 8963 0 8949 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 861 0 362 18 2 16 18 0 8 0