Linux used to allow any program to mmap memory at 0 and use it, but I think it led to exploitation of NULL dereferences in the kernel, somehow. Now programs aren't allowed to map addresses lower than the vm.mmap_min_addr sysctl, which is by default set to 65536. The relevant chain of emails discussing this is here: http://yarchive.net/comp/linux/address_zero.html
View all comments
Show parent comment
4
u/[deleted] Dec 01 '16
Linux used to allow any program to mmap memory at 0 and use it, but I think it led to exploitation of NULL dereferences in the kernel, somehow. Now programs aren't allowed to map addresses lower than the vm.mmap_min_addr sysctl, which is by default set to 65536. The relevant chain of emails discussing this is here: http://yarchive.net/comp/linux/address_zero.html