GrapheneOS / hardened_malloc

Hardened allocator designed for modern systems. It has integration into Android's Bionic libc and can be used externally with musl and glibc as a dynamic library for use on other Linux-based platforms. It will gain more portability / integration over time.
https://grapheneos.org/
MIT License
1.21k stars 91 forks source link

fatal allocator error: failed to allocate slab region arm64 rpi #206

Closed TheWanderer1983 closed 1 year ago

TheWanderer1983 commented 1 year ago

Hello all, I built the latest harden malloc as per these instruction on a raspberry pi 4b with latest raspberry pi OS lite 64bit and kernel 5.15.61-v8+ from raspberry pi github. This system has LKRG built and working. It builds fine but when i load the library via /etc/ld.so-preload the system completely locks up. Every command to shell comes back with "fatal allocator error: failed to allocate slab region". I need to remove the ld.so-preload and library in order to get the system functional again.

thestinger commented 1 year ago

You likely have your kernel configured with a 39-bit address space and the default configuration expects a larger address space. You need to reduce the class region size or change your kernel configuration.

TheWanderer1983 commented 1 year ago

You were right. I rebuilt the kernel with 48bit and it fixed the problem. Thank you.