Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos: configurable system-wide malloc #60187

Merged
merged 3 commits into from May 12, 2019

Conversation

joachifm
Copy link
Contributor

A more general alternative to #59955 that allows choosing among a predefined set of providers. The implementation is pretty bad but does "work". Ideally this would be improved upon later.

If this variant is deemed too much for the niche functionality it provides, I'm happy to go back to a more limited version under hardened. (From my pov, only the hardened allocator is really of interest).

@joachifm
Copy link
Contributor Author

@GrahamcOfBorg test hardened

Currently, this uses the somewhat crude method of setting LD_PRELOAD in the
system environment.  This works, but should be considered a stepping stone to
a more robust solution.
@joachifm joachifm merged commit b4a43a2 into NixOS:master May 12, 2019
@eadwu
Copy link
Member

eadwu commented May 13, 2019

graphene-hardened more or less just breaks nix for me, making it error out with out of memory.

@delroth
Copy link
Contributor

delroth commented May 29, 2019

+1, I just ended up tracking nix OOMs to this PR as well.

@delroth
Copy link
Contributor

delroth commented May 29, 2019

(If you're looking for another potential hardened allocator, Scudo has seen some good amounts of battle-testing. I suspect it might have less side effects.)

@joachifm
Copy link
Contributor Author

See also #61489

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants