aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2015-03-12 01:53:14 +0000
committerDavid S. Miller <[email protected]>2015-03-12 01:55:28 +0000
commit33cf7c90fe2f97afb1cadaa0cfb782cb9d1b9ee2 (patch)
tree7a0c80d0b2bb618919d966ce5b827c7eb8f843f6 /net/switchdev/switchdev.c
parentfib_trie: Only display main table in /proc/net/route (diff)
downloadkernel-33cf7c90fe2f97afb1cadaa0cfb782cb9d1b9ee2.tar.gz
kernel-33cf7c90fe2f97afb1cadaa0cfb782cb9d1b9ee2.zip
net: add real socket cookies
A long standing problem in netlink socket dumps is the use of kernel socket addresses as cookies. 1) It is a security concern. 2) Sockets can be reused quite quickly, so there is no guarantee a cookie is used once and identify a flow. 3) request sock, establish sock, and timewait socks for a given flow have different cookies. Part of our effort to bring better TCP statistics requires to switch to a different allocator. In this patch, I chose to use a per network namespace 64bit generator, and to use it only in the case a socket needs to be dumped to netlink. (This might be refined later if needed) Note that I tried to carry cookies from request sock, to establish sock, then timewait sockets. Signed-off-by: Eric Dumazet <[email protected]> Cc: Eric Salo <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions