]> git.ipfire.org Git - thirdparty/glibc.git/commit
AArch64: Avoid memset ifunc in cpu-features.c [BZ #33112]
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Fri, 27 Jun 2025 14:10:55 +0000 (14:10 +0000)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Mon, 30 Jun 2025 13:17:38 +0000 (13:17 +0000)
commit681a24ae4d0cb8ed92de98b4da660308840b09ba
treed0558e869d967faf2a72ea697ef2637c953022f9
parent1061b754123dea4b02197793436931172d523c78
AArch64: Avoid memset ifunc in cpu-features.c [BZ #33112]

During early startup memcpy or memset must not be called since many targets
use ifuncs for them which won't be initialized yet.  Security hardening may
use -ftrivial-auto-var-init=zero which inserts calls to memset.  Redirect
memset to memset_generic by including dl-symbol-redir-ifunc.h in cpu-features.c.
This fixes BZ #33112.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/unix/sysv/linux/aarch64/cpu-features.c