2
1
Fork
You've already forked rpm-hardened_malloc
0
Unofficial micro-architecture optimized hardened_malloc package || https://github.com/GrapheneOS/hardened_malloc
  • Shell 100%
Find a file
Tavi 3227e857c5
Update to 2026060100
Signed-off-by: Tavi <tavi@divested.dev>
2026年06月06日 10:33:41 -04:00
.gitignore Update to 2026060100 2026年06月06日 10:33:41 -04:00
.gitlab-ci.yml Update to 2026060100 2026年06月06日 10:33:41 -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 2026060100 2026年06月06日 10:33:41 -04:00
0252-blockops-size.patch Update to 2026060100 2026年06月06日 10:33:41 -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 2026060100 2026年06月06日 10:33:41 -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 2026060100 2026年06月06日 10:33:41 -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