Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Add missing pahole dependencies#1839

Merged
jepio merged 1 commit intomainfrom
jepio/add-pahole-deps
Apr 25, 2022
Merged

Add missing pahole dependencies#1839
jepio merged 1 commit intomainfrom
jepio/add-pahole-deps

Conversation

@jepio
Copy link
Copy Markdown
Contributor

@jepio jepio commented Apr 25, 2022

Add missing pahole dependencies

pahole is a build-time dependency of our kernel build, due to us setting
CONFIG_BTF_DEBUG_INFO. If pahole is missing, a make modules_prepare with our
kernel config results in symbols in the config changing. This will affect
people building kernel modules against coreos-sources in the developer
container, but not the SDK because pahole is already in sdk-depends.

How to use

Test the resulting developer container with nvidia.service on a GPU instance (e.g. NC6s_v3 in EastUS).

Testing done

Modified this line: https://github.com/flatcar-linux/coreos-overlay/blob/main/x11-drivers/nvidia-drivers/files/bin/install-nvidia#L7 to be emerge -gkv pahole coreos-sources and verified that this allows the built modules to be probed. Without this, the module fails to load with this error message "module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1...".

Tested here: http://jenkins.infra.kinvolk.io:8080/job/os/job/manifest/5487/cldsv/

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)
    `

Copy link
Copy Markdown
Contributor

@pothos pothos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A changelog entry for bugfix would be good, or?

@jepio jepio force-pushed the jepio/add-pahole-deps branch from 78a5d3b to e9731cd Compare April 25, 2022 08:16
@jepio
Copy link
Copy Markdown
Contributor Author

jepio commented Apr 25, 2022

Can you check the changelog I added?

pahole is a build-time dependency of our kernel build, due to us setting
CONFIG_BTF_DEBUG_INFO. If pahole is missing, a `make modules_prepare` with our
kernel config results in symbols in the config changing. This will affect
people building kernel modules against coreos-sources in the developer
container, but not the SDK because pahole is already in sdk-depends.

pahole is now an (explicit) BDEPEND of all the coreos-kernel/coreos-modules
packages, and we'll make it an RDEPEND of coreos-sources so that it is pulled
in whenever it might be necessary.  Also add it to the coreos-dev package so
that it is included in developer container by default, uncompressed size
increase is <1MB.
@jepio jepio force-pushed the jepio/add-pahole-deps branch from e9731cd to 8a15e6d Compare April 25, 2022 12:28
@jepio jepio merged commit 889c76c into main Apr 25, 2022
jepio added a commit that referenced this pull request Apr 25, 2022
jepio added a commit that referenced this pull request Apr 25, 2022
jepio added a commit that referenced this pull request Apr 25, 2022
jepio added a commit that referenced this pull request Apr 25, 2022
@jepio jepio deleted the jepio/add-pahole-deps branch April 25, 2022 12:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants