FFpanic: 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 *469998 88848 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(ffffffff81f7c399,ffffffff81f3aad6,239,ffffffff81f16fee) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff80000099c500,0,ffff800000a01e90,38,fffffd8031051468) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff8000149d8180,38,ffff8000149d80f8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff800000a01e00,ffff8000149d8228,ffff8000149d8180,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803c21c300,fffffd80363eda88,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363eda88,9,fffffd803c21c300,0,0,ffff800017a08278) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363eda88,0,ffff8000149d8420,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800017a08278,3,ffff8000149d8500,0,ffff8000149d8610) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800017a08278,ffff8000149d85a8,ffff8000149d8610) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000149d8680) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,cfa301cc010) at Xsyscall+0x128 end of kernel end trace frame: 0xcfc3a92de10, 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,ffff80000099c500,0,ffff800000a01e90,38,fffffd8031051468) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff8000149d8180,38,ffff8000149d80f8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff800000a01e00,ffff8000149d8228,ffff8000149d8180,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803c21c300,fffffd80363eda88,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363eda88,9,fffffd803c21c300,0,0,ffff800017a08278) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363eda88,0,ffff8000149d8420,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800017a08278,3,ffff8000149d8500,0,ffff8000149d8610) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800017a08278,ffff8000149d85a8,ffff8000149d8610) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000149d8680) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,cfa301cc010) at Xsyscall+0x128 end of kernel end trace frame: 0xcfc3a92de10, count: -13 ddb> show registers rdi 0xffffffff81db3e57 db_enter+0x17 rsi 0x4636 __ALIGN_SIZE+0x3636 rbp 0xffff8000149d7e40 rbx 0xffff8000149d7ef0 rdx 0x4637 __ALIGN_SIZE+0x3637 rcx 0xffff8000149ef000 rax 0xffff8000149ef000 r8 0xffff8000149d7e00 r9 0x1 r10 0xffff80000099c340 r11 0x1787ebc4174159a1 r12 0x3000000008 r13 0xffff8000149d7e50 r14 0x100 r15 0x1 rip 0xffffffff81db3e58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149d7e30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=469998 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800017a09c40,0xffffffff822b7b98 process=0xffff8000149533c8 user=0xffff8000149d3000, vmspace=0xfffffd803f014000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 88848 51165 27558 0 2 0 syz-executor.0 *88848 469998 27558 0 7 0x4000000 syz-executor.0 74039 514686 1 0 3 0x100083 ttyin getty 59157 287179 44676 0 2 0x2 syz-executor.1 27558 365278 44676 0 2 0x482 syz-executor.0 16136 171087 0 0 3 0x14200 bored sosplice 44676 70170 6188 0 3 0x82 thrsleep syz-fuzzer 44676 389628 6188 0 3 0x4000082 nanosleep syz-fuzzer 44676 271325 6188 0 3 0x4000082 thrsleep syz-fuzzer 44676 343855 6188 0 3 0x4000082 kqread syz-fuzzer 44676 345341 6188 0 3 0x4000082 thrsleep syz-fuzzer 44676 172132 6188 0 3 0x4000082 thrsleep syz-fuzzer 44676 401318 6188 0 3 0x4000082 thrsleep syz-fuzzer 44676 473149 6188 0 3 0x4000082 thrsleep syz-fuzzer 6188 338474 21755 0 3 0x10008a pause ksh 21755 222996 57844 0 3 0x92 select sshd 57844 513769 1 0 3 0x80 select sshd 19274 137200 63310 73 3 0x100090 kqread syslogd 63310 465704 1 0 3 0x100082 netio syslogd 71372 496754 1 77 3 0x100090 poll dhclient 62902 433725 1 0 3 0x80 poll dhclient 38136 93311 0 0 2 0x14200 zerothread 49537 322423 0 0 3 0x14200 aiodoned aiodoned 15471 105368 0 0 3 0x14200 syncer update 11243 392041 0 0 3 0x14200 cleaner cleaner 66003 138436 0 0 3 0x14200 reaper reaper 91224 454600 0 0 3 0x14200 pgdaemon pagedaemon 31077 420060 0 0 3 0x14200 bored crynlk 83001 231823 0 0 3 0x14200 bored crypto 22614 31523 0 0 3 0x40014200 acpi0 acpi0 67195 146721 0 0 3 0x14200 bored softnet 5590 442318 0 0 2 0x14200 systqmp 25206 481821 0 0 3 0x14200 bored systq 78500 442058 0 0 3 0x40014200 bored softclock 81910 523972 0 0 3 0x40014200 idle0 38727 23054 0 0 3 0x14200 bored smr 1 116061 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 9517 6364K 6872K 78643K 15697 0 0 pcb 24 9K 11K 78643K 1707 0 0 rtable 124 5K 5K 78643K 845 0 0 ifaddr 62 15K 16K 78643K 333 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 142 0 0 iov 0 0K 32K 78643K 395 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1198 75K 76K 78643K 3679 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 36 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 170 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 3072 0 0 sigio 0 0K 0K 78643K 38 0 0 proc 42 30K 46K 78643K 756 0 0 subproc 32 2K 2K 78643K 70 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 327 0 0 in_multi 33 2K 2K 78643K 178 0 0 ether_multi 1 0K 0K 78643K 19 0 0 mrt 0 0K 0K 78643K 4 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 454 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 86 20K 30K 78643K 8100 0 0 UVM aobj 108 3K 3K 78643K 118 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 121 0 0 NDP 13 0K 0K 78643K 89 0 0 temp 181 2715K 3355K 78643K 12109 0 0 kqueue 0 0K 0K 78643K 21 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 10 0 4 1 0 1 1 0 8 0 inpcbpl 280 1366 0 1359 2 1 1 2 0 8 0 plimitpl 152 73 0 66 1 0 1 1 0 8 0 rtentry 112 86 0 38 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 520 0 516 1 0 1 1 0 8 0 nd6 48 12 0 6 1 0 1 1 0 8 0 ppxss 1128 57 0 57 13 12 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 289 0 92 13 0 13 13 0 8 0 art_table 32 290 0 92 2 0 2 2 0 8 0 art_node 16 70 0 28 1 0 1 1 0 8 0 sysvmsgpl 40 26 0 10 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 166 0 156 1 0 1 1 0 8 0 shmpl 112 116 0 10 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 6646 0 5200 47 0 47 47 0 8 0 ffsino 240 6646 0 5200 86 0 86 86 0 8 0 nchpl 144 11106 0 9485 61 0 61 61 0 8 0 uvmvnodes 72 5948 0 0 109 0 109 109 0 8 0 vnodes 200 5948 0 0 314 0 314 314 0 8 0 namei 1024 34452 0 34452 4 3 1 1 0 8 1 scsiplug 64 6 0 6 5 5 0 1 0 8 0 scxspl 192 42415 0 42415 19 18 1 6 0 8 1 sigapl 432 3242 0 3229 2 0 2 2 0 8 0 futexpl 56 46636 0 46636 4 3 1 1 0 8 1 knotepl 112 608 0 589 1 0 1 1 0 8 0 kqueuepl 104 679 0 677 1 0 1 1 0 8 0 pipepl 112 1920 0 1901 11 10 1 2 0 8 0 fdescpl 424 3243 0 3229 2 0 2 2 0 8 0 filepl 120 19402 0 19307 7 3 4 5 0 8 0 lockfpl 104 1019 0 1019 5 4 1 1 0 8 1 lockfspl 48 352 0 352 5 4 1 1 0 8 1 sessionpl 112 24 0 14 1 0 1 1 0 8 0 pgrppl 48 56 0 46 1 0 1 1 0 8 0 ucredpl 96 4663 0 4656 1 0 1 1 0 8 0 zombiepl 144 3229 0 3229 2 1 1 1 0 8 1 processpl 840 3258 0 3229 4 0 4 4 0 8 0 procpl 600 7178 0 7141 5 1 4 4 0 8 0 sosppl 128 49 0 49 14 13 1 1 0 8 1 sockpl 384 2914 0 2896 6 3 3 4 0 8 1 mcl64k 65536 1380 0 1380 106 105 1 65 0 8 1 mcl16k 16384 10 0 10 8 7 1 1 0 8 1 mcl12k 12288 55 0 55 10 10 0 1 0 8 0 mcl9k 9216 50 0 50 14 13 1 1 0 8 1 mcl8k 8192 39 0 39 14 13 1 1 0 8 1 mcl4k 4096 134 0 134 5 4 1 1 0 8 1 mcl2k2 2112 13 0 13 8 7 1 1 0 8 1 mcl2k 2048 56832 0 56790 17 11 6 11 0 8 0 mtagpl 80 6 0 6 3 2 1 1 0 8 1 mbufpl 256 108986 0 108924 80 74 6 37 0 8 0 bufpl 256 14988 0 9045 372 0 372 372 0 8 0 anonpl 16 301075 0 291397 134 93 41 57 0 62 1 amapchunkpl 152 14211 0 14126 51 46 5 18 0 158 0 amappl16 192 17651 0 17127 142 114 28 39 0 8 1 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 249 0 245 2 1 1 1 0 8 0 amappl13 168 1326 0 1324 2 1 1 1 0 8 0 amappl12 160 1492 0 1491 2 1 1 1 0 8 0 amappl11 152 59 0 45 1 0 1 1 0 8 0 amappl10 144 71 0 68 2 1 1 1 0 8 0 amappl9 136 574 0 571 1 0 1 1 0 8 0 amappl8 128 164 0 145 1 0 1 1 0 8 0 amappl7 120 42 0 35 1 0 1 1 0 8 0 amappl6 112 61 0 54 1 0 1 1 0 8 0 amappl5 104 1657 0 1646 1 0 1 1 0 8 0 amappl4 96 1932 0 1908 1 0 1 1 0 8 0 amappl3 88 1970 0 1959 1 0 1 1 0 8 0 amappl2 80 26394 0 26326 4 2 2 3 0 8 0 amappl1 72 66631 0 66224 27 18 9 19 0 8 0 amappl 80 7467 0 7434 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 117 0 10 2 0 2 2 0 8 0 uaddrrnd 24 3243 0 3229 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3243 0 3229 1 0 1 1 0 8 0 vmmpekpl 168 22840 0 22817 2 0 2 2 0 8 0 vmmpepl 168 334914 0 333418 181 110 71 94 0 357 3 vmsppl 264 3242 0 3229 3 2 1 2 0 8 0 pdppl 4096 6492 0 6458 7 2 5 6 0 8 0 pvpl 32 929483 0 916665 370 247 123 250 0 265 19 pmappl 200 3242 0 3229 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 719 0 221 17 2 15 17 0 8 0