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: Fix "Skipping symbol substitution" warnings #10934

Merged
merged 3 commits into from Apr 13, 2020

Conversation

pchaigno
Copy link
Member

@pchaigno pchaigno commented Apr 10, 2020

This pull request adds symbol substitution warnings to badLogMessages and fixes two occurrences in tests, namely cilium_ipv4_frag_datagrams and LXC_IP_. See commit messages for details.

@maintainer-s-little-helper

This comment has been minimized.

@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.8.0 Apr 10, 2020
@pchaigno pchaigno added the release-note/misc This PR makes changes that have no direct user impact. label Apr 10, 2020
@coveralls
Copy link

coveralls commented Apr 10, 2020

Coverage Status

Coverage increased (+0.02%) to 46.656% when pulling 926eb90 on pr/pchaigno/fix-warning-ipfrag-map-symbol into 49433fa on master.

These warning messages generally indicate that a new map was introduced
or renamed and the list of symbols in ignoredELFPrefixes wasn't updated.

Signed-off-by: Paul Chaignon <paul@cilium.io>
A new IP frag. map was introduced, but the list of symbols to skip in the
ELF wasn't updated, resulting in the following warning:

    2020-04-10T15:08:21.073661843Z level=warning msg="Skipping symbol substitution" subsys=elf symbol=cilium_ipv4_frag_datagrams

Fixes: #10264
Signed-off-by: Paul Chaignon <paul@cilium.io>
If IPv6 was just enabled and the endpoint restored, it's possible for
the template BPF object file to have the LXC_IP_* symbols while the
endpoint doesn't. We therefore don't generate a warning in that case.

Signed-off-by: Paul Chaignon <paul@cilium.io>
@pchaigno pchaigno force-pushed the pr/pchaigno/fix-warning-ipfrag-map-symbol branch from 6b72eb5 to 926eb90 Compare April 10, 2020 18:04
@pchaigno pchaigno changed the title loader: Fix "Skipping symbol substitution" warning loader: Fix "Skipping symbol substitution" warnings Apr 13, 2020
@pchaigno pchaigno added area/CI Continuous Integration testing issue or flake sig/loader Impacts the loading of BPF programs into the kernel. labels Apr 13, 2020
@pchaigno pchaigno marked this pull request as ready for review April 13, 2020 12:38
@pchaigno pchaigno requested a review from a team April 13, 2020 12:38
@pchaigno pchaigno requested a review from a team as a code owner April 13, 2020 12:38
@joestringer joestringer merged commit 2a210ca into master Apr 13, 2020
1.8.0 automation moved this from In progress to Merged Apr 13, 2020
@joestringer joestringer deleted the pr/pchaigno/fix-warning-ipfrag-map-symbol branch April 13, 2020 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake release-note/misc This PR makes changes that have no direct user impact. sig/loader Impacts the loading of BPF programs into the kernel.
Projects
No open projects
1.8.0
  
Merged
Development

Successfully merging this pull request may close these issues.

None yet

3 participants