Skip to content

Commit b2d35f7

Browse files
wuguanghao3mwilck
authored andcommitted
libmpathutil: udev: prevent interruption by thread cancellation
Using mutexes only guarantees no concurrency during normal runtime. However, if a thread is cancelled mid-execution, a libudev API call might be interrupted halfway (partially executed), leaving memory values in an inconsistent or abnormal state. Furthermore, this change aligns with the requirement that libudev interfaces are not thread-safe and must not be called from multiple threads. Signed-off-by: Wu Guanghao <wuguanghao3@huawei.com> Signed-off-by: Martin Wilck <mwilck@suse.com>
1 parent 37369d8 commit b2d35f7

1 file changed

Lines changed: 128 additions & 769 deletions

File tree

0 commit comments

Comments
 (0)