From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] ip: limit use of gso_size to udp Date: Wed, 20 Jun 2018 14:41:55 +0900 (KST) Message-ID: <20180620.144155.581562234920115150.davem@davemloft.net> References: <20180619104026.77432-1-willemdebruijn.kernel@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-2 Content-Transfer-Encoding: 8BIT Cc: netdev@vger.kernel.org, willemb@google.com To: willemdebruijn.kernel@gmail.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:55480 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752102AbeFTFl5 (ORCPT ); Wed, 20 Jun 2018 01:41:57 -0400 In-Reply-To: <20180619104026.77432-1-willemdebruijn.kernel@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Willem de Bruijn Date: Tue, 19 Jun 2018 06:40:26 -0400 > From: Willem de Bruijn > > The ipcm(6)_cookie field gso_size is set only in the udp path. The ip > layer copies this to cork only if sk_type is SOCK_DGRAM. This check > proved too permissive. Ping and l2tp sockets have the same type. > > Limit to sockets of type SOCK_DGRAM and protocol IPPROTO_UDP to > exclude ping sockets. > > Fixes: bec1f6f69736 ("udp: generate gso with UDP_SEGMENT") > Reported-by: Maciej Żenczykowski > Signed-off-by: Willem de Bruijn Applied, thanks Willem. > For net-next, I'll take a look whether ipcm(6)_cookie fields like > these can be initialized uniformly, and then this branch removed > completely. Sounds good.