Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Using 16 bits may be risky on recent x86. For example, IIRC Linux enables 5-level page tables on microarchitectures that support it, which can put valid address data in bits 48-56.

Linux will not allocate past the 47-bit range, even with 5-level paging enabled, unless specifically requested, by providing a pointer hint to `mmap` with a higher address.

https://www.kernel.org/doc/html/v5.14/x86/x86_64/5level-pagi...



Ah, thanks for the detail! I was unaware that this was how it worked.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: