android_kernel_motorola_sm6375/kernel/bpf
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stanislav Fomichev 48d917f089
UPSTREAM: bpf: Add BPF_CGROUP_INET_SOCK_RELEASE hook
Sometimes it's handy to know when the socket gets freed. In
particular, we'd like to try to use a smarter allocation of
ports for bpf_bind and explore the possibility of limiting
the number of SOCK_DGRAM sockets the process can have.

Implement BPF_CGROUP_INET_SOCK_RELEASE hook that triggers on
inet socket release. It triggers only for userspace sockets
(not in-kernel ones) and therefore has the same semantics as
the existing BPF_CGROUP_INET_SOCK_CREATE.

Change-Id: If57133e0fdbd3906b4335dd68b0be887397d2364
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200706230128.4073544-2-sdf@google.com
2026-01-14 18:12:01 -08:00
..
arraymap.c UPSTREAM: bpf: Remove redundant synchronize_rcu. 2026-01-14 18:12:00 -08:00
bpf_iter.c UPSTREAM: bpf: Enable bpf_iter targets registering ctx argument types 2026-01-14 17:41:40 -08:00
bpf_lru_list.c
bpf_lru_list.h UPSTREAM: bpf: Fix a typo "inacitve" -> "inactive" 2025-12-23 13:36:12 -08:00
bpf_lsm.c UPSTREAM: bpf: Use tracing helpers for lsm programs 2026-01-14 17:48:07 -08:00
bpf_struct_ops.c UPSTREAM: bpf: Set map_btf_{name, id} for all map types 2026-01-14 17:50:46 -08:00
bpf_struct_ops_types.h UPSTREAM: bpf: tcp: Support tcp_congestion_ops in bpf 2025-12-23 13:35:51 -08:00
btf.c UPSTREAM: bpf: Do not allow btf_ctx_access with __int128 types 2026-01-14 17:53:12 -08:00
cgroup.c BACKPORT: bpf: cgroup: Allow multi-attach program to replace itself 2026-01-14 17:50:26 -08:00
core.c BACKPORT: mm: remove the pgprot argument to __vmalloc 2026-01-14 17:48:09 -08:00
cpumap.c UPSTREAM: bpf: Set map_btf_{name, id} for all map types 2026-01-14 17:50:46 -08:00
devmap.c UPSTREAM: bpf: Set map_btf_{name, id} for all map types 2026-01-14 17:50:46 -08:00
disasm.c
disasm.h
dispatcher.c UPSTREAM: bpf: Remove bpf_image tree 2025-12-23 13:36:07 -08:00
hashtab.c UPSTREAM: bpf: Remove redundant synchronize_rcu. 2026-01-14 18:12:00 -08:00
helpers.c UPSTREAM: bpf: Implement BPF ring buffer and verifier support for it 2026-01-14 17:48:05 -08:00
inode.c UPSTREAM: bpf: Create file bpf iterator 2025-12-23 13:36:19 -08:00
local_storage.c UPSTREAM: bpf: Set map_btf_{name, id} for all map types 2026-01-14 17:50:46 -08:00
lpm_trie.c UPSTREAM: bpf: Remove redundant synchronize_rcu. 2026-01-14 18:12:00 -08:00
Makefile BACKPORT: flow_dissector: Move out netns_bpf prog callbacks 2026-01-14 17:48:08 -08:00
map_in_map.c BACKPORT: bpf: Implement CAP_BPF 2026-01-14 17:44:17 -08:00
map_in_map.h
map_iter.c UPSTREAM: bpf: Enable bpf_iter targets registering ctx argument types 2026-01-14 17:41:40 -08:00
net_namespace.c UPSTREAM: bpf, netns: Fix use-after-free in pernet pre_exit callback 2026-01-14 17:53:13 -08:00
offload.c UPSTREAM: nsfs: clean-up ns_get_path() signature to return int 2025-12-23 13:35:44 -08:00
percpu_freelist.c UPSTREAM: bpf: Dont iterate over possible CPUs with interrupts disabled 2025-12-23 13:35:58 -08:00
percpu_freelist.h
queue_stack_maps.c UPSTREAM: bpf: Remove redundant synchronize_rcu. 2026-01-14 18:12:00 -08:00
reuseport_array.c UPSTREAM: bpf: Remove redundant synchronize_rcu. 2026-01-14 18:12:00 -08:00
ringbuf.c UPSTREAM: bpf: Remove redundant synchronize_rcu. 2026-01-14 18:12:00 -08:00
stackmap.c UPSTREAM: bpf: Fix build without CONFIG_STACKTRACE 2026-01-14 18:12:01 -08:00
syscall.c UPSTREAM: bpf: Add BPF_CGROUP_INET_SOCK_RELEASE hook 2026-01-14 18:12:01 -08:00
sysfs_btf.c
task_iter.c UPSTREAM: bpf: Fix bpf_iter's task iterator logic 2026-01-14 17:44:15 -08:00
tnum.c BACKPORT: bpf: Verifier, do explicit ALU32 bounds tracking 2025-12-23 13:36:11 -08:00
trampoline.c UPSTREAM: bpf: lsm: Implement attach, detach and execution 2025-12-23 13:36:10 -08:00
verifier.c UPSTREAM: bpf: Introduce helper bpf_get_task_stack() 2026-01-14 18:12:01 -08:00