Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

hardened_malloc vs mimalloc, which is more secure?

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
Shadow_Fury
Apprentice
Apprentice
Posts: 213
Joined: Tue Apr 20, 2021 11:23 pm
Location: 11.435765792823453, 143.05926743686274

hardened_malloc vs mimalloc, which is more secure?

  • Quote

Post by Shadow_Fury » Sat Jan 28, 2023 2:55 am

as the title says, i'm wondering which of these two would be better for compiling into system files.

hardened_malloc is developed for use in grapheneOS, and was merged into mainline android a while back, and i've seen a guide that recommends it as the secure malloc replacement of choice.

on the other hand, i found a gentoo package for mimalloc, which has a hardened mode. reading through the features, both have their own unique security benefits (as far as i can tell), and i don't really know which is better.

thus, i pose the question:
what are the pros of using one over the other, and which would be overall recommended?

-S
Top
_integralpanther_
n00b
n00b
User avatar
Posts: 7
Joined: Wed Jul 13, 2005 6:19 pm
Location: de

  • Quote

Post by _integralpanther_ » Wed Feb 01, 2023 9:42 pm

Hi Shadow_Fury,

before answering the question you should ask yourself the following questions:

Apperently you had a reason to go beyond the standard solution by just taking malloc.
What was that reason?
Apperently you found two alternatives.
What were the reasons letting you choose exactly these two?

What I am trying to point you at is that there are multiple things:
- The reason malloc was invented, that solves 95% of all memory allocation problems.
- The reasons why hardened_malloc and mimalloc where invented (and the specific problems they solve).
- Finally the Problem you are trying to solve.

If you clarify that you will find out which of the variants is the best for your problem. But probably you find out that neither variant fits your problem.

Apart from that -- if that is an option -- consider also taking a language with easier memory management.
Top
Post Reply

2 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic