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 *174846 2960 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,ffff800000996940,0,ffff8000009e2490,38,fffffd8036da8cb0) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800015c2ce60,38,ffff800015c2cdd8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009e2400,ffff800015c2cf08,ffff800015c2ce60,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803cfc7600,fffffd803969ea80,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd803969ea80,9,fffffd803cfc7600,0,0,ffff800015bf9c38) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd803969ea80,0,ffff800015c2d100,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800015bf9c38,4,ffff800015c2d1e0,0,ffff800015c2d2f0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800015bf9c38,ffff800015c2d288,ffff800015c2d2f0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800015c2d360) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,b5698cb9010) at Xsyscall+0x128 end of kernel end trace frame: 0xb59643d9c90, 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,ffff800000996940,0,ffff8000009e2490,38,fffffd8036da8cb0) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800015c2ce60,38,ffff800015c2cdd8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009e2400,ffff800015c2cf08,ffff800015c2ce60,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803cfc7600,fffffd803969ea80,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd803969ea80,9,fffffd803cfc7600,0,0,ffff800015bf9c38) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd803969ea80,0,ffff800015c2d100,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800015bf9c38,4,ffff800015c2d1e0,0,ffff800015c2d2f0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800015bf9c38,ffff800015c2d288,ffff800015c2d2f0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800015c2d360) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,b5698cb9010) at Xsyscall+0x128 end of kernel end trace frame: 0xb59643d9c90, count: -13 ddb> show registers rdi 0xffffffff8152b5b7 db_enter+0x17 rsi 0x4e2a __ALIGN_SIZE+0x3e2a rbp 0xffff800015c2cb20 rbx 0xffff800015c2cbd0 rdx 0x4e2b __ALIGN_SIZE+0x3e2b rcx 0xffff8000149c9000 rax 0xffff8000149c9000 r8 0xffff800015c2cae0 r9 0x1 r10 0xffff80000099e8c0 r11 0xbd766af31b52389a r12 0x3000000008 r13 0xffff800015c2cb30 r14 0x100 r15 0x1 rip 0xffffffff8152b5b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015c2cb10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=174846 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800015bf9788,0xffffffff8227f910 process=0xffff800014952360 user=0xffff800015c28000, vmspace=0xfffffd803f013d68 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 2960 91987 33102 0 2 0 syz-executor.0 * 2960 174846 33102 0 7 0x4000000 syz-executor.0 52625 196108 32795 0 2 0x2 syz-executor.1 33102 441340 32795 0 3 0x82 nanosleep syz-executor.0 54255 510842 1 0 3 0x100083 ttyin getty 96726 321602 0 0 3 0x14200 bored sosplice 32795 300098 90256 0 3 0x82 thrsleep syz-fuzzer 32795 389232 90256 0 2 0x4000482 syz-fuzzer 32795 418952 90256 0 3 0x4000082 thrsleep syz-fuzzer 32795 91036 90256 0 3 0x4000082 thrsleep syz-fuzzer 32795 125498 90256 0 3 0x4000082 thrsleep syz-fuzzer 32795 446238 90256 0 3 0x4000082 thrsleep syz-fuzzer 32795 333415 90256 0 3 0x4000082 thrsleep syz-fuzzer 32795 86411 90256 0 3 0x4000082 kqread syz-fuzzer 90256 215472 81931 0 3 0x10008a pause ksh 81931 17971 43636 0 3 0x92 select sshd 43636 246841 1 0 3 0x80 select sshd 57139 502947 2093 73 3 0x100090 kqread syslogd 2093 91090 1 0 3 0x100082 netio syslogd 45940 452326 1 77 3 0x100090 poll dhclient 77859 288310 1 0 3 0x80 poll dhclient 64920 499753 0 0 2 0x14200 zerothread 95767 93729 0 0 3 0x14200 aiodoned aiodoned 50651 108162 0 0 3 0x14200 syncer update 56220 141429 0 0 3 0x14200 cleaner cleaner 36376 442578 0 0 3 0x14200 reaper reaper 64279 312426 0 0 3 0x14200 pgdaemon pagedaemon 28737 153184 0 0 3 0x14200 bored crynlk 18932 390178 0 0 3 0x14200 bored crypto 18532 21453 0 0 3 0x40014200 acpi0 acpi0 88239 387604 0 0 3 0x14200 bored softnet 47122 73011 0 0 2 0x14200 systqmp 9045 172428 0 0 3 0x14200 bored systq 50999 397273 0 0 3 0x40014200 bored softclock 31887 472587 0 0 3 0x40014200 idle0 99534 324583 0 0 3 0x14200 bored smr 1 73669 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 9527 6615K 14811K 78643K 24838 0 0 pcb 24 9K 11K 78643K 4374 0 0 rtable 173 7K 7K 78643K 1880 0 0 ifaddr 53 16K 18K 78643K 810 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 317 0 0 iov 0 0K 32K 78643K 974 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1207 76K 77K 78643K 7662 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 96 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 526 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 8026 0 0 sigio 0 0K 0K 78643K 111 0 0 proc 42 30K 55K 78643K 1287 0 0 subproc 32 2K 2K 78643K 82 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 820 0 0 in_multi 33 2K 2K 78643K 231 0 0 ether_multi 1 0K 0K 78643K 24 0 0 mrt 0 0K 0K 78643K 24 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 120 530K 530K 78643K 120 0 0 exec 0 0K 1K 78643K 696 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 83 20K 29K 78643K 19634 0 0 UVM aobj 130 5K 5K 78643K 165 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 317 0 0 NDP 10 0K 0K 78643K 216 0 0 temp 162 2715K 3355K 78643K 26646 0 0 kqueue 0 0K 0K 78643K 74 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 10 0 4 1 0 1 1 0 8 0 inpcbpl 280 3763 0 3756 1 0 1 1 0 8 0 plimitpl 152 199 0 192 1 0 1 1 0 8 0 rtentry 112 125 0 68 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 10 0 10 1 1 0 1 0 8 0 tcpcb 544 1179 0 1175 1 0 1 1 0 8 0 nd6 48 12 0 6 2 1 1 1 0 8 0 ppxss 1128 163 0 163 25 24 1 1 0 8 1 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 301 0 92 16 2 14 14 0 8 0 art_table 32 304 0 92 2 0 2 2 0 8 0 art_node 16 79 0 35 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 14 1 0 1 1 0 8 0 semupl 112 2 0 2 2 2 0 1 0 8 0 semapl 112 518 0 508 1 0 1 1 0 8 0 shmpl 112 163 0 35 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 14792 0 13284 49 0 49 49 0 8 0 ffsino 240 14792 0 13284 90 1 89 89 0 8 0 nchpl 144 26156 0 24544 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 81358 0 81358 4 3 1 1 0 8 1 scsiplug 64 12 0 12 11 11 0 1 0 8 0 scxspl 192 83667 0 83667 36 35 1 6 0 8 1 sigapl 432 8197 0 8184 2 0 2 2 0 8 0 futexpl 56 121873 0 121873 2 1 1 1 0 8 1 knotepl 112 1530 0 1511 2 1 1 2 0 8 0 kqueuepl 104 1871 0 1869 1 0 1 1 0 8 0 pipepl 112 4708 0 4689 10 8 2 2 0 8 1 fdescpl 424 8198 0 8184 2 0 2 2 0 8 0 filepl 120 48755 0 48659 9 4 5 5 0 8 2 lockfpl 104 2468 0 2468 4 3 1 1 0 8 1 lockfspl 48 870 0 870 4 3 1 1 0 8 1 sessionpl 112 25 0 15 1 0 1 1 0 8 0 pgrppl 48 137 0 127 1 0 1 1 0 8 0 ucredpl 96 11481 0 11474 1 0 1 1 0 8 0 zombiepl 144 8184 0 8184 3 2 1 1 0 8 1 processpl 840 8213 0 8184 4 0 4 4 0 8 0 procpl 600 18498 0 18461 4 0 4 4 0 8 0 sosppl 128 92 0 92 26 25 1 1 0 8 1 sockpl 384 7198 0 7180 8 4 4 4 0 8 2 mcl64k 65536 1309 0 1309 145 144 1 65 0 8 1 mcl16k 16384 25 0 25 20 20 0 1 0 8 0 mcl12k 12288 132 0 132 21 20 1 1 0 8 1 mcl9k 9216 101 0 101 33 32 1 1 0 8 1 mcl8k 8192 119 0 119 28 28 0 1 0 8 0 mcl4k 4096 270 0 270 13 12 1 1 0 8 1 mcl2k2 2112 51 0 51 26 26 0 1 0 8 0 mcl2k 2048 64867 0 64825 13 7 6 9 0 8 0 mtagpl 80 22 0 20 10 9 1 1 0 8 0 mbufpl 256 145394 0 145290 69 61 8 36 0 8 0 bufpl 256 26686 0 20750 372 0 372 372 0 8 0 anonpl 16 701938 0 692624 302 262 40 56 0 62 0 amapchunkpl 152 32733 0 32648 69 64 5 14 0 158 0 amappl16 192 44498 0 43984 308 281 27 39 0 8 0 amappl15 184 8 0 7 1 0 1 1 0 8 0 amappl14 176 48 0 46 2 1 1 1 0 8 0 amappl13 168 3906 0 3906 2 2 0 1 0 8 0 amappl12 160 152 0 150 1 0 1 1 0 8 0 amappl11 152 59 0 44 1 0 1 1 0 8 0 amappl10 144 4011 0 4006 2 1 1 1 0 8 0 amappl9 136 590 0 587 1 0 1 1 0 8 0 amappl8 128 156 0 138 1 0 1 1 0 8 0 amappl7 120 3956 0 3949 1 0 1 1 0 8 0 amappl6 112 59 0 50 1 0 1 1 0 8 0 amappl5 104 329 0 319 1 0 1 1 0 8 0 amappl4 96 12287 0 12266 1 0 1 1 0 8 0 amappl3 88 415 0 404 1 0 1 1 0 8 0 amappl2 80 64613 0 64547 4 2 2 3 0 8 0 amappl1 72 148962 0 148559 26 17 9 19 0 8 0 amappl 80 18834 0 18801 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 164 0 35 3 0 3 3 0 8 0 uaddrrnd 24 8198 0 8184 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8198 0 8184 1 0 1 1 0 8 0 vmmpekpl 168 55477 0 55453 2 0 2 2 0 8 0 vmmpepl 168 820202 0 818729 290 217 73 95 0 357 3 vmsppl 264 8197 0 8184 3 2 1 2 0 8 0 pdppl 4096 16402 0 16368 7 2 5 6 0 8 0 pvpl 32 2031952 0 2019501 514 394 120 233 0 265 15 pmappl 200 8197 0 8184 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 786 0 282 18 2 16 18 0 8 0