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 *406493 51303 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(ffffffff81f7e162,ffffffff81f3c86c,239,ffffffff81f191fc) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff800000980c80,0,ffff800000a0d890,38,fffffd8037845158) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff8000149c2110,38,ffff8000149c2088,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff800000a0d800,ffff8000149c21b8,ffff8000149c2110,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8038566f00,fffffd80363e8a88,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363e8a88,9,fffffd8038566f00,0,0,ffff800014950bd0) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363e8a88,0,ffff8000149c23b0,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800014950bd0,3,ffff8000149c2490,0,ffff8000149c25a0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800014950bd0,ffff8000149c2538,ffff8000149c25a0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000149c2610) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,d068c6b4010) at Xsyscall+0x128 end of kernel end trace frame: 0xd088fe86080, 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(ffffffff81f7e162,ffffffff81f3c86c,239,ffffffff81f191fc) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff800000980c80,0,ffff800000a0d890,38,fffffd8037845158) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff8000149c2110,38,ffff8000149c2088,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff800000a0d800,ffff8000149c21b8,ffff8000149c2110,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8038566f00,fffffd80363e8a88,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363e8a88,9,fffffd8038566f00,0,0,ffff800014950bd0) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363e8a88,0,ffff8000149c23b0,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800014950bd0,3,ffff8000149c2490,0,ffff8000149c25a0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800014950bd0,ffff8000149c2538,ffff8000149c25a0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000149c2610) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,d068c6b4010) at Xsyscall+0x128 end of kernel end trace frame: 0xd088fe86080, count: -13 ddb> show registers rdi 0xffffffff814f7a27 db_enter+0x17 rsi 0x4cb1 __ALIGN_SIZE+0x3cb1 rbp 0xffff8000149c1dd0 rbx 0xffff8000149c1e80 rdx 0x4cb2 __ALIGN_SIZE+0x3cb2 rcx 0xffff800017bf7000 rax 0xffff800017bf7000 r8 0xffff8000149c1d90 r9 0x1 r10 0xffff800000995180 r11 0xa85346fb7c8d9289 r12 0x3000000008 r13 0xffff8000149c1de0 r14 0x100 r15 0x1 rip 0xffffffff814f7a28 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149c1dc0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=406493 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800014950018,0xffffffff822ccf20 process=0xffff8000ffff73c0 user=0xffff8000149bd000, vmspace=0xfffffd803f00b318 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 51303 267561 40243 0 2 0 syz-executor.1 *51303 406493 40243 0 7 0x4000000 syz-executor.1 40243 204012 50394 0 2 0x482 syz-executor.1 6826 84670 1 0 3 0x100083 ttyin getty 78499 249858 0 0 3 0x14200 bored sosplice 53799 360179 50394 0 2 0x2 syz-executor.0 50394 222527 72914 0 3 0x82 thrsleep syz-fuzzer 50394 259130 72914 0 3 0x4000082 nanosleep syz-fuzzer 50394 374324 72914 0 3 0x4000082 thrsleep syz-fuzzer 50394 146588 72914 0 3 0x4000082 thrsleep syz-fuzzer 50394 184377 72914 0 3 0x4000082 thrsleep syz-fuzzer 50394 64544 72914 0 3 0x4000082 kqread syz-fuzzer 50394 185654 72914 0 3 0x4000082 thrsleep syz-fuzzer 50394 89913 72914 0 3 0x4000082 thrsleep syz-fuzzer 72914 259686 51610 0 3 0x10008a pause ksh 51610 351675 2396 0 3 0x92 select sshd 2396 69617 1 0 3 0x80 select sshd 2839 368005 11673 73 3 0x100090 kqread syslogd 11673 495058 1 0 3 0x100082 netio syslogd 70000 109630 1 77 3 0x100090 poll dhclient 35108 341442 1 0 3 0x80 poll dhclient 1322 132690 0 0 2 0x14200 zerothread 12201 254570 0 0 3 0x14200 aiodoned aiodoned 72920 317769 0 0 3 0x14200 syncer update 13862 402299 0 0 3 0x14200 cleaner cleaner 44979 433549 0 0 3 0x14200 reaper reaper 90351 310313 0 0 3 0x14200 pgdaemon pagedaemon 45071 210111 0 0 3 0x14200 bored crynlk 85918 470544 0 0 3 0x14200 bored crypto 50565 8546 0 0 3 0x40014200 acpi0 acpi0 35376 520847 0 0 3 0x14200 bored softnet 98566 304646 0 0 2 0x14200 systqmp 69301 9261 0 0 3 0x14200 bored systq 84590 442826 0 0 3 0x40014200 bored softclock 63953 307024 0 0 3 0x40014200 idle0 25063 96573 0 0 3 0x14200 bored smr 1 295389 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 9579 6523K 14585K 78643K 37217 0 0 pcb 24 9K 11K 78643K 6880 0 0 rtable 152 6K 6K 78643K 2851 0 0 ifaddr 74 22K 26K 78643K 1304 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 457 0 0 iov 0 0K 24K 78643K 1678 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1197 75K 77K 78643K 12672 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 161 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 953 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 13809 0 0 sigio 0 0K 0K 78643K 196 0 0 proc 42 30K 62K 78643K 1751 0 0 subproc 32 2K 2K 78643K 73 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 1240 0 0 in_multi 33 2K 2K 78643K 486 0 0 ether_multi 1 0K 0K 78643K 74 0 0 mrt 0 0K 0K 78643K 19 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 1155 0 0 pfkey data 0 0K 4K 78643K 16 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 96 21K 39K 78643K 33152 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 1K 78643K 574 0 0 NDP 17 0K 0K 78643K 351 0 0 temp 216 2716K 3356K 78643K 43833 0 0 kqueue 0 0K 0K 78643K 123 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 5503 0 5496 1 0 1 1 0 8 0 plimitpl 152 317 0 310 1 0 1 1 0 8 0 rtentry 112 132 0 78 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 2 0 2 1 1 0 1 0 8 0 tcpcb 544 2118 0 2114 1 0 1 1 0 8 0 nd6 48 9 0 3 1 0 1 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 277 0 277 36 35 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 279 0 50 15 0 15 15 0 8 0 art_table 32 280 0 50 2 0 2 2 0 8 0 art_node 16 67 0 24 1 0 1 1 0 8 0 sysvmsgpl 40 42 0 22 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 951 0 941 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 24910 0 23311 52 0 52 52 0 8 0 ffsino 240 24910 0 23311 95 0 95 95 0 8 0 nchpl 144 44243 0 42633 61 0 61 61 0 8 0 uvmvnodes 72 7091 0 0 129 0 129 129 0 8 0 vnodes 200 7091 0 0 374 0 374 374 0 8 0 namei 1024 140312 0 140312 4 3 1 1 0 8 1 scsiplug 64 31 0 31 21 21 0 1 0 8 0 scxspl 192 145472 0 145472 53 52 1 6 0 8 1 sigapl 432 13980 0 13967 2 0 2 2 0 8 0 futexpl 56 214502 0 214502 4 3 1 1 0 8 1 knotepl 112 2466 0 2447 2 1 1 2 0 8 0 kqueuepl 104 3216 0 3214 1 0 1 1 0 8 0 pipepl 112 7724 0 7705 16 15 1 2 0 8 0 fdescpl 424 13981 0 13967 2 0 2 2 0 8 0 filepl 120 83530 0 83435 9 5 4 6 0 8 1 lockfpl 104 4672 0 4672 5 4 1 1 0 8 1 lockfspl 48 1601 0 1601 5 4 1 1 0 8 1 sessionpl 112 21 0 11 1 0 1 1 0 8 0 pgrppl 48 151 0 141 1 0 1 1 0 8 0 ucredpl 96 19965 0 19958 1 0 1 1 0 8 0 zombiepl 144 13967 0 13967 3 2 1 1 0 8 1 processpl 840 13996 0 13967 4 0 4 4 0 8 0 procpl 600 31789 0 31752 4 0 4 4 0 8 0 sosppl 128 168 0 168 39 39 0 1 0 8 0 sockpl 384 11668 0 11650 10 7 3 4 0 8 1 mcl64k 65536 2548 0 2548 256 255 1 65 0 8 1 mcl16k 16384 48 0 48 30 30 0 1 0 8 0 mcl12k 12288 268 0 268 25 24 1 1 0 8 1 mcl9k 9216 230 0 230 34 33 1 1 0 8 1 mcl8k 8192 203 0 203 39 38 1 1 0 8 1 mcl4k 4096 537 0 537 10 9 1 1 0 8 1 mcl2k2 2112 102 0 102 42 41 1 1 0 8 1 mcl2k 2048 75076 0 75033 32 26 6 11 0 8 0 mtagpl 80 26 0 26 11 11 0 1 0 8 0 mbufpl 256 190006 0 189937 125 118 7 38 0 8 0 bufpl 256 43991 0 36901 444 0 444 444 0 8 0 anonpl 16 1200307 0 1190513 353 306 47 58 0 62 2 amapchunkpl 152 57321 0 57236 168 163 5 18 0 158 0 amappl16 192 67822 0 67290 400 372 28 41 0 8 0 amappl15 184 6889 0 6888 1 0 1 1 0 8 0 amappl14 176 6968 0 6965 2 1 1 1 0 8 0 amappl13 168 4466 0 4466 3 3 0 1 0 8 0 amappl12 160 2386 0 2382 1 0 1 1 0 8 0 amappl11 152 54 0 40 1 0 1 1 0 8 0 amappl10 144 75 0 72 1 0 1 1 0 8 0 amappl9 136 577 0 574 1 0 1 1 0 8 0 amappl8 128 158 0 134 1 0 1 1 0 8 0 amappl7 120 36 0 32 1 0 1 1 0 8 0 amappl6 112 64 0 58 1 0 1 1 0 8 0 amappl5 104 2589 0 2577 1 0 1 1 0 8 0 amappl4 96 11692 0 11668 1 0 1 1 0 8 0 amappl3 88 14503 0 14490 1 0 1 1 0 8 0 amappl2 80 111357 0 111291 4 2 2 3 0 8 0 amappl1 72 245818 0 245407 24 15 9 19 0 8 0 amappl 80 32165 0 32132 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 13981 0 13967 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 13981 0 13967 1 0 1 1 0 8 0 vmmpekpl 168 86656 0 86633 2 0 2 2 0 8 0 vmmpepl 168 1389396 0 1387885 344 272 72 85 0 357 0 vmsppl 264 13980 0 13967 2 1 1 2 0 8 0 pdppl 4096 27969 0 27934 6 1 5 6 0 8 0 pvpl 32 3570973 0 3558073 811 654 157 231 0 265 46 pmappl 200 13980 0 13967 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1063 0 482 23 4 19 19 0 8 0