Better HN
topnewbestaskshowjobs
Log inSign up

retroshit

6 karma · joined Jun 18, 2022 (4y ago) · 2 submissions

Submissions

comment 4y ago · link · parent

Constructing bug-free code is infeasible. Even the most skilled programmers write code with bugs in, and most programmers, including many who work on browsers components, are only moderately skilled, often writing buggy code.

Perhaps the longer-term solution is to use languages that are memory safe by design, such as Rust, to avoid that class of bugs. But there will still be a huge deal of legacy C++ code to contend with in the meantime, so we do still need exploit mitigations.

comment 4y ago · link · parent

Maybe the real issue to solve is to reduce the page size to make this a feasible approach to mitigation. Hardware designers have made this choice, but, does it really need to be 4096 bytes?

With a much smaller size, say, 128 bytes, almost every new allocation could be put into a new page at a new address, with one or more guard pages behind it.

Yes, it would increase the size of the page tables, and the lookup time, but maybe it's worth it.