From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933290AbcLIMDy (ORCPT ); Fri, 9 Dec 2016 07:03:54 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:38786 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932876AbcLIMDv (ORCPT ); Fri, 9 Dec 2016 07:03:51 -0500 Subject: Re: [PATCH] ipv4: Should use consistent conditional judgement for ip fragment in __ip_append_data and ip_finish_output To: Zheng Li , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, davem@davemloft.net, kuznet@ms2.inr.ac.ru, jmorris@namei.org, yoshfuji@linux-ipv6.org, kaber@trash.net References: <1481252918-3514-1-git-send-email-lizheng043@gmail.com> Cc: james.z.li@ericsson.com From: Sergei Shtylyov Message-ID: <6b85952d-a16d-2920-ebde-c69cec7e1494@cogentembedded.com> Date: Fri, 9 Dec 2016 15:03:47 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <1481252918-3514-1-git-send-email-lizheng043@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! On 12/9/2016 6:08 AM, Zheng Li wrote: > From: zheng li > > There is an inconsitent conditional judgement in __ip_append_data and Inconsistent. > ip_finish_output functions, the variable length in __ip_append_data just > include the length of applicatoin's payload and udp header, don't include Application. > the length of ip header, but in ip_finish_output use > (skb->len > ip_skb_dst_mtu(skb)) as judgement, and skb->len include the > length of ip header. > > That cuase some particular applicatoin's udp payload whose length is Causes, application. > between (MTU - IP Header) and MTU were framented by ip_fragment even Fragmented. > though the rst->dev support UFO feature. > > Add the length of ip header to length in __ip_append_data to keep > consistent conditional judgement as ip_finish_output for ip fragment. > > Signed-off-by: Zheng Li [...] MBR, Sergei