Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net: bpf: hook for inet port bind conflict check #2341

Closed
wants to merge 2 commits into from

Conversation

kernel-patches-bot
Copy link

Pull request for series with
subject: net: bpf: hook for inet port bind conflict check
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=601827

Nobody and others added 2 commits December 29, 2021 02:47
This hook of cgroup is called while TCP/UDP local port bind conflict
check. This is different from the 'commit aac3fc3 ("bpf: Post-hooks
for sys_bind")', as it is also called in autobind case.

For TCP, this hook is called during sys_bind() and autobind. And it
is also called during tcp_v4_connect() before hash the sock to ehash,
during which src ip, src port, dst ip, and dst port is already
allocated, means that we have a chance to determine whether this
connect should continue.

This can be useful when we want some applications not to use some
port (include auto bind port). For autobind, the kernel has the chance
to choose another port.

Signed-off-by: Menglong Dong <imagedong@tencent.com>
@kernel-patches-bot
Copy link
Author

Master branch: 819d115
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=601827
version: 1

@kernel-patches-bot
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=601827 expired. Closing PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants