bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] Fix collisions in socket cookie generation
@ 2019-08-08  9:49 Daniel Borkmann
  2019-08-08  9:49 ` [PATCH net 1/2] sock: make cookie generation global instead of per netns Daniel Borkmann
  2019-08-08  9:49 ` [PATCH net 2/2] bpf: sync bpf.h to tools infrastructure Daniel Borkmann
  0 siblings, 2 replies; 7+ messages in thread
From: Daniel Borkmann @ 2019-08-08  9:49 UTC (permalink / raw)
  To: davem; +Cc: netdev, bpf, m, edumazet, ast, willemb, Daniel Borkmann

This change makes the socket cookie generator as a global counter
instead of per netns in order to fix cookie collisions for BPF use
cases we ran into. See main patch #1 for more details.

Given the change is small/trivial and fixes an issue we're seeing
my preference would be net tree (though it cleanly applies to
net-next as well). Went for net tree instead of bpf tree here given
the main change is in net/core/sock_diag.c, but either way would be
fine with me.

Thanks a lot!

Daniel Borkmann (2):
  sock: make cookie generation global instead of per netns
  bpf: sync bpf.h to tools infrastructure

 include/net/net_namespace.h    |  1 -
 include/uapi/linux/bpf.h       |  4 ++--
 net/core/sock_diag.c           |  3 ++-
 tools/include/uapi/linux/bpf.h | 11 +++++++----
 4 files changed, 11 insertions(+), 8 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-08-08 11:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-08  9:49 [PATCH net 0/2] Fix collisions in socket cookie generation Daniel Borkmann
2019-08-08  9:49 ` [PATCH net 1/2] sock: make cookie generation global instead of per netns Daniel Borkmann
2019-08-08 10:45   ` Eric Dumazet
2019-08-08 11:09     ` Daniel Borkmann
2019-08-08 11:37       ` Eric Dumazet
2019-08-08 11:40         ` Daniel Borkmann
2019-08-08  9:49 ` [PATCH net 2/2] bpf: sync bpf.h to tools infrastructure Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).