Post AhoVLHoBVQRfvxLYO0 by djb@mastodon.cr.yp.to
(DIR) More posts by djb@mastodon.cr.yp.to
(DIR) Post #AhoVLHoBVQRfvxLYO0 by djb@mastodon.cr.yp.to
2024-04-20T15:40:40Z
0 likes, 0 repeats
Tracking down some TIMECOP alerts led to a 2021 gcc patch from ARM (https://gcc.gnu.org/git/?p=gcc.git;a=commit;f=gcc/match.pd;h=d70720c2382e687e192a9d666e80acb41bfda856) turning (-x)>>31 into a bool, often breaking constant-time code. Can often work around with (-x)>>30, and asm is safer anyway, but for portable fallbacks we need security-aware compilers.