News for hackers. Stuff that matters.
Re:Why isn't memset() async-signal-safe? by amelius on Tuesday January 03, 2017 @06:26PM (#13314269)
The CPU designers could have protected against this by randomly fluctuating the size of the xsave'd data.
Re:Why isn't memset() async-signal-safe? by monocasa on Wednesday January 04, 2017 @12:41AM (#13315937)
At the cost of extra bandwidth and interrupt latency.
Re:Why isn't memset() async-signal-safe? by amelius on Wednesday January 04, 2017 @03:31AM (#13316626)
Yes, but only marginally if they changed the size only 1 out of 1000 times.
Re:Why isn't memset() async-signal-safe? by spdionis on Wednesday January 04, 2017 @10:27AM (#13318997)
Adding complexity (that could result in bugs) in the hope to prevent bugs by bad usage of the interface is usually a bad idea.