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

(#2211358) Fix memory corruption #396

Merged

Commits on Jun 15, 2023

  1. sd-event: remove dead code and use _cleanup_

    CID #1393250.
    
    (cherry picked from commit 8c75fe1)
    
    Related: #2211358
    keszybz authored and dtardon committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    a01ef6c View commit details
    Browse the repository at this point in the history
  2. sd-event: don't destroy inotify data structures from inotify event ha…

    …ndler
    
    This fixes a bad memory access when we destroy an inotify source handler
    from the handler itself, and thus destroy the associated inotify_data
    structures.
    
    Fixes: #20177
    (cherry picked from commit 53baf2e)
    
    Resolves: #2211358
    poettering authored and dtardon committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    b0ad8db View commit details
    Browse the repository at this point in the history
  3. sd-event: add sd_event_add_inotify_fd() call

    sd_event_add_inotify_fd() is like sd_event_add_inotify(), but takes an
    fd to an inode instead of a path, and is hence a ton nicer.
    
    (cherry picked from commit e67d738)
    
    Related: #2211358
    poettering authored and dtardon committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    c199aeb View commit details
    Browse the repository at this point in the history
  4. test: add test case for self-destroy inotify handler

    (cherry picked from commit 035daf7)
    
    Related: #2211358
    poettering authored and dtardon committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    486d3e0 View commit details
    Browse the repository at this point in the history