[PATCH 1/2] net/bonding: fix xmit l34 hash calculate for tcp

Thomas Monjalon thomas at monjalon.net
Sun Oct 9 19:41:49 CEST 2022


> > In the following two cases, tcp_hdr + sizeof(*tcp_hdr) == pkt_end,
> > and the TCP port is not taken into account in calculating the HASH
> > value of TCP packets. TCP connections with the same source and
> > destination IP addresses will be hashed to the same slave port,
> > which may cause load imbalance.
> > 1. TCP Pure ACK packets with no options, The header length is 20
> > and there is no data.
> > 2. A TCP packet contains data, but the first seg of the mbuf
> > contains only the header information (ETH, IP, TCP), and the
> > data is in subsequent segs, which is usually the case in the
> > indirect mbuf used for zero-copy.
> >
> > Fixes: 726158060d55 ("net/bonding: fix potential out of bounds read")
> > Cc: stable at dpdk.org
> >
> > Signed-off-by: Jun Qiu <jun.qiu at jaguarmicro.com>
> Acked-by: Min Hu (Connor) <humin29 at huawei.com>

Applied, thanks.





More information about the stable mailing list