Strange or not, linux did not restore SS on sigreturn in 64 bit mode. The point of explaining that is to emphasize that the issue described in the blog post is not the only one in this code (the code doing entering / exiting signal handlers).
The issue is fixed indeed, as for Feb 17, 2016.
Re:Why isn't memset() async-signal-safe?
by amluto on Wednesday January 04, 2017 @01:05AM
(#13316024)
Okay, I read your post as meaning that it was still broken.
FWIW, I don't consider it sad that my first attempt was reverted. I inadvertently broke some assumptions that a real program (DOSEMU) was making, and Linux takes backwards compatibility quite seriously. The second version was better.
I'm not sure what you mean. This issue is fixed, so SS works exactly the way you would expect it to, unless you do very strange things indeed in which case you might need to fiddle with uc_flags.