sd-event: don't destroy inotify data structures from inotify event handler
authorLennart Poettering <lennart@poettering.net>
Mon, 8 Nov 2021 23:11:38 +0000 (00:11 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 19 Nov 2021 17:19:28 +0000 (18:19 +0100)
commit439a271943aa182002e5fb64f1a216415e556472
treed89a659a69e0138b3ca58257c8286ec00dad1b14
parente53bfae86dfb909e0a2eb179328b61f4ed723639
sd-event: don't destroy inotify data structures from inotify event handler

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 53baf2efa420cab6c4b1904c9a0c46a0c4ec80a1)
src/libsystemd/sd-event/event-source.h
src/libsystemd/sd-event/sd-event.c