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 *319605 32035 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,ffff80000099d180,0,ffff8000009b3490,38,fffffd803055c4e0) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff8000159f0690,38,ffff8000159f0608,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009b3400,ffff8000159f0738,ffff8000159f0690,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8034d8cd00,fffffd8037023a80,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd8037023a80,9,fffffd8034d8cd00,0,0,ffff8000ffff9070) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd8037023a80,0,ffff8000159f0930,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000ffff9070,4,ffff8000159f0a10,0,ffff8000159f0b20) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000ffff9070,ffff8000159f0ab8,ffff8000159f0b20) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000159f0b90) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,280b113b010) at Xsyscall+0x128 end of kernel end trace frame: 0x283a3cfb950, 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,ffff80000099d180,0,ffff8000009b3490,38,fffffd803055c4e0) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff8000159f0690,38,ffff8000159f0608,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009b3400,ffff8000159f0738,ffff8000159f0690,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8034d8cd00,fffffd8037023a80,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd8037023a80,9,fffffd8034d8cd00,0,0,ffff8000ffff9070) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd8037023a80,0,ffff8000159f0930,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000ffff9070,4,ffff8000159f0a10,0,ffff8000159f0b20) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000ffff9070,ffff8000159f0ab8,ffff8000159f0b20) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000159f0b90) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,280b113b010) at Xsyscall+0x128 end of kernel end trace frame: 0x283a3cfb950, count: -13 ddb> show registers rdi 0xffffffff81db3e57 db_enter+0x17 rsi 0x4dcf __ALIGN_SIZE+0x3dcf rbp 0xffff8000159f0350 rbx 0xffff8000159f0400 rdx 0x4dd0 __ALIGN_SIZE+0x3dd0 rcx 0xffff8000149d5000 rax 0xffff8000149d5000 r8 0xffff8000159f0310 r9 0x1 r10 0xffff8000009fc640 r11 0x32c5dce0cb03dc1f r12 0x3000000008 r13 0xffff8000159f0360 r14 0x100 r15 0x1 rip 0xffffffff81db3e58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000159f0340 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=319605 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff5c30,0xffffffff822b7b98 process=0xffff8000ffff6358 user=0xffff8000159eb000, vmspace=0xfffffd803f014b58 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 32035 439484 79617 0 2 0 syz-executor.1 *32035 319605 79617 0 7 0x4000000 syz-executor.1 5652 93584 42489 0 2 0x2 syz-executor.0 79617 347151 42489 0 2 0x482 syz-executor.1 40697 273831 0 0 3 0x14200 bored sosplice 42489 228161 33504 0 3 0x82 thrsleep syz-fuzzer 42489 138334 33504 0 2 0x4000482 syz-fuzzer 42489 260320 33504 0 3 0x4000082 thrsleep syz-fuzzer 42489 143540 33504 0 3 0x4000082 thrsleep syz-fuzzer 42489 269646 33504 0 3 0x4000082 kqread syz-fuzzer 42489 364209 33504 0 3 0x4000082 thrsleep syz-fuzzer 42489 512471 33504 0 3 0x4000082 thrsleep syz-fuzzer 42489 186269 33504 0 3 0x4000082 thrsleep syz-fuzzer 33504 90220 9359 0 3 0x10008a pause ksh 9359 183709 18494 0 3 0x92 select sshd 53032 31252 1 0 3 0x100083 ttyin getty 18494 453718 1 0 3 0x80 select sshd 1420 43488 18224 73 3 0x100090 kqread syslogd 18224 78183 1 0 3 0x100082 netio syslogd 41251 45200 1 77 3 0x100090 poll dhclient 40965 262677 1 0 3 0x80 poll dhclient 80882 486872 0 0 2 0x14200 zerothread 94640 422396 0 0 3 0x14200 aiodoned aiodoned 42870 385670 0 0 3 0x14200 syncer update 80103 514737 0 0 3 0x14200 cleaner cleaner 90606 57836 0 0 3 0x14200 reaper reaper 26548 335136 0 0 3 0x14200 pgdaemon pagedaemon 26629 67751 0 0 3 0x14200 bored crynlk 32811 21411 0 0 3 0x14200 bored crypto 86330 181383 0 0 3 0x40014200 acpi0 acpi0 86816 84704 0 0 3 0x14200 bored softnet 73246 107257 0 0 2 0x14200 systqmp 7129 518185 0 0 3 0x14200 bored systq 7059 444156 0 0 2 0x40014200 softclock 57977 255294 0 0 3 0x40014200 idle0 29595 335563 0 0 3 0x14200 bored smr 1 476523 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 9488 6343K 6845K 78643K 11941 0 0 pcb 24 9K 10K 78643K 493 0 0 rtable 118 5K 5K 78643K 661 0 0 ifaddr 52 12K 13K 78643K 183 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 71 0 0 iov 0 0K 16K 78643K 87 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1209 76K 77K 78643K 1955 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 15 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 60 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 1039 0 0 sigio 0 0K 0K 78643K 14 0 0 proc 42 30K 54K 78643K 618 0 0 subproc 32 2K 2K 78643K 136 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 59 0 0 in_multi 33 2K 2K 78643K 130 0 0 ether_multi 1 0K 0K 78643K 12 0 0 mrt 0 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 316 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 38K 78643K 3314 0 0 UVM aobj 42 6K 6K 78643K 48 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 39 0 0 NDP 10 0K 0K 78643K 55 0 0 temp 155 2711K 2777K 78643K 6490 0 0 kqueue 0 0K 0K 78643K 9 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 18 0 12 1 0 1 1 0 8 0 inpcbpl 280 356 0 349 1 0 1 1 0 8 0 plimitpl 152 35 0 28 1 0 1 1 0 8 0 rtentry 112 117 0 71 3 1 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 3 0 3 2 2 0 1 0 8 0 tcpcb 544 137 0 133 1 0 1 1 0 8 0 nd6 48 24 0 18 2 1 1 1 0 8 0 ppxss 1128 22 0 22 4 3 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 477 0 279 17 4 13 13 0 8 0 art_table 32 478 0 279 3 1 2 2 0 8 0 art_node 16 112 0 70 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 2 1 1 1 0 8 0 semapl 112 58 0 48 1 0 1 1 0 8 0 shmpl 112 46 0 6 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2955 0 1537 46 0 46 46 0 8 0 ffsino 240 2955 0 1537 84 0 84 84 0 8 0 nchpl 144 4476 0 2856 61 0 61 61 0 8 0 uvmvnodes 72 3408 0 0 62 0 62 62 0 8 0 vnodes 200 3408 0 0 180 0 180 180 0 8 0 namei 1024 13317 0 13316 4 3 1 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 15213 0 15213 10 9 1 6 0 8 1 sigapl 432 1192 0 1179 2 0 2 2 0 8 0 futexpl 56 13631 0 13631 5 4 1 1 0 8 1 knotepl 112 299 0 280 1 0 1 1 0 8 0 kqueuepl 104 189 0 187 1 0 1 1 0 8 0 pipepl 112 678 0 659 3 2 1 2 0 8 0 fdescpl 424 1193 0 1179 2 0 2 2 0 8 0 filepl 120 6472 0 6376 8 4 4 4 0 8 1 lockfpl 104 281 0 281 5 4 1 1 0 8 1 lockfspl 48 104 0 104 5 4 1 1 0 8 1 sessionpl 112 23 0 13 1 0 1 1 0 8 0 pgrppl 48 27 0 17 1 0 1 1 0 8 0 ucredpl 96 1458 0 1451 1 0 1 1 0 8 0 zombiepl 144 1179 0 1179 2 1 1 1 0 8 1 processpl 840 1208 0 1179 4 0 4 4 0 8 0 procpl 600 2363 0 2326 7 3 4 4 0 8 1 sosppl 128 3 0 3 2 1 1 1 0 8 1 sockpl 384 788 0 770 6 3 3 3 0 8 1 mcl64k 65536 20 0 20 4 3 1 1 0 8 1 mcl16k 16384 5 0 5 3 3 0 1 0 8 0 mcl12k 12288 15 0 15 5 4 1 1 0 8 1 mcl9k 9216 13 0 13 4 3 1 1 0 8 1 mcl8k 8192 13 0 13 5 4 1 1 0 8 1 mcl4k 4096 38 0 38 7 6 1 1 0 8 1 mcl2k2 2112 6 0 6 3 2 1 1 0 8 1 mcl2k 2048 52551 0 52515 15 10 5 9 0 8 0 mtagpl 80 4 0 4 2 2 0 1 0 8 0 mbufpl 256 91125 0 91053 15 7 8 10 0 8 0 bufpl 256 8261 0 2627 353 0 353 353 0 8 0 anonpl 16 110846 0 102046 60 18 42 52 0 62 5 amapchunkpl 152 5770 0 5676 20 11 9 15 0 158 4 amappl16 192 5173 0 4717 44 20 24 35 0 8 1 amappl15 184 132 0 132 1 1 0 1 0 8 0 amappl14 176 204 0 202 2 1 1 1 0 8 0 amappl13 168 17 0 17 2 2 0 1 0 8 0 amappl12 160 388 0 384 1 0 1 1 0 8 0 amappl11 152 108 0 94 1 0 1 1 0 8 0 amappl10 144 91 0 88 2 1 1 1 0 8 0 amappl9 136 769 0 766 1 0 1 1 0 8 0 amappl8 128 325 0 307 1 0 1 1 0 8 0 amappl7 120 62 0 53 1 0 1 1 0 8 0 amappl6 112 99 0 90 1 0 1 1 0 8 0 amappl5 104 557 0 545 1 0 1 1 0 8 0 amappl4 96 1224 0 1204 1 0 1 1 0 8 0 amappl3 88 295 0 283 1 0 1 1 0 8 0 amappl2 80 8478 0 8412 4 2 2 3 0 8 0 amappl1 72 31182 0 30769 25 16 9 19 0 8 0 amappl 80 2683 0 2648 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 47 0 6 1 0 1 1 0 8 0 uaddrrnd 24 1193 0 1179 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1193 0 1179 1 0 1 1 0 8 0 vmmpekpl 168 11167 0 11145 2 0 2 2 0 8 0 vmmpepl 168 127037 0 125602 130 56 74 90 0 357 9 vmsppl 264 1192 0 1179 5 4 1 2 0 8 0 pdppl 4096 2392 0 2358 7 2 5 6 0 8 0 pvpl 32 375865 0 363961 250 74 176 236 0 265 78 pmappl 200 1192 0 1179 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 521 0 44 14 0 14 14 0 8 0