Unofficial micro-architecture optimized hardened_malloc package || https://github.com/GrapheneOS/hardened_malloc
Find a file
Tavi cec106e6ea
Update to 2026040300
Signed-off-by: Tavi <tavi@divested.dev>
2026-04-04 12:15:23 -04:00
.gitignore Update to 2026040300 2026-04-04 12:15:23 -04:00
.gitlab-ci.yml Update to 2026040300 2026-04-04 12:15:23 -04:00
0001-opt.patch Add back the MPK variant 2024-07-18 00:42:15 -04:00
0002-graceful_pkey.patch Add back the MPK variant 2024-07-18 00:42:15 -04:00
0242-mseal.patch Update to 2026030100 and sync patches 2026-03-02 15:46:16 -05:00
0252-blockops-size.patch Update to 2026040300 2026-04-04 12:15:23 -04:00
hardened_malloc.conf Overhaul 2022-07-31 00:21:50 -04:00
hardened_malloc.install Add back the MPK variant 2024-07-18 00:42:15 -04:00
hardened_malloc.spec Update to 2026040300 2026-04-04 12:15:23 -04:00
hardened_malloc_disable.conf Disable for known broken (systemd) services 2023-02-09 01:12:21 -05:00
hardened_malloc_helpers.sh Small tweaks 2024-07-13 10:09:59 -04:00
LICENSE-library Overhaul 2022-07-31 00:21:50 -04:00
LICENSE-spec Overhaul 2022-07-31 00:21:50 -04:00
PKGBUILD Update to 2026040300 2026-04-04 12:15:23 -04:00
README.md Note 2025-10-16 05:08:03 -04:00

Unofficial package for hardened_malloc

Overview

This repo contains an RPM specfile and a PKGBUILD for micro-architecture optimized builds of the hardened_malloc library.

Upstream Project

Compatibility

  • Fedora 40/41/42/etc.
  • Arch Linux

Prebuilts

Modifications

Included Variants

Five variants are included compiled for four different micro-architectures:

  • mpk
    • prioritizes security, passes all tests
      • protects allocator metadata using Memory Protection Keys
      • needs processor support: grep -q " pku " /proc/cpuinfo && echo "Supported" || echo "Not supported"
      • incompatible with systemd's default seccomp filter, no easy way to override
  • bocs
  • default
    • prioritizes security, passes all tests
  • memefficient
    • prioritizes memory usage, passes all tests
      • decreases arenas used from 4 to 1
      • disables extended size classes
  • light
    • prioritizes CPU and memory usage, fails six tests
      • disables slab quarantines
      • disables write after free check
      • disables slot randomization
      • raises the guard slab interval from 1 to 8

The default is chosen at install time depending:

  • 12GB+ RAM: -default
  • <12GB RAM: -memefficient

Known Issues

License

MIT

Credits

  • @GrapheneOS for the hardened_malloc project itself
  • @noatsecure/HardHatOS for the original RPM specfile
  • @thithib for the original PKGBUILD
  • Whonix for the bubblewrap command to disable the preload