diff options
| author | Martin KaFai Lau <martin.lau@kernel.org> | 2026-05-08 19:55:33 +0300 |
|---|---|---|
| committer | Martin KaFai Lau <martin.lau@kernel.org> | 2026-05-08 21:38:11 +0300 |
| commit | f3b8c28135c339e6993ffb79579447a109537a11 (patch) | |
| tree | 5a72f3fd80218d19ecd2841a1effb21fefcc5074 /include/linux/workqueue_api.h | |
| parent | 0c7ae130698e70107430254e79fbe996b4d37ab5 (diff) | |
| parent | 1c2958e4ab1ed4594db16425dbcab33c56ea8330 (diff) | |
| download | linux-f3b8c28135c339e6993ffb79579447a109537a11.tar.xz | |
Merge branch 'bpf-tcp-fix-type-confusion-in-bpf-helper-functions'
Kuniyuki Iwashima says:
====================
bpf: tcp: Fix type confusion in bpf helper functions.
bpf_tcp_sock() only check if sk->sk_protocol is IPPROTO_TCP,
but RAW socket can bypass it:
socket(AF_INET, SOCK_RAW, IPPROTO_TCP)
The same issues exist in other bpf functions:
* bpf_mptcp_sock_from_subflow()
* bpf_skc_to_tcp_sock()
* bpf_skc_to_tcp6_sock()
* sol_tcp_sockopt()
Patch 1 fixes bpf_tcp_sock() and Patch 2 adds a test for it.
Patch 3 ~ 6 fix the rest of the functions above.
Changes:
v2:
* Inverse if (err) to if (!err) in the selftest
* Add patch 3 ~ 6
v1: https://lore.kernel.org/bpf/20260430184405.1227386-1-kuniyu@google.com/
https://lore.kernel.org/mptcp/20260430-mptcp-bpf-mptcp-sock-type-v1-1-d2ed5cda7da9@kernel.org/
====================
Link: https://patch.msgid.link/20260504210610.180150-1-kuniyu@google.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions
