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 *296928 88910 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,ffff8000000229c0,0,ffff8000009e0c90,38,fffffd8039e934d8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800017c27da0,38,ffff800017c27d18,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009e0c00,ffff800017c27e48,ffff800017c27da0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8035311400,fffffd803701b900,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd803701b900,9,fffffd8035311400,0,0,ffff8000ffff59d8) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd803701b900,0,ffff800017c28040,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000ffff59d8,3,ffff800017c28120,0,ffff800017c28230) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000ffff59d8,ffff800017c281c8,ffff800017c28230) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800017c282a0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,e5832cd6010) at Xsyscall+0x128 end of kernel end trace frame: 0xe5afb301cf0, 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,ffff8000000229c0,0,ffff8000009e0c90,38,fffffd8039e934d8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800017c27da0,38,ffff800017c27d18,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009e0c00,ffff800017c27e48,ffff800017c27da0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8035311400,fffffd803701b900,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd803701b900,9,fffffd8035311400,0,0,ffff8000ffff59d8) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd803701b900,0,ffff800017c28040,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000ffff59d8,3,ffff800017c28120,0,ffff800017c28230) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000ffff59d8,ffff800017c281c8,ffff800017c28230) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800017c282a0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,e5832cd6010) at Xsyscall+0x128 end of kernel end trace frame: 0xe5afb301cf0, count: -13 ddb> show registers rdi 0xffffffff81db3e57 db_enter+0x17 rsi 0x4ce2 __ALIGN_SIZE+0x3ce2 rbp 0xffff800017c27a60 rbx 0xffff800017c27b10 rdx 0x4ce3 __ALIGN_SIZE+0x3ce3 rcx 0xffff800016bf5000 rax 0xffff800016bf5000 r8 0xffff800017c27a20 r9 0x1 r10 0xffff800000995900 r11 0x4f3fceb38bb2dea5 r12 0x3000000008 r13 0xffff800017c27a70 r14 0x100 r15 0x1 rip 0xffffffff81db3e58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800017c27a50 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=296928 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff5528,0xffffffff822b7b98 process=0xffff8000ffff6d30 user=0xffff800017c23000, vmspace=0xfffffd803f014b58 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 88910 118037 46565 0 2 0 syz-executor.0 *88910 296928 46565 0 7 0x4000000 syz-executor.0 38556 143402 0 0 3 0x14200 bored sosplice 71111 82747 1 0 3 0x100083 ttyin getty 46565 450222 58720 0 3 0x82 nanosleep syz-executor.0 28451 452140 58720 0 2 0x2 syz-executor.1 58720 383114 89548 0 3 0x82 thrsleep syz-fuzzer 58720 54151 89548 0 2 0x4000482 syz-fuzzer 58720 438081 89548 0 3 0x4000082 thrsleep syz-fuzzer 58720 508361 89548 0 3 0x4000082 kqread syz-fuzzer 58720 477357 89548 0 3 0x4000082 thrsleep syz-fuzzer 58720 66926 89548 0 3 0x4000082 thrsleep syz-fuzzer 58720 253822 89548 0 3 0x4000082 thrsleep syz-fuzzer 89548 443798 98331 0 3 0x10008a pause ksh 98331 82999 85573 0 3 0x92 select sshd 85573 35851 1 0 3 0x80 select sshd 56135 157406 15064 73 3 0x100090 kqread syslogd 15064 458664 1 0 3 0x100082 netio syslogd 84418 421586 1 77 3 0x100090 poll dhclient 46277 113891 1 0 3 0x80 poll dhclient 89976 132270 0 0 2 0x14200 zerothread 8401 478322 0 0 3 0x14200 aiodoned aiodoned 62506 478296 0 0 3 0x14200 syncer update 70016 462292 0 0 3 0x14200 cleaner cleaner 98354 308008 0 0 3 0x14200 reaper reaper 94449 358603 0 0 3 0x14200 pgdaemon pagedaemon 37563 199458 0 0 3 0x14200 bored crynlk 95093 398429 0 0 3 0x14200 bored crypto 51904 122371 0 0 3 0x40014200 acpi0 acpi0 49100 164172 0 0 3 0x14200 bored softnet 17528 126246 0 0 2 0x14200 systqmp 40528 73989 0 0 3 0x14200 bored systq 9347 207648 0 0 3 0x40014200 bored softclock 13566 271306 0 0 3 0x40014200 idle0 16568 11117 0 0 3 0x14200 bored smr 1 250323 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 9551 6492K 7386K 78643K 18988 0 0 pcb 24 9K 11K 78643K 2404 0 0 rtable 141 6K 6K 78643K 1193 0 0 ifaddr 69 18K 19K 78643K 558 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 200 0 0 iov 0 0K 28K 78643K 605 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1202 75K 76K 78643K 5210 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 61 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 304 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 4993 0 0 sigio 0 0K 0K 78643K 101 0 0 proc 42 30K 54K 78643K 836 0 0 subproc 32 2K 2K 78643K 40 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 588 0 0 in_multi 33 2K 2K 78643K 220 0 0 ether_multi 1 0K 0K 78643K 29 0 0 mrt 0 0K 0K 78643K 11 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 555 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 82 20K 29K 78643K 12658 0 0 UVM aobj 130 4K 4K 78643K 141 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 198 0 0 NDP 15 0K 0K 78643K 148 0 0 temp 192 2716K 3355K 78643K 17744 0 0 kqueue 0 0K 0K 78643K 34 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 2165 0 2158 1 0 1 1 0 8 0 plimitpl 152 124 0 117 1 0 1 1 0 8 0 rtentry 112 74 0 26 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 802 0 798 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 107 0 107 19 18 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 48 0 6 1 0 1 1 0 8 0 sysvmsgpl 40 23 0 19 2 1 1 1 0 8 0 semapl 112 302 0 292 1 0 1 1 0 8 0 shmpl 112 139 0 11 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 10094 0 8612 48 0 48 48 0 8 0 ffsino 240 10094 0 8612 89 1 88 88 0 8 0 nchpl 144 17257 0 15632 61 0 61 61 0 8 0 uvmvnodes 72 5939 0 0 108 0 108 108 0 8 0 vnodes 200 5939 0 0 313 0 313 313 0 8 0 namei 1024 53472 0 53472 2 1 1 1 0 8 1 scsiplug 64 14 0 14 9 9 0 1 0 8 0 scxspl 192 55394 0 55394 28 25 3 6 0 8 3 sigapl 432 5165 0 5152 2 0 2 2 0 8 0 futexpl 56 77439 0 77439 1 0 1 1 0 8 1 knotepl 112 1002 0 983 1 0 1 1 0 8 0 kqueuepl 104 1303 0 1301 1 0 1 1 0 8 0 pipepl 112 2922 0 2903 6 5 1 2 0 8 0 fdescpl 424 5166 0 5152 2 0 2 2 0 8 0 filepl 120 31066 0 30971 5 1 4 5 0 8 1 lockfpl 104 1770 0 1770 2 1 1 1 0 8 1 lockfspl 48 607 0 607 2 1 1 1 0 8 1 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 80 0 70 1 0 1 1 0 8 0 ucredpl 96 7671 0 7664 1 0 1 1 0 8 0 zombiepl 144 5152 0 5152 2 1 1 1 0 8 1 processpl 840 5181 0 5152 4 0 4 4 0 8 0 procpl 600 11735 0 11699 4 0 4 4 0 8 1 sosppl 128 84 0 84 20 19 1 1 0 8 1 sockpl 384 4294 0 4276 4 1 3 4 0 8 1 mcl64k 65536 1423 0 1423 138 137 1 64 0 8 1 mcl16k 16384 12 0 12 9 9 0 1 0 8 0 mcl12k 12288 90 0 90 16 15 1 1 0 8 1 mcl9k 9216 72 0 72 17 16 1 1 0 8 1 mcl8k 8192 61 0 61 17 17 0 1 0 8 0 mcl4k 4096 199 0 199 6 5 1 1 0 8 1 mcl2k2 2112 22 0 22 12 11 1 1 0 8 1 mcl2k 2048 59508 0 59463 18 11 7 11 0 8 1 mtagpl 80 14 0 14 3 3 0 1 0 8 0 mbufpl 256 121918 0 121856 81 75 6 36 0 8 1 bufpl 256 20643 0 14706 372 0 372 372 0 8 0 anonpl 16 462424 0 453385 197 158 39 55 0 62 0 amapchunkpl 152 21567 0 21486 70 66 4 17 0 158 0 amappl16 192 28610 0 28126 200 174 26 37 0 8 1 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 35 0 34 2 1 1 1 0 8 0 amappl12 160 2477 0 2471 1 0 1 1 0 8 0 amappl11 152 51 0 37 1 0 1 1 0 8 0 amappl10 144 2576 0 2571 2 1 1 1 0 8 0 amappl9 136 553 0 550 1 0 1 1 0 8 0 amappl8 128 135 0 118 1 0 1 1 0 8 0 amappl7 120 2530 0 2526 1 0 1 1 0 8 0 amappl6 112 57 0 49 1 0 1 1 0 8 0 amappl5 104 2609 0 2599 1 0 1 1 0 8 0 amappl4 96 5324 0 5301 1 0 1 1 0 8 0 amappl3 88 336 0 325 1 0 1 1 0 8 0 amappl2 80 40573 0 40509 4 2 2 3 0 8 0 amappl1 72 97142 0 96737 26 17 9 19 0 8 0 amappl 80 12016 0 11984 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 140 0 11 3 0 3 3 0 8 0 uaddrrnd 24 5166 0 5152 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5166 0 5152 1 0 1 1 0 8 0 vmmpekpl 168 30283 0 30257 2 0 2 2 0 8 0 vmmpepl 168 516814 0 515366 201 132 69 79 0 357 3 vmsppl 264 5165 0 5152 2 1 1 2 0 8 0 pdppl 4096 10338 0 10304 6 1 5 6 0 8 0 pvpl 32 1361400 0 1349321 412 293 119 228 0 265 19 pmappl 200 5165 0 5152 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 758 0 259 19 3 16 17 0 8 0