SUSE / klp-build

The kernel livepatching creation tool
GNU General Public License v2.0
8 stars 2 forks source link

Add decompress method when checking ELF symbols #5

Closed marcosps closed 3 weeks ago

marcosps commented 2 months ago

Currently we don't support modules and vmlinux ELF object to be compressed with zst or other algorithms, so it would be nice to decompress before checking if a given symbol is present.

This would make easier to integrate klp-build with different distributions, since we would not require us to decompress the objects beforehand.

marcosps commented 1 month ago

Having this feature, along with clang-extract also able to check symbols from compressed modules, and finally with compile_commands.json packaged from the kernel we are creating the livepatch are the final details to enable one to create a livepatch for their running system, without requiring any compilation and sources manipulation.

We still have a long road ahead, but maybe in the next hackweek we can at least support this on klp-build, and maybe on clang-extract :)

marcosps commented 3 weeks ago

Already done for gzip and zstd. For now we only miss xz (lzma) format.

marcosps commented 3 weeks ago

With gz and zstd we have tumbleweed covered. So let's close this issue for now.