Re:Systemd is bad parsing
by erik_seaberg on Saturday October 27, 2018 @04:21PM
(#18317484)
Segmentation was expensive (loading an 80286 segment register was very slow and the segment table was impractically small) but could express "offsets between 0 and 42 are valid". Paging is much coarser and suffers from false negatives, because x[y] might accidentally walk off the end of x, skip a guard page, and land on a mapped page from another object.
Re:Systemd is bad parsing
by insertcredit on Saturday October 27, 2018 @05:32PM
(#18317776)
Not quite true: There would not exist exploitable buffer overflows if that was the case.
x86 has bounds checking in hardware. it's called a page fault.
[edit: formatting]