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 *239805 15941 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(ffffffff81f82a32,ffffffff81f41859,239,ffffffff81f1e22b) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff80000005cbc0,0,ffff8000009e6690,38,fffffd80311f7938) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff8000159ed190,38,ffff8000159ed108,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009e6600,ffff8000159ed238,ffff8000159ed190,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803f02f200,fffffd803761ba80,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd803761ba80,9,fffffd803f02f200,0,0,ffff8000159f8018) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd803761ba80,0,ffff8000159ed430,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000159f8018,3,ffff8000159ed510,0,ffff8000159ed620) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000159f8018,ffff8000159ed5b8,ffff8000159ed620) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000159ed690) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,a72fa453010) at Xsyscall+0x128 end of kernel end trace frame: 0xa757257d250, 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,ffff80000005cbc0,0,ffff8000009e6690,38,fffffd80311f7938) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff8000159ed190,38,ffff8000159ed108,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009e6600,ffff8000159ed238,ffff8000159ed190,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803f02f200,fffffd803761ba80,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd803761ba80,9,fffffd803f02f200,0,0,ffff8000159f8018) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd803761ba80,0,ffff8000159ed430,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000159f8018,3,ffff8000159ed510,0,ffff8000159ed620) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000159f8018,ffff8000159ed5b8,ffff8000159ed620) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000159ed690) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,a72fa453010) at Xsyscall+0x128 end of kernel end trace frame: 0xa757257d250, count: -13 ddb> show registers rdi 0xffffffff8152b5b7 db_enter+0x17 rsi 0x507b __ALIGN_SIZE+0x407b rbp 0xffff8000159ece50 rbx 0xffff8000159ecf00 rdx 0x507c __ALIGN_SIZE+0x407c rcx 0xffff800015a1c000 rax 0xffff800015a1c000 r8 0xffff8000159ece10 r9 0x1 r10 0xffff800000985b80 r11 0x4b10ad3696d3d7b6 r12 0x3000000008 r13 0xffff8000159ece60 r14 0x100 r15 0x1 rip 0xffffffff8152b5b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000159ece40 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=239805 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000159f8720,0xffffffff8227f910 process=0xffff8000ffff73c0 user=0xffff8000159e8000, vmspace=0xfffffd803f013b58 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 15941 121061 73461 0 2 0 syz-executor.1 *15941 239805 73461 0 7 0x4000000 syz-executor.1 73461 418073 80549 0 2 0x482 syz-executor.1 26671 13311 80549 0 2 0x2 syz-executor.0 8344 220669 1 0 3 0x100083 ttyin getty 45291 416660 0 0 3 0x14200 bored sosplice 80549 156766 77152 0 3 0x82 thrsleep syz-fuzzer 80549 11833 77152 0 3 0x4000082 thrsleep syz-fuzzer 80549 292599 77152 0 3 0x4000082 thrsleep syz-fuzzer 80549 270442 77152 0 3 0x4000082 thrsleep syz-fuzzer 80549 131770 77152 0 3 0x4000082 thrsleep syz-fuzzer 80549 155983 77152 0 3 0x4000082 kqread syz-fuzzer 80549 277062 77152 0 3 0x4000082 thrsleep syz-fuzzer 80549 99967 77152 0 3 0x4000082 thrsleep syz-fuzzer 77152 106531 88818 0 3 0x10008a pause ksh 88818 341992 39024 0 3 0x92 select sshd 39024 392653 1 0 3 0x80 select sshd 99557 467592 35460 73 3 0x100090 kqread syslogd 35460 45977 1 0 3 0x100082 netio syslogd 49950 418579 1 77 3 0x100090 poll dhclient 89821 232505 1 0 3 0x80 poll dhclient 73227 466187 0 0 2 0x14200 zerothread 54280 233323 0 0 3 0x14200 aiodoned aiodoned 5556 77189 0 0 3 0x14200 syncer update 88604 277529 0 0 3 0x14200 cleaner cleaner 21663 426586 0 0 3 0x14200 reaper reaper 53408 480113 0 0 3 0x14200 pgdaemon pagedaemon 33993 156152 0 0 3 0x14200 bored crynlk 84519 109490 0 0 3 0x14200 bored crypto 99646 424068 0 0 3 0x40014200 acpi0 acpi0 54927 88238 0 0 3 0x14200 bored softnet 1028 349428 0 0 2 0x14200 systqmp 9880 130296 0 0 3 0x14200 bored systq 60924 265176 0 0 3 0x40014200 bored softclock 54523 363140 0 0 3 0x40014200 idle0 61322 65076 0 0 3 0x14200 bored smr 1 192940 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 9540 6381K 14811K 78643K 27236 0 0 pcb 24 9K 11K 78643K 4198 0 0 rtable 149 6K 6K 78643K 1896 0 0 ifaddr 66 17K 19K 78643K 699 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 380 0 0 iov 0 0K 32K 78643K 1021 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1204 76K 76K 78643K 8730 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 90 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 507 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 9052 0 0 sigio 0 0K 0K 78643K 93 0 0 proc 42 30K 46K 78643K 1638 0 0 subproc 32 2K 2K 78643K 189 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 865 0 0 in_multi 33 2K 2K 78643K 390 0 0 ether_multi 1 0K 0K 78643K 38 0 0 mrt 0 0K 0K 78643K 17 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 965 0 0 pfkey data 0 0K 0K 78643K 8 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 39K 78643K 22048 0 0 UVM aobj 130 8K 8K 78643K 147 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 274 0 0 NDP 14 0K 0K 78643K 194 0 0 temp 189 2715K 3355K 78643K 29812 0 0 kqueue 0 0K 0K 78643K 86 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 24 0 18 1 0 1 1 0 8 0 inpcbpl 280 3316 0 3309 1 0 1 1 0 8 0 plimitpl 152 218 0 211 1 0 1 1 0 8 0 rtentry 112 186 0 133 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 1201 0 1197 1 0 1 1 0 8 0 nd6 48 33 0 27 2 1 1 1 0 8 0 ppxss 1128 132 0 132 36 35 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 629 0 425 15 2 13 13 0 8 0 art_table 32 631 0 425 2 0 2 2 0 8 0 art_node 16 152 0 109 1 0 1 1 0 8 0 sysvmsgpl 40 31 0 18 1 0 1 1 0 8 0 semapl 112 505 0 495 1 0 1 1 0 8 0 shmpl 112 145 0 17 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 16673 0 15139 50 0 50 50 0 8 0 ffsino 240 16673 0 15139 91 0 91 91 0 8 0 nchpl 144 29412 0 27795 61 0 61 61 0 8 0 uvmvnodes 72 6786 0 0 124 0 124 124 0 8 0 vnodes 200 6786 0 0 358 0 358 358 0 8 0 namei 1024 92895 0 92894 8 7 1 1 0 8 0 scsiplug 64 16 0 16 12 12 0 1 0 8 0 scxspl 192 99484 0 99484 49 48 1 6 0 8 1 sigapl 432 9202 0 9189 2 0 2 2 0 8 0 futexpl 56 133659 0 133659 9 8 1 1 0 8 1 knotepl 112 1756 0 1737 1 0 1 1 0 8 0 kqueuepl 104 1931 0 1929 1 0 1 1 0 8 0 pipepl 112 4786 0 4767 17 16 1 2 0 8 0 fdescpl 424 9203 0 9189 2 0 2 2 0 8 0 filepl 120 53032 0 52937 11 7 4 6 0 8 1 lockfpl 104 3508 0 3508 12 11 1 1 0 8 1 lockfspl 48 1159 0 1159 12 11 1 1 0 8 1 sessionpl 112 32 0 22 1 0 1 1 0 8 0 pgrppl 48 142 0 132 1 0 1 1 0 8 0 ucredpl 96 12743 0 12736 1 0 1 1 0 8 0 zombiepl 144 9189 0 9189 2 1 1 1 0 8 1 processpl 840 9218 0 9189 4 0 4 4 0 8 0 procpl 600 20536 0 20499 4 0 4 4 0 8 0 sosppl 128 111 0 111 33 33 0 1 0 8 0 sockpl 384 7099 0 7081 15 12 3 4 0 8 1 mcl64k 65536 937 0 937 114 114 0 29 0 8 0 mcl16k 16384 21 0 21 16 16 0 1 0 8 0 mcl12k 12288 150 0 150 36 35 1 1 0 8 1 mcl9k 9216 115 0 115 38 38 0 1 0 8 0 mcl8k 8192 98 0 98 34 34 0 1 0 8 0 mcl4k 4096 319 0 319 27 26 1 1 0 8 1 mcl2k2 2112 49 0 49 26 26 0 1 0 8 0 mcl2k 2048 66194 0 66158 21 16 5 9 0 8 0 mtagpl 80 20 0 20 8 8 0 1 0 8 0 mbufpl 256 150620 0 150551 53 46 7 19 0 8 0 bufpl 256 29333 0 22518 427 0 427 427 0 8 0 anonpl 16 810419 0 800908 330 275 55 59 0 62 11 amapchunkpl 152 39748 0 39663 115 104 11 14 0 158 6 amappl16 192 50737 0 50212 318 282 36 39 0 8 8 amappl15 184 1107 0 1107 3 3 0 1 0 8 0 amappl14 176 1201 0 1197 1 0 1 1 0 8 0 amappl13 168 1608 0 1606 4 3 1 1 0 8 0 amappl12 160 1573 0 1573 2 2 0 1 0 8 0 amappl11 152 1179 0 1164 1 0 1 1 0 8 0 amappl10 144 87 0 85 1 0 1 1 0 8 0 amappl9 136 1199 0 1194 1 0 1 1 0 8 0 amappl8 128 745 0 720 1 0 1 1 0 8 0 amappl7 120 70 0 64 1 0 1 1 0 8 0 amappl6 112 1159 0 1151 1 0 1 1 0 8 0 amappl5 104 1821 0 1811 1 0 1 1 0 8 0 amappl4 96 8050 0 8024 1 0 1 1 0 8 0 amappl3 88 2005 0 1995 1 0 1 1 0 8 0 amappl2 80 73832 0 73766 3 1 2 3 0 8 0 amappl1 72 169170 0 168749 25 15 10 19 0 8 0 amappl 80 21022 0 20989 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 146 0 17 3 0 3 3 0 8 0 uaddrrnd 24 9203 0 9189 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 9203 0 9189 1 0 1 1 0 8 0 vmmpekpl 168 55773 0 55746 2 0 2 2 0 8 0 vmmpepl 168 918927 0 917413 295 218 77 98 0 357 5 vmsppl 264 9202 0 9189 4 3 1 2 0 8 0 pdppl 4096 18412 0 18378 6 1 5 6 0 8 0 pvpl 32 2472485 0 2459809 776 594 182 257 0 265 72 pmappl 200 9202 0 9189 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 820 0 264 21 4 17 18 0 8 0