panic: kernel diagnostic assertion "(rt->rt_flags & RTF_MPATH) || mrt->rt_priority != prio" failed: file "/syzkaller/managers/multicore/kernel/sys/net/rtable.c", line 569 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *391068 55516 0 0 0x4000000 1K syz-executor.1 229015 10096 0 0 0 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(ffffffff81f9f7e3,ffffffff81fac83f,239,ffffffff81f38a7f) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff8000009f6bc0,ffff8000009fa4a0,ffff8000009fa490,8,fffffd8067d1c628) at rtable_insert+0x65f sys/net/rtable.c:569 rtrequest(1,ffff800022c66f60,0,ffff800022c66ed8,0) at rtrequest+0x876 sys/net/route.c:928 rtm_output(ffff8000009fa400,ffff800022c67010,ffff800022c66f60,0,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8007a97e00,fffffd806f706900,0,0) at route_output+0x7d2 sys/net/rtsock.c:814 route_usrreq(fffffd806f706900,9,fffffd8007a97e00,0,0,ffff800020b38bd0) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd806f706900,0,ffff800022c67200,0,0,180) at sosend+0x668 sys/kern/uipc_socket.c:513 sendit(ffff800020b38bd0,3,ffff800022c672e0,100,ffff800022c673f0) at sendit+0x52c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020b38bd0,ffff800022c67388,ffff800022c673f0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800022c67460) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800022c67460) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffffd8,0,6,689a6e9a010) at Xsyscall+0x128 end of kernel end trace frame: 0x68c969a32f0, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic kernel diagnostic assertion "(rt->rt_flags & RTF_MPATH) || mrt->rt_priority != prio" failed: file "/syzkaller/managers/multicore/kernel/sys/net/rtable.c", line 569 ddb{1}> 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(ffffffff81f9f7e3,ffffffff81fac83f,239,ffffffff81f38a7f) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff8000009f6bc0,ffff8000009fa4a0,ffff8000009fa490,8,fffffd8067d1c628) at rtable_insert+0x65f sys/net/rtable.c:569 rtrequest(1,ffff800022c66f60,0,ffff800022c66ed8,0) at rtrequest+0x876 sys/net/route.c:928 rtm_output(ffff8000009fa400,ffff800022c67010,ffff800022c66f60,0,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8007a97e00,fffffd806f706900,0,0) at route_output+0x7d2 sys/net/rtsock.c:814 route_usrreq(fffffd806f706900,9,fffffd8007a97e00,0,0,ffff800020b38bd0) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd806f706900,0,ffff800022c67200,0,0,180) at sosend+0x668 sys/kern/uipc_socket.c:513 sendit(ffff800020b38bd0,3,ffff800022c672e0,100,ffff800022c673f0) at sendit+0x52c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020b38bd0,ffff800022c67388,ffff800022c673f0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800022c67460) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800022c67460) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffffd8,0,6,689a6e9a010) at Xsyscall+0x128 end of kernel end trace frame: 0x68c969a32f0, count: -13 ddb{1}> show registers rdi 0xffffffff81365a77 db_enter+0x17 rsi 0x4327 __ALIGN_SIZE+0x3327 rbp 0xffff800022c66c20 rbx 0xffff800022c66cd0 rdx 0x4328 __ALIGN_SIZE+0x3328 rcx 0xffff800022e14000 rax 0xffff800022e14000 r8 0xffffffff810322c3 kprintf+0x173 r9 0x1 r10 0x25 r11 0x74dae0a9445dd26f r12 0x3000000008 r13 0xffff800022c66c30 r14 0x100 r15 0x1 rip 0xffffffff81365a78 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022c66c10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=391068 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b392d8,0xffffffff82351f50 process=0xffff800020b8d170 user=0xffff800022c62000, vmspace=0xfffffd807f00b000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 55516 449079 90669 0 2 0 syz-executor.1 *55516 391068 90669 0 7 0x4000000 syz-executor.1 10096 229015 62904 0 7 0 syz-executor.0 10096 43050 62904 0 3 0x4000080 ttyout syz-executor.0 10096 457407 62904 0 3 0x4000080 fsleep syz-executor.0 62904 371114 19066 0 3 0x82 nanosleep syz-executor.0 90669 503057 19066 0 3 0x82 nanosleep syz-executor.1 82963 387759 1 0 3 0x100083 ttyin getty 3483 109748 0 0 3 0x14200 bored sosplice 19066 67871 67411 0 3 0x82 kqread syz-fuzzer 19066 411773 67411 0 3 0x4000082 thrsleep syz-fuzzer 19066 74172 67411 0 3 0x4000082 thrsleep syz-fuzzer 19066 141001 67411 0 3 0x4000082 thrsleep syz-fuzzer 19066 293222 67411 0 3 0x4000082 thrsleep syz-fuzzer 19066 277771 67411 0 3 0x4000082 thrsleep syz-fuzzer 19066 47475 67411 0 3 0x4000082 thrsleep syz-fuzzer 19066 116568 67411 0 3 0x4000082 thrsleep syz-fuzzer 19066 133668 67411 0 3 0x4000082 thrsleep syz-fuzzer 19066 300747 67411 0 3 0x4000082 thrsleep syz-fuzzer 67411 377145 11212 0 3 0x10008a pause ksh 11212 493032 55032 0 3 0x92 select sshd 55032 193915 1 0 3 0x80 select sshd 85090 106176 45466 74 3 0x100092 bpf pflogd 45466 295574 1 0 3 0x80 netio pflogd 24826 297277 41262 73 3 0x100090 kqread syslogd 41262 377044 1 0 3 0x100082 netio syslogd 49296 162625 1 77 3 0x100090 poll dhclient 32207 300165 1 0 3 0x80 poll dhclient 53764 280528 0 0 2 0x14200 zerothread 68602 206279 0 0 3 0x14200 aiodoned aiodoned 67756 282272 0 0 3 0x14200 syncer update 90884 323592 0 0 3 0x14200 cleaner cleaner 41113 393864 0 0 3 0x14200 reaper reaper 78269 357307 0 0 3 0x14200 pgdaemon pagedaemon 66963 27071 0 0 3 0x14200 bored crynlk 14237 169073 0 0 3 0x14200 bored crypto 99463 243100 0 0 3 0x40014200 acpi0 acpi0 58441 292579 0 0 3 0x40014200 idle1 69686 495253 0 0 3 0x14200 bored softnet 90859 268601 0 0 2 0x14200 systqmp 36029 494444 0 0 3 0x14200 bored systq 3476 368737 0 0 3 0x40014200 bored softclock 4707 15735 0 0 3 0x40014200 idle0 65887 360603 0 0 3 0x14200 bored smr 1 196160 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 55516 (syz-executor.1) thread 0xffff800020b38bd0 (391068) exclusive rwlock art r = 0 (0xffff800000650c98) #0 witness_lock+0x52e sys/kern/subr_witness.c:1161 #1 rtable_insert+0x142 sys/net/rtable.c:517 #2 rtrequest+0x876 sys/net/route.c:928 #3 rtm_output+0x6e5 sys/net/rtsock.c:896 #4 route_output+0x7d2 sys/net/rtsock.c:814 #5 route_usrreq+0x363 sys/net/rtsock.c:271 #6 sosend+0x668 sys/kern/uipc_socket.c:513 #7 sendit+0x52c sys/kern/uipc_syscalls.c:662 #8 sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 #9 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] #9 syscall+0x552 sys/arch/amd64/amd64/trap.c:574 #10 Xsyscall+0x128 exclusive rwlock netlock r = 0 (0xffffffff821e5b48) #0 witness_lock+0x52e sys/kern/subr_witness.c:1161 #1 rtm_output+0x651 sys/net/rtsock.c:892 #2 route_output+0x7d2 sys/net/rtsock.c:814 #3 route_usrreq+0x363 sys/net/rtsock.c:271 #4 sosend+0x668 sys/kern/uipc_socket.c:513 #5 sendit+0x52c sys/kern/uipc_syscalls.c:662 #6 sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 #7 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] #7 syscall+0x552 sys/arch/amd64/amd64/trap.c:574 #8 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8237deb8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1161 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 sosend+0x52c sys/kern/uipc_socket.c:501 #3 sendit+0x52c sys/kern/uipc_syscalls.c:662 #4 sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 #5 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] #5 syscall+0x552 sys/arch/amd64/amd64/trap.c:574 #6 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9527 6435K 10687K 78643K 18042 0 0 pcb 26 9K 12K 78643K 1913 0 0 rtable 126 6K 6K 78643K 1014 0 0 ifaddr 60 15K 16K 78643K 416 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1593 0 0 iov 0 0K 24K 78643K 371 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1205 76K 77K 78643K 4346 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 37 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 1K 1K 78643K 258 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 6 17K 25K 78643K 3753 0 0 sigio 0 0K 0K 78643K 45 0 0 proc 54 51K 83K 78643K 820 0 0 subproc 32 2K 2K 78643K 85 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 350 0 0 in_multi 33 2K 2K 78643K 183 0 0 ether_multi 1 0K 0K 78643K 18 0 0 mrt 0 0K 0K 78643K 21 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 457 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 95 21K 31K 78643K 13305 0 0 UVM aobj 130 4K 4K 78643K 157 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 177 0 0 NDP 12 0K 0K 78643K 111 0 0 temp 175 2731K 2822K 78643K 14600 0 0 kqueue 0 0K 0K 78643K 31 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 12 0 6 1 0 1 1 0 8 0 inpcbpl 280 1557 0 1550 1 0 1 1 0 8 0 plimitpl 152 132 0 124 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 102 0 55 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 566 0 562 1 0 1 1 0 8 0 rttmr 72 10 0 10 5 5 0 1 0 8 0 nd6 48 15 0 9 1 0 1 1 0 8 0 ppxss 1128 78 0 78 10 9 1 1 0 8 1 pffrag 232 2 0 2 1 1 0 1 0 482 0 pffrnode 88 2 0 2 1 1 0 1 0 8 0 pffrent 40 8 0 8 2 2 0 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 55 0 49 1 0 1 1 0 8 0 pfstkey 112 55 0 49 1 0 1 1 0 8 0 pfstate 328 55 0 49 2 0 2 2 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 348 0 156 14 2 12 13 0 8 0 art_table 32 349 0 156 2 0 2 2 0 8 0 art_node 16 88 0 47 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 6 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 256 0 246 1 0 1 1 0 8 0 shmpl 112 155 0 27 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7394 0 5941 50 3 47 47 0 8 0 ffsino 272 7394 0 5941 98 0 98 98 0 8 0 nchpl 144 12660 0 11033 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 38846 0 38846 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 5 0 5 5 5 0 1 0 8 0 scxspl 192 37655 0 37655 19 16 3 6 0 8 3 sigapl 432 3945 0 3929 3 1 2 3 0 8 0 futexpl 56 43420 0 43419 2 1 1 1 0 8 0 knotepl 112 670 0 651 1 0 1 1 0 8 0 kqueuepl 104 721 0 719 1 0 1 1 0 8 0 pipepl 112 2066 0 2047 5 4 1 2 0 8 0 fdescpl 488 3946 0 3929 3 0 3 3 0 8 0 filepl 152 22231 0 22128 7 2 5 7 0 8 0 lockfpl 104 1093 0 1093 3 2 1 1 0 8 1 lockfspl 48 383 0 383 3 2 1 1 0 8 1 sessionpl 112 22 0 11 1 0 1 1 0 8 0 pgrppl 48 41 0 30 1 0 1 1 0 8 0 ucredpl 96 4943 0 4934 1 0 1 1 0 8 0 zombiepl 144 3929 0 3929 3 2 1 1 0 8 1 processpl 888 3962 0 3929 4 0 4 4 0 8 0 procpl 600 12303 0 12258 5 1 4 5 0 8 0 srpgc 64 24 0 24 7 7 0 1 0 8 0 sosppl 128 37 0 37 9 9 0 1 0 8 0 sockpl 384 3232 0 3212 5 2 3 4 0 8 1 mcl64k 65536 524 0 0 65 9 56 65 0 8 1 mcl16k 16384 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 37 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 13 0 0 2 0 2 2 0 8 0 mcl4k 4096 18 0 0 3 1 2 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 123 0 0 14 0 14 14 0 8 0 mtagpl 80 3 0 0 1 0 1 1 0 8 0 mbufpl 256 711 0 0 36 0 36 36 0 8 0 bufpl 256 13541 0 6533 439 0 439 439 0 8 0 anonpl 16 330940 0 320415 116 71 45 58 0 125 2 amapchunkpl 152 23025 0 22908 32 26 6 12 0 158 0 amappl16 192 18339 0 17774 97 67 30 40 0 8 1 amappl15 184 609 0 609 1 1 0 1 0 8 0 amappl14 176 656 0 654 2 1 1 1 0 8 0 amappl13 168 1860 0 1858 2 1 1 1 0 8 0 amappl12 160 13 0 11 1 0 1 1 0 8 0 amappl11 152 515 0 495 1 0 1 1 0 8 0 amappl10 144 856 0 852 1 0 1 1 0 8 0 amappl9 136 636 0 633 1 0 1 1 0 8 0 amappl8 128 169 0 153 1 0 1 1 0 8 0 amappl7 120 823 0 816 1 0 1 1 0 8 0 amappl6 112 507 0 495 1 0 1 1 0 8 0 amappl5 104 178 0 163 1 0 1 1 0 8 0 amappl4 96 5657 0 5629 1 0 1 1 0 8 0 amappl3 88 321 0 309 1 0 1 1 0 8 0 amappl2 80 31094 0 31014 4 2 2 3 0 8 0 amappl1 72 93725 0 93257 25 15 10 20 0 8 0 amappl 80 12605 0 12564 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 156 0 27 3 0 3 3 0 8 0 uaddrrnd 24 3946 0 3929 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3946 0 3929 1 0 1 1 0 8 0 vmmpekpl 168 34844 0 34817 2 0 2 2 0 8 0 vmmpepl 168 416710 0 414985 163 86 77 90 0 357 2 vmsppl 360 3945 0 3929 2 0 2 2 0 8 0 pdppl 4096 7899 0 7858 7 1 6 6 0 8 0 pvpl 32 957340 0 943484 257 138 119 151 0 265 5 pmappl 232 3945 0 3929 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 691 0 18 20 0 20 20 0 8 0