Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Deadlock in lib/krb5/mcache.c #432
lib/krb5/mcache.c has 2 types of mutex:
Deadlocks happen since mcc_get_cache_first() and mcc_destroy() lock them in different order.
ORDER: mcc_mutext => cache->mutex
ORDER: cache->mutex => mcc_mutext
Deadlocks happen at L261 and L433.
The following diff will fix this.