Re:Why isn't memset() async-signal-safe?
by DannyBee on Tuesday January 03, 2017 @06:51PM
(#13314429)
It's about whether it's cleared entering a signal handler or not
https://lkml.org/lkml/2008/3/5/207
is the first message.
Basically: ABI implementation bug in kernel. https://lkml.org/lkml/2008/3/5/231
GCC started actually relying on the ABI being correct in version 4.3, folks noticed bug.
I don't know what historical architectures may have had a bug with this, but it's not true of x86. If memset isn't signal-safe on modern x86 linux, it's surely not because of EFLAGS state management.