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 *188909 92484 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(ffffffff81f7d178,ffffffff81f3bfd3,239,ffffffff81f18824) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff80000005b950,ffff800000a378a0,ffff800000a37898,8,fffffd803ebf3318) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800016a4c110,0,ffff800016a4c088,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff800000a37800,ffff800016a4c1b8,ffff800016a4c110,0,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd80293aa200,fffffd80363e5908,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363e5908,9,fffffd80293aa200,0,0,ffff8000149c4978) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363e5908,0,ffff800016a4c3b0,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000149c4978,3,ffff800016a4c490,0,ffff800016a4c5a0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000149c4978,ffff800016a4c538,ffff800016a4c5a0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800016a4c610) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,5fed88ed010) at Xsyscall+0x128 end of kernel end trace frame: 0x601191062b0, 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(ffffffff81f7d178,ffffffff81f3bfd3,239,ffffffff81f18824) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff80000005b950,ffff800000a378a0,ffff800000a37898,8,fffffd803ebf3318) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800016a4c110,0,ffff800016a4c088,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff800000a37800,ffff800016a4c1b8,ffff800016a4c110,0,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd80293aa200,fffffd80363e5908,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363e5908,9,fffffd80293aa200,0,0,ffff8000149c4978) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363e5908,0,ffff800016a4c3b0,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000149c4978,3,ffff800016a4c490,0,ffff800016a4c5a0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000149c4978,ffff800016a4c538,ffff800016a4c5a0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800016a4c610) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,5fed88ed010) at Xsyscall+0x128 end of kernel end trace frame: 0x601191062b0, count: -13 ddb> show registers rdi 0xffffffff81afcbf7 db_enter+0x17 rsi 0x4cc1 __ALIGN_SIZE+0x3cc1 rbp 0xffff800016a4bdd0 rbx 0xffff800016a4be80 rdx 0x4cc2 __ALIGN_SIZE+0x3cc2 rcx 0xffff8000159ff000 rax 0xffff8000159ff000 r8 0xffff800016a4bd90 r9 0x1 r10 0xffff800000995280 r11 0xd9fef8acc0740e64 r12 0x3000000008 r13 0xffff800016a4bde0 r14 0x100 r15 0x1 rip 0xffffffff81afcbf8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800016a4bdc0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=188909 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000149c44c8,0xffffffff822a64e0 process=0xffff8000ffff7078 user=0xffff800016a47000, vmspace=0xfffffd803f014c60 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 92484 404733 44735 0 2 0 syz-executor.1 *92484 188909 44735 0 7 0x4000000 syz-executor.1 23663 394845 57934 0 2 0 syz-executor.0 23663 60831 57934 0 3 0x4000080 piperd syz-executor.0 17451 202347 1 0 3 0x100083 ttyin getty 5064 181121 0 0 3 0x14200 bored sosplice 44735 469963 9613 0 2 0x482 syz-executor.1 57934 273350 9613 0 3 0x82 nanosleep syz-executor.0 9613 514608 13769 0 3 0x82 thrsleep syz-fuzzer 9613 452374 13769 0 3 0x4000082 thrsleep syz-fuzzer 9613 432544 13769 0 3 0x4000082 thrsleep syz-fuzzer 9613 188076 13769 0 3 0x4000082 thrsleep syz-fuzzer 9613 111732 13769 0 3 0x4000082 thrsleep syz-fuzzer 9613 404019 13769 0 3 0x4000082 kqread syz-fuzzer 9613 261490 13769 0 3 0x4000082 thrsleep syz-fuzzer 13769 282300 92469 0 3 0x10008a pause ksh 92469 322786 18721 0 3 0x92 select sshd 18721 473270 1 0 3 0x80 select sshd 85895 72398 66783 73 3 0x100090 kqread syslogd 66783 455258 1 0 3 0x100082 netio syslogd 80618 291576 1 77 3 0x100090 poll dhclient 64015 237320 1 0 3 0x80 poll dhclient 19545 505872 0 0 2 0x14200 zerothread 64128 366896 0 0 3 0x14200 aiodoned aiodoned 16855 290927 0 0 3 0x14200 syncer update 81584 22908 0 0 3 0x14200 cleaner cleaner 51762 431148 0 0 3 0x14200 reaper reaper 52491 286294 0 0 3 0x14200 pgdaemon pagedaemon 9994 247516 0 0 3 0x14200 bored crynlk 70408 521455 0 0 3 0x14200 bored crypto 80472 21261 0 0 3 0x40014200 acpi0 acpi0 11977 361530 0 0 3 0x14200 bored softnet 8428 156281 0 0 2 0x14200 systqmp 34358 514249 0 0 3 0x14200 bored systq 18056 360810 0 0 3 0x40014200 bored softclock 58041 265018 0 0 3 0x40014200 idle0 57438 404696 0 0 3 0x14200 bored smr 1 217214 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 9559 6516K 14679K 78643K 31115 0 0 pcb 24 9K 11K 78643K 4285 0 0 rtable 154 6K 6K 78643K 1895 0 0 ifaddr 68 17K 19K 78643K 888 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 394 0 0 iov 1 0K 32K 78643K 1163 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1192 75K 77K 78643K 9400 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 120 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 570 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 9124 0 0 sigio 0 0K 0K 78643K 143 0 0 proc 42 30K 54K 78643K 1146 0 0 subproc 32 2K 2K 78643K 48 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 922 0 0 in_multi 33 2K 2K 78643K 367 0 0 ether_multi 1 0K 0K 78643K 52 0 0 mrt 0 0K 0K 78643K 11 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 832 0 0 pfkey data 0 0K 4K 78643K 8 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 90 20K 39K 78643K 22299 0 0 UVM aobj 130 7K 7K 78643K 149 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 332 0 0 NDP 15 0K 0K 78643K 238 0 0 temp 198 2716K 3356K 78643K 30568 0 0 kqueue 0 0K 0K 78643K 70 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 3649 0 3642 2 1 1 2 0 8 0 plimitpl 152 267 0 259 1 0 1 1 0 8 0 rtentry 112 94 0 36 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 1351 0 1347 1 0 1 1 0 8 0 ipq 40 2 0 2 1 1 0 1 0 8 0 ipqe 40 4 0 4 1 1 0 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 190 0 190 33 32 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 195 0 0 13 0 13 13 0 8 0 art_table 32 196 0 0 2 0 2 2 0 8 0 art_node 16 58 0 16 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 4 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 566 0 556 1 0 1 1 0 8 0 shmpl 112 147 0 19 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 16767 0 15260 49 0 49 49 0 8 0 ffsino 240 16767 0 15260 89 0 89 89 0 8 0 nchpl 144 29717 0 28086 61 0 61 61 0 8 0 uvmvnodes 72 6776 0 0 124 0 124 124 0 8 0 vnodes 200 6776 0 0 357 0 357 357 0 8 0 namei 1024 95592 0 95592 1 0 1 1 0 8 1 scsiplug 64 7 0 7 7 6 1 1 0 8 1 scxspl 192 94298 0 94298 45 44 1 6 0 8 1 sigapl 432 9304 0 9290 2 0 2 2 0 8 0 futexpl 56 143837 0 143837 1 0 1 1 0 8 1 knotepl 112 1759 0 1740 1 0 1 1 0 8 0 kqueuepl 104 2173 0 2171 1 0 1 1 0 8 0 pipepl 112 5524 0 5501 18 17 1 2 0 8 0 fdescpl 424 9305 0 9290 2 0 2 2 0 8 0 filepl 120 57374 0 57274 12 8 4 5 0 8 0 lockfpl 104 3368 0 3368 3 2 1 1 0 8 1 lockfspl 48 1155 0 1155 3 2 1 1 0 8 1 sessionpl 112 26 0 16 1 0 1 1 0 8 0 pgrppl 48 137 0 127 1 0 1 1 0 8 0 ucredpl 96 14272 0 14265 1 0 1 1 0 8 0 zombiepl 144 9290 0 9290 1 0 1 1 0 8 1 processpl 840 9320 0 9290 4 0 4 4 0 8 0 procpl 600 21227 0 21189 4 0 4 4 0 8 0 sosppl 128 142 0 142 34 33 1 1 0 8 1 sockpl 384 7446 0 7428 8 5 3 4 0 8 1 mcl64k 65536 2497 0 2497 245 244 1 129 0 8 1 mcl16k 16384 35 0 35 23 22 1 1 0 8 1 mcl12k 12288 135 0 135 32 31 1 1 0 8 1 mcl9k 9216 148 0 148 27 26 1 1 0 8 1 mcl8k 8192 113 0 113 33 32 1 1 0 8 1 mcl4k 4096 341 0 341 9 8 1 1 0 8 1 mcl2k2 2112 57 0 57 29 29 0 1 0 8 0 mcl2k 2048 68514 0 68464 28 21 7 12 0 8 0 mtagpl 80 14 0 14 5 5 0 1 0 8 0 mbufpl 256 157020 0 156954 147 141 6 70 0 8 0 bufpl 256 29842 0 23021 427 0 427 427 0 8 0 anonpl 16 738066 0 727881 274 216 58 58 0 62 15 amapchunkpl 152 37214 0 37119 81 76 5 14 0 158 1 amappl16 192 42882 0 42334 251 215 36 40 0 8 8 amappl15 184 4553 0 4550 1 0 1 1 0 8 0 amappl14 176 4588 0 4584 1 0 1 1 0 8 0 amappl13 168 3 0 2 1 0 1 1 0 8 0 amappl12 160 10 0 7 1 0 1 1 0 8 0 amappl11 152 54 0 40 1 0 1 1 0 8 0 amappl10 144 4611 0 4607 1 0 1 1 0 8 0 amappl9 136 548 0 544 1 0 1 1 0 8 0 amappl8 128 146 0 128 1 0 1 1 0 8 0 amappl7 120 4570 0 4565 1 0 1 1 0 8 0 amappl6 112 53 0 46 1 0 1 1 0 8 0 amappl5 104 216 0 206 1 0 1 1 0 8 0 amappl4 96 4995 0 4972 1 0 1 1 0 8 0 amappl3 88 9565 0 9551 1 0 1 1 0 8 0 amappl2 80 73682 0 73608 3 1 2 3 0 8 0 amappl1 72 166056 0 165626 26 17 9 19 0 8 0 amappl 80 21515 0 21479 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 148 0 19 3 0 3 3 0 8 0 uaddrrnd 24 9305 0 9290 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 9305 0 9290 1 0 1 1 0 8 0 vmmpekpl 168 59305 0 59279 2 0 2 2 0 8 0 vmmpepl 168 930492 0 928870 247 165 82 82 0 357 11 vmsppl 264 9304 0 9290 2 1 1 2 0 8 0 pdppl 4096 18616 0 18580 6 1 5 6 0 8 0 pvpl 32 2320798 0 2307428 596 450 146 221 0 265 36 pmappl 200 9304 0 9290 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1028 0 471 23 5 18 22 0 8 0