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 * 29515 18071 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,ffff80000099cec0,0,ffff8000009ed090,38,fffffd802fef2238) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800015a2d360,38,ffff800015a2d2d8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009ed000,ffff800015a2d408,ffff800015a2d360,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803322d800,fffffd80363efc08,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363efc08,9,fffffd803322d800,0,0,ffff800015a21080) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363efc08,0,ffff800015a2d600,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800015a21080,3,ffff800015a2d6e0,0,ffff800015a2d7f0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800015a21080,ffff800015a2d788,ffff800015a2d7f0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800015a2d860) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,3437557b010) at Xsyscall+0x128 end of kernel end trace frame: 0x345f589efc0, 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,ffff80000099cec0,0,ffff8000009ed090,38,fffffd802fef2238) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800015a2d360,38,ffff800015a2d2d8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009ed000,ffff800015a2d408,ffff800015a2d360,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803322d800,fffffd80363efc08,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363efc08,9,fffffd803322d800,0,0,ffff800015a21080) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363efc08,0,ffff800015a2d600,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800015a21080,3,ffff800015a2d6e0,0,ffff800015a2d7f0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800015a21080,ffff800015a2d788,ffff800015a2d7f0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800015a2d860) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,3437557b010) at Xsyscall+0x128 end of kernel end trace frame: 0x345f589efc0, count: -13 ddb> show registers rdi 0xffffffff81db3e57 db_enter+0x17 rsi 0x4ea9 __ALIGN_SIZE+0x3ea9 rbp 0xffff800015a2d020 rbx 0xffff800015a2d0d0 rdx 0x4eaa __ALIGN_SIZE+0x3eaa rcx 0xffff8000149dd000 rax 0xffff8000149dd000 r8 0xffff800015a2cfe0 r9 0x1 r10 0xffff80000098f8c0 r11 0x1142cf82346b473f r12 0x3000000008 r13 0xffff800015a2d030 r14 0x100 r15 0x1 rip 0xffffffff81db3e58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015a2d010 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=29515 stat=onproc flags process=0 proc=4000000 pri=78, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800015a204c8,0xffffffff822b7b98 process=0xffff8000ffff66a0 user=0xffff800015a28000, vmspace=0xfffffd803f014d68 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 18071 346110 45844 0 2 0 syz-executor.1 *18071 29515 45844 0 7 0x4000000 syz-executor.1 87001 110994 93806 0 3 0x80 nanosleep syz-executor.0 87001 77598 93806 0 3 0x4000080 poll syz-executor.0 87001 286264 93806 0 3 0x4000080 fsleep syz-executor.0 22654 441826 0 0 3 0x14200 bored sosplice 79707 467454 1 0 3 0x100083 ttyin getty 93806 390740 7280 0 3 0x82 nanosleep syz-executor.0 45844 427151 7280 0 2 0x482 syz-executor.1 7280 2398 11316 0 3 0x82 thrsleep syz-fuzzer 7280 395654 11316 0 3 0x4000082 thrsleep syz-fuzzer 7280 382030 11316 0 3 0x4000082 thrsleep syz-fuzzer 7280 484985 11316 0 3 0x4000082 kqread syz-fuzzer 7280 524039 11316 0 3 0x4000082 thrsleep syz-fuzzer 7280 316654 11316 0 3 0x4000082 thrsleep syz-fuzzer 7280 106282 11316 0 3 0x4000082 thrsleep syz-fuzzer 7280 146050 11316 0 3 0x4000082 thrsleep syz-fuzzer 11316 255218 18381 0 3 0x10008a pause ksh 18381 202715 23528 0 3 0x92 select sshd 23528 112994 1 0 3 0x80 select sshd 47919 13900 8185 73 3 0x100090 kqread syslogd 8185 402361 1 0 3 0x100082 netio syslogd 32536 87933 1 77 3 0x100090 poll dhclient 13989 290814 1 0 3 0x80 poll dhclient 5239 10036 0 0 2 0x14200 zerothread 62028 206348 0 0 3 0x14200 aiodoned aiodoned 18777 468409 0 0 3 0x14200 syncer update 73540 219771 0 0 3 0x14200 cleaner cleaner 26525 362467 0 0 3 0x14200 reaper reaper 20680 188736 0 0 3 0x14200 pgdaemon pagedaemon 94903 275183 0 0 3 0x14200 bored crynlk 2780 186707 0 0 3 0x14200 bored crypto 10186 108671 0 0 3 0x40014200 acpi0 acpi0 28516 471182 0 0 3 0x14200 bored softnet 9242 189907 0 0 2 0x14200 systqmp 74494 351618 0 0 3 0x14200 bored systq 6533 327273 0 0 3 0x40014200 bored softclock 13483 286900 0 0 3 0x40014200 idle0 27351 458437 0 0 3 0x14200 bored smr 1 263141 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 9496 6374K 6824K 78643K 13882 0 0 pcb 24 9K 11K 78643K 927 0 0 rtable 120 5K 5K 78643K 528 0 0 ifaddr 50 12K 13K 78643K 197 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 87 0 0 iov 0 0K 24K 78643K 236 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1203 76K 76K 78643K 2749 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 20 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 114 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 1966 0 0 sigio 0 0K 0K 78643K 38 0 0 proc 42 30K 46K 78643K 469 0 0 subproc 32 2K 2K 78643K 39 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 154 0 0 in_multi 33 2K 2K 78643K 84 0 0 ether_multi 1 0K 0K 78643K 6 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 108 477K 477K 78643K 108 0 0 exec 0 0K 1K 78643K 341 0 0 pfkey data 0 0K 0K 78643K 2 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 30K 78643K 5463 0 0 UVM aobj 74 3K 3K 78643K 87 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 56 0 0 NDP 9 0K 0K 78643K 52 0 0 temp 154 2715K 3350K 78643K 8751 0 0 kqueue 0 0K 0K 78643K 15 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 717 0 710 1 0 1 1 0 8 0 plimitpl 152 58 0 51 1 0 1 1 0 8 0 rtentry 112 58 0 12 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 261 0 257 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 30 0 30 9 9 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 195 0 0 13 0 13 13 0 8 0 art_table 32 196 0 0 2 0 2 2 0 8 0 art_node 16 46 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 12 2 2 0 1 0 8 0 semapl 112 112 0 102 1 0 1 1 0 8 0 shmpl 112 85 0 13 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4743 0 3307 47 0 47 47 0 8 0 ffsino 240 4743 0 3307 85 0 85 85 0 8 0 nchpl 144 7669 0 6033 61 0 61 61 0 8 0 uvmvnodes 72 5596 0 0 102 0 102 102 0 8 0 vnodes 200 5596 0 0 295 0 295 295 0 8 0 namei 1024 23440 0 23440 2 1 1 1 0 8 1 scsiplug 64 4 0 4 3 2 1 1 0 8 1 scxspl 192 25692 0 25692 11 10 1 5 0 8 1 sigapl 432 2138 0 2124 2 0 2 2 0 8 0 futexpl 56 29748 0 29747 1 0 1 1 0 8 0 knotepl 112 457 0 438 1 0 1 1 0 8 0 kqueuepl 104 555 0 553 1 0 1 1 0 8 0 pipepl 112 1392 0 1373 6 5 1 2 0 8 0 fdescpl 424 2139 0 2124 2 0 2 2 0 8 0 filepl 120 12770 0 12671 6 2 4 5 0 8 0 lockfpl 104 652 0 652 3 2 1 1 0 8 1 lockfspl 48 212 0 212 3 2 1 1 0 8 1 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 44 0 34 1 0 1 1 0 8 0 ucredpl 96 3106 0 3099 1 0 1 1 0 8 0 zombiepl 144 2124 0 2124 2 1 1 1 0 8 1 processpl 840 2154 0 2124 4 0 4 4 0 8 0 procpl 600 4709 0 4669 4 0 4 4 0 8 0 sosppl 128 30 0 30 8 7 1 1 0 8 1 sockpl 384 1545 0 1527 5 2 3 4 0 8 1 mcl64k 65536 38 0 38 8 7 1 1 0 8 1 mcl16k 16384 6 0 6 3 3 0 1 0 8 0 mcl12k 12288 36 0 36 7 6 1 1 0 8 1 mcl9k 9216 37 0 37 6 6 0 1 0 8 0 mcl8k 8192 26 0 26 10 9 1 1 0 8 1 mcl4k 4096 77 0 77 6 5 1 1 0 8 1 mcl2k2 2112 5 0 5 4 3 1 1 0 8 1 mcl2k 2048 54933 0 54897 14 9 5 9 0 8 0 mtagpl 80 10 0 10 3 3 0 1 0 8 0 mbufpl 256 98295 0 98245 15 10 5 10 0 8 0 bufpl 256 10412 0 5871 284 0 284 284 0 8 0 anonpl 16 206889 0 197542 94 39 55 55 0 62 16 amapchunkpl 152 9097 0 9007 28 11 17 18 0 158 13 amappl16 192 12328 0 11819 103 69 34 38 0 8 8 amappl14 176 34 0 33 2 1 1 1 0 8 0 amappl13 168 957 0 955 2 1 1 1 0 8 0 amappl12 160 977 0 972 1 0 1 1 0 8 0 amappl11 152 51 0 37 1 0 1 1 0 8 0 amappl10 144 67 0 66 2 1 1 1 0 8 0 amappl9 136 548 0 544 1 0 1 1 0 8 0 amappl8 128 128 0 114 1 0 1 1 0 8 0 amappl7 120 30 0 27 1 0 1 1 0 8 0 amappl6 112 55 0 47 1 0 1 1 0 8 0 amappl5 104 1115 0 1102 1 0 1 1 0 8 0 amappl4 96 1317 0 1294 1 0 1 1 0 8 0 amappl3 88 1190 0 1179 1 0 1 1 0 8 0 amappl2 80 16110 0 16036 4 2 2 3 0 8 0 amappl1 72 47727 0 47305 26 17 9 19 0 8 0 amappl 80 4962 0 4926 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 86 0 13 2 0 2 2 0 8 0 uaddrrnd 24 2139 0 2124 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2139 0 2124 1 0 1 1 0 8 0 vmmpekpl 168 16650 0 16625 2 0 2 2 0 8 0 vmmpepl 168 225537 0 223980 132 52 80 80 0 357 9 vmsppl 264 2138 0 2124 2 1 1 2 0 8 0 pdppl 4096 4284 0 4248 6 1 5 6 0 8 0 pvpl 32 583311 0 570844 211 73 138 141 0 265 37 pmappl 200 2138 0 2124 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 453 0 47 12 0 12 12 0 8 0