]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: net: Set sk_bpf_storage back to NULL for cloned sk
authorMartin KaFai Lau <kafai@fb.com>
Tue, 11 Jun 2019 21:45:57 +0000 (14:45 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 12 Jun 2019 14:38:20 +0000 (16:38 +0200)
commit2317b2d384e3ab5aeee91eac0b01fa60960cc38a
treef855d145e55a98bc81e747f916df42bf43577b84
parentf084713631f76f5e82759b866eb6cce2f1f15c2a
bpf: net: Set sk_bpf_storage back to NULL for cloned sk

The cloned sk should not carry its parent-listener's sk_bpf_storage.
This patch fixes it by setting it back to NULL.

Fixes: c8c09b4eed3c ("bpf: Introduce bpf sk local storage")
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/core/sock.c