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 *169916 13176 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,ffff80000099d880,0,ffff800000a1fc90,38,fffffd8034dc7e08) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800015a07c00,38,ffff800015a07b78,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff800000a1fc00,ffff800015a07ca8,ffff800015a07c00,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803f030800,fffffd803701da80,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd803701da80,9,fffffd803f030800,0,0,ffff800015a11530) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd803701da80,0,ffff800015a07ea0,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800015a11530,3,ffff800015a07f80,0,ffff800015a08090) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800015a11530,ffff800015a08028,ffff800015a08090) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800015a08100) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,55f0a464010) at Xsyscall+0x128 end of kernel end trace frame: 0x56135164950, 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,ffff80000099d880,0,ffff800000a1fc90,38,fffffd8034dc7e08) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800015a07c00,38,ffff800015a07b78,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff800000a1fc00,ffff800015a07ca8,ffff800015a07c00,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803f030800,fffffd803701da80,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd803701da80,9,fffffd803f030800,0,0,ffff800015a11530) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd803701da80,0,ffff800015a07ea0,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800015a11530,3,ffff800015a07f80,0,ffff800015a08090) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800015a11530,ffff800015a08028,ffff800015a08090) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800015a08100) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,55f0a464010) at Xsyscall+0x128 end of kernel end trace frame: 0x56135164950, count: -13 ddb> show registers rdi 0xffffffff81db3e57 db_enter+0x17 rsi 0x4c5e __ALIGN_SIZE+0x3c5e rbp 0xffff800015a078c0 rbx 0xffff800015a07970 rdx 0x4c5f __ALIGN_SIZE+0x3c5f rcx 0xffff800016c03000 rax 0xffff800016c03000 r8 0xffff800015a07880 r9 0x1 r10 0xffff800000994980 r11 0xaf19a2d547623b72 r12 0x3000000008 r13 0xffff800015a078d0 r14 0x100 r15 0x1 rip 0xffffffff81db3e58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015a078b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=169916 stat=onproc flags process=0 proc=4000000 pri=78, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800015a119e0,0xffffffff822b7b98 process=0xffff8000ffff6010 user=0xffff800015a03000, vmspace=0xfffffd803f014d68 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 13176 467934 17707 0 2 0 syz-executor.1 *13176 169916 17707 0 7 0x4000000 syz-executor.1 87240 295943 0 0 3 0x14200 bored sosplice 66882 336467 22746 0 2 0x2 syz-executor.0 17707 477669 22746 0 2 0x482 syz-executor.1 22746 343009 83270 0 3 0x82 thrsleep syz-fuzzer 22746 250712 83270 0 2 0x4000482 syz-fuzzer 22746 519457 83270 0 3 0x4000082 thrsleep syz-fuzzer 22746 362397 83270 0 3 0x4000082 kqread syz-fuzzer 22746 344316 83270 0 3 0x4000082 thrsleep syz-fuzzer 22746 389426 83270 0 3 0x4000082 thrsleep syz-fuzzer 22746 404961 83270 0 3 0x4000082 thrsleep syz-fuzzer 22746 246740 83270 0 3 0x4000082 thrsleep syz-fuzzer 83270 253486 19313 0 3 0x10008a pause ksh 19313 130674 4780 0 3 0x92 select sshd 88195 65316 1 0 3 0x100083 ttyin getty 4780 155476 1 0 3 0x80 select sshd 95312 333686 24958 73 3 0x100090 kqread syslogd 24958 11030 1 0 3 0x100082 netio syslogd 91733 158652 1 77 3 0x100090 poll dhclient 13683 244279 1 0 3 0x80 poll dhclient 24292 199975 0 0 2 0x14200 zerothread 10127 438556 0 0 3 0x14200 aiodoned aiodoned 86182 303471 0 0 3 0x14200 syncer update 4297 226533 0 0 3 0x14200 cleaner cleaner 41431 165880 0 0 3 0x14200 reaper reaper 68829 120957 0 0 3 0x14200 pgdaemon pagedaemon 24231 388707 0 0 3 0x14200 bored crynlk 70417 432839 0 0 3 0x14200 bored crypto 6688 322259 0 0 3 0x40014200 acpi0 acpi0 6178 141758 0 0 3 0x14200 bored softnet 21899 242876 0 0 2 0x14200 systqmp 58398 364984 0 0 3 0x14200 bored systq 15923 179490 0 0 3 0x40014200 bored softclock 2043 407780 0 0 3 0x40014200 idle0 36598 114020 0 0 3 0x14200 bored smr 1 358437 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 9578 6521K 14693K 78643K 37710 0 0 pcb 24 9K 11K 78643K 8384 0 0 rtable 195 8K 8K 78643K 3302 0 0 ifaddr 74 22K 26K 78643K 1539 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 659 0 0 iov 0 0K 32K 78643K 2117 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1187 75K 77K 78643K 14343 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 201 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 936 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 17463 0 0 sigio 0 0K 0K 78643K 287 0 0 proc 42 30K 46K 78643K 2094 0 0 subproc 32 2K 2K 78643K 44 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 1867 0 0 in_multi 33 2K 2K 78643K 632 0 0 ether_multi 1 0K 0K 78643K 117 0 0 mrt 0 0K 0K 78643K 70 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 1461 0 0 pfkey data 0 0K 4K 78643K 14 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 101 21K 39K 78643K 41683 0 0 UVM aobj 130 9K 9K 78643K 156 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 675 0 0 NDP 17 0K 0K 78643K 409 0 0 temp 227 2716K 3356K 78643K 53083 0 0 kqueue 0 0K 0K 78643K 184 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 7185 0 7178 1 0 1 1 0 8 0 plimitpl 152 446 0 439 1 0 1 1 0 8 0 rtentry 112 154 0 84 7 4 3 3 0 8 1 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpcb 544 2568 0 2564 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 315 0 315 59 58 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 70 0 28 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 8 2 2 0 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 934 0 924 1 0 1 1 0 8 0 shmpl 112 154 0 26 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 31377 0 29705 56 1 55 55 0 8 0 ffsino 240 31377 0 29705 101 2 99 99 0 8 0 nchpl 144 55907 0 54281 61 0 61 61 0 8 0 uvmvnodes 72 6775 0 0 124 0 124 124 0 8 0 vnodes 200 6775 0 0 357 0 357 357 0 8 0 namei 1024 178982 0 178982 2 1 1 1 0 8 1 scsiplug 64 35 0 35 27 27 0 1 0 8 0 scxspl 192 182738 0 182738 68 66 2 6 0 8 2 sigapl 432 17634 0 17621 2 0 2 2 0 8 0 futexpl 56 267817 0 267817 2 1 1 1 0 8 1 knotepl 112 3195 0 3176 1 0 1 1 0 8 0 kqueuepl 104 4283 0 4281 1 0 1 1 0 8 0 pipepl 112 10118 0 10099 28 27 1 2 0 8 0 fdescpl 424 17635 0 17621 2 0 2 2 0 8 0 filepl 120 106305 0 106210 10 6 4 5 0 8 1 lockfpl 104 6164 0 6164 4 3 1 1 0 8 1 lockfspl 48 2069 0 2069 4 3 1 1 0 8 1 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 226 0 216 1 0 1 1 0 8 0 ucredpl 96 27008 0 27001 1 0 1 1 0 8 0 zombiepl 144 17621 0 17621 2 1 1 1 0 8 1 processpl 840 17650 0 17621 4 0 4 4 0 8 0 procpl 600 40185 0 40148 4 0 4 4 0 8 0 sosppl 128 223 0 223 58 57 1 1 0 8 1 sockpl 384 14603 0 14585 10 7 3 4 0 8 1 mcl64k 65536 5959 0 5959 625 624 1 129 0 8 1 mcl16k 16384 39 0 39 27 27 0 1 0 8 0 mcl12k 12288 309 0 309 56 55 1 1 0 8 1 mcl9k 9216 277 0 277 54 53 1 1 0 8 1 mcl8k 8192 232 0 232 58 57 1 1 0 8 1 mcl4k 4096 658 0 658 25 24 1 1 0 8 1 mcl2k2 2112 104 0 104 52 51 1 1 0 8 1 mcl2k 2048 78646 0 78603 37 31 6 12 0 8 0 mtagpl 80 28 0 28 10 10 0 1 0 8 0 mbufpl 256 215165 0 215114 339 334 5 68 0 8 1 bufpl 256 52286 0 44556 485 1 484 484 0 8 0 anonpl 16 1490704 0 1481510 487 447 40 55 0 62 0 amapchunkpl 152 72777 0 72692 229 225 4 18 0 158 0 amappl16 192 94686 0 94194 559 532 27 38 0 8 2 amappl15 184 4 0 4 4 4 0 1 0 8 0 amappl14 176 45 0 42 2 1 1 1 0 8 0 amappl12 160 8718 0 8713 1 0 1 1 0 8 0 amappl11 152 55 0 40 1 0 1 1 0 8 0 amappl10 144 70 0 67 2 1 1 1 0 8 0 amappl9 136 9264 0 9260 1 0 1 1 0 8 0 amappl8 128 8895 0 8864 2 0 2 2 0 8 1 amappl7 120 34 0 31 1 0 1 1 0 8 0 amappl6 112 63 0 57 1 0 1 1 0 8 0 amappl5 104 8898 0 8887 1 0 1 1 0 8 0 amappl4 96 17770 0 17750 1 0 1 1 0 8 0 amappl3 88 1701 0 1690 1 0 1 1 0 8 0 amappl2 80 140180 0 140114 4 2 2 3 0 8 0 amappl1 72 305037 0 304625 26 17 9 19 0 8 0 amappl 80 40583 0 40550 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 155 0 26 3 0 3 3 0 8 0 uaddrrnd 24 17635 0 17621 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 17635 0 17621 1 0 1 1 0 8 0 vmmpekpl 168 100741 0 100717 2 0 2 2 0 8 0 vmmpepl 168 1733144 0 1731663 421 350 71 91 0 357 0 vmsppl 264 17634 0 17621 2 1 1 2 0 8 0 pdppl 4096 35276 0 35242 6 1 5 6 0 8 0 pvpl 32 4415212 0 4402910 1035 878 157 215 0 265 53 pmappl 200 17634 0 17621 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1725 0 1104 25 5 20 23 0 8 0