dynup / kpatch

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

testing fedora 27: tracepoints-section: build failed #766

Closed joe-lawrence closed 1 year ago

joe-lawrence commented 6 years ago

Integration test results from PR #762

joe-lawrence commented 6 years ago

This one is weird. If I compare the disassembly:

vimdiff \
    <(objdump -D -j '.init.text' orig/kernel/time/timer.o) \
    <(objdump -D -j '.init.text' patched/kernel/time/timer.o)

The first thing I notice is that the order of the functions inside .init.text have been changed. If I rearrange the patched object file's output and then scrub both outputs of the unrelocated call / jump / etc references (ie, objdump lines like:

186:   e8 00 00 00 00          callq  18b <trace_event_define_fields_timer_expire_entry+0x56>

with generic "XYZ" offsets, then their assembly codes match up perfectly. So I think the patched object file's rearrangement modifies the '.rela.init.text' section as well because of this.

joe-lawrence commented 1 year ago

Fedora 27 is way EOL and we no longer carry tracepoints-section test in later (RHEL or upstream) integration tests. Closing.