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 *333270 60360 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,ffff8000009e3c40,0,ffff8000009f5690,38,fffffd80377ea698) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800016beff60,38,ffff800016befed8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009f5600,ffff800016bf0008,ffff800016beff60,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803eba8d00,fffffd80363e9d88,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363e9d88,9,fffffd803eba8d00,0,0,ffff8000159f1530) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363e9d88,0,ffff800016bf0200,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000159f1530,3,ffff800016bf02e0,0,ffff800016bf03f0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000159f1530,ffff800016bf0388,ffff800016bf03f0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800016bf0460) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,376c7a29010) at Xsyscall+0x128 end of kernel end trace frame: 0x3794c2add90, 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,ffff8000009e3c40,0,ffff8000009f5690,38,fffffd80377ea698) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800016beff60,38,ffff800016befed8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009f5600,ffff800016bf0008,ffff800016beff60,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803eba8d00,fffffd80363e9d88,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363e9d88,9,fffffd803eba8d00,0,0,ffff8000159f1530) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363e9d88,0,ffff800016bf0200,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000159f1530,3,ffff800016bf02e0,0,ffff800016bf03f0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000159f1530,ffff800016bf0388,ffff800016bf03f0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800016bf0460) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,376c7a29010) at Xsyscall+0x128 end of kernel end trace frame: 0x3794c2add90, count: -13 ddb> show registers rdi 0xffffffff81db3e57 db_enter+0x17 rsi 0x4fd8 __ALIGN_SIZE+0x3fd8 rbp 0xffff800016befc20 rbx 0xffff800016befcd0 rdx 0x4fd9 __ALIGN_SIZE+0x3fd9 rcx 0xffff800016bfb000 rax 0xffff800016bfb000 r8 0xffff800016befbe0 r9 0x1 r10 0xffff800000994ec0 r11 0x21e526fc43f2bead r12 0x3000000008 r13 0xffff800016befc30 r14 0x100 r15 0x1 rip 0xffffffff81db3e58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800016befc10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=333270 stat=onproc flags process=0 proc=4000000 pri=74, usrpri=74, nice=20 forw=0xffffffffffffffff, list=0xffff8000159f19e0,0xffffffff822b7b98 process=0xffff8000ffff7a50 user=0xffff800016beb000, 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 60360 201253 65691 0 2 0 syz-executor.0 *60360 333270 65691 0 7 0x4000000 syz-executor.0 58173 148931 41051 0 2 0x2 syz-executor.1 62514 287567 1 0 3 0x100083 ttyin getty 65691 299806 41051 0 2 0x482 syz-executor.0 8526 469084 0 0 3 0x14200 bored sosplice 41051 7564 58947 0 3 0x82 kqread syz-fuzzer 41051 260430 58947 0 3 0x4000082 nanosleep syz-fuzzer 41051 304755 58947 0 3 0x4000082 thrsleep syz-fuzzer 41051 84662 58947 0 3 0x4000082 thrsleep syz-fuzzer 41051 189071 58947 0 3 0x4000082 thrsleep syz-fuzzer 41051 43291 58947 0 3 0x4000082 thrsleep syz-fuzzer 41051 55633 58947 0 3 0x4000082 thrsleep syz-fuzzer 41051 345864 58947 0 3 0x4000082 thrsleep syz-fuzzer 58947 454537 52656 0 3 0x10008a pause ksh 52656 198746 55539 0 3 0x92 select sshd 55539 214020 1 0 3 0x80 select sshd 18684 167976 18864 73 3 0x100090 kqread syslogd 18864 20084 1 0 3 0x100082 netio syslogd 48604 469139 1 77 3 0x100090 poll dhclient 34784 350058 1 0 3 0x80 poll dhclient 85346 328819 0 0 2 0x14200 zerothread 32566 263273 0 0 3 0x14200 aiodoned aiodoned 97483 472210 0 0 3 0x14200 syncer update 7912 200124 0 0 3 0x14200 cleaner cleaner 59548 436714 0 0 3 0x14200 reaper reaper 60409 333325 0 0 3 0x14200 pgdaemon pagedaemon 36144 294240 0 0 3 0x14200 bored crynlk 65614 440549 0 0 3 0x14200 bored crypto 9705 163111 0 0 3 0x40014200 acpi0 acpi0 69960 117759 0 0 3 0x14200 bored softnet 85299 428769 0 0 2 0x14200 systqmp 49733 284440 0 0 3 0x14200 bored systq 85689 369545 0 0 3 0x40014200 bored softclock 71460 167479 0 0 3 0x40014200 idle0 9232 27073 0 0 3 0x14200 bored smr 1 504398 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 9539 6369K 7373K 78643K 22605 0 0 pcb 24 9K 11K 78643K 3470 0 0 rtable 126 5K 5K 78643K 1912 0 0 ifaddr 64 17K 19K 78643K 725 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 254 0 0 iov 0 0K 24K 78643K 920 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1201 75K 76K 78643K 6955 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 94 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 465 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 7324 0 0 sigio 0 0K 0K 78643K 120 0 0 proc 42 30K 54K 78643K 1483 0 0 subproc 32 2K 2K 78643K 208 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 660 0 0 in_multi 33 2K 2K 78643K 374 0 0 ether_multi 1 0K 0K 78643K 46 0 0 mrt 0 0K 0K 78643K 30 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 102 450K 450K 78643K 102 0 0 exec 0 0K 1K 78643K 776 0 0 pfkey data 0 0K 4K 78643K 6 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 96 21K 30K 78643K 18422 0 0 UVM aobj 130 4K 4K 78643K 146 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 244 0 0 NDP 14 0K 0K 78643K 204 0 0 temp 188 2715K 3355K 78643K 25142 0 0 kqueue 0 0K 0K 78643K 42 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 26 0 20 1 0 1 1 0 8 0 inpcbpl 280 2932 0 2925 1 0 1 1 0 8 0 plimitpl 152 200 0 193 1 0 1 1 0 8 0 rtentry 112 194 0 148 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 tcpcb 544 1086 0 1082 1 0 1 1 0 8 0 nd6 48 36 0 30 1 0 1 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 135 0 135 30 30 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 664 0 464 13 0 13 13 0 8 0 art_table 32 665 0 464 2 0 2 2 0 8 0 art_node 16 156 0 114 1 0 1 1 0 8 0 sysvmsgpl 40 31 0 10 1 0 1 1 0 8 0 semapl 112 463 0 453 1 0 1 1 0 8 0 shmpl 112 144 0 16 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 13638 0 12119 51 1 50 50 0 8 0 ffsino 240 13638 0 12119 92 2 90 90 0 8 0 nchpl 144 23928 0 22309 61 0 61 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 200 5926 0 0 312 0 312 312 0 8 0 namei 1024 75090 0 75090 3 2 1 1 0 8 1 scsiplug 64 11 0 11 9 9 0 1 0 8 0 scxspl 192 75781 0 75781 49 48 1 6 0 8 1 sigapl 432 7468 0 7455 2 0 2 2 0 8 0 futexpl 56 109287 0 109287 2 1 1 1 0 8 1 knotepl 112 1538 0 1519 1 0 1 1 0 8 0 kqueuepl 104 1735 0 1733 1 0 1 1 0 8 0 pipepl 112 4224 0 4205 11 10 1 2 0 8 0 fdescpl 424 7469 0 7455 2 0 2 2 0 8 0 filepl 120 43827 0 43731 8 4 4 5 0 8 0 lockfpl 104 2555 0 2555 6 5 1 1 0 8 1 lockfspl 48 849 0 849 6 5 1 1 0 8 1 sessionpl 112 30 0 20 1 0 1 1 0 8 0 pgrppl 48 101 0 91 1 0 1 1 0 8 0 ucredpl 96 10402 0 10395 1 0 1 1 0 8 0 zombiepl 144 7455 0 7455 2 1 1 1 0 8 1 processpl 840 7484 0 7455 4 0 4 4 0 8 0 procpl 600 17000 0 16963 4 0 4 4 0 8 0 sosppl 128 86 0 86 23 23 0 1 0 8 0 sockpl 384 5968 0 5950 13 10 3 4 0 8 1 mcl64k 65536 1919 0 1919 118 117 1 33 0 8 1 mcl16k 16384 21 0 21 18 18 0 1 0 8 0 mcl12k 12288 126 0 126 26 26 0 1 0 8 0 mcl9k 9216 107 0 107 30 30 0 1 0 8 0 mcl8k 8192 84 0 84 30 30 0 1 0 8 0 mcl4k 4096 291 0 291 17 17 0 1 0 8 0 mcl2k2 2112 38 0 38 15 15 0 1 0 8 0 mcl2k 2048 63019 0 62976 21 14 7 11 0 8 0 mtagpl 80 16 0 16 7 7 0 1 0 8 0 mbufpl 256 139519 0 139437 65 57 8 22 0 8 0 bufpl 256 25690 0 20062 352 0 352 352 0 8 0 anonpl 16 624370 0 615217 215 160 55 55 0 62 16 amapchunkpl 152 32493 0 32390 70 56 14 14 0 158 8 amappl16 192 37737 0 37264 205 179 26 36 0 8 1 amappl15 184 371 0 370 1 0 1 1 0 8 0 amappl14 176 448 0 447 2 1 1 1 0 8 0 amappl13 168 17 0 16 3 2 1 1 0 8 0 amappl12 160 20 0 19 1 0 1 1 0 8 0 amappl11 152 79 0 65 1 0 1 1 0 8 0 amappl10 144 6298 0 6293 2 1 1 1 0 8 0 amappl9 136 1185 0 1181 1 0 1 1 0 8 0 amappl8 128 799 0 780 1 0 1 1 0 8 0 amappl7 120 6261 0 6252 1 0 1 1 0 8 0 amappl6 112 74 0 67 1 0 1 1 0 8 0 amappl5 104 398 0 388 1 0 1 1 0 8 0 amappl4 96 7240 0 7218 1 0 1 1 0 8 0 amappl3 88 1140 0 1129 1 0 1 1 0 8 0 amappl2 80 58321 0 58256 4 2 2 3 0 8 0 amappl1 72 139315 0 138906 25 15 10 19 0 8 0 amappl 80 17448 0 17410 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 145 0 16 3 0 3 3 0 8 0 uaddrrnd 24 7469 0 7455 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7469 0 7455 1 0 1 1 0 8 0 vmmpekpl 168 42542 0 42514 2 0 2 2 0 8 0 vmmpepl 168 746553 0 745106 204 135 69 79 0 357 2 vmsppl 264 7468 0 7455 2 1 1 2 0 8 0 pdppl 4096 14944 0 14910 6 1 5 6 0 8 0 pvpl 32 1764219 0 1751992 539 300 239 239 0 265 135 pmappl 200 7468 0 7455 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 742 0 260 14 0 14 14 0 8 0