The prctl function in glibc is variadic, yet libasan calls it with a fixed argument list. This causes stack corruption on powerpc64le-linux-gnu with glibc 2.32 or later because the prctl implementation assumes that the parameter save area has been set up by the caller, which only happens on variadic calls.
References:
Bug 29770 - prctl does not match manual page ABI on powerpc64le-linux-gnu
The
prctl
function in glibc is variadic, yet libasan calls it with a fixed argument list. This causes stack corruption on powerpc64le-linux-gnu with glibc 2.32 or later because theprctl
implementation assumes that the parameter save area has been set up by the caller, which only happens on variadic calls.References:
I don't know if I can get the ABI change reverted on the glibc side.