dynup / kpatch

kpatch - live kernel patching
GNU General Public License v2.0
1.49k stars 304 forks source link

Workaround create-diff-object issue #1405

Closed blitz closed 1 month ago

blitz commented 3 months ago

We've seen this issue on Linux 6.9 and 6.10:

create-diff-object: ERROR: x86.o: kpatch_bundle_symbols: 251: symbol get_cpu_tsc_khz at offset 16 within section .text.get_cpu_tsc_khz, expected 0

We found this workaround at: https://gitee.com/src-openeuler/kpatch/issues/I9I3EZ

We are not sure whether this fix is sane, but the result seems to work. :)

joe-lawrence commented 3 months ago

Hi @blitz, thanks for the report.

Is there any chance you could provide a kernel config (maybe it's the same as #1403 ?) and an input kpatch that will reproduce this error. This looks very familiar in my KERNEL_IBT travels (the aborted https://github.com/dynup/kpatch/pull/1350 perhaps?)

blitz commented 3 months ago

Hi @blitz, thanks for the report.

Is there any chance you could provide a kernel config (maybe it's the same as #1403 ?) and an input kpatch that will reproduce this error. This looks very familiar in my KERNEL_IBT travels (the aborted #1350 perhaps?)

You should be able to reproduce it with the config and patch from here: https://github.com/dynup/kpatch/issues/1404

I'll try without KERNEL_IBT.

github-actions[bot] commented 1 month ago

This PR has been open for 60 days with no activity and no assignee. It will be closed in 7 days unless a comment is added.

github-actions[bot] commented 1 month ago

This PR was closed because it was inactive for 7 days after being marked stale.