login: 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 *404888 42911 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(ffffffff81f7d345,ffffffff81f3b380,239,ffffffff81f181cd) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(5,ffff800000994bc0,0,ffff8000009a2990,7,fffffd80382b87e8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800014915b10,7,ffff800014915a88,5) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009a2900,ffff800014915bb8,ffff800014915b10,7,5) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd80306a4e00,fffffd8039116480,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd8039116480,9,fffffd80306a4e00,0,0,ffff800015a1b080) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd8039116480,0,ffff800014915db0,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800015a1b080,3,ffff800014915e90,0,ffff800014915fa0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800015a1b080,ffff800014915f38,ffff800014915fa0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800014916010) at syscall+0x511 Xsyscall(0,0,ffffffffffffffd8,0,6,c0a5b5c010) at Xsyscall+0x128 end of kernel end trace frame: 0xc2de00ccd0, 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(ffffffff81f7d345,ffffffff81f3b380,239,ffffffff81f181cd) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(5,ffff800000994bc0,0,ffff8000009a2990,7,fffffd80382b87e8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800014915b10,7,ffff800014915a88,5) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009a2900,ffff800014915bb8,ffff800014915b10,7,5) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd80306a4e00,fffffd8039116480,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd8039116480,9,fffffd80306a4e00,0,0,ffff800015a1b080) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd8039116480,0,ffff800014915db0,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800015a1b080,3,ffff800014915e90,0,ffff800014915fa0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800015a1b080,ffff800014915f38,ffff800014915fa0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800014916010) at syscall+0x511 Xsyscall(0,0,ffffffffffffffd8,0,6,c0a5b5c010) at Xsyscall+0x128 end of kernel end trace frame: 0xc2de00ccd0, count: -13 ddb> show registers rdi 0xffffffff81782b17 db_enter+0x17 rsi 0x4a41 __ALIGN_SIZE+0x3a41 rbp 0xffff8000149157d0 rbx 0xffff800014915880 rdx 0x4a42 __ALIGN_SIZE+0x3a42 rcx 0xffff80001781c000 rax 0xffff80001781c000 r8 0xffff800014915790 r9 0x1 r10 0xffff8000009f7080 r11 0xf3f41aa0f5f63f1c r12 0x3000000008 r13 0xffff8000149157e0 r14 0x100 r15 0x1 rip 0xffffffff81782b18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149157c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=404888 stat=onproc flags process=0 proc=4000000 pri=78, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800015a1bc38,0xffffffff822b1100 process=0xffff8000ffff6358 user=0xffff800014911000, vmspace=0xfffffd803f00c108 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 42911 115303 6296 0 2 0 syz-executor.0 *42911 404888 6296 0 7 0x4000000 syz-executor.0 52747 170869 1 0 3 0x100083 ttyin getty 6296 53480 81392 0 3 0x82 nanosleep syz-executor.0 49518 27166 81392 0 2 0x2 syz-executor.1 90301 148121 0 0 3 0x14200 bored sosplice 81392 12867 58040 0 3 0x82 thrsleep syz-fuzzer 81392 296372 58040 0 3 0x4000082 nanosleep syz-fuzzer 81392 142457 58040 0 3 0x4000082 thrsleep syz-fuzzer 81392 512518 58040 0 3 0x4000082 thrsleep syz-fuzzer 81392 276642 58040 0 3 0x4000082 kqread syz-fuzzer 81392 70253 58040 0 3 0x4000082 thrsleep syz-fuzzer 81392 217056 58040 0 3 0x4000082 thrsleep syz-fuzzer 58040 215260 68137 0 3 0x10008a pause ksh 68137 431860 49974 0 3 0x92 select sshd 49974 111824 1 0 3 0x80 select sshd 58782 493281 7053 73 3 0x100090 kqread syslogd 7053 5966 1 0 3 0x100082 netio syslogd 4578 263249 0 0 2 0x14200 zerothread 70262 222193 0 0 3 0x14200 aiodoned aiodoned 93887 429181 0 0 3 0x14200 syncer update 71627 414494 0 0 3 0x14200 cleaner cleaner 23612 386233 0 0 3 0x14200 reaper reaper 69418 348023 0 0 3 0x14200 pgdaemon pagedaemon 53421 156235 0 0 3 0x14200 bored crynlk 26950 499942 0 0 3 0x14200 bored crypto 37119 251590 0 0 3 0x40014200 acpi0 acpi0 89986 21295 0 0 3 0x14200 bored softnet 46016 269736 0 0 2 0x14200 systqmp 19574 52957 0 0 3 0x14200 bored systq 42913 407190 0 0 3 0x40014200 bored softclock 16950 487728 0 0 3 0x40014200 idle0 82828 103343 0 0 3 0x14200 bored smr 1 55419 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 9529 6292K 6605K 78643K 15202 0 0 pcb 20 9K 11K 78643K 4491 0 0 rtable 128 5K 5K 78643K 1633 0 0 ifaddr 65 17K 19K 78643K 1001 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 370 0 0 iov 0 0K 28K 78643K 1005 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1195 75K 76K 78643K 6480 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 112 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 1K 1K 78643K 356 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 9104 0 0 sigio 0 0K 0K 78643K 194 0 0 proc 42 30K 46K 78643K 2423 0 0 subproc 32 2K 2K 78643K 395 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 614 0 0 in_multi 33 2K 2K 78643K 484 0 0 ether_multi 1 0K 0K 78643K 39 0 0 mrt 0 0K 0K 78643K 19 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 126 556K 556K 78643K 126 0 0 exec 0 0K 1K 78643K 1064 0 0 pfkey data 0 0K 0K 78643K 6 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 88 20K 38K 78643K 22323 0 0 UVM aobj 130 4K 4K 78643K 157 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 254 0 0 NDP 14 0K 0K 78643K 295 0 0 temp 196 2716K 2843K 78643K 29698 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 48 0 42 1 0 1 1 0 8 0 inpcbpl 280 3626 0 3622 1 0 1 1 0 8 0 plimitpl 152 171 0 165 1 0 1 1 0 8 0 rtentry 112 337 0 289 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 1198 0 1194 1 0 1 1 0 8 0 nd6 48 69 0 63 1 0 1 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 175 0 175 28 27 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 1206 0 975 15 0 15 15 0 8 0 art_table 32 1208 0 975 2 0 2 2 0 8 0 art_node 16 279 0 236 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 8 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 354 0 344 1 0 1 1 0 8 0 shmpl 112 155 0 27 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 16823 0 15272 51 0 51 51 0 8 0 ffsino 240 16823 0 15272 92 0 92 92 0 8 0 nchpl 144 29972 0 28352 61 0 61 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 200 5926 0 0 312 0 312 312 0 8 0 namei 1024 94168 0 94168 2 1 1 1 0 8 1 scsiplug 64 11 0 11 10 10 0 1 0 8 0 scxspl 192 89011 0 89011 35 34 1 6 0 8 1 sigapl 432 9223 0 9212 2 0 2 2 0 8 0 futexpl 56 125910 0 125910 1 0 1 1 0 8 1 knotepl 112 2074 0 2055 1 0 1 1 0 8 0 kqueuepl 104 2173 0 2171 1 0 1 1 0 8 0 pipepl 112 5200 0 5181 12 11 1 2 0 8 0 fdescpl 424 9224 0 9212 2 0 2 2 0 8 0 filepl 120 52769 0 52683 28 25 3 5 0 8 0 lockfpl 104 2686 0 2686 4 3 1 1 0 8 1 lockfspl 48 915 0 915 4 3 1 1 0 8 1 sessionpl 112 50 0 42 1 0 1 1 0 8 0 pgrppl 48 156 0 148 1 0 1 1 0 8 0 ucredpl 96 12732 0 12726 1 0 1 1 0 8 0 zombiepl 144 9212 0 9212 2 1 1 1 0 8 1 processpl 840 9239 0 9212 4 0 4 4 0 8 0 procpl 600 20391 0 20357 4 0 4 4 0 8 0 sosppl 128 152 0 152 29 28 1 1 0 8 1 sockpl 384 7653 0 7642 10 8 2 4 0 8 0 mcl64k 65536 1452 0 1452 148 147 1 33 0 8 1 mcl16k 16384 15 0 15 14 14 0 1 0 8 0 mcl12k 12288 132 0 132 31 31 0 1 0 8 0 mcl9k 9216 91 0 91 27 27 0 1 0 8 0 mcl8k 8192 107 0 107 29 29 0 1 0 8 0 mcl4k 4096 312 0 312 11 10 1 1 0 8 1 mcl2k2 2112 40 0 40 21 21 0 1 0 8 0 mcl2k 2048 54173 0 54139 18 13 5 8 0 8 0 mtagpl 80 18 0 18 3 3 0 1 0 8 0 mbufpl 256 128087 0 128041 78 74 4 22 0 8 0 bufpl 256 24801 0 20258 285 0 285 285 0 8 0 anonpl 16 723774 0 716309 244 201 43 48 0 62 10 amapchunkpl 152 41289 0 41214 107 103 4 17 0 158 0 amappl16 192 46993 0 46586 231 205 26 33 0 8 4 amappl15 184 1086 0 1086 2 1 1 1 0 8 1 amappl14 176 197 0 194 2 1 1 1 0 8 0 amappl13 168 3884 0 3882 1 0 1 1 0 8 0 amappl12 160 14 0 14 4 4 0 1 0 8 0 amappl11 152 686 0 679 1 0 1 1 0 8 0 amappl10 144 150 0 150 17 16 1 1 0 8 1 amappl9 136 2440 0 2437 1 0 1 1 0 8 0 amappl8 128 1949 0 1923 1 0 1 1 0 8 0 amappl7 120 122 0 113 1 0 1 1 0 8 0 amappl6 112 595 0 590 1 0 1 1 0 8 0 amappl5 104 357 0 350 1 0 1 1 0 8 0 amappl4 96 11531 0 11510 1 0 1 1 0 8 0 amappl3 88 695 0 684 1 0 1 1 0 8 0 amappl2 80 74712 0 74652 4 2 2 3 0 8 0 amappl1 72 170739 0 170355 24 15 9 19 0 8 0 amappl 80 21032 0 21004 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 156 0 27 3 0 3 3 0 8 0 uaddrrnd 24 9224 0 9212 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 9224 0 9212 1 0 1 1 0 8 0 vmmpekpl 168 58079 0 58053 2 0 2 2 0 8 0 vmmpepl 168 913651 0 912340 183 115 68 74 0 357 3 vmsppl 264 9223 0 9212 2 1 1 2 0 8 0 pdppl 4096 18455 0 18424 6 1 5 6 0 8 0 pvpl 32 1980157 0 1969764 468 349 119 126 0 265 27 pmappl 200 9223 0 9212 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 706 0 291 14 0 14 14 0 8 0