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 *401752 27361 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,ffff80000098a800,0,ffff8000009d6690,38,fffffd802ffa85b8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800015a2cd60,38,ffff800015a2ccd8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009d6600,ffff800015a2ce08,ffff800015a2cd60,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8036d35b00,fffffd80363edd88,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363edd88,9,fffffd8036d35b00,0,0,ffff80001493d788) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363edd88,0,ffff800015a2d000,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff80001493d788,3,ffff800015a2d0e0,0,ffff800015a2d1f0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff80001493d788,ffff800015a2d188,ffff800015a2d1f0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800015a2d260) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,c741e34c010) at Xsyscall+0x128 end of kernel end trace frame: 0xc7621159890, 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,ffff80000098a800,0,ffff8000009d6690,38,fffffd802ffa85b8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800015a2cd60,38,ffff800015a2ccd8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009d6600,ffff800015a2ce08,ffff800015a2cd60,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8036d35b00,fffffd80363edd88,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363edd88,9,fffffd8036d35b00,0,0,ffff80001493d788) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363edd88,0,ffff800015a2d000,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff80001493d788,3,ffff800015a2d0e0,0,ffff800015a2d1f0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff80001493d788,ffff800015a2d188,ffff800015a2d1f0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800015a2d260) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,c741e34c010) at Xsyscall+0x128 end of kernel end trace frame: 0xc7621159890, count: -13 ddb> show registers rdi 0xffffffff81db3e57 db_enter+0x17 rsi 0x4ea2 __ALIGN_SIZE+0x3ea2 rbp 0xffff800015a2ca20 rbx 0xffff800015a2cad0 rdx 0x4ea3 __ALIGN_SIZE+0x3ea3 rcx 0xffff8000149ef000 rax 0xffff8000149ef000 r8 0xffff800015a2c9e0 r9 0x1 r10 0xffff80000098f8c0 r11 0x967d156cf530b310 r12 0x3000000008 r13 0xffff800015a2ca30 r14 0x100 r15 0x1 rip 0xffffffff81db3e58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015a2ca10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=401752 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff80001493c720,0xffffffff822b7b98 process=0xffff8000ffff69e8 user=0xffff800015a28000, vmspace=0xfffffd803f014630 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 27361 214763 97339 0 2 0 syz-executor.1 *27361 401752 97339 0 7 0x4000000 syz-executor.1 77981 371111 3976 0 2 0 syz-executor.0 77981 146352 3976 0 2 0x4000000 syz-executor.0 55907 360595 1 0 3 0x100083 ttyin getty 5573 86005 0 0 3 0x14200 bored sosplice 3976 460039 74641 0 2 0x482 syz-executor.0 97339 465106 74641 0 2 0x482 syz-executor.1 74641 238251 75136 0 3 0x82 thrsleep syz-fuzzer 74641 81413 75136 0 3 0x4000082 thrsleep syz-fuzzer 74641 78913 75136 0 3 0x4000082 thrsleep syz-fuzzer 74641 474115 75136 0 3 0x4000082 kqread syz-fuzzer 74641 501231 75136 0 3 0x4000082 thrsleep syz-fuzzer 74641 429702 75136 0 3 0x4000082 thrsleep syz-fuzzer 74641 17488 75136 0 3 0x4000082 thrsleep syz-fuzzer 74641 351840 75136 0 3 0x4000082 thrsleep syz-fuzzer 75136 344882 30331 0 3 0x10008a pause ksh 30331 50737 433 0 3 0x92 select sshd 433 320165 1 0 3 0x80 select sshd 49120 267662 75289 73 3 0x100090 kqread syslogd 75289 94550 1 0 3 0x100082 netio syslogd 37362 193604 1 77 3 0x100090 poll dhclient 60898 459150 1 0 3 0x80 poll dhclient 76077 151423 0 0 2 0x14200 zerothread 39579 342456 0 0 3 0x14200 aiodoned aiodoned 71548 18574 0 0 3 0x14200 syncer update 55665 85769 0 0 3 0x14200 cleaner cleaner 32159 420516 0 0 3 0x14200 reaper reaper 28981 326586 0 0 3 0x14200 pgdaemon pagedaemon 31974 232850 0 0 3 0x14200 bored crynlk 84931 249414 0 0 3 0x14200 bored crypto 40195 89810 0 0 3 0x40014200 acpi0 acpi0 12304 329414 0 0 3 0x14200 bored softnet 83837 75386 0 0 2 0x14200 systqmp 52176 385061 0 0 3 0x14200 bored systq 93778 196254 0 0 3 0x40014200 bored softclock 30185 361612 0 0 3 0x40014200 idle0 73682 236870 0 0 3 0x14200 bored smr 1 348033 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 9472 6333K 6722K 78643K 11568 0 0 pcb 24 9K 10K 78643K 462 0 0 rtable 114 4K 4K 78643K 312 0 0 ifaddr 46 11K 12K 78643K 93 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 43 0 0 iov 1 12K 24K 78643K 108 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1211 76K 77K 78643K 1730 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 7 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 42 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 697 0 0 sigio 0 0K 0K 78643K 5 0 0 proc 41 30K 46K 78643K 383 0 0 subproc 32 2K 2K 78643K 34 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 85 0 0 in_multi 33 2K 2K 78643K 69 0 0 ether_multi 1 0K 0K 78643K 5 0 0 mrt 0 0K 0K 78643K 2 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 230 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 29K 78643K 2477 0 0 UVM aobj 25 3K 3K 78643K 30 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 28 0 0 NDP 8 0K 0K 78643K 24 0 0 temp 136 2712K 2778K 78643K 4997 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 6 0 0 1 0 1 1 0 8 0 inpcbpl 280 298 0 291 2 1 1 2 0 8 0 plimitpl 152 32 0 25 1 0 1 1 0 8 0 rtentry 112 52 0 6 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 92 0 88 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 7 0 7 2 1 1 1 0 8 1 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 6 0 4 1 0 1 1 0 8 0 semapl 112 38 0 28 1 0 1 1 0 8 0 shmpl 112 28 0 5 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2626 0 1199 47 0 47 47 0 8 0 ffsino 240 2626 0 1199 85 0 85 85 0 8 0 nchpl 144 3816 0 2179 61 0 61 61 0 8 0 uvmvnodes 72 2921 0 0 54 0 54 54 0 8 0 vnodes 200 2921 0 0 154 0 154 154 0 8 0 namei 1024 11002 0 11002 2 1 1 1 0 8 1 scsiplug 64 2 0 2 2 1 1 1 0 8 1 scxspl 192 11967 0 11967 9 6 3 6 0 8 3 sigapl 432 870 0 856 2 0 2 2 0 8 0 futexpl 56 10435 0 10435 1 0 1 1 0 8 1 knotepl 112 143 0 124 1 0 1 1 0 8 0 kqueuepl 104 128 0 126 1 0 1 1 0 8 0 pipepl 112 556 0 537 4 2 2 2 0 8 1 fdescpl 424 871 0 856 2 0 2 2 0 8 0 filepl 120 5132 0 5035 4 0 4 4 0 8 1 lockfpl 104 235 0 235 2 1 1 1 0 8 1 lockfspl 48 85 0 85 2 1 1 1 0 8 1 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 25 0 15 1 0 1 1 0 8 0 ucredpl 96 1075 0 1068 1 0 1 1 0 8 0 zombiepl 144 856 0 856 2 1 1 1 0 8 1 processpl 840 886 0 856 4 0 4 4 0 8 0 procpl 600 1755 0 1716 4 0 4 4 0 8 0 sosppl 128 6 0 6 2 1 1 1 0 8 1 sockpl 384 697 0 679 3 0 3 3 0 8 1 mcl64k 65536 292 0 292 33 11 22 32 0 8 22 mcl16k 16384 3 0 3 2 2 0 1 0 8 0 mcl12k 12288 16 0 16 4 3 1 1 0 8 1 mcl9k 9216 17 0 17 2 1 1 1 0 8 1 mcl8k 8192 3 0 3 3 2 1 1 0 8 1 mcl4k 4096 38 0 38 3 2 1 1 0 8 1 mcl2k2 2112 3 0 3 1 0 1 1 0 8 1 mcl2k 2048 52352 0 52310 14 7 7 11 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 89039 0 88973 26 11 15 21 0 8 8 bufpl 256 8483 0 2859 352 0 352 352 0 8 0 anonpl 16 95697 0 86639 75 22 53 53 0 62 15 amapchunkpl 152 4083 0 3999 17 13 4 14 0 158 0 amappl16 192 4279 0 3788 52 18 34 37 0 8 8 amappl15 184 334 0 333 1 0 1 1 0 8 0 amappl14 176 34 0 33 2 1 1 1 0 8 0 amappl13 168 336 0 333 1 0 1 1 0 8 0 amappl12 160 10 0 8 1 0 1 1 0 8 0 amappl11 152 52 0 38 1 0 1 1 0 8 0 amappl10 144 69 0 65 1 0 1 1 0 8 0 amappl9 136 529 0 526 1 0 1 1 0 8 0 amappl8 128 124 0 112 1 0 1 1 0 8 0 amappl7 120 33 0 29 1 0 1 1 0 8 0 amappl6 112 51 0 45 1 0 1 1 0 8 0 amappl5 104 173 0 163 1 0 1 1 0 8 0 amappl4 96 1008 0 983 1 0 1 1 0 8 0 amappl3 88 208 0 198 1 0 1 1 0 8 0 amappl2 80 6722 0 6644 4 2 2 3 0 8 0 amappl1 72 24325 0 23893 26 17 9 19 0 8 0 amappl 80 1997 0 1963 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 29 0 5 1 0 1 1 0 8 0 uaddrrnd 24 871 0 856 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 871 0 856 1 0 1 1 0 8 0 vmmpekpl 168 9262 0 9237 2 0 2 2 0 8 0 vmmpepl 168 97227 0 95682 96 20 76 76 0 357 8 vmsppl 264 870 0 856 2 1 1 2 0 8 0 pdppl 4096 1748 0 1712 6 1 5 6 0 8 0 pvpl 32 324703 0 312504 234 36 198 219 0 265 97 pmappl 200 870 0 856 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 546 0 39 15 0 15 15 0 8 0