[libc-commits] [libc] [libc] add checksum for jmpbuf (PR #101110)

Paul Kirth via libc-commits libc-commits at lists.llvm.org
Fri Aug 9 17:50:59 PDT 2024


ilovepi wrote:

I think its unsurprising that avoiding the encryption/masking/mangling is significantly faster, especially when executed in a loop. It suggests that the extra security measures should be configurable, since I imagine many users may not want/need that feature. That said, I think a program where `setjmp/longjmp` is on your hot path has other issues, so maybe its not nearly that important? Still, I know that we'll want to make that a configuration option for other targets, particularly for things that may want to run baremetal, so its probably worth doing that in a uniform way. 

Also, since I'm not the most seasoned libc reviewer, I know @frobtech has implemented similar schemes, and may have a few thoughts on ways to improve the implementation.

https://github.com/llvm/llvm-project/pull/101110


More information about the libc-commits mailing list