[clang] [analyzer] Model XNU try-lock nonzero return as success (PR #248014)

Balázs Benics via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 2 06:45:56 PST 2026


https://github.com/steakhal approved this pull request.

Ouch. I'm not happy to see that we had this regression for so long, as XNU is a really important component. This seemed like not just a simple mismodeling - but rather something that actively harmed our users, as the modelled semantics did the exact opposite of what they should have.

It's mind-boggling that the two sets of APIs have opposite contracts.
Thanks for catching this. I'll definitely backport this ASAP.

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


More information about the cfe-commits mailing list