diff options
| author | Kuniyuki Iwashima <kuniyu@google.com> | 2026-02-03 21:30:06 +0000 |
|---|---|---|
| committer | Martin KaFai Lau <martin.lau@kernel.org> | 2026-02-04 09:36:01 -0800 |
| commit | f06581392e9d56ac86d8fcc29c0931441ee82f4a (patch) | |
| tree | b18dd72fc4f9d30ea6c1ec0d90d1234d4dd43a9c /include/linux/extable.h | |
| parent | b28dac3fc99bb6f1d0b029f1b742a96e7bc797d6 (diff) | |
bpf: Use sk_is_inet() and sk_is_unix() in __cgroup_bpf_run_filter_sock_addr().
sk->sk_family should be read with READ_ONCE() in
__cgroup_bpf_run_filter_sock_addr() due to IPV6_ADDRFORM.
Also, the comment there is a bit stale since commit 859051dd165e
("bpf: Implement cgroup sockaddr hooks for unix sockets"), and the
kdoc has the same comment.
Let's use sk_is_inet() and sk_is_unix() and remove the comment.
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20260203213442.682838-2-kuniyu@google.com
Diffstat (limited to 'include/linux/extable.h')
0 files changed, 0 insertions, 0 deletions
