bpf: support cloning sk storage on accept()
authorStanislav Fomichev <sdf@google.com>
Wed, 14 Aug 2019 17:37:49 +0000 (10:37 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Sat, 17 Aug 2019 21:18:54 +0000 (23:18 +0200)
commit8f51dfc73bf181f2304e1498f55d5f452e060cbe
tree1b3877adff06cd12dbeac725521cef44d2ebf7d7
parentb0e4701ce15d0381cdea0643c7f0a35dc529cec2
bpf: support cloning sk storage on accept()

Add new helper bpf_sk_storage_clone which optionally clones sk storage
and call it from sk_clone_lock.

Cc: Martin KaFai Lau <kafai@fb.com>
Cc: Yonghong Song <yhs@fb.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/net/bpf_sk_storage.h
include/uapi/linux/bpf.h
net/core/bpf_sk_storage.c
net/core/sock.c