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 *288156 5182 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,ffff800000a22280,0,ffff800000a2ce90,38,fffffd8036db8bd0) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800017a1c7d0,38,ffff800017a1c748,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff800000a2ce00,ffff800017a1c878,ffff800017a1c7d0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803a281e00,fffffd80363f4d88,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363f4d88,9,fffffd803a281e00,0,0,ffff800017c077b8) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363f4d88,0,ffff800017a1ca70,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800017c077b8,4,ffff800017a1cb50,0,ffff800017a1cc60) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800017c077b8,ffff800017a1cbf8,ffff800017a1cc60) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800017a1ccd0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,2bdc7e64010) at Xsyscall+0x128 end of kernel end trace frame: 0x2c00cd3eab0, 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,ffff800000a22280,0,ffff800000a2ce90,38,fffffd8036db8bd0) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800017a1c7d0,38,ffff800017a1c748,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff800000a2ce00,ffff800017a1c878,ffff800017a1c7d0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803a281e00,fffffd80363f4d88,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363f4d88,9,fffffd803a281e00,0,0,ffff800017c077b8) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363f4d88,0,ffff800017a1ca70,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800017c077b8,4,ffff800017a1cb50,0,ffff800017a1cc60) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800017c077b8,ffff800017a1cbf8,ffff800017a1cc60) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800017a1ccd0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,2bdc7e64010) at Xsyscall+0x128 end of kernel end trace frame: 0x2c00cd3eab0, count: -13 ddb> show registers rdi 0xffffffff81db3e57 db_enter+0x17 rsi 0x49a1 __ALIGN_SIZE+0x39a1 rbp 0xffff800017a1c490 rbx 0xffff800017a1c540 rdx 0x49a2 __ALIGN_SIZE+0x39a2 rcx 0xffff8000159d5000 rax 0xffff8000159d5000 r8 0xffff800017a1c450 r9 0x1 r10 0xffff800000994a80 r11 0x7fbc10533da2c60b r12 0x3000000008 r13 0xffff800017a1c4a0 r14 0x100 r15 0x1 rip 0xffffffff81db3e58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800017a1c480 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=288156 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff800017c064f8,0xffffffff822b7b98 process=0xffff800014953a58 user=0xffff800017a17000, 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 5182 336414 48666 0 2 0 syz-executor.0 * 5182 288156 48666 0 7 0x4000000 syz-executor.0 91143 83218 7252 0 2 0 syz-executor.1 91143 431108 7252 0 3 0x4000080 pipewr syz-executor.1 48666 478747 63335 0 2 0x482 syz-executor.0 7252 89735 63335 0 3 0x82 nanosleep syz-executor.1 71744 13693 1 0 3 0x100083 ttyin getty 5297 306437 0 0 3 0x14200 bored sosplice 63335 11998 64370 0 3 0x82 thrsleep syz-fuzzer 63335 419720 64370 0 3 0x4000082 thrsleep syz-fuzzer 63335 170191 64370 0 3 0x4000082 thrsleep syz-fuzzer 63335 347004 64370 0 3 0x4000082 kqread syz-fuzzer 63335 315937 64370 0 3 0x4000082 thrsleep syz-fuzzer 63335 241070 64370 0 3 0x4000082 thrsleep syz-fuzzer 63335 145259 64370 0 3 0x4000082 thrsleep syz-fuzzer 63335 34038 64370 0 3 0x4000082 thrsleep syz-fuzzer 64370 458922 36703 0 3 0x10008a pause ksh 36703 402798 44197 0 3 0x92 select sshd 44197 50057 1 0 3 0x80 select sshd 29798 56413 27847 73 3 0x100090 kqread syslogd 27847 108993 1 0 3 0x100082 netio syslogd 86157 141061 1 77 3 0x100090 poll dhclient 85425 146381 1 0 3 0x80 poll dhclient 9970 385770 0 0 2 0x14200 zerothread 35862 157427 0 0 3 0x14200 aiodoned aiodoned 92589 322358 0 0 3 0x14200 syncer update 24845 171395 0 0 3 0x14200 cleaner cleaner 14317 166768 0 0 3 0x14200 reaper reaper 74969 498510 0 0 3 0x14200 pgdaemon pagedaemon 72544 363357 0 0 3 0x14200 bored crynlk 16065 199036 0 0 3 0x14200 bored crypto 21460 499255 0 0 3 0x40014200 acpi0 acpi0 84817 52768 0 0 3 0x14200 bored softnet 93432 274647 0 0 2 0x14200 systqmp 45843 415266 0 0 3 0x14200 bored systq 59310 97013 0 0 3 0x40014200 bored softclock 28215 371268 0 0 3 0x40014200 idle0 71466 183277 0 0 3 0x14200 bored smr 1 195225 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 9558 6379K 7579K 78643K 32458 0 0 pcb 24 9K 11K 78643K 6652 0 0 rtable 186 8K 8K 78643K 3426 0 0 ifaddr 70 21K 26K 78643K 1340 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 491 0 0 iov 0 0K 28K 78643K 1716 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1195 75K 76K 78643K 11892 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 158 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 1K 1K 78643K 14 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 13981 0 0 sigio 0 0K 0K 78643K 214 0 0 proc 42 30K 54K 78643K 2324 0 0 subproc 32 2K 2K 78643K 311 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 1419 0 0 in_multi 33 2K 2K 78643K 623 0 0 ether_multi 1 0K 0K 78643K 67 0 0 mrt 0 0K 0K 78643K 27 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 132 583K 583K 78643K 132 0 0 exec 0 0K 1K 78643K 1392 0 0 pfkey data 0 0K 4K 78643K 18 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 106 21K 40K 78643K 33922 0 0 UVM aobj 130 6K 6K 78643K 149 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 458 0 0 NDP 16 0K 1K 78643K 374 0 0 temp 200 2716K 3355K 78643K 44622 0 0 kqueue 0 0K 0K 78643K 110 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 36 0 30 1 0 1 1 0 8 0 inpcbpl 280 5577 0 5570 2 1 1 2 0 8 0 plimitpl 152 341 0 334 1 0 1 1 0 8 0 rtentry 112 309 0 252 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 2001 0 1997 1 0 1 1 0 8 0 nd6 48 51 0 45 1 0 1 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 261 0 261 42 42 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 923 0 717 13 0 13 13 0 8 0 art_table 32 925 0 717 2 0 2 2 0 8 0 art_node 16 224 0 181 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 147 0 19 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 24807 0 23186 53 0 53 53 0 8 0 ffsino 240 24807 0 23186 97 1 96 96 0 8 0 nchpl 144 44332 0 42710 61 0 61 61 0 8 0 uvmvnodes 72 7139 0 0 130 0 130 130 0 8 0 vnodes 200 7139 0 0 376 0 376 376 0 8 0 namei 1024 141521 0 141521 11 10 1 1 0 8 1 scsiplug 64 23 0 23 17 17 0 1 0 8 0 scxspl 192 164721 0 164721 71 69 2 6 0 8 2 sigapl 432 14108 0 14094 2 0 2 2 0 8 0 futexpl 56 211026 0 211026 18 17 1 1 0 8 1 knotepl 112 2818 0 2799 1 0 1 1 0 8 0 kqueuepl 104 3475 0 3473 1 0 1 1 0 8 0 pipepl 112 7650 0 7629 21 20 1 2 0 8 0 fdescpl 424 14109 0 14094 2 0 2 2 0 8 0 filepl 120 83623 0 83522 18 14 4 5 0 8 0 lockfpl 104 4587 0 4585 16 15 1 1 0 8 0 lockfspl 48 1554 0 1552 16 15 1 1 0 8 0 sessionpl 112 33 0 23 1 0 1 1 0 8 0 pgrppl 48 200 0 190 1 0 1 1 0 8 0 ucredpl 96 21365 0 21358 1 0 1 1 0 8 0 zombiepl 144 14094 0 14094 4 3 1 1 0 8 1 processpl 840 14124 0 14094 4 0 4 4 0 8 0 procpl 600 31988 0 31949 10 6 4 4 0 8 0 sosppl 128 156 0 156 43 43 0 1 0 8 0 sockpl 384 11517 0 11499 16 13 3 4 0 8 1 mcl64k 65536 3368 0 3368 296 295 1 65 0 8 1 mcl16k 16384 36 0 36 27 27 0 1 0 8 0 mcl12k 12288 239 0 239 45 44 1 1 0 8 1 mcl9k 9216 204 0 204 45 45 0 1 0 8 0 mcl8k 8192 169 0 169 52 51 1 1 0 8 1 mcl4k 4096 507 0 507 35 34 1 1 0 8 1 mcl2k2 2112 53 0 53 29 29 0 1 0 8 0 mcl2k 2048 73257 0 73215 16 10 6 10 0 8 0 mtagpl 80 20 0 20 8 8 0 1 0 8 0 mbufpl 256 188505 0 188425 156 149 7 36 0 8 0 bufpl 256 49312 0 42172 447 0 447 447 0 8 0 anonpl 16 1260879 0 1251353 452 406 46 71 0 62 3 amapchunkpl 152 62710 0 62622 183 174 9 18 0 158 4 amappl16 192 75802 0 75283 479 452 27 49 0 8 1 amappl15 184 4049 0 4048 1 0 1 1 0 8 0 amappl14 176 1772 0 1770 2 1 1 1 0 8 0 amappl13 168 4482 0 4482 2 2 0 1 0 8 0 amappl12 160 2887 0 2883 1 0 1 1 0 8 0 amappl11 152 1164 0 1148 1 0 1 1 0 8 0 amappl10 144 966 0 965 7 6 1 1 0 8 0 amappl9 136 796 0 793 1 0 1 1 0 8 0 amappl8 128 324 0 294 3 1 2 2 0 8 0 amappl7 120 954 0 947 1 0 1 1 0 8 0 amappl6 112 1125 0 1113 1 0 1 1 0 8 0 amappl5 104 3189 0 3178 1 0 1 1 0 8 0 amappl4 96 13823 0 13802 1 0 1 1 0 8 0 amappl3 88 1805 0 1794 1 0 1 1 0 8 0 amappl2 80 118148 0 118072 4 2 2 3 0 8 0 amappl1 72 250292 0 249871 25 15 10 19 0 8 0 amappl 80 32574 0 32539 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 148 0 19 3 0 3 3 0 8 0 uaddrrnd 24 14109 0 14094 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 14109 0 14094 1 0 1 1 0 8 0 vmmpekpl 168 79458 0 79431 2 0 2 2 0 8 0 vmmpepl 168 1392828 0 1391240 457 381 76 89 0 357 3 vmsppl 264 14108 0 14094 8 7 1 2 0 8 0 pdppl 4096 28224 0 28188 8 3 5 6 0 8 0 pvpl 32 3706484 0 3693365 1109 897 212 249 0 265 105 pmappl 200 14108 0 14094 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1166 0 582 21 3 18 18 0 8 0