Re: [PATCH net] ip: limit use of gso_size to udp

2018-06-19 Thread David Miller
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

[PATCH net] ip: limit use of gso_size to udp

2018-06-19 Thread Willem de Bruijn
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 exclud