Thats because Gentoo decided to switch on a new compile flag, then didn't bother to test that the kernel still boots:
FWIW, the compile flag that Gentoo enabled activates a seriously busted GCC feature, and I'm a bit surprised that Gentoo gets away with it in user code.
Edit: nevermind. It's the -fstack-check flag mentioned in the other comments.
For more on the considerations that underpin stack probing, see http://jdebp.eu./FGA/function-perilogues.html#StackProbes for starters.
Regardless, it seems like RMW (or even just a store) should be fine as long as the stack pointer is adjusted before the probe.
So yes, It's a terminally broken compiler from hell. I assume gentoo
has applied some completely broken security patch to their compiler,
turning said compiler into complete garbage.The patch to "fix" it is explicitly disabling -fstack-check for the kernel build. I believe that will go out in 4.14.11 (it is not in 4.14.10).