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 <email@example.com> Signed-off-by: Robin Getz <firstname.lastname@example.org> Signed-off-by: Mike Frysinger <email@example.com> Signed-off-by: David Howells <firstname.lastname@example.org> Acked-by: Paul Mundt <email@example.com> Acked-by: Greg Ungerer <firstname.lastname@example.org> Signed-off-by: Andrew Morton <email@example.com> Signed-off-by: Linus Torvalds <firstname.lastname@example.org>
- Loading branch information...
Showing with 60 additions and 4 deletions.