[PATCH] lib/crypto: blake2s: fix a CFI failure

Jason A. Donenfeld Jason at zx2c4.com
Wed Jan 19 01:00:30 PST 2022


Hi Miles,

Thanks for the patch. Could you let me know which architecture and
compiler this was broken on? If I had to guess, I'd wager arm32, and
you hit this by enabling optimized blake2s?

If so, I'm not sure the problem is with weak symbols. Why should CFI
break weak symbols? Rather, perhaps the issue is that the function is
defined in blake2s-core.S? Are there some CFI macros we need for that
definition?

Jason



More information about the Linux-mediatek mailing list