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

loader: sanitize bpffs directory strings for netdevs #32090

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

rgo3
Copy link
Contributor

@rgo3 rgo3 commented Apr 19, 2024

bpffs directory paths cannot contain the character ".", thus we must sanitize device names that contain any "." characters. Our solution is to replace "." with "-". This introduces a risk of naming collisions, e.g. "eth.0" and "eth-0", in practice the probability of this happening should be very small.

Fixes: #31813

bpffs directory paths cannot contain the character ".", thus we must
sanitize device names that contain any "." characters. Our solution is
to replace "." with "-". This introduces a risk of naming collisions,
e.g. "eth.0" and "eth-0", in practice the probability of this happening
should be very small.

Fixes: cilium#31813

Signed-off-by: Robin Gögge <r.goegge@isovalent.com>
@rgo3 rgo3 added sig/loader Impacts the loading of BPF programs into the kernel. release-note/bug This PR fixes an issue in a previous release of Cilium. needs-backport/1.15 This PR / issue needs backporting to the v1.15 branch labels Apr 19, 2024
@rgo3 rgo3 requested a review from a team as a code owner April 19, 2024 12:51
@rgo3
Copy link
Contributor Author

rgo3 commented Apr 19, 2024

/test

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Apr 19, 2024
@dylandreimerink dylandreimerink added this pull request to the merge queue Apr 19, 2024
Merged via the queue into cilium:main with commit 9b35bc5 Apr 19, 2024
63 checks passed
@buroa
Copy link
Contributor

buroa commented Apr 21, 2024

This should be backported to v1.15.x... etc. It's currently broken in v1.15.4.

I submitted an issue which I think is directly caused by this: #32095

cc @borkmann @dylandreimerink @rgo3

@jschwinger233 jschwinger233 mentioned this pull request Apr 22, 2024
9 tasks
@jschwinger233 jschwinger233 added backport-pending/1.15 The backport for Cilium 1.15.x for this PR is in progress. and removed needs-backport/1.15 This PR / issue needs backporting to the v1.15 branch labels Apr 22, 2024
@github-actions github-actions bot added backport-done/1.15 The backport for Cilium 1.15.x for this PR is done. and removed backport-pending/1.15 The backport for Cilium 1.15.x for this PR is in progress. labels Apr 23, 2024
samip5 added a commit to samip5/k8s-cluster that referenced this pull request May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-done/1.15 The backport for Cilium 1.15.x for this PR is done. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/bug This PR fixes an issue in a previous release of Cilium. sig/loader Impacts the loading of BPF programs into the kernel.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cilium 1.16.0-pre.1 breaks with VLAN interfaces containing dots
5 participants