Skip to content

increase upstream eBPF map sizes - #45

Open
liamsmith827 wants to merge 1 commit into
GrapheneOS:17from
liamsmith827:17_07-07_ebpf-map-size
Open

increase upstream eBPF map sizes#45
liamsmith827 wants to merge 1 commit into
GrapheneOS:17from
liamsmith827:17_07-07_ebpf-map-size

Conversation

@liamsmith827

@liamsmith827 liamsmith827 commented Jul 7, 2026

Copy link
Copy Markdown

A large amount of Android networking functionality is implemented in eBPF. The eBPF maps used by upstream are all too small and the code itself does not fallback to safe behavior when the limits are reached. This can result in lockdown VPN bypass, permission bypass, etc. These limits are frequently reached, which we know because submitted logs often contain E2BIG errors.

This PR raises the limits of the upstream maps to the theoretical maximum size needed (technically slightly below the theoretical maximum due to potential delays in map element removal when stopping a user, but this won't matter in practice). Dynamic allocation is used to prevent resource exhaustion.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant