AmpereComputing / ampere-lts-kernel

Linux 5.4 and 5.10 Longterm kernel (LTS) with Ampere patches
21 stars 17 forks source link

Verify livepatch #138

Open adamliyi opened 2 years ago

adamliyi commented 2 years ago

5.10 kernel kselftest livepatch test was skipped. We need to verify livepatch can work on Altra.

bobolmw commented 2 years ago

In upstream, livepatch in ARM64 is not supported. But Openeuler has a un-official implementation.

Openeuler livepatch implementation can be found in https://github.com/openeuler-mirror/kernel/tree/OLK-5.10 and https://gitee.com/src-openeuler/kpatch repo.

bobolmw commented 2 years ago

Status update:

Linux kernel part backporting was done, and can be run normally. kpatch-build tool backporting have a draft version. But have some error when building livepatch ko.

bobolmw commented 2 years ago

To use livepatch in Ampere LTS 5.10, check https://github.com/AmpereComputing/ampere-lts-kernel/wiki/Livepatch-in-Ampere-LTS

adamliyi commented 2 years ago

Kselftest livepatch test cases failed because the test case relies on ftrace. For arm64, even if we apply the livepatch from PR: https://github.com/AmpereComputing/ampere-lts-kernel/pull/141, the kselftest test case still fail.