Re: [net] seg6: fix seg6_validate_srh() to avoid slab-out-of-bounds

2020-06-04 Thread David Miller
From: Ahmed Abdelsalam Date: Wed, 3 Jun 2020 06:54:42 + > The seg6_validate_srh() is used to validate SRH for three cases: > > case1: SRH of data-plane SRv6 packets to be processed by the Linux kernel. > Case2: SRH of the netlink message received from user-space (iproute2) > Case3: SRH inj

[net] seg6: fix seg6_validate_srh() to avoid slab-out-of-bounds

2020-06-02 Thread Ahmed Abdelsalam
The seg6_validate_srh() is used to validate SRH for three cases: case1: SRH of data-plane SRv6 packets to be processed by the Linux kernel. Case2: SRH of the netlink message received from user-space (iproute2) Case3: SRH injected into packets through setsockopt In case1, the SRH can be encoded i