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 *109433 7302 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(ffffffff81f7c399,ffffffff81f3aad6,239,ffffffff81f16fee) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff8000009f8a40,0,ffff800000a09290,38,fffffd80302eb548) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff8000149eddc0,38,ffff8000149edd38,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff800000a09200,ffff8000149ede68,ffff8000149eddc0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8035fa5f00,fffffd80363f3d88,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363f3d88,9,fffffd8035fa5f00,0,0,ffff800017c0c720) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363f3d88,0,ffff8000149ee060,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800017c0c720,3,ffff8000149ee140,0,ffff8000149ee250) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800017c0c720,ffff8000149ee1e8,ffff8000149ee250) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000149ee2c0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,8de3c2fb010) at Xsyscall+0x128 end of kernel end trace frame: 0x8e12558c500, 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,ffff8000009f8a40,0,ffff800000a09290,38,fffffd80302eb548) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff8000149eddc0,38,ffff8000149edd38,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff800000a09200,ffff8000149ede68,ffff8000149eddc0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8035fa5f00,fffffd80363f3d88,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363f3d88,9,fffffd8035fa5f00,0,0,ffff800017c0c720) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363f3d88,0,ffff8000149ee060,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800017c0c720,3,ffff8000149ee140,0,ffff8000149ee250) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800017c0c720,ffff8000149ee1e8,ffff8000149ee250) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000149ee2c0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,8de3c2fb010) at Xsyscall+0x128 end of kernel end trace frame: 0x8e12558c500, count: -13 ddb> show registers rdi 0xffffffff81db3e57 db_enter+0x17 rsi 0x4ecb __ALIGN_SIZE+0x3ecb rbp 0xffff8000149eda80 rbx 0xffff8000149edb30 rdx 0x4ecc __ALIGN_SIZE+0x3ecc rcx 0xffff800016bf7000 rax 0xffff800016bf7000 r8 0xffff8000149eda40 r9 0x1 r10 0xffff800000994840 r11 0x430d1f36859aa4bf r12 0x3000000008 r13 0xffff8000149eda90 r14 0x100 r15 0x1 rip 0xffffffff81db3e58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149eda70 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=109433 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800017c0d788,0xffffffff822b7b98 process=0xffff8000ffff69e8 user=0xffff8000149e9000, vmspace=0xfffffd803f014a50 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 7302 289973 68566 0 2 0 syz-executor.0 * 7302 109433 68566 0 7 0x4000000 syz-executor.0 18909 245537 8127 0 2 0 syz-executor.1 18909 275436 8127 0 3 0x4000080 fsleep syz-executor.1 96129 112903 1 0 3 0x100083 ttyin getty 15860 328158 0 0 3 0x14200 bored sosplice 68566 238380 89693 0 3 0x82 nanosleep syz-executor.0 8127 387853 89693 0 3 0x82 nanosleep syz-executor.1 89693 138765 11351 0 3 0x82 thrsleep syz-fuzzer 89693 244156 11351 0 3 0x4000082 thrsleep syz-fuzzer 89693 384940 11351 0 3 0x4000082 thrsleep syz-fuzzer 89693 376000 11351 0 3 0x4000082 thrsleep syz-fuzzer 89693 164527 11351 0 3 0x4000082 kqread syz-fuzzer 89693 494630 11351 0 3 0x4000082 thrsleep syz-fuzzer 89693 492078 11351 0 3 0x4000082 thrsleep syz-fuzzer 89693 492362 11351 0 3 0x4000082 thrsleep syz-fuzzer 11351 21302 86497 0 3 0x10008a pause ksh 86497 1438 30348 0 3 0x92 select sshd 30348 49689 1 0 3 0x80 select sshd 34554 394425 10574 73 3 0x100090 kqread syslogd 10574 509759 1 0 3 0x100082 netio syslogd 74774 111965 1 77 3 0x100090 poll dhclient 40631 367452 1 0 3 0x80 poll dhclient 45833 337754 0 0 2 0x14200 zerothread 69671 69619 0 0 3 0x14200 aiodoned aiodoned 37132 50191 0 0 3 0x14200 syncer update 64314 413268 0 0 3 0x14200 cleaner cleaner 41059 139044 0 0 3 0x14200 reaper reaper 67664 432461 0 0 3 0x14200 pgdaemon pagedaemon 33486 519935 0 0 3 0x14200 bored crynlk 3486 405750 0 0 3 0x14200 bored crypto 95374 101332 0 0 3 0x40014200 acpi0 acpi0 20560 495108 0 0 3 0x14200 bored softnet 9819 204052 0 0 2 0x14200 systqmp 76555 499311 0 0 3 0x14200 bored systq 26332 194097 0 0 3 0x40014200 bored softclock 22925 192407 0 0 3 0x40014200 idle0 35561 287461 0 0 3 0x14200 bored smr 1 270837 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 9539 6370K 7524K 78643K 16340 0 0 pcb 24 9K 11K 78643K 1904 0 0 rtable 152 6K 6K 78643K 921 0 0 ifaddr 69 16K 16K 78643K 367 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 160 0 0 iov 0 0K 28K 78643K 469 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1197 75K 76K 78643K 3970 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 49 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 198 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 3792 0 0 sigio 0 0K 0K 78643K 66 0 0 proc 42 30K 54K 78643K 791 0 0 subproc 32 2K 2K 78643K 34 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 418 0 0 in_multi 33 2K 2K 78643K 127 0 0 ether_multi 1 0K 0K 78643K 15 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 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 443 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 86 20K 30K 78643K 9753 0 0 UVM aobj 130 4K 4K 78643K 142 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 147 0 0 NDP 15 0K 0K 78643K 97 0 0 temp 192 2716K 3355K 78643K 13884 0 0 kqueue 0 0K 0K 78643K 37 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 6 0 0 1 0 1 1 0 8 0 inpcbpl 280 1575 0 1568 1 0 1 1 0 8 0 plimitpl 152 103 0 96 1 0 1 1 0 8 0 rtentry 112 80 0 24 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 602 0 598 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 66 0 66 17 16 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 200 0 0 13 0 13 13 0 8 0 art_table 32 202 0 0 2 0 2 2 0 8 0 art_node 16 57 0 14 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 4 1 0 1 1 0 8 0 semapl 112 194 0 184 1 0 1 1 0 8 0 shmpl 112 140 0 12 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7782 0 6309 48 0 48 48 0 8 0 ffsino 240 7782 0 6309 87 0 87 87 0 8 0 nchpl 144 13385 0 11755 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 41554 0 41554 3 2 1 1 0 8 1 scsiplug 64 15 0 15 8 8 0 1 0 8 0 scxspl 192 51735 0 51735 28 26 2 6 0 8 2 sigapl 432 3968 0 3954 2 0 2 2 0 8 0 futexpl 56 57751 0 57750 2 1 1 1 0 8 0 knotepl 112 685 0 666 1 0 1 1 0 8 0 kqueuepl 104 822 0 820 1 0 1 1 0 8 0 pipepl 112 2364 0 2345 7 6 1 2 0 8 0 fdescpl 424 3969 0 3954 2 0 2 2 0 8 0 filepl 120 23403 0 23308 6 2 4 5 0 8 1 lockfpl 104 1269 0 1269 4 3 1 1 0 8 1 lockfspl 48 422 0 422 4 3 1 1 0 8 1 sessionpl 112 22 0 12 1 0 1 1 0 8 0 pgrppl 48 62 0 52 1 0 1 1 0 8 0 ucredpl 96 5549 0 5542 1 0 1 1 0 8 0 zombiepl 144 3954 0 3954 2 1 1 1 0 8 1 processpl 840 3984 0 3954 4 0 4 4 0 8 0 procpl 600 8900 0 8861 4 0 4 4 0 8 0 sosppl 128 43 0 43 13 13 0 1 0 8 0 sockpl 384 3260 0 3242 6 3 3 4 0 8 1 mcl64k 65536 342 0 342 41 40 1 29 0 8 1 mcl16k 16384 6 0 6 6 6 0 1 0 8 0 mcl12k 12288 60 0 60 15 15 0 1 0 8 0 mcl9k 9216 68 0 68 14 13 1 1 0 8 1 mcl8k 8192 56 0 56 13 12 1 1 0 8 1 mcl4k 4096 147 0 147 8 7 1 1 0 8 1 mcl2k2 2112 15 0 15 9 8 1 1 0 8 1 mcl2k 2048 57323 0 57287 14 8 6 8 0 8 1 mtagpl 80 5 0 5 3 3 0 1 0 8 0 mbufpl 256 111727 0 111665 22 15 7 19 0 8 0 bufpl 256 19997 0 12538 532 62 470 532 0 8 0 anonpl 16 345402 0 336280 179 134 45 55 0 62 7 amapchunkpl 152 15800 0 15712 36 27 9 11 0 158 4 amappl16 192 21714 0 21220 158 132 26 37 0 8 1 amappl15 184 2 0 1 1 0 1 1 0 8 0 amappl14 176 39 0 37 2 1 1 1 0 8 0 amappl12 160 3772 0 3768 2 1 1 1 0 8 0 amappl11 152 51 0 38 1 0 1 1 0 8 0 amappl10 144 75 0 73 1 0 1 1 0 8 0 amappl9 136 517 0 514 1 0 1 1 0 8 0 amappl8 128 137 0 120 1 0 1 1 0 8 0 amappl7 120 31 0 27 1 0 1 1 0 8 0 amappl6 112 52 0 45 1 0 1 1 0 8 0 amappl5 104 3982 0 3970 1 0 1 1 0 8 0 amappl4 96 2258 0 2234 1 0 1 1 0 8 0 amappl3 88 2167 0 2154 1 0 1 1 0 8 0 amappl2 80 30976 0 30903 4 2 2 3 0 8 0 amappl1 72 78649 0 78221 24 15 9 19 0 8 0 amappl 80 9180 0 9145 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 141 0 12 3 0 3 3 0 8 0 uaddrrnd 24 3969 0 3954 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3969 0 3954 1 0 1 1 0 8 0 vmmpekpl 168 29645 0 29619 2 0 2 2 0 8 0 vmmpepl 168 403415 0 401861 171 101 70 80 0 357 2 vmsppl 264 3968 0 3954 2 1 1 2 0 8 0 pdppl 4096 7944 0 7908 6 1 5 6 0 8 0 pvpl 32 953246 0 940979 316 186 130 140 0 265 29 pmappl 200 3968 0 3954 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 753 0 155 20 1 19 19 0 8 0