Bug 2211259

Summary: route for srv6 can't be added if there are too many segs
Product: Red Hat Enterprise Linux 9 Reporter: Jianlin Shi <jishi>
Component: iprouteAssignee: Andrea Claudi <aclaudi>
Status: CLOSED WONTFIX QA Contact: Mingyu Shi <mshi>
Severity: medium Docs Contact:
Priority: medium    
Version: 9.3CC: gurpsing, haliu, jiji, network-qe
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-27 10:08:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jianlin Shi 2023-05-31 01:29:16 UTC
Description of problem:
route for srv6 can't be added if there are too may segs

Version-Release number of selected component (if applicable):
iproute-6.2.0-2.el9.x86_64

How reproducible:
Always

Steps to Reproduce:
ip link add dum1 type dummy 
ip link set dum1 up
for i in {1..60}; do seg_test="$seg_test,$i::1"; done 
ip -6 route add 3125:23::1234 encap seg6 mode inline segs $seg_test dev dum1

Actual results:
addraw_l ERROR: message exceeded bound of 1024

Expected results:
route can be added

Additional info:

[root@sweetpig-6 ~]# rpm -q iproute                                                                   
iproute-6.2.0-2.el9.x86_64
[root@sweetpig-6 ~]# uname -a
Linux sweetpig-6.4a2m.lab.eng.bos.redhat.com 5.14.0-318.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed May 24 11:03:00 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux
[root@sweetpig-6 ~]# ip -6 route add 3125:23::1234 encap seg6 mode inline segs $seg_test dev dum1     
addraw_l ERROR: message exceeded bound of 1024
[root@sweetpig-6 ~]# ip -6 route list 3125:23::1234
3125:23::1234 dev dum1 metric 1024 pref medium