The NX bit is not just about security

(purplesyringa.moe)

20 points | by torutofu 3 days ago ago

4 comments

  • asveikau 17 minutes ago

    On this theme of it not being just about security: if you have a bug like a use after free and it happens to cover a function pointer, the nx bit can ensure that when you follow that pointer through a call, you get a clean trap as close to the failure point as possible. If it blindly executed stale bytes as code, maybe the crash and stack trace doesn't look as nice.

    But then, a lot of correctness bugs like that are also security problems.

  • tripdout 28 minutes ago

    I really wish I understood this, it hits a bunch of topics that I've heard of and are/sound interesting, but I don't know enough to follow it.

  • crazy1_ 22 minutes ago

    this is so amazing

  • Nail2680 26 minutes ago

    Hot take: NX bit is shit W^X is shit. proper JIT is having objects written as needed, and cache line flushing is full bullshit, we need self modifying code as a first class citizen and with modern techiques we can have it work and not be crazy slow, it is currently cuz shits fucked, but we can do better.