4 ms·
Be careful with ASAN on cryptographic code, though. It can introduce side channels.
by jedisct1 5y ago
Be careful with ASAN on cryptographic code, though. It can introduce side channels.
- skeetmtp 5y agoASAN is not meant to be used in production though. Or I missed something in your comment.
- chrsig 5y agoI've seen it advised to periodically release to production with ASAN/UBSAN/TSAN enabled, with the intention that it's only 1/nth of a deployment, and even then, only deployed for enough time to collect instrumentation. I don't have a citation to share, so take with as many grains of salt as you feel appropriate. If nothing else, I appreciate the advisement that it can have security implications.
- wizzwizz4 5y ago> with the intention that it's only 1/nth of a deployment, and even then, only deployed for enough time to collect instrumentation You can't unleak secrets.
- jcalvinowens 5y agoThat's definitely a good point, and worth thinking about. But most people don't go to the trouble to rebuild dependencies like openssl. Unless you're actually implementing crypto, it seems unlikely you'd expose anything, although you do have to consider the possibility that a crypto library could call an instrumented function which could leak state.