diff options
| author | Willem de Bruijn <[email protected]> | 2018-06-19 16:47:52 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-06-20 05:41:04 +0000 |
| commit | 9887cba19978a5f288100ef90a37684cc8d5e0a6 (patch) | |
| tree | 83db207b79f71d6473321623b64cb10901e5c668 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | stmmac: fix DMA channel hang in half-duplex mode (diff) | |
| download | kernel-9887cba19978a5f288100ef90a37684cc8d5e0a6.tar.gz kernel-9887cba19978a5f288100ef90a37684cc8d5e0a6.zip | |
ip: limit use of gso_size to udp
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.
v1 -> v2
- remove irrelevant whitespace changes
Fixes: bec1f6f69736 ("udp: generate gso with UDP_SEGMENT")
Reported-by: Maciej Żenczykowski <[email protected]>
Signed-off-by: Willem de Bruijn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions
