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

AUTOFS: remove timed event if related object is removed #587

Closed
wants to merge 1 commit into from

Conversation

jhrozek
Copy link
Contributor

@jhrozek jhrozek commented May 31, 2018

autofs_map_result_timeout() is called as a timed event to free the autofs
map data is the cache lifetime is exceeded. If the data is freed earlier
the timed event should be removed as well to avoid a double free issue.

Since talloc is used here the most easy way to achieve this is to allocate
the timed event on the map object itself.

Resolves: https://pagure.io/SSSD/sssd/issue/3752

autofs_map_result_timeout() is called as a timed event to free the
autofs map data is the cache lifetime is exceeded. If the data is freed
earlier the timed event should be removed as well to avoid a double
free issue.

Since talloc is used here the most easy way to achieve this is to allocate
the timed event on the map object itself.

Resolves:
https://pagure.io/SSSD/sssd/issue/3752
@fidencio
Copy link
Contributor

Ack!
I'll fire the CI and add the "Accepted" label when I get Ci results.

@fidencio fidencio self-assigned this May 31, 2018
@fidencio
Copy link
Contributor

Btw, this one would deserve a backport to another branches, right?
There's no need to provide the backport patches as I can cook them later on.

@jhrozek
Copy link
Contributor Author

jhrozek commented May 31, 2018 via email

@fidencio
Copy link
Contributor

@fidencio
Copy link
Contributor

master:
7567215

@fidencio fidencio closed this May 31, 2018
@fidencio fidencio added Pushed and removed Accepted labels May 31, 2018
@fidencio
Copy link
Contributor

sssd-1-14:
1199a0d
sssd-1-13:
8cf14ee

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

Successfully merging this pull request may close these issues.

None yet

2 participants