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 *350636 95631 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,ffff80000005cc40,0,ffff8000009b3a90,38,fffffd803019b628) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800014938cc0,38,ffff800014938c38,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009b3a00,ffff800014938d68,ffff800014938cc0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803518c900,fffffd803700d180,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd803700d180,9,fffffd803518c900,0,0,ffff800015a29c38) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd803700d180,0,ffff800014938f60,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800015a29c38,3,ffff800014939040,0,ffff800014939150) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800015a29c38,ffff8000149390e8,ffff800014939150) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000149391c0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,a1b554c010) at Xsyscall+0x128 end of kernel end trace frame: 0xa46b9833b0, 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,ffff80000005cc40,0,ffff8000009b3a90,38,fffffd803019b628) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800014938cc0,38,ffff800014938c38,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009b3a00,ffff800014938d68,ffff800014938cc0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803518c900,fffffd803700d180,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd803700d180,9,fffffd803518c900,0,0,ffff800015a29c38) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd803700d180,0,ffff800014938f60,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800015a29c38,3,ffff800014939040,0,ffff800014939150) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800015a29c38,ffff8000149390e8,ffff800014939150) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000149391c0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,a1b554c010) at Xsyscall+0x128 end of kernel end trace frame: 0xa46b9833b0, count: -13 ddb> show registers rdi 0xffffffff81db3e57 db_enter+0x17 rsi 0x4f04 __ALIGN_SIZE+0x3f04 rbp 0xffff800014938980 rbx 0xffff800014938a30 rdx 0x4f05 __ALIGN_SIZE+0x3f05 rcx 0xffff800016bfb000 rax 0xffff800016bfb000 r8 0xffff800014938940 r9 0x1 r10 0xffff800000994800 r11 0x726fce63cea19e53 r12 0x3000000008 r13 0xffff800014938990 r14 0x100 r15 0x1 rip 0xffffffff81db3e58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014938970 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=350636 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800015a299e0,0xffffffff822b7b98 process=0xffff8000ffff7a50 user=0xffff800014934000, vmspace=0xfffffd803f014210 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 95631 91955 10244 0 2 0 syz-executor.0 *95631 350636 10244 0 7 0x4000000 syz-executor.0 44235 40393 1 0 3 0x100083 ttyin getty 45398 300878 0 0 3 0x14200 bored sosplice 10244 247922 89084 0 2 0x482 syz-executor.0 61370 291612 89084 0 2 0x2 syz-executor.1 89084 91492 74707 0 3 0x82 thrsleep syz-fuzzer 89084 107700 74707 0 3 0x4000082 nanosleep syz-fuzzer 89084 278199 74707 0 3 0x4000082 thrsleep syz-fuzzer 89084 444520 74707 0 3 0x4000082 thrsleep syz-fuzzer 89084 21126 74707 0 3 0x4000082 kqread syz-fuzzer 89084 506085 74707 0 3 0x4000082 thrsleep syz-fuzzer 89084 483318 74707 0 3 0x4000082 thrsleep syz-fuzzer 89084 503571 74707 0 3 0x4000082 thrsleep syz-fuzzer 74707 78375 540 0 3 0x10008a pause ksh 540 204105 23569 0 3 0x92 select sshd 23569 12468 1 0 3 0x80 select sshd 78322 74263 28864 73 3 0x100090 kqread syslogd 28864 380557 1 0 3 0x100082 netio syslogd 13962 88745 0 0 2 0x14200 zerothread 15562 192985 0 0 3 0x14200 aiodoned aiodoned 63501 261837 0 0 3 0x14200 syncer update 49550 218838 0 0 3 0x14200 cleaner cleaner 68127 364989 0 0 3 0x14200 reaper reaper 94685 65539 0 0 3 0x14200 pgdaemon pagedaemon 79261 461042 0 0 3 0x14200 bored crynlk 60732 291211 0 0 3 0x14200 bored crypto 72131 360797 0 0 3 0x40014200 acpi0 acpi0 95722 467384 0 0 3 0x14200 bored softnet 253 233243 0 0 2 0x14200 systqmp 2428 386715 0 0 3 0x14200 bored systq 96467 70062 0 0 3 0x40014200 bored softclock 88397 312958 0 0 3 0x40014200 idle0 61548 9624 0 0 3 0x14200 bored smr 1 471421 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 9510 6293K 6804K 78643K 20008 0 0 pcb 20 9K 11K 78643K 2693 0 0 rtable 132 5K 5K 78643K 827 0 0 ifaddr 58 14K 15K 78643K 478 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 205 0 0 iov 0 0K 24K 78643K 2068 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1202 75K 76K 78643K 5701 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 64 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 347 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 6349 0 0 sigio 0 0K 0K 78643K 96 0 0 proc 43 30K 54K 78643K 911 0 0 subproc 32 2K 2K 78643K 36 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 676 0 0 in_multi 33 2K 2K 78643K 249 0 0 ether_multi 1 0K 0K 78643K 34 0 0 mrt 0 0K 0K 78643K 17 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 102 450K 450K 78643K 102 0 0 exec 0 0K 1K 78643K 624 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 76 20K 30K 78643K 17683 0 0 UVM aobj 130 6K 6K 78643K 147 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 223 0 0 NDP 12 0K 0K 78643K 128 0 0 temp 175 2715K 3355K 78643K 21466 0 0 kqueue 0 0K 0K 78643K 54 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 2400 0 2396 1 0 1 1 0 8 0 plimitpl 152 115 0 109 1 0 1 1 0 8 0 rtentry 112 70 0 22 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 902 0 898 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 92 0 92 26 25 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 48 0 6 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 5 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 343 0 333 1 0 1 1 0 8 0 shmpl 112 145 0 17 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 12444 0 10978 48 0 48 48 0 8 0 ffsino 240 12444 0 10978 87 0 87 87 0 8 0 nchpl 144 22020 0 20395 61 0 61 61 0 8 0 uvmvnodes 72 6774 0 0 124 0 124 124 0 8 0 vnodes 200 6774 0 0 357 0 357 357 0 8 0 namei 1024 67649 0 67649 4 3 1 1 0 8 1 scsiplug 64 9 0 9 8 7 1 1 0 8 1 scxspl 192 217752 0 217752 52 51 1 6 0 8 1 sigapl 432 6527 0 6516 2 0 2 2 0 8 0 futexpl 56 98276 0 98276 2 1 1 1 0 8 1 knotepl 112 1014 0 995 1 0 1 1 0 8 0 kqueuepl 104 1337 0 1335 1 0 1 1 0 8 0 pipepl 112 3198 0 3179 9 7 2 2 0 8 1 fdescpl 424 6528 0 6516 2 0 2 2 0 8 0 filepl 120 39735 0 39649 15 10 5 5 0 8 2 lockfpl 104 4540 0 4540 4 3 1 1 0 8 1 lockfspl 48 1382 0 1382 4 3 1 1 0 8 1 sessionpl 112 24 0 16 1 0 1 1 0 8 0 pgrppl 48 96 0 88 1 0 1 1 0 8 0 ucredpl 96 8617 0 8611 1 0 1 1 0 8 0 zombiepl 144 6516 0 6516 3 2 1 1 0 8 1 processpl 840 6543 0 6516 4 0 4 4 0 8 0 procpl 600 15988 0 15953 4 0 4 4 0 8 0 sosppl 128 70 0 70 19 19 0 1 0 8 0 sockpl 384 4783 0 4772 14 11 3 4 0 8 1 mcl64k 65536 1910 0 1910 208 187 21 65 0 8 21 mcl16k 16384 17 0 17 16 16 0 1 0 8 0 mcl12k 12288 98 0 98 20 19 1 1 0 8 1 mcl9k 9216 89 0 89 25 25 0 1 0 8 0 mcl8k 8192 76 0 76 24 23 1 1 0 8 1 mcl4k 4096 202 0 202 24 23 1 1 0 8 1 mcl2k2 2112 31 0 31 14 14 0 1 0 8 0 mcl2k 2048 61213 0 61172 12 6 6 10 0 8 0 mtagpl 80 10 0 10 4 4 0 1 0 8 0 mbufpl 256 127439 0 127386 100 94 6 37 0 8 0 bufpl 256 106295 0 99456 428 0 428 428 0 8 0 anonpl 16 709344 0 700139 210 167 43 57 0 62 2 amapchunkpl 152 29559 0 29475 91 82 9 18 0 158 3 amappl16 192 44423 0 43925 178 152 26 39 0 8 0 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 35 0 34 2 1 1 1 0 8 0 amappl13 168 3612 0 3609 1 0 1 1 0 8 0 amappl12 160 23 0 19 1 0 1 1 0 8 0 amappl11 152 52 0 45 1 0 1 1 0 8 0 amappl10 144 2778 0 2775 2 1 1 1 0 8 0 amappl9 136 554 0 551 1 0 1 1 0 8 0 amappl8 128 134 0 121 1 0 1 1 0 8 0 amappl7 120 2736 0 2732 1 0 1 1 0 8 0 amappl6 112 58 0 49 1 0 1 1 0 8 0 amappl5 104 162 0 155 1 0 1 1 0 8 0 amappl4 96 6758 0 6741 1 0 1 1 0 8 0 amappl3 88 369 0 358 1 0 1 1 0 8 0 amappl2 80 55177 0 55116 4 2 2 3 0 8 0 amappl1 72 126529 0 126139 24 15 9 19 0 8 0 amappl 80 16268 0 16238 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 146 0 17 3 0 3 3 0 8 0 uaddrrnd 24 6528 0 6516 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6528 0 6516 1 0 1 1 0 8 0 vmmpekpl 168 43332 0 43309 2 0 2 2 0 8 0 vmmpepl 168 670426 0 669026 195 127 68 81 0 357 0 vmsppl 264 6527 0 6516 2 1 1 2 0 8 0 pdppl 4096 13062 0 13032 6 1 5 6 0 8 0 pvpl 32 2007917 0 1995702 471 344 127 226 0 265 21 pmappl 200 6527 0 6516 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 929 0 355 20 2 18 19 0 8 0