Skip to contentSkip to conversation

dmeventd: Fix segfault in _timeout_thread

PATCH New Marian Csontos 1 participant 2 messages Sep 21, 2015 – Sep 22, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dmeventd: Fix segfault in _timeout_thread

In case thread was found, or thread registration failed after _register_for_timeout, thread_status was kept in timeout_list after deallocation.

This should address BZ 1210514 and BZ 1220856.

-- Martian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-dmeventd-Fix-segfault-in-_timeout_thread.patch
Type: text/x-patch
Size: 3583 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20150921/d0437096/attachment.bin>

author NAK
#1 lore raw

PATCH 1/1 dmeventd: Fix segfault in _timeout_thread

Quoted 6 lines · Marian Csontos

In case thread was found, or thread registration failed after _register_for_timeout, thread_status was kept in timeout_list after deallocation.

This should address BZ 1210514 and BZ 1220856.

Quoted 8 lines

-- Martian

--
lvm-devel mailing list
lvm-devel at redhat.com
https://www.redhat.com/mailman/listinfo/lvm-devel

NACK.

Kabi asked me to break this down into:
- actual fix
- refactoring

Also there is a copy'n'paste mistake there (thread_new used instead of thread in the added register_timeout.)

/me needs to learn git send-mail.