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 *216554 1513 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,ffff8000009ef680,0,ffff8000009ebc90,38,fffffd803a44e5b8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800016bf4020,38,ffff800016bf3f98,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009ebc00,ffff800016bf40c8,ffff800016bf4020,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803a4abb00,fffffd8037005780,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd8037005780,9,fffffd803a4abb00,0,0,ffff8000159f0270) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd8037005780,0,ffff800016bf42c0,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000159f0270,3,ffff800016bf43a0,0,ffff800016bf44b0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000159f0270,ffff800016bf4448,ffff800016bf44b0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800016bf4520) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,38174cbc010) at Xsyscall+0x128 end of kernel end trace frame: 0x38451818630, 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,ffff8000009ef680,0,ffff8000009ebc90,38,fffffd803a44e5b8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800016bf4020,38,ffff800016bf3f98,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009ebc00,ffff800016bf40c8,ffff800016bf4020,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803a4abb00,fffffd8037005780,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd8037005780,9,fffffd803a4abb00,0,0,ffff8000159f0270) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd8037005780,0,ffff800016bf42c0,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000159f0270,3,ffff800016bf43a0,0,ffff800016bf44b0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000159f0270,ffff800016bf4448,ffff800016bf44b0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800016bf4520) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,38174cbc010) at Xsyscall+0x128 end of kernel end trace frame: 0x38451818630, count: -13 ddb> show registers rdi 0xffffffff81db3e57 db_enter+0x17 rsi 0x4fcb __ALIGN_SIZE+0x3fcb rbp 0xffff800016bf3ce0 rbx 0xffff800016bf3d90 rdx 0x4fcc __ALIGN_SIZE+0x3fcc rcx 0xffff800016bf5000 rax 0xffff800016bf5000 r8 0xffff800016bf3ca0 r9 0x1 r10 0xffff800000994a00 r11 0x52790f47a3927572 r12 0x3000000008 r13 0xffff800016bf3cf0 r14 0x100 r15 0x1 rip 0xffffffff81db3e58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800016bf3cd0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=216554 stat=onproc flags process=0 proc=4000000 pri=72, usrpri=72, nice=20 forw=0xffffffffffffffff, list=0xffff8000159f1c38,0xffffffff822b7b98 process=0xffff8000ffff6358 user=0xffff800016bef000, vmspace=0xfffffd803f014c60 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 1513 106485 87458 0 2 0 syz-executor.0 * 1513 216554 87458 0 7 0x4000000 syz-executor.0 79339 271018 1 0 3 0x100083 ttyin getty 66803 122785 0 0 3 0x14200 bored sosplice 87458 506147 19794 0 2 0x482 syz-executor.0 15381 451789 19794 0 2 0x2 syz-executor.1 19794 488731 41157 0 3 0x82 thrsleep syz-fuzzer 19794 187390 41157 0 3 0x4000082 thrsleep syz-fuzzer 19794 245289 41157 0 3 0x4000082 thrsleep syz-fuzzer 19794 416886 41157 0 3 0x4000082 kqread syz-fuzzer 19794 473703 41157 0 3 0x4000082 thrsleep syz-fuzzer 19794 472526 41157 0 3 0x4000082 thrsleep syz-fuzzer 19794 484867 41157 0 3 0x4000082 thrsleep syz-fuzzer 41157 315532 10574 0 3 0x10008a pause ksh 10574 177393 59673 0 3 0x92 select sshd 59673 159968 1 0 3 0x80 select sshd 64977 503053 92995 73 3 0x100090 kqread syslogd 92995 240634 1 0 3 0x100082 netio syslogd 93339 61621 1 77 3 0x100090 poll dhclient 23000 61895 1 0 3 0x80 poll dhclient 91299 108460 0 0 2 0x14200 zerothread 65251 119660 0 0 3 0x14200 aiodoned aiodoned 43195 393741 0 0 3 0x14200 syncer update 52788 382531 0 0 3 0x14200 cleaner cleaner 83922 333207 0 0 3 0x14200 reaper reaper 16777 81532 0 0 3 0x14200 pgdaemon pagedaemon 67787 212827 0 0 3 0x14200 bored crynlk 55840 153095 0 0 3 0x14200 bored crypto 61389 496991 0 0 3 0x40014200 acpi0 acpi0 36444 81234 0 0 3 0x14200 bored softnet 72887 192665 0 0 2 0x14200 systqmp 57757 174955 0 0 3 0x14200 bored systq 67638 453021 0 0 3 0x40014200 bored softclock 41470 371935 0 0 3 0x40014200 idle0 67165 77841 0 0 3 0x14200 bored smr 1 246203 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 9508 6357K 6740K 78643K 14511 0 0 pcb 24 9K 11K 78643K 1303 0 0 rtable 124 5K 5K 78643K 668 0 0 ifaddr 60 15K 15K 78643K 259 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 101 0 0 iov 0 0K 28K 78643K 331 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1205 76K 77K 78643K 3208 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 29 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 149 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 2478 0 0 sigio 0 0K 0K 78643K 34 0 0 proc 42 30K 54K 78643K 549 0 0 subproc 32 2K 2K 78643K 38 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 279 0 0 in_multi 33 2K 2K 78643K 115 0 0 ether_multi 1 0K 0K 78643K 13 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 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 360 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 81 20K 30K 78643K 6713 0 0 UVM aobj 102 6K 6K 78643K 106 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 132 0 0 NDP 12 0K 0K 78643K 68 0 0 temp 175 2711K 2839K 78643K 10236 0 0 kqueue 0 0K 0K 78643K 26 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 1114 0 1107 2 1 1 2 0 8 0 plimitpl 152 67 0 60 1 0 1 1 0 8 0 rtentry 112 64 0 18 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 426 0 422 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 43 0 42 15 14 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 194 0 0 13 0 13 13 0 8 0 art_table 32 195 0 0 2 0 2 2 0 8 0 art_node 16 46 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 6 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 147 0 137 1 0 1 1 0 8 0 shmpl 112 104 0 4 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5760 0 4319 47 0 47 47 0 8 0 ffsino 240 5760 0 4319 86 0 86 86 0 8 0 nchpl 144 9441 0 7805 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 28958 0 28958 2 1 1 1 0 8 1 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 29331 0 29331 18 17 1 6 0 8 1 sigapl 432 2651 0 2638 2 0 2 2 0 8 0 futexpl 56 38680 0 38680 1 0 1 1 0 8 1 knotepl 112 597 0 578 1 0 1 1 0 8 0 kqueuepl 104 626 0 624 1 0 1 1 0 8 0 pipepl 112 1404 0 1385 4 3 1 2 0 8 0 fdescpl 424 2652 0 2638 2 0 2 2 0 8 0 filepl 120 16232 0 16137 5 1 4 5 0 8 0 lockfpl 104 871 0 871 3 2 1 1 0 8 1 lockfspl 48 299 0 299 3 2 1 1 0 8 1 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 57 0 47 1 0 1 1 0 8 0 ucredpl 96 4061 0 4054 1 0 1 1 0 8 0 zombiepl 144 2638 0 2638 2 1 1 1 0 8 1 processpl 840 2667 0 2638 4 0 4 4 0 8 0 procpl 600 5907 0 5871 4 0 4 4 0 8 0 sosppl 128 51 0 51 10 10 0 1 0 8 0 sockpl 384 2284 0 2266 4 1 3 4 0 8 1 mcl64k 65536 1100 0 1100 83 82 1 65 0 8 1 mcl16k 16384 9 0 9 8 7 1 1 0 8 1 mcl12k 12288 37 0 37 11 10 1 1 0 8 1 mcl9k 9216 30 0 30 10 9 1 1 0 8 1 mcl8k 8192 27 0 27 12 12 0 1 0 8 0 mcl4k 4096 104 0 104 7 6 1 1 0 8 1 mcl2k2 2112 8 0 8 6 6 0 1 0 8 0 mcl2k 2048 55249 0 55207 13 7 6 10 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 102830 0 102766 58 52 6 38 0 8 0 bufpl 256 11918 0 7412 282 0 282 282 0 8 0 anonpl 16 235930 0 226926 144 93 51 53 0 62 12 amapchunkpl 152 11507 0 11426 42 33 9 14 0 158 5 amappl16 192 14017 0 13533 121 90 31 37 0 8 6 amappl14 176 39 0 36 2 1 1 1 0 8 0 amappl13 168 1206 0 1204 1 0 1 1 0 8 0 amappl12 160 5 0 4 2 1 1 1 0 8 0 amappl11 152 1292 0 1276 1 0 1 1 0 8 0 amappl10 144 62 0 61 2 1 1 1 0 8 0 amappl9 136 526 0 522 1 0 1 1 0 8 0 amappl8 128 131 0 114 1 0 1 1 0 8 0 amappl7 120 30 0 27 1 0 1 1 0 8 0 amappl6 112 1292 0 1284 1 0 1 1 0 8 0 amappl5 104 202 0 192 1 0 1 1 0 8 0 amappl4 96 2821 0 2798 1 0 1 1 0 8 0 amappl3 88 247 0 236 1 0 1 1 0 8 0 amappl2 80 21824 0 21757 4 2 2 3 0 8 0 amappl1 72 54942 0 54533 26 17 9 19 0 8 0 amappl 80 6165 0 6133 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 105 0 4 2 0 2 2 0 8 0 uaddrrnd 24 2652 0 2638 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2652 0 2638 1 0 1 1 0 8 0 vmmpekpl 168 18576 0 18550 2 0 2 2 0 8 0 vmmpepl 168 272368 0 270919 160 83 77 79 0 357 12 vmsppl 264 2651 0 2638 2 1 1 2 0 8 0 pdppl 4096 5310 0 5276 6 1 5 6 0 8 0 pvpl 32 652753 0 640723 276 142 134 136 0 265 36 pmappl 200 2651 0 2638 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 577 0 170 15 2 13 15 0 8 0