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 * 19054 25658 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,ffff80000099cd00,0,ffff8000009fc690,38,fffffd80305c94e0) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800017a0a1b0,38,ffff800017a0a128,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009fc600,ffff800017a0a258,ffff800017a0a1b0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803024c100,fffffd80363f2a88,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363f2a88,9,fffffd803024c100,0,0,ffff8000149c5790) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363f2a88,0,ffff800017a0a450,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000149c5790,3,ffff800017a0a530,0,ffff800017a0a640) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000149c5790,ffff800017a0a5d8,ffff800017a0a640) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800017a0a6b0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,72de8d96010) at Xsyscall+0x128 end of kernel end trace frame: 0x7308b805d70, 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,ffff80000099cd00,0,ffff8000009fc690,38,fffffd80305c94e0) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800017a0a1b0,38,ffff800017a0a128,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009fc600,ffff800017a0a258,ffff800017a0a1b0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803024c100,fffffd80363f2a88,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363f2a88,9,fffffd803024c100,0,0,ffff8000149c5790) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363f2a88,0,ffff800017a0a450,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000149c5790,3,ffff800017a0a530,0,ffff800017a0a640) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000149c5790,ffff800017a0a5d8,ffff800017a0a640) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800017a0a6b0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,72de8d96010) at Xsyscall+0x128 end of kernel end trace frame: 0x7308b805d70, count: -13 ddb> show registers rdi 0xffffffff81db3e57 db_enter+0x17 rsi 0x4244 __ALIGN_SIZE+0x3244 rbp 0xffff800017a09e70 rbx 0xffff800017a09f20 rdx 0x4245 __ALIGN_SIZE+0x3245 rcx 0xffff800014bc6000 rax 0xffff800014bc6000 r8 0xffff800017a09e30 r9 0x1 r10 0xffff8000009940c0 r11 0xb54c637b1b72a371 r12 0x3000000008 r13 0xffff800017a09e80 r14 0x100 r15 0x1 rip 0xffffffff81db3e58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800017a09e60 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=19054 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000149c4278,0xffffffff822b7b98 process=0xffff8000ffff73c0 user=0xffff800017a05000, vmspace=0xfffffd803f014420 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 25658 226290 15430 0 2 0 syz-executor.1 *25658 19054 15430 0 7 0x4000000 syz-executor.1 31783 88500 65666 0 3 0x80 nanosleep syz-executor.0 31783 348052 65666 0 3 0x4000080 poll syz-executor.0 31783 479033 65666 0 3 0x4000080 fsleep syz-executor.0 15430 121631 80367 0 2 0x482 syz-executor.1 65666 481494 80367 0 2 0x482 syz-executor.0 90811 332434 0 0 3 0x14200 bored sosplice 80367 88037 84490 0 3 0x82 thrsleep syz-fuzzer 80367 64136 84490 0 2 0x4000482 syz-fuzzer 80367 400394 84490 0 3 0x4000082 thrsleep syz-fuzzer 80367 43878 84490 0 3 0x4000082 thrsleep syz-fuzzer 80367 67209 84490 0 3 0x4000082 thrsleep syz-fuzzer 80367 449696 84490 0 3 0x4000082 kqread syz-fuzzer 80367 370289 84490 0 3 0x4000082 thrsleep syz-fuzzer 80367 322818 84490 0 3 0x4000082 thrsleep syz-fuzzer 84490 49242 70350 0 3 0x10008a pause ksh 70350 34629 99440 0 3 0x92 select sshd 46752 204471 1 0 3 0x100083 ttyin getty 99440 34722 1 0 3 0x80 select sshd 28408 77484 2587 73 3 0x100090 kqread syslogd 2587 507022 1 0 3 0x100082 netio syslogd 73594 508833 1 77 3 0x100090 poll dhclient 12563 491594 1 0 3 0x80 poll dhclient 86755 262899 0 0 2 0x14200 zerothread 8308 303002 0 0 3 0x14200 aiodoned aiodoned 22015 487226 0 0 3 0x14200 syncer update 34670 268049 0 0 3 0x14200 cleaner cleaner 38651 492253 0 0 3 0x14200 reaper reaper 84464 482472 0 0 3 0x14200 pgdaemon pagedaemon 53998 491075 0 0 3 0x14200 bored crynlk 64176 16581 0 0 3 0x14200 bored crypto 29132 210588 0 0 3 0x40014200 acpi0 acpi0 17806 28866 0 0 3 0x14200 bored softnet 46801 144851 0 0 2 0x14200 systqmp 41021 368270 0 0 3 0x14200 bored systq 63789 126573 0 0 3 0x40014200 bored softclock 64828 515014 0 0 3 0x40014200 idle0 49187 107973 0 0 3 0x14200 bored smr 1 159740 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 9533 6489K 7435K 78643K 14233 0 0 pcb 24 9K 10K 78643K 1142 0 0 rtable 115 4K 4K 78643K 769 0 0 ifaddr 61 14K 16K 78643K 278 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 107 0 0 iov 0 0K 32K 78643K 218 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1202 76K 77K 78643K 3446 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 30 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 577 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 2470 0 0 sigio 0 0K 0K 78643K 22 0 0 proc 42 30K 54K 78643K 719 0 0 subproc 32 2K 2K 78643K 104 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 249 0 0 in_multi 33 2K 2K 78643K 138 0 0 ether_multi 1 0K 0K 78643K 4 0 0 mrt 0 0K 0K 78643K 3 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 406 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 89 20K 22K 78643K 6575 0 0 UVM aobj 73 3K 3K 78643K 81 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 93 0 0 NDP 13 0K 0K 78643K 79 0 0 temp 182 2715K 3355K 78643K 10595 0 0 kqueue 0 0K 0K 78643K 30 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 14 0 8 1 0 1 1 0 8 0 inpcbpl 280 893 0 886 1 0 1 1 0 8 0 plimitpl 152 81 0 74 1 0 1 1 0 8 0 rtentry 112 100 0 54 3 1 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 290 0 286 1 0 1 1 0 8 0 nd6 48 18 0 12 2 1 1 1 0 8 0 ppxss 1128 40 0 40 10 9 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 387 0 190 15 2 13 13 0 8 0 art_table 32 388 0 190 3 1 2 2 0 8 0 art_node 16 91 0 49 1 0 1 1 0 8 0 sysvmsgpl 40 22 0 7 1 0 1 1 0 8 0 semapl 112 573 0 563 1 0 1 1 0 8 0 shmpl 112 79 0 8 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5849 0 4413 47 0 47 47 0 8 0 ffsino 240 5849 0 4413 85 0 85 85 0 8 0 nchpl 144 9757 0 8142 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 28787 0 28787 4 3 1 1 0 8 1 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 29660 0 29660 12 11 1 6 0 8 1 sigapl 432 2629 0 2615 2 0 2 2 0 8 0 futexpl 56 38621 0 38620 4 3 1 1 0 8 0 knotepl 112 543 0 524 1 0 1 1 0 8 0 kqueuepl 104 513 0 511 1 0 1 1 0 8 0 pipepl 112 1312 0 1293 6 5 1 2 0 8 0 fdescpl 424 2630 0 2615 2 0 2 2 0 8 0 filepl 120 14810 0 14714 8 4 4 5 0 8 1 lockfpl 104 718 0 718 5 4 1 1 0 8 1 lockfspl 48 251 0 251 5 4 1 1 0 8 1 sessionpl 112 21 0 11 1 0 1 1 0 8 0 pgrppl 48 45 0 35 1 0 1 1 0 8 0 ucredpl 96 3738 0 3731 1 0 1 1 0 8 0 zombiepl 144 2615 0 2615 3 2 1 1 0 8 1 processpl 840 2645 0 2615 4 0 4 4 0 8 0 procpl 600 5652 0 5612 5 1 4 4 0 8 0 sosppl 128 28 0 28 9 8 1 1 0 8 1 sockpl 384 1930 0 1912 5 2 3 3 0 8 1 mcl64k 65536 46 0 46 9 9 0 1 0 8 0 mcl16k 16384 7 0 7 4 3 1 1 0 8 1 mcl12k 12288 40 0 40 6 5 1 1 0 8 1 mcl9k 9216 30 0 30 11 10 1 1 0 8 1 mcl8k 8192 24 0 24 8 8 0 1 0 8 0 mcl4k 4096 90 0 90 7 6 1 1 0 8 1 mcl2k2 2112 6 0 6 5 5 0 1 0 8 0 mcl2k 2048 55091 0 55050 14 8 6 10 0 8 0 mtagpl 80 4 0 4 2 2 0 1 0 8 0 mbufpl 256 100497 0 100409 13 5 8 10 0 8 0 bufpl 256 11250 0 5550 357 0 357 357 0 8 0 anonpl 16 214692 0 205686 112 70 42 55 0 62 3 amapchunkpl 152 10777 0 10687 34 28 6 14 0 158 2 amappl16 192 12341 0 11855 86 61 25 37 0 8 0 amappl15 184 675 0 672 1 0 1 1 0 8 0 amappl14 176 1211 0 1206 2 1 1 1 0 8 0 amappl13 168 43 0 43 2 2 0 1 0 8 0 amappl12 160 17 0 16 2 1 1 1 0 8 0 amappl11 152 62 0 48 1 0 1 1 0 8 0 amappl10 144 768 0 766 4 3 1 1 0 8 0 amappl9 136 598 0 595 1 0 1 1 0 8 0 amappl8 128 183 0 162 1 0 1 1 0 8 0 amappl7 120 744 0 737 1 0 1 1 0 8 0 amappl6 112 54 0 47 1 0 1 1 0 8 0 amappl5 104 170 0 160 1 0 1 1 0 8 0 amappl4 96 2081 0 2059 1 0 1 1 0 8 0 amappl3 88 2059 0 2045 1 0 1 1 0 8 0 amappl2 80 19978 0 19901 4 2 2 3 0 8 0 amappl1 72 54909 0 54475 33 24 9 19 0 8 0 amappl 80 5962 0 5926 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 80 0 8 2 0 2 2 0 8 0 uaddrrnd 24 2630 0 2615 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2630 0 2615 1 0 1 1 0 8 0 vmmpekpl 168 18950 0 18924 2 0 2 2 0 8 0 vmmpepl 168 266488 0 264923 147 78 69 82 0 357 0 vmsppl 264 2629 0 2615 4 3 1 2 0 8 0 pdppl 4096 5266 0 5230 8 3 5 6 0 8 0 pvpl 32 683446 0 671218 285 167 118 243 0 265 19 pmappl 200 2629 0 2615 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 531 0 49 14 0 14 14 0 8 0