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 *510554 54427 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(ffffffff81f7aa47,ffffffff81f39f83,239,ffffffff81f1656f) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff800000997680,0,ffff8000009ea890,38,fffffd8030291158) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff8000149e9ae0,38,ffff8000149e9a58,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009ea800,ffff8000149e9b88,ffff8000149e9ae0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803f028000,fffffd80363e6d88,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363e6d88,9,fffffd803f028000,0,0,ffff8000149519e0) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363e6d88,0,ffff8000149e9d80,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000149519e0,3,ffff8000149e9e60,0,ffff8000149e9f70) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000149519e0,ffff8000149e9f08,ffff8000149e9f70) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000149e9fe0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,7fcae59f010) at Xsyscall+0x128 end of kernel end trace frame: 0x7ff20d22040, 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(ffffffff81f7aa47,ffffffff81f39f83,239,ffffffff81f1656f) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff800000997680,0,ffff8000009ea890,38,fffffd8030291158) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff8000149e9ae0,38,ffff8000149e9a58,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009ea800,ffff8000149e9b88,ffff8000149e9ae0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd803f028000,fffffd80363e6d88,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363e6d88,9,fffffd803f028000,0,0,ffff8000149519e0) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363e6d88,0,ffff8000149e9d80,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000149519e0,3,ffff8000149e9e60,0,ffff8000149e9f70) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000149519e0,ffff8000149e9f08,ffff8000149e9f70) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000149e9fe0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,7fcae59f010) at Xsyscall+0x128 end of kernel end trace frame: 0x7ff20d22040, count: -13 ddb> show registers rdi 0xffffffff81e3dd87 db_enter+0x17 rsi 0x4c4b __ALIGN_SIZE+0x3c4b rbp 0xffff8000149e97a0 rbx 0xffff8000149e9850 rdx 0x4c4c __ALIGN_SIZE+0x3c4c rcx 0xffff8000149f1000 rax 0xffff8000149f1000 r8 0xffff8000149e9760 r9 0x1 r10 0xffff80000098fdc0 r11 0x1b220ef6ec187bc2 r12 0x3000000008 r13 0xffff8000149e97b0 r14 0x100 r15 0x1 rip 0xffffffff81e3dd88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149e9790 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=510554 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800014950270,0xffffffff822b6920 process=0xffff8000ffff73c0 user=0xffff8000149e5000, vmspace=0xfffffd803f00cc60 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 54427 79577 33392 0 2 0 syz-executor.1 *54427 510554 33392 0 7 0x4000000 syz-executor.1 49715 194081 65666 0 3 0x80 nanosleep syz-executor.0 49715 197887 65666 0 3 0x4000080 fsleep syz-executor.0 49715 327851 65666 0 3 0x4000080 ttyin syz-executor.0 49715 417613 65666 0 3 0x4000080 fsleep syz-executor.0 65666 5448 62770 0 3 0x82 nanosleep syz-executor.0 22778 473281 0 0 3 0x14200 bored sosplice 33392 339070 62770 0 2 0x482 syz-executor.1 62770 274012 10249 0 3 0x82 thrsleep syz-fuzzer 62770 164671 10249 0 3 0x4000082 thrsleep syz-fuzzer 62770 37922 10249 0 3 0x4000082 thrsleep syz-fuzzer 62770 17985 10249 0 3 0x4000082 thrsleep syz-fuzzer 62770 417640 10249 0 3 0x4000082 thrsleep syz-fuzzer 62770 297720 10249 0 3 0x4000082 kqread syz-fuzzer 62770 296574 10249 0 3 0x4000082 thrsleep syz-fuzzer 62770 281577 10249 0 3 0x4000082 thrsleep syz-fuzzer 10249 282654 73701 0 3 0x10008a pause ksh 73701 82531 42403 0 3 0x92 select sshd 6816 73964 1 0 3 0x100083 ttyin getty 42403 66925 1 0 3 0x80 select sshd 36687 304897 97567 73 3 0x100090 kqread syslogd 97567 68145 1 0 3 0x100082 netio syslogd 48937 370415 1 77 3 0x100090 poll dhclient 1707 53282 1 0 3 0x80 poll dhclient 4397 320733 0 0 2 0x14200 zerothread 54154 278017 0 0 3 0x14200 aiodoned aiodoned 66148 367911 0 0 3 0x14200 syncer update 32648 509560 0 0 3 0x14200 cleaner cleaner 95480 499050 0 0 3 0x14200 reaper reaper 26360 370467 0 0 3 0x14200 pgdaemon pagedaemon 91861 281852 0 0 3 0x14200 bored crynlk 89075 248699 0 0 3 0x14200 bored crypto 45939 377165 0 0 3 0x40014200 acpi0 acpi0 83745 446422 0 0 3 0x14200 bored softnet 32168 267041 0 0 2 0x14200 systqmp 9503 490316 0 0 3 0x14200 bored systq 31765 387370 0 0 3 0x40014200 bored softclock 37064 455616 0 0 3 0x40014200 idle0 74936 101117 0 0 3 0x14200 bored smr 1 391099 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 9532 7000K 14534K 78643K 20223 0 0 pcb 24 9K 11K 78643K 2626 0 0 rtable 122 5K 5K 78643K 1253 0 0 ifaddr 65 17K 19K 78643K 584 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 238 0 0 iov 0 0K 32K 78643K 736 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1198 75K 77K 78643K 5559 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 51 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 291 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 5450 0 0 sigio 0 0K 0K 78643K 129 0 0 proc 45 38K 54K 78643K 956 0 0 subproc 32 2K 2K 78643K 51 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 570 0 0 in_multi 33 2K 2K 78643K 185 0 0 ether_multi 1 0K 0K 78643K 30 0 0 mrt 0 0K 0K 78643K 14 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 585 0 0 pfkey data 0 0K 4K 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 94 21K 31K 78643K 13635 0 0 UVM aobj 130 5K 5K 78643K 156 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 231 0 0 NDP 14 0K 0K 78643K 155 0 0 temp 188 2715K 3355K 78643K 19157 0 0 kqueue 0 0K 0K 78643K 50 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 8 0 2 1 0 1 1 0 8 0 inpcbpl 280 2161 0 2154 2 1 1 2 0 8 0 plimitpl 152 134 0 127 1 0 1 1 0 8 0 rtentry 112 73 0 27 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 5 0 5 1 1 0 1 0 8 0 tcpcb 544 766 0 762 1 0 1 1 0 8 0 nd6 48 9 0 3 1 0 1 1 0 8 0 ppxss 1128 116 0 116 22 21 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 241 0 44 13 0 13 13 0 8 0 art_table 32 242 0 44 2 0 2 2 0 8 0 art_node 16 57 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 10 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 289 0 279 1 0 1 1 0 8 0 shmpl 112 154 0 26 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 10791 0 9308 49 1 48 48 0 8 0 ffsino 240 10791 0 9308 91 3 88 88 0 8 0 nchpl 144 18591 0 16963 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 59465 0 59465 3 2 1 1 0 8 1 scsiplug 64 11 0 11 8 7 1 1 0 8 1 scxspl 192 60635 0 60635 34 31 3 6 0 8 3 sigapl 432 5618 0 5604 2 0 2 2 0 8 0 futexpl 56 83950 0 83948 2 1 1 1 0 8 0 knotepl 112 1071 0 1052 1 0 1 1 0 8 0 kqueuepl 104 1249 0 1247 1 0 1 1 0 8 0 pipepl 112 3314 0 3295 12 11 1 2 0 8 0 fdescpl 424 5619 0 5604 2 0 2 2 0 8 0 filepl 120 33678 0 33578 6 2 4 5 0 8 0 lockfpl 104 1834 0 1834 6 5 1 1 0 8 1 lockfspl 48 620 0 620 6 5 1 1 0 8 1 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 98 0 88 1 0 1 1 0 8 0 ucredpl 96 8330 0 8323 1 0 1 1 0 8 0 zombiepl 144 5604 0 5604 2 1 1 1 0 8 1 processpl 840 5634 0 5604 4 0 4 4 0 8 0 procpl 600 12699 0 12658 4 0 4 4 0 8 0 sosppl 128 81 0 81 15 14 1 1 0 8 1 sockpl 384 4494 0 4476 9 6 3 4 0 8 1 mcl64k 65536 1960 0 1958 145 143 2 33 0 8 0 mcl16k 16384 20 0 20 14 14 0 1 0 8 0 mcl12k 12288 101 0 101 18 17 1 1 0 8 1 mcl9k 9216 81 0 81 15 15 0 1 0 8 0 mcl8k 8192 78 0 78 24 23 1 1 0 8 1 mcl4k 4096 216 0 216 7 6 1 1 0 8 1 mcl2k2 2112 32 0 32 19 19 0 1 0 8 0 mcl2k 2048 60700 0 60655 24 17 7 11 0 8 1 mtagpl 80 6 0 6 3 3 0 1 0 8 0 mbufpl 256 126647 0 126573 88 80 8 22 0 8 1 bufpl 256 20543 0 14872 355 0 355 355 0 8 0 anonpl 16 488940 0 479526 224 182 42 55 0 62 0 amapchunkpl 152 23036 0 22944 62 57 5 18 0 158 0 amappl16 192 30229 0 29720 215 188 27 38 0 8 1 amappl14 176 49 0 46 2 1 1 1 0 8 0 amappl13 168 2667 0 2665 1 0 1 1 0 8 0 amappl12 160 2730 0 2727 2 1 1 1 0 8 0 amappl11 152 56 0 42 1 0 1 1 0 8 0 amappl10 144 73 0 69 2 1 1 1 0 8 0 amappl9 136 562 0 559 1 0 1 1 0 8 0 amappl8 128 149 0 127 1 0 1 1 0 8 0 amappl7 120 37 0 32 1 0 1 1 0 8 0 amappl6 112 53 0 47 1 0 1 1 0 8 0 amappl5 104 2895 0 2883 1 0 1 1 0 8 0 amappl4 96 4044 0 4022 1 0 1 1 0 8 0 amappl3 88 2078 0 2068 1 0 1 1 0 8 0 amappl2 80 44618 0 44545 4 2 2 3 0 8 0 amappl1 72 109184 0 108750 26 17 9 19 0 8 0 amappl 80 12981 0 12944 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 155 0 26 3 0 3 3 0 8 0 uaddrrnd 24 5619 0 5604 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5619 0 5604 1 0 1 1 0 8 0 vmmpekpl 168 37384 0 37362 2 0 2 2 0 8 0 vmmpepl 168 563332 0 561755 224 153 71 82 0 357 2 vmsppl 264 5618 0 5604 2 1 1 2 0 8 0 pdppl 4096 11245 0 11208 6 1 5 6 0 8 0 pvpl 32 1353288 0 1340656 440 263 177 201 0 265 70 pmappl 200 5618 0 5604 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 777 0 291 15 0 15 15 0 8 0