Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible no unlock. #4351

Open
Bbulatov opened this issue May 14, 2024 · 1 comment
Open

Possible no unlock. #4351

Bbulatov opened this issue May 14, 2024 · 1 comment

Comments

@Bbulatov
Copy link

Good day!
During the statistical analysis, a situation was found where the lock remained open. Testing was carried out on Linux Debian 11. A LOCK(&cache->gc_lock) is created in the file src/gidcache.c:69. But if you get to line 96, having satisfied all the conditions, it turns out that UNLOCK(&cache->gc_lock) will not be called in any way.
Please clarify whether this is critical and whether changes will be made to the code?

@mohit84
Copy link
Contributor

mohit84 commented May 14, 2024

Good day! During the statistical analysis, a situation was found where the lock remained open. Testing was carried out on Linux Debian 11. A LOCK(&cache->gc_lock) is created in the file src/gidcache.c:69. But if you get to line 96, having satisfied all the conditions, it turns out that UNLOCK(&cache->gc_lock) will not be called in any way. Please clarify whether this is critical and whether changes will be made to the code?

In that case UNLOCK Is call by parent function on the basis of code return by the function gid_cache_lookup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants