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

Racy einfo allocation and emlog_info_list manipulation #10

Open
ahippo opened this issue Jul 10, 2018 · 0 comments
Open

Racy einfo allocation and emlog_info_list manipulation #10

ahippo opened this issue Jul 10, 2018 · 0 comments

Comments

@ahippo
Copy link
Collaborator

ahippo commented Jul 10, 2018

As mentioned in a comment for #7, there are a few other race conditions:

  • with emlog_info_list manipulation (create_einfo() vs free_einfo())
  • with new einfo allocation (get_einfo() vs create_einfo())

This may cause memory leaks or crashes during concurrent opening of new emlog buffers,
or concurrent closing/opening of an emlog device (when loaded with emlog_autofree=1 (defaults to off)).

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

1 participant