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 *472406 22483 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(ffffffff81f7e162,ffffffff81f3c86c,239,ffffffff81f191fc) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff800000996840,0,ffff8000009c5690,38,fffffd803957b238) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800015a0be80,38,ffff800015a0bdf8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009c5600,ffff800015a0bf28,ffff800015a0be80,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803958c000,fffffd8037010300,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd8037010300,9,fffffd803958c000,0,0,ffff8000ffff8260) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd8037010300,0,ffff800015a0c120,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000ffff8260,3,ffff800015a0c200,0,ffff800015a0c310) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000ffff8260,ffff800015a0c2a8,ffff800015a0c310) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800015a0c380) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,525612f1010) at Xsyscall+0x128 end of kernel end trace frame: 0x527aa313d10, 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(ffffffff81f7e162,ffffffff81f3c86c,239,ffffffff81f191fc) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff800000996840,0,ffff8000009c5690,38,fffffd803957b238) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800015a0be80,38,ffff800015a0bdf8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009c5600,ffff800015a0bf28,ffff800015a0be80,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803958c000,fffffd8037010300,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd8037010300,9,fffffd803958c000,0,0,ffff8000ffff8260) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd8037010300,0,ffff800015a0c120,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000ffff8260,3,ffff800015a0c200,0,ffff800015a0c310) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000ffff8260,ffff800015a0c2a8,ffff800015a0c310) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800015a0c380) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,525612f1010) at Xsyscall+0x128 end of kernel end trace frame: 0x527aa313d10, count: -13 ddb> show registers rdi 0xffffffff814f7a27 db_enter+0x17 rsi 0x4fb1 __ALIGN_SIZE+0x3fb1 rbp 0xffff800015a0bb40 rbx 0xffff800015a0bbf0 rdx 0x4fb2 __ALIGN_SIZE+0x3fb2 rcx 0xffff800016bf1000 rax 0xffff800016bf1000 r8 0xffff800015a0bb00 r9 0x1 r10 0xffff800000998c80 r11 0x2a89408f75bcce19 r12 0x3000000008 r13 0xffff800015a0bb50 r14 0x100 r15 0x1 rip 0xffffffff814f7a28 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015a0bb30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=472406 stat=onproc flags process=0 proc=4000000 pri=84, usrpri=84, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff84b8,0xffff8000ffff8018 process=0xffff8000ffff69e8 user=0xffff800015a07000, vmspace=0xfffffd803f00be70 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 51415 177557 2945 0 2 0 syz-executor.0 51415 66955 2945 0 2 0x4000000 syz-executor.0 22483 331480 3161 0 2 0 syz-executor.1 *22483 472406 3161 0 7 0x4000000 syz-executor.1 3161 279239 95692 0 3 0x82 nanosleep syz-executor.1 72738 404507 0 0 3 0x14200 bored sosplice 2945 302444 95692 0 2 0x482 syz-executor.0 95692 169804 86151 0 3 0x82 thrsleep syz-fuzzer 95692 260042 86151 0 3 0x4000082 thrsleep syz-fuzzer 95692 272106 86151 0 3 0x4000082 thrsleep syz-fuzzer 95692 429412 86151 0 3 0x4000082 thrsleep syz-fuzzer 95692 158052 86151 0 3 0x4000082 thrsleep syz-fuzzer 95692 459486 86151 0 3 0x4000082 kqread syz-fuzzer 95692 425698 86151 0 3 0x4000082 thrsleep syz-fuzzer 86151 158411 6844 0 3 0x10008a pause ksh 6844 369581 93025 0 3 0x92 select sshd 85250 225121 1 0 3 0x100083 ttyin getty 93025 446080 1 0 3 0x80 select sshd 39354 352217 96407 73 3 0x100090 kqread syslogd 96407 211487 1 0 3 0x100082 netio syslogd 83414 362156 1 77 3 0x100090 poll dhclient 24798 368476 1 0 3 0x80 poll dhclient 72687 479980 0 0 2 0x14200 zerothread 80003 269554 0 0 3 0x14200 aiodoned aiodoned 36615 56507 0 0 3 0x14200 syncer update 1500 439144 0 0 3 0x14200 cleaner cleaner 71624 172505 0 0 3 0x14200 reaper reaper 97409 23622 0 0 3 0x14200 pgdaemon pagedaemon 32493 261710 0 0 3 0x14200 bored crynlk 25517 55985 0 0 3 0x14200 bored crypto 63236 495741 0 0 3 0x40014200 acpi0 acpi0 9408 135595 0 0 3 0x14200 bored softnet 64173 467806 0 0 2 0x14200 systqmp 42909 502942 0 0 3 0x14200 bored systq 86450 27729 0 0 3 0x40014200 bored softclock 68913 23433 0 0 3 0x40014200 idle0 23178 475791 0 0 3 0x14200 bored smr 1 423484 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 9487 6343K 6846K 78643K 11382 0 0 pcb 24 9K 10K 78643K 266 0 0 rtable 115 4K 4K 78643K 342 0 0 ifaddr 52 12K 12K 78643K 106 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 24 0 0 iov 0 0K 32K 78643K 48 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1211 76K 76K 78643K 1567 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 8 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 24 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 476 0 0 sigio 0 0K 0K 78643K 4 0 0 proc 42 30K 54K 78643K 358 0 0 subproc 32 2K 2K 78643K 51 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 40 0 0 in_multi 33 2K 2K 78643K 52 0 0 ether_multi 1 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 215 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 83 20K 22K 78643K 1960 0 0 UVM aobj 39 2K 2K 78643K 46 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 14 0 0 NDP 10 0K 0K 78643K 29 0 0 temp 139 2707K 2771K 78643K 4483 0 0 kqueue 0 0K 0K 78643K 2 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 180 0 173 1 0 1 1 0 8 0 plimitpl 152 23 0 16 1 0 1 1 0 8 0 rtentry 112 61 0 15 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 48 0 44 1 0 1 1 0 8 0 nd6 48 9 0 3 1 0 1 1 0 8 0 ppxss 1128 10 0 10 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 241 0 44 13 0 13 13 0 8 0 art_table 32 242 0 44 2 0 2 2 0 8 0 art_node 16 57 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 2 1 0 1 1 0 8 0 semapl 112 22 0 12 1 0 1 1 0 8 0 shmpl 112 44 0 7 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2164 0 754 46 0 46 46 0 8 0 ffsino 240 2164 0 754 84 0 84 84 0 8 0 nchpl 144 3031 0 1411 61 0 61 61 0 8 0 uvmvnodes 72 2401 0 0 44 0 44 44 0 8 0 vnodes 200 2401 0 0 127 0 127 127 0 8 0 namei 1024 8432 0 8431 2 1 1 1 0 8 0 scxspl 192 7960 0 7960 12 11 1 6 0 8 1 sigapl 432 644 0 630 2 0 2 2 0 8 0 futexpl 56 6783 0 6783 2 1 1 1 0 8 1 knotepl 112 135 0 116 1 0 1 1 0 8 0 kqueuepl 104 96 0 94 1 0 1 1 0 8 0 pipepl 112 356 0 337 2 1 1 1 0 8 0 fdescpl 424 645 0 630 2 0 2 2 0 8 0 filepl 120 3537 0 3442 5 1 4 4 0 8 1 lockfpl 104 132 0 132 3 2 1 1 0 8 1 lockfspl 48 46 0 46 3 2 1 1 0 8 1 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 24 0 14 1 0 1 1 0 8 0 ucredpl 96 660 0 653 1 0 1 1 0 8 0 zombiepl 144 630 0 630 3 2 1 1 0 8 1 processpl 840 660 0 630 4 0 4 4 0 8 0 procpl 600 1226 0 1188 5 1 4 4 0 8 1 sosppl 128 7 0 7 2 1 1 1 0 8 1 sockpl 384 405 0 387 4 1 3 3 0 8 1 mcl64k 65536 11 0 11 3 2 1 1 0 8 1 mcl12k 12288 3 0 3 2 2 0 1 0 8 0 mcl8k 8192 7 0 7 1 1 0 1 0 8 0 mcl4k 4096 36 0 36 3 2 1 1 0 8 1 mcl2k2 2112 4 0 4 1 1 0 1 0 8 0 mcl2k 2048 53894 0 53850 13 7 6 11 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 90094 0 89998 14 5 9 10 0 8 0 bufpl 256 7702 0 2080 352 0 352 352 0 8 0 anonpl 16 72435 0 62931 68 15 53 58 0 62 12 amapchunkpl 152 3055 0 2967 17 12 5 14 0 158 1 amappl16 192 3041 0 2506 50 15 35 39 0 8 8 amappl15 184 69 0 67 1 0 1 1 0 8 0 amappl14 176 41 0 40 2 1 1 1 0 8 0 amappl13 168 213 0 211 1 0 1 1 0 8 0 amappl12 160 167 0 163 1 0 1 1 0 8 0 amappl11 152 54 0 40 1 0 1 1 0 8 0 amappl10 144 66 0 65 2 1 1 1 0 8 0 amappl9 136 557 0 554 1 0 1 1 0 8 0 amappl8 128 130 0 117 1 0 1 1 0 8 0 amappl7 120 39 0 33 1 0 1 1 0 8 0 amappl6 112 54 0 46 1 0 1 1 0 8 0 amappl5 104 302 0 292 1 0 1 1 0 8 0 amappl4 96 623 0 596 1 0 1 1 0 8 0 amappl3 88 326 0 316 1 0 1 1 0 8 0 amappl2 80 4594 0 4515 4 2 2 3 0 8 0 amappl1 72 20984 0 20577 26 17 9 19 0 8 0 amappl 80 1478 0 1443 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 45 0 7 1 0 1 1 0 8 0 uaddrrnd 24 645 0 630 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 645 0 630 1 0 1 1 0 8 0 vmmpekpl 168 7966 0 7947 2 0 2 2 0 8 0 vmmpepl 168 73620 0 72051 114 33 81 84 0 357 12 vmsppl 264 644 0 630 2 1 1 2 0 8 0 pdppl 4096 1297 0 1260 6 1 5 6 0 8 0 pvpl 32 248548 0 235906 225 21 204 219 0 265 100 pmappl 200 644 0 630 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 498 0 21 14 0 14 14 0 8 0