SUSE / clang-extract

Other
7 stars 3 forks source link

Support IBT usecase on kernel #33

Closed marcosps closed 2 weeks ago

marcosps commented 4 weeks ago

When IBT is enabled on linux kernel, we can't use externalized variables + kallsyms anymore. Support the klp-convert way of declaring private symbols. I'll work on it soon.

marcosps commented 4 weeks ago

Patches sent for review. Hopefully we can have it merged soon and so start supporting livepatches for upstream kernels

giulianobelinassi commented 3 weeks ago

There are two testcases failing. testsuite/linux/ibt-2.c and testsuite/linux/ibt-3.c

marcosps commented 3 weeks ago

Faster than light!

marcosps commented 3 weeks ago

We still have some problems when generating the sample livepatch using the "IBT" method. Checking what's wrong...

marcosps commented 3 weeks ago

Some things that we should still work out:

marcosps commented 2 weeks ago

ibt-2 is now passing, and the "issue" reported on ibt-3.c is not really an issue right now, so we can work on it in the future.