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 *320955 45648 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(ffffffff81f7c399,ffffffff81f3aad6,239,ffffffff81f16fee) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff800000a1a140,0,ffff8000009f5490,38,fffffd8036dacc40) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800016a09e80,38,ffff800016a09df8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009f5400,ffff800016a09f28,ffff800016a09e80,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8034c13300,fffffd8037030a80,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd8037030a80,9,fffffd8034c13300,0,0,ffff8000ffff8710) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd8037030a80,0,ffff800016a0a120,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000ffff8710,3,ffff800016a0a200,0,ffff800016a0a310) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000ffff8710,ffff800016a0a2a8,ffff800016a0a310) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800016a0a380) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,7f690a67010) at Xsyscall+0x128 end of kernel end trace frame: 0x7f92b248b70, 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,ffff800000a1a140,0,ffff8000009f5490,38,fffffd8036dacc40) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800016a09e80,38,ffff800016a09df8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009f5400,ffff800016a09f28,ffff800016a09e80,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8034c13300,fffffd8037030a80,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd8037030a80,9,fffffd8034c13300,0,0,ffff8000ffff8710) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd8037030a80,0,ffff800016a0a120,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000ffff8710,3,ffff800016a0a200,0,ffff800016a0a310) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000ffff8710,ffff800016a0a2a8,ffff800016a0a310) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800016a0a380) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,7f690a67010) at Xsyscall+0x128 end of kernel end trace frame: 0x7f92b248b70, count: -13 ddb> show registers rdi 0xffffffff81db3e57 db_enter+0x17 rsi 0x4c61 __ALIGN_SIZE+0x3c61 rbp 0xffff800016a09b40 rbx 0xffff800016a09bf0 rdx 0x4c62 __ALIGN_SIZE+0x3c62 rcx 0xffff800017bf5000 rax 0xffff800017bf5000 r8 0xffff800016a09b00 r9 0x1 r10 0xffff800000a02380 r11 0xb057e69fe021c799 r12 0x3000000008 r13 0xffff800016a09b50 r14 0x100 r15 0x1 rip 0xffffffff81db3e58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800016a09b30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=320955 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff99d0,0xffffffff822b7b98 process=0xffff8000ffff73c0 user=0xffff800016a05000, vmspace=0xfffffd803f014a50 estcpu=32, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 45648 440965 77856 0 2 0 syz-executor.1 *45648 320955 77856 0 7 0x4000000 syz-executor.1 77856 207720 83871 0 2 0x482 syz-executor.1 48021 51618 1 0 3 0x100083 ttyin getty 93014 519242 0 0 3 0x14200 bored sosplice 98404 33381 83871 0 2 0x2 syz-executor.0 83871 208733 40131 0 3 0x82 thrsleep syz-fuzzer 83871 288179 40131 0 2 0x4000482 syz-fuzzer 83871 485100 40131 0 3 0x4000082 kqread syz-fuzzer 83871 251063 40131 0 3 0x4000082 thrsleep syz-fuzzer 83871 252519 40131 0 3 0x4000082 thrsleep syz-fuzzer 83871 284884 40131 0 3 0x4000082 thrsleep syz-fuzzer 83871 70539 40131 0 3 0x4000082 thrsleep syz-fuzzer 40131 224168 29012 0 3 0x10008a pause ksh 29012 447734 83316 0 3 0x92 select sshd 83316 405813 1 0 3 0x80 select sshd 22930 248582 58167 73 3 0x100090 kqread syslogd 58167 207459 1 0 3 0x100082 netio syslogd 10458 518622 1 77 3 0x100090 poll dhclient 44509 119784 1 0 3 0x80 poll dhclient 7852 142824 0 0 2 0x14200 zerothread 36587 152825 0 0 3 0x14200 aiodoned aiodoned 51766 72084 0 0 3 0x14200 syncer update 50246 489600 0 0 3 0x14200 cleaner cleaner 71875 313207 0 0 3 0x14200 reaper reaper 60913 104865 0 0 3 0x14200 pgdaemon pagedaemon 94553 207426 0 0 3 0x14200 bored crynlk 5534 409607 0 0 3 0x14200 bored crypto 12543 93048 0 0 3 0x40014200 acpi0 acpi0 34907 423211 0 0 3 0x14200 bored softnet 21255 51812 0 0 2 0x14200 systqmp 67513 49644 0 0 3 0x14200 bored systq 78709 175975 0 0 3 0x40014200 bored softclock 7745 380501 0 0 3 0x40014200 idle0 95192 196077 0 0 3 0x14200 bored smr 1 86313 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 9527 6362K 7005K 78643K 25733 0 0 pcb 24 9K 11K 78643K 5043 0 0 rtable 180 8K 8K 78643K 2131 0 0 ifaddr 63 17K 20K 78643K 940 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 377 0 0 iov 0 0K 32K 78643K 1317 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1205 76K 76K 78643K 8726 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 123 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 488 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 10128 0 0 sigio 0 0K 0K 78643K 151 0 0 proc 42 30K 62K 78643K 1501 0 0 subproc 32 2K 2K 78643K 71 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 1036 0 0 in_multi 33 2K 2K 78643K 385 0 0 ether_multi 1 0K 0K 78643K 41 0 0 mrt 0 0K 0K 78643K 22 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 108 477K 477K 78643K 108 0 0 exec 0 0K 1K 78643K 970 0 0 pfkey data 0 0K 1K 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 87 20K 30K 78643K 24683 0 0 UVM aobj 130 4K 5K 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 434 0 0 NDP 13 0K 0K 78643K 253 0 0 temp 187 2715K 3355K 78643K 32157 0 0 kqueue 0 0K 0K 78643K 110 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 4321 0 4314 2 1 1 2 0 8 0 plimitpl 152 240 0 233 1 0 1 1 0 8 0 rtentry 112 133 0 70 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 1597 0 1593 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 190 0 190 39 38 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 247 0 44 13 0 13 13 0 8 0 art_table 32 249 0 44 2 0 2 2 0 8 0 art_node 16 74 0 31 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 6 1 0 1 1 0 8 0 semapl 112 484 0 474 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 18759 0 17210 51 0 51 51 0 8 0 ffsino 240 18759 0 17210 92 0 92 92 0 8 0 nchpl 144 33321 0 31700 61 0 61 61 0 8 0 uvmvnodes 72 6815 0 0 124 0 124 124 0 8 0 vnodes 200 6815 0 0 359 0 359 359 0 8 0 namei 1024 104968 0 104968 5 4 1 1 0 8 1 scsiplug 64 20 0 20 14 14 0 1 0 8 0 scxspl 192 108319 0 108319 55 54 1 6 0 8 1 sigapl 432 10298 0 10285 2 0 2 2 0 8 0 futexpl 56 156176 0 156176 4 3 1 1 0 8 1 knotepl 112 1885 0 1866 1 0 1 1 0 8 0 kqueuepl 104 2463 0 2461 1 0 1 1 0 8 0 pipepl 112 5486 0 5467 14 13 1 2 0 8 0 fdescpl 424 10299 0 10285 2 0 2 2 0 8 0 filepl 120 61463 0 61368 9 5 4 5 0 8 1 lockfpl 104 3452 0 3452 6 5 1 1 0 8 1 lockfspl 48 1167 0 1167 6 5 1 1 0 8 1 sessionpl 112 20 0 10 1 0 1 1 0 8 0 pgrppl 48 160 0 150 1 0 1 1 0 8 0 ucredpl 96 15363 0 15356 1 0 1 1 0 8 0 zombiepl 144 10285 0 10285 3 2 1 1 0 8 1 processpl 840 10314 0 10285 4 0 4 4 0 8 0 procpl 600 23465 0 23429 6 2 4 4 0 8 1 sosppl 128 127 0 127 36 35 1 1 0 8 1 sockpl 384 8770 0 8752 12 9 3 4 0 8 1 mcl64k 65536 3622 0 3622 379 314 65 129 0 8 65 mcl16k 16384 33 0 33 27 26 1 1 0 8 1 mcl12k 12288 169 0 169 41 40 1 1 0 8 1 mcl9k 9216 163 0 163 42 41 1 1 0 8 1 mcl8k 8192 104 0 104 45 44 1 1 0 8 1 mcl4k 4096 363 0 363 23 22 1 1 0 8 1 mcl2k2 2112 55 0 55 29 28 1 1 0 8 1 mcl2k 2048 67014 0 66973 16 10 6 11 0 8 0 mtagpl 80 16 0 16 7 7 0 1 0 8 0 mbufpl 256 160357 0 160285 186 172 14 69 0 8 8 bufpl 256 35167 0 28085 444 0 444 444 0 8 0 anonpl 16 905379 0 896331 376 322 54 56 0 62 16 amapchunkpl 152 43663 0 43581 137 132 5 18 0 158 0 amappl16 192 55211 0 54725 360 327 33 39 0 8 8 amappl15 184 5040 0 5040 1 0 1 1 0 8 1 amappl14 176 41 0 40 2 1 1 1 0 8 0 amappl13 168 9 0 8 2 1 1 1 0 8 0 amappl12 160 15 0 11 1 0 1 1 0 8 0 amappl11 152 55 0 41 1 0 1 1 0 8 0 amappl10 144 4415 0 4413 2 1 1 1 0 8 0 amappl9 136 1275 0 1270 1 0 1 1 0 8 0 amappl8 128 852 0 833 1 0 1 1 0 8 0 amappl7 120 4389 0 4381 1 0 1 1 0 8 0 amappl6 112 61 0 52 1 0 1 1 0 8 0 amappl5 104 208 0 198 1 0 1 1 0 8 0 amappl4 96 10487 0 10466 1 0 1 1 0 8 0 amappl3 88 606 0 595 1 0 1 1 0 8 0 amappl2 80 87674 0 87607 4 2 2 3 0 8 0 amappl1 72 182297 0 181879 26 17 9 19 0 8 0 amappl 80 23821 0 23789 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 10299 0 10285 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 10299 0 10285 1 0 1 1 0 8 0 vmmpekpl 168 62573 0 62547 2 0 2 2 0 8 0 vmmpepl 168 1020034 0 1018572 316 237 79 81 0 357 9 vmsppl 264 10298 0 10285 2 1 1 2 0 8 0 pdppl 4096 20604 0 20570 6 1 5 6 0 8 0 pvpl 32 2621138 0 2608996 745 608 137 229 0 265 37 pmappl 200 10298 0 10285 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1244 0 595 26 6 20 20 0 8 0