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 *124261 71206 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,ffff8000009db400,0,ffff8000009b5a90,38,fffffd8030418698) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff8000155e6870,38,ffff8000155e67e8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009b5a00,ffff8000155e6918,ffff8000155e6870,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8036d4d700,fffffd803a907480,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd803a907480,9,fffffd8036d4d700,0,0,ffff800015a1c4c8) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd803a907480,0,ffff8000155e6b10,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800015a1c4c8,3,ffff8000155e6bf0,0,ffff8000155e6d00) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800015a1c4c8,ffff8000155e6c98,ffff8000155e6d00) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000155e6d70) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,d8903099010) at Xsyscall+0x128 end of kernel end trace frame: 0xd8bc2c2eb60, 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,ffff8000009db400,0,ffff8000009b5a90,38,fffffd8030418698) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff8000155e6870,38,ffff8000155e67e8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009b5a00,ffff8000155e6918,ffff8000155e6870,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8036d4d700,fffffd803a907480,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd803a907480,9,fffffd8036d4d700,0,0,ffff800015a1c4c8) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd803a907480,0,ffff8000155e6b10,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800015a1c4c8,3,ffff8000155e6bf0,0,ffff8000155e6d00) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800015a1c4c8,ffff8000155e6c98,ffff8000155e6d00) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000155e6d70) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,d8903099010) at Xsyscall+0x128 end of kernel end trace frame: 0xd8bc2c2eb60, count: -13 ddb> show registers rdi 0xffffffff81db3e57 db_enter+0x17 rsi 0x5cee __ALIGN_SIZE+0x4cee rbp 0xffff8000155e6530 rbx 0xffff8000155e65e0 rdx 0x5cef __ALIGN_SIZE+0x4cef rcx 0xffff8000149d1000 rax 0xffff8000149d1000 r8 0xffff8000155e64f0 r9 0x1 r10 0xffff80000098fe00 r11 0xbd486d00f649eb r12 0x3000000008 r13 0xffff8000155e6540 r14 0x100 r15 0x1 rip 0xffffffff81db3e58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000155e6520 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=124261 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800015a1d9e0,0xffffffff822b7b98 process=0xffff8000ffff7078 user=0xffff8000155e1000, vmspace=0xfffffd803f014a50 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 71206 358268 43202 0 2 0 syz-executor.1 *71206 124261 43202 0 7 0x4000000 syz-executor.1 44196 147957 1 0 3 0x100083 ttyin getty 55839 189623 0 0 3 0x14200 bored sosplice 33569 425820 39240 0 2 0x2 syz-executor.0 43202 61346 39240 0 2 0x482 syz-executor.1 39240 73189 58537 0 3 0x82 thrsleep syz-fuzzer 39240 75703 58537 0 2 0x4000482 syz-fuzzer 39240 120813 58537 0 3 0x4000082 thrsleep syz-fuzzer 39240 455013 58537 0 3 0x4000082 thrsleep syz-fuzzer 39240 279928 58537 0 3 0x4000082 thrsleep syz-fuzzer 39240 45848 58537 0 3 0x4000082 kqread syz-fuzzer 39240 89428 58537 0 3 0x4000082 thrsleep syz-fuzzer 39240 466290 58537 0 3 0x4000082 thrsleep syz-fuzzer 58537 113102 79868 0 3 0x10008a pause ksh 79868 167380 76097 0 3 0x92 select sshd 76097 448532 1 0 3 0x80 select sshd 30708 424751 86548 73 3 0x100090 kqread syslogd 86548 321781 1 0 3 0x100082 netio syslogd 16613 209631 1 77 3 0x100090 poll dhclient 92824 380863 1 0 3 0x80 poll dhclient 21659 239170 0 0 2 0x14200 zerothread 25709 79377 0 0 3 0x14200 aiodoned aiodoned 19293 308366 0 0 3 0x14200 syncer update 74245 343024 0 0 3 0x14200 cleaner cleaner 70117 272791 0 0 3 0x14200 reaper reaper 81985 84926 0 0 3 0x14200 pgdaemon pagedaemon 36274 109072 0 0 3 0x14200 bored crynlk 12461 410917 0 0 3 0x14200 bored crypto 69266 461567 0 0 3 0x40014200 acpi0 acpi0 13946 293322 0 0 3 0x14200 bored softnet 52213 190393 0 0 2 0x14200 systqmp 17663 455956 0 0 3 0x14200 bored systq 44189 503558 0 0 3 0x40014200 bored softclock 99452 512130 0 0 3 0x40014200 idle0 38616 485270 0 0 3 0x14200 bored smr 1 512251 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 9512 6463K 6842K 78643K 11507 0 0 pcb 24 9K 10K 78643K 368 0 0 rtable 124 5K 5K 78643K 341 0 0 ifaddr 58 13K 13K 78643K 98 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 47 0 0 iov 0 0K 16K 78643K 80 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1209 76K 76K 78643K 1696 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 11 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 48 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 674 0 0 sigio 0 0K 0K 78643K 22 0 0 proc 42 30K 54K 78643K 362 0 0 subproc 32 2K 2K 78643K 34 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 58 0 0 in_multi 33 2K 2K 78643K 63 0 0 ether_multi 1 0K 0K 78643K 7 0 0 mrt 0 0K 0K 78643K 6 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 244 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 80 20K 21K 78643K 2430 0 0 UVM aobj 18 2K 2K 78643K 20 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 26 0 0 NDP 12 0K 0K 78643K 26 0 0 temp 152 2710K 3346K 78643K 4854 0 0 kqueue 0 0K 0K 78643K 7 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 312 0 305 1 0 1 1 0 8 0 plimitpl 152 29 0 22 1 0 1 1 0 8 0 rtentry 112 56 0 10 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 122 0 118 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 9 0 9 4 3 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 46 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semapl 112 42 0 32 1 0 1 1 0 8 0 shmpl 112 18 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2552 0 1142 46 0 46 46 0 8 0 ffsino 240 2552 0 1142 84 0 84 84 0 8 0 nchpl 144 3672 0 2041 61 0 61 61 0 8 0 uvmvnodes 72 2822 0 0 52 0 52 52 0 8 0 vnodes 200 2822 0 0 149 0 149 149 0 8 0 namei 1024 10287 0 10287 2 1 1 1 0 8 1 scsiplug 64 1 0 1 1 0 1 1 0 8 1 scxspl 192 10664 0 10664 9 8 1 6 0 8 1 sigapl 432 846 0 833 2 0 2 2 0 8 0 futexpl 56 10100 0 10100 3 2 1 1 0 8 1 knotepl 112 167 0 148 1 0 1 1 0 8 0 kqueuepl 104 138 0 136 1 0 1 1 0 8 0 pipepl 112 550 0 531 3 2 1 2 0 8 0 fdescpl 424 847 0 833 2 0 2 2 0 8 0 filepl 120 4736 0 4641 6 2 4 4 0 8 1 lockfpl 104 233 0 233 3 2 1 1 0 8 1 lockfspl 48 84 0 84 3 2 1 1 0 8 1 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 32 0 22 1 0 1 1 0 8 0 ucredpl 96 946 0 939 1 0 1 1 0 8 0 zombiepl 144 833 0 833 2 1 1 1 0 8 1 processpl 840 862 0 833 4 0 4 4 0 8 0 procpl 600 1725 0 1688 4 0 4 4 0 8 0 sosppl 128 8 0 8 1 1 0 1 0 8 0 sockpl 384 617 0 599 5 2 3 3 0 8 1 mcl64k 65536 19 0 19 3 2 1 1 0 8 1 mcl16k 16384 2 0 2 1 1 0 1 0 8 0 mcl12k 12288 8 0 8 4 3 1 1 0 8 1 mcl9k 9216 10 0 10 4 3 1 1 0 8 1 mcl8k 8192 9 0 9 3 2 1 1 0 8 1 mcl4k 4096 31 0 31 3 2 1 1 0 8 1 mcl2k2 2112 3 0 3 2 2 0 1 0 8 0 mcl2k 2048 52471 0 52436 11 6 5 10 0 8 0 mtagpl 80 4 0 4 2 1 1 1 0 8 1 mbufpl 256 88968 0 88918 14 9 5 10 0 8 1 bufpl 256 7008 0 2533 280 0 280 280 0 8 0 anonpl 16 76585 0 67576 53 14 39 50 0 62 0 amapchunkpl 152 3347 0 3266 11 7 4 9 0 158 0 amappl16 192 3895 0 3410 38 12 26 34 0 8 1 amappl15 184 8 0 7 1 0 1 1 0 8 0 amappl14 176 38 0 36 2 1 1 1 0 8 0 amappl13 168 1 0 1 1 1 0 1 0 8 0 amappl12 160 320 0 317 1 0 1 1 0 8 0 amappl11 152 49 0 35 1 0 1 1 0 8 0 amappl10 144 389 0 387 2 1 1 1 0 8 0 amappl9 136 522 0 518 1 0 1 1 0 8 0 amappl8 128 133 0 117 1 0 1 1 0 8 0 amappl7 120 360 0 355 1 0 1 1 0 8 0 amappl6 112 52 0 47 1 0 1 1 0 8 0 amappl5 104 505 0 493 1 0 1 1 0 8 0 amappl4 96 672 0 649 1 0 1 1 0 8 0 amappl3 88 507 0 496 1 0 1 1 0 8 0 amappl2 80 5985 0 5921 4 2 2 3 0 8 0 amappl1 72 24158 0 23745 24 15 9 19 0 8 0 amappl 80 1956 0 1924 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 19 0 2 1 0 1 1 0 8 0 uaddrrnd 24 847 0 833 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 847 0 833 1 0 1 1 0 8 0 vmmpekpl 168 9273 0 9245 2 0 2 2 0 8 0 vmmpepl 168 93297 0 91851 89 20 69 77 0 357 3 vmsppl 264 846 0 833 2 1 1 2 0 8 0 pdppl 4096 1700 0 1666 6 1 5 6 0 8 0 pvpl 32 249511 0 237490 141 35 106 130 0 265 7 pmappl 200 846 0 833 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 427 0 26 12 0 12 12 0 8 0