On 7/9/20 8:10 AM, Martin KaFai Lau wrote:
This set fixes two issues on sk_user_data when a sk is added to a reuseport_array. The first patch is to avoid the sk_user_data being copied to a cloned sk. The second patch avoids doing bpf_sk_reuseport_detach() on sk_user_data that is not managed by reuseport_array. Since the changes are mostly related to bpf reuseport_array, so it is currently tagged as bpf fixes. v2: - Avoid ~3UL (Andrii) Martin KaFai Lau (2): bpf: net: Avoid copying sk_user_data of reuseport_array during sk_clone bpf: net: Avoid incorrect bpf_sk_reuseport_detach call include/net/sock.h | 3 ++- kernel/bpf/reuseport_array.c | 14 ++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-)
Applied, thanks!