koverstreet / bcachefs-tools

http://bcachefs.org
GNU General Public License v2.0
120 stars 89 forks source link

Compatibility with _FORTIFY_SOURCE=3 #237

Closed freswa closed 7 months ago

freswa commented 7 months ago

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.

freswa commented 7 months ago

@koverstreet Sorry if I missed something here, but why is this marked as completed?