Skip to content

selftests/bpf: livepatch_trampoline: skip when prerequisites are missing#11294

Closed
kernel-patches-daemon-bpf[bot] wants to merge 1 commit intobpf-next_basefrom
series/1061666=>bpf-next
Closed

selftests/bpf: livepatch_trampoline: skip when prerequisites are missing#11294
kernel-patches-daemon-bpf[bot] wants to merge 1 commit intobpf-next_basefrom
series/1061666=>bpf-next

Conversation

@kernel-patches-daemon-bpf
Copy link
Copy Markdown

Pull request for series with
subject: selftests/bpf: livepatch_trampoline: skip when prerequisites are missing
version: 2
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1061666

@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

Upstream branch: 4faa189
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1061666
version: 2

@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

Upstream branch: 748f9c6
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1061666
version: 2

@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

Upstream branch: 6dd780f
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1061666
version: 2

@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

Upstream branch: 099bded
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1061666
version: 2

livepatch_trampoline relies on livepatch sysfs and livepatch-sample.ko.
When CONFIG_LIVEPATCH is disabled or the samples module isn't built, the
test fails with ENOENT and causes false failures in minimal CI configs.

Skip the test when livepatch sysfs or the sample module is unavailable.
Also avoid writing to livepatch sysfs when it's not present.

Signed-off-by: Sun Jian <sun.jian.kdev@gmail.com>
@kernel-patches-daemon-bpf kernel-patches-daemon-bpf Bot force-pushed the series/1061666=>bpf-next branch from 14199d4 to b5f7169 Compare March 9, 2026 01:05
@kernel-patches-daemon-bpf kernel-patches-daemon-bpf Bot deleted the series/1061666=>bpf-next branch March 11, 2026 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant