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 * 65717 42297 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(ffffffff81f80046,ffffffff81f405a0,239,ffffffff81f1cee1) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff800000a0c8c0,0,ffff800000a2a490,38,fffffd8035e49318) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800016c025c0,38,ffff800016c02538,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff800000a2a400,ffff800016c02668,ffff800016c025c0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803f030c00,fffffd803eaaf780,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd803eaaf780,9,fffffd803f030c00,0,0,ffff80001491f4f8) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd803eaaf780,0,ffff800016c02860,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff80001491f4f8,3,ffff800016c02940,0,ffff800016c02a40) at sendit+0x53f sys/kern/uipc_syscalls.c:662 sys_sendto(ffff80001491f4f8,ffff800016c029d8,ffff800016c02a40) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800016c02aa0) at syscall+0x508 Xsyscall(6,0,ffffffffffffffd8,0,6,7ba6291010) at Xsyscall+0x128 end of kernel end trace frame: 0x7e76dc29b0, 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(ffffffff81f80046,ffffffff81f405a0,239,ffffffff81f1cee1) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff800000a0c8c0,0,ffff800000a2a490,38,fffffd8035e49318) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800016c025c0,38,ffff800016c02538,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff800000a2a400,ffff800016c02668,ffff800016c025c0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803f030c00,fffffd803eaaf780,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd803eaaf780,9,fffffd803f030c00,0,0,ffff80001491f4f8) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd803eaaf780,0,ffff800016c02860,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff80001491f4f8,3,ffff800016c02940,0,ffff800016c02a40) at sendit+0x53f sys/kern/uipc_syscalls.c:662 sys_sendto(ffff80001491f4f8,ffff800016c029d8,ffff800016c02a40) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800016c02aa0) at syscall+0x508 Xsyscall(6,0,ffffffffffffffd8,0,6,7ba6291010) at Xsyscall+0x128 end of kernel end trace frame: 0x7e76dc29b0, count: -13 ddb> show registers rdi 0xffffffff8100b067 db_enter+0x17 rsi 0x4e6d __ALIGN_SIZE+0x3e6d rbp 0xffff800016c02280 rbx 0xffff800016c02330 rdx 0x4e6e __ALIGN_SIZE+0x3e6e rcx 0xffff8000149fd000 rax 0xffff8000149fd000 r8 0xffff800016c02240 r9 0x1 r10 0xffff80000005cdc0 r11 0xa198bac40db80d37 r12 0x3000000008 r13 0xffff800016c02290 r14 0x100 r15 0x1 rip 0xffffffff8100b068 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800016c02270 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=65717 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800014920ae8,0xffffffff822c2708 process=0xffff8000ffffa358 user=0xffff800016bfd000, vmspace=0xfffffd803f014880 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 42297 389903 75488 0 2 0 syz-executor.0 *42297 65717 75488 0 7 0x4000000 syz-executor.0 36900 91536 1 0 3 0x100083 ttyin getty 74137 382331 0 0 3 0x14200 bored sosplice 75488 88558 55229 0 2 0x482 syz-executor.0 93603 195058 55229 0 2 0x2 syz-executor.1 55229 252449 88937 0 3 0x82 thrsleep syz-fuzzer 55229 523051 88937 0 2 0x4000482 syz-fuzzer 55229 52083 88937 0 3 0x4000082 thrsleep syz-fuzzer 55229 470445 88937 0 3 0x4000082 kqread syz-fuzzer 55229 281783 88937 0 3 0x4000082 thrsleep syz-fuzzer 55229 428233 88937 0 3 0x4000082 thrsleep syz-fuzzer 55229 107046 88937 0 3 0x4000082 thrsleep syz-fuzzer 55229 81450 88937 0 3 0x4000082 thrsleep syz-fuzzer 88937 513917 29103 0 3 0x10008a pause ksh 29103 476706 30266 0 3 0x92 select sshd 30266 212124 1 0 3 0x80 select sshd 63684 318264 84496 73 3 0x100090 kqread syslogd 84496 238080 1 0 3 0x100082 netio syslogd 58268 472564 1 77 3 0x100090 poll dhclient 28456 146744 1 0 3 0x80 poll dhclient 59736 456335 0 0 2 0x14200 zerothread 89910 428407 0 0 3 0x14200 aiodoned aiodoned 24693 362007 0 0 3 0x14200 syncer update 1663 188678 0 0 3 0x14200 cleaner cleaner 22015 331133 0 0 3 0x14200 reaper reaper 76991 501967 0 0 3 0x14200 pgdaemon pagedaemon 28271 149027 0 0 3 0x14200 bored crynlk 66612 149618 0 0 3 0x14200 bored crypto 84540 398910 0 0 3 0x40014200 acpi0 acpi0 23058 506709 0 0 3 0x14200 bored softnet 28102 24515 0 0 2 0x14200 systqmp 95894 420485 0 0 3 0x14200 bored systq 10448 105191 0 0 3 0x40014200 bored softclock 14304 310496 0 0 3 0x40014200 idle0 49133 194952 0 0 3 0x14200 bored smr 1 500940 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 9533 6378K 7134K 78643K 26252 0 0 pcb 24 9K 11K 78643K 3085 0 0 rtable 152 6K 6K 78643K 1387 0 0 ifaddr 63 17K 19K 78643K 616 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 311 0 0 iov 0 0K 32K 78643K 868 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1202 75K 77K 78643K 7384 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 66 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 528 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 6856 0 0 sigio 0 0K 0K 78643K 86 0 0 proc 42 30K 46K 78643K 1107 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 676 0 0 in_multi 33 2K 2K 78643K 240 0 0 ether_multi 1 0K 0K 78643K 25 0 0 mrt 0 0K 0K 78643K 7 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 132 583K 583K 78643K 132 0 0 exec 0 0K 1K 78643K 645 0 0 pfkey data 0 0K 0K 78643K 4 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 84 20K 38K 78643K 16803 0 0 UVM aobj 130 4K 4K 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 262 0 0 NDP 13 0K 0K 78643K 163 0 0 temp 186 2715K 3363K 78643K 23476 0 0 kqueue 0 0K 0K 78643K 51 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 2740 0 2733 1 0 1 1 0 8 0 rtentry 112 88 0 28 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 43 0 43 1 1 0 1 0 8 0 tcpcb 544 1030 0 1026 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 128 0 128 17 16 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 60 0 18 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 12 1 0 1 1 0 8 0 semapl 112 526 0 516 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 12815 0 11305 49 0 49 49 0 8 0 ffsino 240 12815 0 11305 89 0 89 89 0 8 0 nchpl 144 22574 0 20946 61 0 61 61 0 8 0 uvmvnodes 72 6022 0 0 110 0 110 110 0 8 0 vnodes 200 6022 0 0 317 0 317 317 0 8 0 namei 1024 71549 0 71549 2 1 1 1 0 8 1 scsiplug 64 10 0 10 7 7 0 1 0 8 0 scxspl 192 73439 0 73439 44 43 1 6 0 8 1 plimitpl 152 238 0 231 1 0 1 1 0 8 0 sigapl 432 7030 0 7017 2 0 2 2 0 8 0 futexpl 56 109390 0 109390 1 0 1 1 0 8 1 knotepl 112 1242 0 1223 1 0 1 1 0 8 0 kqueuepl 104 1552 0 1550 1 0 1 1 0 8 0 pipepl 112 3802 0 3783 7 6 1 2 0 8 0 fdescpl 424 7031 0 7017 2 0 2 2 0 8 0 filepl 120 42405 0 42309 5 1 4 5 0 8 1 lockfpl 104 2318 0 2318 2 1 1 1 0 8 1 lockfspl 48 788 0 788 2 1 1 1 0 8 1 sessionpl 112 20 0 10 1 0 1 1 0 8 0 pgrppl 48 90 0 80 1 0 1 1 0 8 0 ucredpl 96 10511 0 10504 1 0 1 1 0 8 0 zombiepl 144 7017 0 7017 2 1 1 1 0 8 1 processpl 840 7046 0 7017 4 0 4 4 0 8 0 procpl 624 15794 0 15757 4 0 4 4 0 8 0 sosppl 128 90 0 90 18 18 0 1 0 8 0 sockpl 384 5451 0 5433 7 4 3 4 0 8 1 mcl64k 65536 2196 0 2196 164 164 0 33 0 8 0 mcl16k 16384 22 0 22 15 14 1 1 0 8 1 mcl12k 12288 95 0 95 19 18 1 1 0 8 1 mcl9k 9216 118 0 118 18 17 1 1 0 8 1 mcl8k 8192 86 0 86 20 19 1 1 0 8 1 mcl4k 4096 294 0 294 10 9 1 1 0 8 1 mcl2k2 2112 33 0 33 17 16 1 1 0 8 1 mcl2k 2048 65647 0 65604 28 22 6 11 0 8 0 mtagpl 80 14 0 14 7 7 0 1 0 8 0 mbufpl 256 140553 0 140489 98 92 6 22 0 8 0 bufpl 256 25923 0 19216 420 0 420 420 0 8 0 anonpl 16 569763 0 559377 203 144 59 59 0 62 13 amapchunkpl 152 28223 0 28123 65 51 14 14 0 158 8 amappl16 192 35487 0 34921 168 138 30 41 0 8 1 amappl15 184 3397 0 3396 1 0 1 1 0 8 0 amappl14 176 35 0 34 2 1 1 1 0 8 0 amappl13 168 3434 0 3433 1 0 1 1 0 8 0 amappl12 160 26 0 21 1 0 1 1 0 8 0 amappl11 152 50 0 36 1 0 1 1 0 8 0 amappl10 144 62 0 61 2 1 1 1 0 8 0 amappl9 136 496 0 493 1 0 1 1 0 8 0 amappl8 128 142 0 124 1 0 1 1 0 8 0 amappl7 120 34 0 30 1 0 1 1 0 8 0 amappl6 112 62 0 54 1 0 1 1 0 8 0 amappl5 104 288 0 275 1 0 1 1 0 8 0 amappl4 96 7217 0 7193 1 0 1 1 0 8 0 amappl3 88 375 0 363 1 0 1 1 0 8 0 amappl2 80 58921 0 58854 3 1 2 3 0 8 0 amappl1 72 130981 0 130573 29 20 9 19 0 8 0 amappl 80 16100 0 16066 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 7031 0 7017 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7031 0 7017 1 0 1 1 0 8 0 vmmpekpl 168 46044 0 46015 2 0 2 2 0 8 0 vmmpepl 168 688927 0 687386 204 131 73 103 0 357 1 vmsppl 272 7030 0 7017 2 1 1 2 0 8 0 pdppl 4096 14068 0 14034 6 1 5 6 0 8 0 pvpl 32 1747965 0 1734488 524 331 193 234 0 265 80 pmappl 200 7030 0 7017 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 878 0 325 16 0 16 16 0 8 0