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 * 82572 78535 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(ffffffff81f82a32,ffffffff81f41859,239,ffffffff81f1e22b) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff8000009d6500,0,ffff8000009ebe90,38,fffffd803ad534d8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800016c00550,38,ffff800016c004c8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009ebe00,ffff800016c005f8,ffff800016c00550,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd80354c4f00,fffffd80363e8308,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363e8308,9,fffffd80354c4f00,0,0,ffff800015a024c8) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363e8308,0,ffff800016c007f0,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800015a024c8,3,ffff800016c008d0,0,ffff800016c009e0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800015a024c8,ffff800016c00978,ffff800016c009e0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800016c00a50) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,37e54ccc010) at Xsyscall+0x128 end of kernel end trace frame: 0x3814345d1f0, 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(ffffffff81f82a32,ffffffff81f41859,239,ffffffff81f1e22b) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff8000009d6500,0,ffff8000009ebe90,38,fffffd803ad534d8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800016c00550,38,ffff800016c004c8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009ebe00,ffff800016c005f8,ffff800016c00550,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd80354c4f00,fffffd80363e8308,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363e8308,9,fffffd80354c4f00,0,0,ffff800015a024c8) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363e8308,0,ffff800016c007f0,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800015a024c8,3,ffff800016c008d0,0,ffff800016c009e0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800015a024c8,ffff800016c00978,ffff800016c009e0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800016c00a50) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,37e54ccc010) at Xsyscall+0x128 end of kernel end trace frame: 0x3814345d1f0, count: -13 ddb> show registers rdi 0xffffffff8152b5b7 db_enter+0x17 rsi 0x42f5 __ALIGN_SIZE+0x32f5 rbp 0xffff800016c00210 rbx 0xffff800016c002c0 rdx 0x42f6 __ALIGN_SIZE+0x32f6 rcx 0xffff800016c01000 rax 0xffff800016c01000 r8 0xffff800016c001d0 r9 0x1 r10 0xffff800000994980 r11 0xdbf32e97314306de r12 0x3000000008 r13 0xffff800016c00220 r14 0x100 r15 0x1 rip 0xffffffff8152b5b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800016c00200 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=82572 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800015a03530,0xffffffff8227f910 process=0xffff8000ffff7078 user=0xffff800016bfb000, vmspace=0xfffffd803f013318 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 78535 222863 92011 0 2 0 syz-executor.0 *78535 82572 92011 0 7 0x4000000 syz-executor.0 74412 138822 1 0 3 0x100083 ttyin getty 20002 77453 0 0 3 0x14200 bored sosplice 92011 463905 66696 0 2 0x482 syz-executor.0 79155 166012 66696 0 2 0x2 syz-executor.1 66696 262296 52624 0 3 0x82 thrsleep syz-fuzzer 66696 119719 52624 0 3 0x4000082 nanosleep syz-fuzzer 66696 206759 52624 0 3 0x4000082 thrsleep syz-fuzzer 66696 122509 52624 0 3 0x4000082 kqread syz-fuzzer 66696 478785 52624 0 3 0x4000082 thrsleep syz-fuzzer 66696 303829 52624 0 3 0x4000082 thrsleep syz-fuzzer 66696 358618 52624 0 3 0x4000082 thrsleep syz-fuzzer 52624 353491 45257 0 3 0x10008a pause ksh 45257 79875 4254 0 3 0x92 select sshd 4254 31390 1 0 3 0x80 select sshd 75072 110832 52486 73 3 0x100090 kqread syslogd 52486 197353 1 0 3 0x100082 netio syslogd 204 98648 1 77 3 0x100090 poll dhclient 64767 103209 1 0 3 0x80 poll dhclient 92714 484061 0 0 2 0x14200 zerothread 53477 179467 0 0 3 0x14200 aiodoned aiodoned 59838 294042 0 0 3 0x14200 syncer update 81576 383358 0 0 3 0x14200 cleaner cleaner 88400 302169 0 0 3 0x14200 reaper reaper 90701 125300 0 0 3 0x14200 pgdaemon pagedaemon 91482 113609 0 0 3 0x14200 bored crynlk 82516 128718 0 0 3 0x14200 bored crypto 89653 194412 0 0 3 0x40014200 acpi0 acpi0 64698 373658 0 0 3 0x14200 bored softnet 75746 121522 0 0 2 0x14200 systqmp 93930 492326 0 0 3 0x14200 bored systq 38501 821 0 0 3 0x40014200 bored softclock 15387 251036 0 0 3 0x40014200 idle0 51588 503718 0 0 3 0x14200 bored smr 1 4368 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 9523 6729K 6858K 78643K 14294 0 0 pcb 24 9K 10K 78643K 1011 0 0 rtable 132 5K 5K 78643K 652 0 0 ifaddr 56 14K 15K 78643K 255 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 87 0 0 iov 0 0K 24K 78643K 248 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1210 76K 77K 78643K 2845 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 18 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 122 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 2052 0 0 sigio 0 0K 0K 78643K 20 0 0 proc 41 30K 54K 78643K 526 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 188 0 0 in_multi 33 2K 2K 78643K 65 0 0 ether_multi 1 0K 0K 78643K 3 0 0 mrt 0 0K 0K 78643K 5 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 337 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 79 20K 29K 78643K 5570 0 0 UVM aobj 93 3K 4K 78643K 98 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 88 0 0 NDP 11 0K 0K 78643K 69 0 0 temp 166 2715K 2784K 78643K 9088 0 0 kqueue 0 0K 0K 78643K 22 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 834 0 827 1 0 1 1 0 8 0 plimitpl 152 56 0 49 1 0 1 1 0 8 0 rtentry 112 58 0 8 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 304 0 300 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 35 0 35 10 9 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 50 0 8 1 0 1 1 0 8 0 sysvmsgpl 40 21 0 9 1 0 1 1 0 8 0 semapl 112 120 0 110 1 0 1 1 0 8 0 shmpl 112 96 0 5 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4912 0 3489 47 0 47 47 0 8 0 ffsino 240 4912 0 3489 85 0 85 85 0 8 0 nchpl 144 7971 0 6348 61 0 61 61 0 8 0 uvmvnodes 72 5831 0 0 107 0 107 107 0 8 0 vnodes 200 5831 0 0 307 0 307 307 0 8 0 namei 1024 23925 0 23925 2 1 1 1 0 8 1 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 24557 0 24557 12 11 1 6 0 8 1 sigapl 432 2226 0 2213 2 0 2 2 0 8 0 futexpl 56 31168 0 31168 1 0 1 1 0 8 1 knotepl 112 463 0 444 1 0 1 1 0 8 0 kqueuepl 104 487 0 485 1 0 1 1 0 8 0 pipepl 112 1282 0 1263 5 4 1 2 0 8 0 fdescpl 424 2227 0 2213 2 0 2 2 0 8 0 filepl 120 12735 0 12640 4 0 4 4 0 8 1 lockfpl 104 640 0 640 3 2 1 1 0 8 1 lockfspl 48 215 0 215 3 2 1 1 0 8 1 sessionpl 112 20 0 10 1 0 1 1 0 8 0 pgrppl 48 40 0 30 1 0 1 1 0 8 0 ucredpl 96 2886 0 2879 1 0 1 1 0 8 0 zombiepl 144 2213 0 2213 2 1 1 1 0 8 1 processpl 840 2242 0 2213 4 0 4 4 0 8 0 procpl 600 4799 0 4763 4 0 4 4 0 8 0 sosppl 128 20 0 20 6 6 0 1 0 8 0 sockpl 384 1692 0 1674 4 1 3 3 0 8 1 mcl64k 65536 588 0 588 47 46 1 32 0 8 1 mcl16k 16384 15 0 15 6 6 0 1 0 8 0 mcl12k 12288 42 0 42 9 8 1 1 0 8 1 mcl9k 9216 30 0 30 9 9 0 1 0 8 0 mcl8k 8192 37 0 37 7 6 1 1 0 8 1 mcl4k 4096 76 0 76 6 5 1 1 0 8 1 mcl2k2 2112 5 0 5 4 3 1 1 0 8 1 mcl2k 2048 55185 0 55148 17 11 6 9 0 8 1 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 100827 0 100766 33 26 7 21 0 8 0 bufpl 256 10663 0 5871 300 0 300 300 0 8 0 anonpl 16 217218 0 207774 104 53 51 55 0 62 11 amapchunkpl 152 9916 0 9831 49 44 5 18 0 158 0 amappl16 192 11654 0 11144 94 63 31 38 0 8 4 amappl15 184 1008 0 1007 1 0 1 1 0 8 0 amappl14 176 1040 0 1035 2 1 1 1 0 8 0 amappl13 168 1011 0 1009 2 1 1 1 0 8 0 amappl12 160 1 0 0 1 0 1 1 0 8 0 amappl11 152 53 0 39 1 0 1 1 0 8 0 amappl10 144 67 0 66 2 1 1 1 0 8 0 amappl9 136 550 0 546 1 0 1 1 0 8 0 amappl8 128 127 0 113 1 0 1 1 0 8 0 amappl7 120 31 0 27 1 0 1 1 0 8 0 amappl6 112 51 0 45 1 0 1 1 0 8 0 amappl5 104 156 0 145 1 0 1 1 0 8 0 amappl4 96 2383 0 2358 1 0 1 1 0 8 0 amappl3 88 246 0 236 1 0 1 1 0 8 0 amappl2 80 19030 0 18961 4 2 2 3 0 8 0 amappl1 72 46300 0 45891 24 15 9 19 0 8 0 amappl 80 5050 0 5017 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 97 0 5 2 0 2 2 0 8 0 uaddrrnd 24 2227 0 2213 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2227 0 2213 1 0 1 1 0 8 0 vmmpekpl 168 16231 0 16208 2 0 2 2 0 8 0 vmmpepl 168 229866 0 228394 133 57 76 80 0 357 9 vmsppl 264 2226 0 2213 2 1 1 2 0 8 0 pdppl 4096 4460 0 4426 6 1 5 6 0 8 0 pvpl 32 594964 0 582518 211 76 135 141 0 265 32 pmappl 200 2226 0 2213 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 529 0 104 14 0 14 14 0 8 0