Mdadm throws buffer-overflow sometimes, it depends on the building environment.
It happens mdadm is built with FORFTIFY_SOURCE=3 (as it is done in Ubuntu 24.04).
Buffer-overflow is detected for many commands in this case:
- mdadm --detail-pl
- mdadm -CR /dev/md0 -l1 -n2 /dev/nvme0n1 /dev/nvme1n1
*** buffer overflow detected ***: terminated
Aborted (core dumped)
Mdadm throws buffer-overflow sometimes, it depends on the building environment.
It happens mdadm is built with FORFTIFY_SOURCE=3 (as it is done in Ubuntu 24.04).
Buffer-overflow is detected for many commands in this case:
- mdadm --detail-pl
- mdadm -CR /dev/md0 -l1 -n2 /dev/nvme0n1 /dev/nvme1n1
*** buffer overflow detected ***: terminated
Aborted (core dumped)
It is fixed in mdadm upstream - please apply this patch to mdadm package and rebuilt it. /git.kernel. org/pub/ scm/utils/ mdadm/mdadm. git/commit/ ?id=827e1870f32 0545796d907f50a f594e901399417
https:/