aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
diff options
context:
space:
mode:
authorMartin KaFai Lau <[email protected]>2020-10-02 01:34:48 +0000
committerAlexei Starovoitov <[email protected]>2020-10-02 18:34:48 +0000
commit82f45c6c4a70622cc0585e3f4372e192a6491d26 (patch)
treef6490cacf4745d061f2e99ebc75b7e5566c02763 /tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
parentselftests/bpf: Properly initialize linfo in sockmap_basic (diff)
downloadkernel-82f45c6c4a70622cc0585e3f4372e192a6491d26.tar.gz
kernel-82f45c6c4a70622cc0585e3f4372e192a6491d26.zip
bpf: tcp: Do not limit cb_flags when creating child sk from listen sk
The commit 0813a841566f ("bpf: tcp: Allow bpf prog to write and parse TCP header option") unnecessarily introduced bpf_skops_init_child() which limited the child sk from inheriting all bpf_sock_ops_cb_flags of the listen sk. That breaks existing user expectation. This patch removes the bpf_skops_init_child() and just allows sock_copy() to do its job to copy everything from listen sk to the child sk. Fixes: 0813a841566f ("bpf: tcp: Allow bpf prog to write and parse TCP header option") Reported-by: Stanislav Fomichev <[email protected]> Signed-off-by: Martin KaFai Lau <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c')
0 files changed, 0 insertions, 0 deletions