We at Arch Linux are planning to introduce _FORTIFY_SOURCE=3 as a default compile flag. Code that uses malloc_usable_size is incompatible with this change sadly. Unfortunately bcachefs-tools make use of malloc_usable_size in include/linux/slab.h.
Since glibc states, that malloc_usable_size is for diagnostic purposes only, I'd like to propose to remove the two occurences from the code base.
We at Arch Linux are planning to introduce
_FORTIFY_SOURCE=3
as a default compile flag. Code that usesmalloc_usable_size
is incompatible with this change sadly. Unfortunately bcachefs-tools make use ofmalloc_usable_size
ininclude/linux/slab.h
. Since glibc states, thatmalloc_usable_size
is for diagnostic purposes only, I'd like to propose to remove the two occurences from the code base.