Please sign in to comment.
nommu: fix malloc performance by adding uninitialized flag
The NOMMU code currently clears all anonymous mmapped memory. While this is what we want in the default case, all memory allocation from userspace under NOMMU has to go through this interface, including malloc() which is allowed to return uninitialized memory. This can easily be a significant performance penalty. So for constrained embedded systems were security is irrelevant, allow people to avoid clearing memory unnecessarily. This also alters the ELF-FDPIC binfmt such that it obtains uninitialised memory for the brk and stack region. Signed-off-by: Jie Zhang <firstname.lastname@example.org> Signed-off-by: Robin Getz <email@example.com> Signed-off-by: Mike Frysinger <firstname.lastname@example.org> Signed-off-by: David Howells <email@example.com> Acked-by: Paul Mundt <firstname.lastname@example.org> Acked-by: Greg Ungerer <email@example.com> Signed-off-by: Andrew Morton <firstname.lastname@example.org> Signed-off-by: Linus Torvalds <email@example.com>
- Loading branch information...
Showing with 60 additions and 4 deletions.