Code Monkey home page Code Monkey logo

Comments (8)

liu-song-6 avatar liu-song-6 commented on August 19, 2024

I got hit by missing CONFIG_MODVERSIONS this week. Shall we add a check in kpatch-build? Or better, shall we select MODVERSIONS with CONFIG_LIVEPATCH? (Maybe I should ask the second question in the mail list?)

from kpatch.

joe-lawrence avatar joe-lawrence commented on August 19, 2024

I got hit by missing CONFIG_MODVERSIONS this week. Shall we add a check in kpatch-build? Or better, shall we select MODVERSIONS with CONFIG_LIVEPATCH? (Maybe I should ask the second question in the mail list?)

Hi @liu-song-6 ,

  • When you say you "got hit by missing CONFIG_MODVERSIONS", is that in reference to kpatch integration tests, or did you have to debug a kpatch that tweaked exported symbol abi?
  • The kpatch integration tests assume the same result for all arches and configs. Perhaps they could be made more aware of their environment.
  • MODVERSIONS is a nice safety feature when building kpatches, but maybe there is other tooling that generates livepatches that can make do without it? And/or some distros that would want to livepatch even without MODVERSIONS?

from kpatch.

liu-song-6 avatar liu-song-6 commented on August 19, 2024

When you say you "got hit by missing CONFIG_MODVERSIONS", is that in reference to kpatch integration tests, or did you have to debug a kpatch that tweaked exported symbol abi?

I was trying to make kpatch-build work for a kernel without CONFIG_MODVERSIONS. kpatch-build works, but the patch cannot load. The fix was to reenable CONFIG_MODVERSIONS.

I think we can have kpatch-build check whether CONFIG_MODVERSIONS is enabled. If it is not, kpatch-build fails. Is this reasonable?

from kpatch.

joe-lawrence avatar joe-lawrence commented on August 19, 2024

I was trying to make kpatch-build work for a kernel without CONFIG_MODVERSIONS. kpatch-build works, but the patch cannot load. The fix was to reenable CONFIG_MODVERSIONS.ing to make kpatch-build work for a kernel without CONFIG_MODVERSIONS. kpatch-build works, but the patch cannot load. The fix was to reenable CONFIG_MODVERSIONS.

Interesting, so setting CONFIG_MODVERSIONS alone fixed the kpatch.ko load, or did it help point out inadvertent symvers change?

I think we can have kpatch-build check whether CONFIG_MODVERSIONS is enabled. If it is not, kpatch-build fails. Is this reasonable?

That would affect distros like Fedora, which probably aren't the best use case for kpatch, but certainly handy for development and testing. How about a warning?

from kpatch.

liu-song-6 avatar liu-song-6 commented on August 19, 2024

Interesting, so setting CONFIG_MODVERSIONS alone fixed the kpatch.ko load, or did it help point out inadvertent symvers change?

In this case, setting CONFIG_MODVERSIONS fixes the issue.

That would affect distros like Fedora, which probably aren't the best use case for kpatch, but certainly handy for development and testing. How about a warning?

A warning should also work.

Thanks,
Song

from kpatch.

jpoimboe avatar jpoimboe commented on August 19, 2024

What error message did you see when the patch failed to load? I'm trying to understand why enabling CONFIG_MODVERSIONS fixed it.

from kpatch.

github-actions avatar github-actions commented on August 19, 2024

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

from kpatch.

github-actions avatar github-actions commented on August 19, 2024

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

from kpatch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.