GithubHelp home page GithubHelp logo

Comments (5)

anthraxx avatar anthraxx commented on July 2, 2024

from kernel-hardening-checker.

a13xp0p0v avatar a13xp0p0v commented on July 2, 2024

As I remember, all these features are different in some sense.
Are you sure that they are alternative to each other?

from kernel-hardening-checker.

madaidan avatar madaidan commented on July 2, 2024

As far as I know, they all have the same goal which is to overwrite memory to prevent use-after-free but they have some slight differences as PAGE_POISONING forces debugging bloat (as it is actually a debugging feature) which makes init_on_{,free,alloc} or PAGE_SANITIZE (which was dropped in newer linux-hardened versions for init_on_{,free,alloc}) better.

init_on_{,free,alloc} actually disables itself when PAGE_POISONING is being used to prevent conflict.

torvalds/linux@6471384

If either SLUB poisoning or page poisoning is enabled, those options take
precedence over init_on_alloc and init_on_free: initialization is only
applied to unpoisoned allocations.

Also notice that linux-hardened and ClipOS do not enable PAGE_POISONING but use the others instead.

from kernel-hardening-checker.

a13xp0p0v avatar a13xp0p0v commented on July 2, 2024

@madaidan, thanks for the details.
So yes, PAGE_POISONING is a debugging feature.
It provides less erasing than INIT_ON_FREE_DEFAULT_ON.

I joined these checks with OR giving preference to INIT_ON_FREE_DEFAULT_ON.
Please see the linked commit.

from kernel-hardening-checker.

madaidan avatar madaidan commented on July 2, 2024

Great, thanks.

from kernel-hardening-checker.

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.