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 *166663 91149 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(ffffffff81f7c399,ffffffff81f3aad6,239,ffffffff81f16fee) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff80000099db40,0,ffff8000009aba90,38,fffffd8030cbc008) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff8000179fc160,38,ffff8000179fc0d8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009aba00,ffff8000179fc208,ffff8000179fc160,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd80314f8900,fffffd80363f4a88,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363f4a88,9,fffffd80314f8900,0,0,ffff8000149c4720) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363f4a88,0,ffff8000179fc400,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000149c4720,3,ffff8000179fc4e0,0,ffff8000179fc5f0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000149c4720,ffff8000179fc588,ffff8000179fc5f0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000179fc660) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,fae54a0d010) at Xsyscall+0x128 end of kernel end trace frame: 0xfb0d4fbed90, 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,ffff80000099db40,0,ffff8000009aba90,38,fffffd8030cbc008) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff8000179fc160,38,ffff8000179fc0d8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009aba00,ffff8000179fc208,ffff8000179fc160,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd80314f8900,fffffd80363f4a88,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363f4a88,9,fffffd80314f8900,0,0,ffff8000149c4720) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363f4a88,0,ffff8000179fc400,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000149c4720,3,ffff8000179fc4e0,0,ffff8000179fc5f0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000149c4720,ffff8000179fc588,ffff8000179fc5f0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000179fc660) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,fae54a0d010) at Xsyscall+0x128 end of kernel end trace frame: 0xfb0d4fbed90, count: -13 ddb> show registers rdi 0xffffffff81db3e57 db_enter+0x17 rsi 0x4cac __ALIGN_SIZE+0x3cac rbp 0xffff8000179fbe20 rbx 0xffff8000179fbed0 rdx 0x4cad __ALIGN_SIZE+0x3cad rcx 0xffff8000159f7000 rax 0xffff8000159f7000 r8 0xffff8000179fbde0 r9 0x1 r10 0xffff8000009940c0 r11 0xeca8fa905b075e0a r12 0x3000000008 r13 0xffff8000179fbe30 r14 0x100 r15 0x1 rip 0xffffffff81db3e58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000179fbe10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=166663 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff8000149c4bd0,0xffffffff822b7b98 process=0xffff8000ffff6d30 user=0xffff8000179f7000, vmspace=0xfffffd803f014c60 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 91149 391142 96819 0 2 0 syz-executor.1 *91149 166663 96819 0 7 0x4000000 syz-executor.1 4718 255494 1 0 3 0x100083 ttyopn getty 68641 6710 0 0 3 0x14200 bored sosplice 14601 142621 80478 0 2 0x2 syz-executor.0 96819 112233 80478 0 2 0x482 syz-executor.1 80478 504952 99282 0 3 0x82 thrsleep syz-fuzzer 80478 336640 99282 0 3 0x4000082 thrsleep syz-fuzzer 80478 238650 99282 0 3 0x4000082 thrsleep syz-fuzzer 80478 71570 99282 0 3 0x4000082 kqread syz-fuzzer 80478 276588 99282 0 3 0x4000082 thrsleep syz-fuzzer 80478 37744 99282 0 3 0x4000082 thrsleep syz-fuzzer 80478 409599 99282 0 3 0x4000082 thrsleep syz-fuzzer 99282 293716 11223 0 3 0x10008a pause ksh 11223 157023 95073 0 3 0x92 select sshd 95073 269532 1 0 3 0x80 select sshd 74600 337176 90550 73 3 0x100090 kqread syslogd 90550 7830 1 0 3 0x100082 netio syslogd 95089 301169 1 77 3 0x100090 poll dhclient 11593 40047 1 0 3 0x80 poll dhclient 18810 126443 0 0 2 0x14200 zerothread 19490 188145 0 0 3 0x14200 aiodoned aiodoned 35099 401611 0 0 3 0x14200 syncer update 85740 413738 0 0 3 0x14200 cleaner cleaner 67572 450395 0 0 3 0x14200 reaper reaper 83174 68500 0 0 3 0x14200 pgdaemon pagedaemon 20523 311964 0 0 3 0x14200 bored crynlk 5629 223089 0 0 3 0x14200 bored crypto 17277 62643 0 0 3 0x40014200 acpi0 acpi0 70813 31038 0 0 3 0x14200 bored softnet 86146 72399 0 0 2 0x14200 systqmp 48850 88153 0 0 3 0x14200 bored systq 38373 43037 0 0 3 0x40014200 bored softclock 45379 363120 0 0 3 0x40014200 idle0 57743 495907 0 0 3 0x14200 bored smr 1 141111 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 9487 6460K 6837K 78643K 11384 0 0 pcb 24 9K 10K 78643K 280 0 0 rtable 119 4K 4K 78643K 267 0 0 ifaddr 49 11K 12K 78643K 69 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 33 0 0 iov 0 0K 32K 78643K 71 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1210 76K 76K 78643K 1594 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 9 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 1K 1K 78643K 28 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 489 0 0 sigio 0 0K 0K 78643K 8 0 0 proc 41 30K 46K 78643K 341 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 46 0 0 in_multi 33 2K 2K 78643K 52 0 0 ether_multi 1 0K 0K 78643K 5 0 0 mrt 0 0K 0K 78643K 2 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 215 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 78 20K 21K 78643K 1981 0 0 UVM aobj 25 2K 2K 78643K 26 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 18 0 0 NDP 9 0K 0K 78643K 18 0 0 temp 125 2708K 2773K 78643K 4391 0 0 kqueue 0 0K 0K 78643K 5 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 253 0 246 1 0 1 1 0 8 0 plimitpl 152 27 0 20 1 0 1 1 0 8 0 rtentry 112 54 0 8 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 81 0 77 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 5 0 5 3 2 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 194 0 0 13 0 13 13 0 8 0 art_table 32 195 0 0 2 0 2 2 0 8 0 art_node 16 46 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 1 1 0 1 1 0 8 0 semapl 112 24 0 14 1 0 1 1 0 8 0 shmpl 112 24 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2219 0 803 46 0 46 46 0 8 0 ffsino 240 2219 0 803 84 0 84 84 0 8 0 nchpl 144 3081 0 1446 61 0 61 61 0 8 0 uvmvnodes 72 2464 0 0 45 0 45 45 0 8 0 vnodes 200 2464 0 0 130 0 130 130 0 8 0 namei 1024 8701 0 8700 2 1 1 1 0 8 0 scsiplug 64 3 0 3 1 1 0 1 0 8 0 scxspl 192 9151 0 9151 13 12 1 6 0 8 1 sigapl 432 661 0 648 2 0 2 2 0 8 0 futexpl 56 7441 0 7441 1 0 1 1 0 8 1 knotepl 112 151 0 132 1 0 1 1 0 8 0 kqueuepl 104 134 0 132 1 0 1 1 0 8 0 pipepl 112 418 0 399 3 2 1 2 0 8 0 fdescpl 424 662 0 648 2 0 2 2 0 8 0 filepl 120 3864 0 3769 5 1 4 5 0 8 1 lockfpl 104 181 0 181 2 1 1 1 0 8 1 lockfspl 48 58 0 58 2 1 1 1 0 8 1 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 24 0 14 1 0 1 1 0 8 0 ucredpl 96 854 0 847 1 0 1 1 0 8 0 zombiepl 144 648 0 648 2 1 1 1 0 8 1 processpl 840 677 0 648 4 0 4 4 0 8 0 procpl 600 1283 0 1247 4 0 4 4 0 8 0 sosppl 128 8 0 8 3 2 1 1 0 8 1 sockpl 384 484 0 466 3 0 3 3 0 8 1 mcl64k 65536 268 0 268 33 19 14 32 0 8 14 mcl16k 16384 3 0 3 2 2 0 1 0 8 0 mcl12k 12288 7 0 7 2 1 1 1 0 8 1 mcl9k 9216 8 0 8 3 2 1 1 0 8 1 mcl8k 8192 6 0 6 3 2 1 1 0 8 1 mcl4k 4096 16 0 16 3 3 0 1 0 8 0 mcl2k2 2112 3 0 3 2 2 0 1 0 8 0 mcl2k 2048 52773 0 52732 11 5 6 9 0 8 0 mtagpl 80 4 0 2 2 1 1 1 0 8 0 mbufpl 256 88512 0 88441 24 17 7 21 0 8 1 bufpl 256 7011 0 2476 284 0 284 284 0 8 0 anonpl 16 76598 0 67478 63 9 54 54 0 62 16 amapchunkpl 152 2690 0 2609 6 1 5 6 0 158 0 amappl16 192 3521 0 3029 51 18 33 37 0 8 8 amappl15 184 227 0 224 1 0 1 1 0 8 0 amappl14 176 259 0 256 2 1 1 1 0 8 0 amappl12 160 242 0 239 1 0 1 1 0 8 0 amappl11 152 51 0 37 1 0 1 1 0 8 0 amappl10 144 68 0 65 2 1 1 1 0 8 0 amappl9 136 538 0 535 1 0 1 1 0 8 0 amappl8 128 131 0 117 1 0 1 1 0 8 0 amappl7 120 32 0 28 1 0 1 1 0 8 0 amappl6 112 54 0 47 1 0 1 1 0 8 0 amappl5 104 386 0 375 1 0 1 1 0 8 0 amappl4 96 353 0 333 1 0 1 1 0 8 0 amappl3 88 868 0 853 1 0 1 1 0 8 0 amappl2 80 4522 0 4455 4 2 2 3 0 8 0 amappl1 72 21056 0 20644 26 17 9 19 0 8 0 amappl 80 1518 0 1486 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 25 0 1 1 0 1 1 0 8 0 uaddrrnd 24 662 0 648 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 662 0 648 1 0 1 1 0 8 0 vmmpekpl 168 8341 0 8318 2 0 2 2 0 8 0 vmmpepl 168 75663 0 74207 118 39 79 93 0 357 15 vmsppl 264 661 0 648 2 1 1 2 0 8 0 pdppl 4096 1330 0 1296 6 1 5 6 0 8 0 pvpl 32 222177 0 210070 150 13 137 137 0 265 38 pmappl 200 661 0 648 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 472 0 52 13 0 13 13 0 8 0