Skip to content

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

Closed
kernel-patches-bot wants to merge 2 commits into
bpffrom
series/601827=>bpf
Closed

kernel-patches-bot wants to merge 2 commits into
bpffrom
series/601827=>bpf

Conversation

@kernel-patches-bot

Copy link
Copy Markdown

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 <[email protected]>
@kernel-patches-bot

Copy link
Copy Markdown
Author

@kernel-patches-bot

Copy link
Copy Markdown
Author

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