[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANn89iLqG5bEsJPfeNsm51P6UEkJOu4j0hFFODTHb4W+vqAe=w@mail.gmail.com>
Date: Thu, 8 Nov 2018 14:16:55 -0800
From: Eric Dumazet <edumazet@...gle.com>
To: Cong Wang <xiyou.wangcong@...il.com>,
Dimitris Michailidis <dmichail@...gle.com>
Cc: netdev <netdev@...r.kernel.org>, Paolo Abeni <pabeni@...hat.com>,
Willem de Bruijn <willemb@...gle.com>
Subject: Re: [Patch net] ip: fix csum_sub() with csum_block_sub()
On Thu, Nov 8, 2018 at 2:04 PM Cong Wang <xiyou.wangcong@...il.com> wrote:
>
> When subtracting the checksum of a block of data,
> csum_block_sub() must be used to respect the offset.
>
> We learned this lesson from both commit d55bef5059dd
> ("net: fix pskb_trim_rcsum_slow() with odd trim offset") and
> commit d48051c5b837 ("net/mlx5e: fix csum adjustments caused by RXFCS").
>
> Fixes: ca4ef4574f1e ("ip: fix IP_CHECKSUM handling")
I do not believe you fix any bug here...
I do not know of any inet protocol having odd header sizes.
Powered by blists - more mailing lists