[Bug 1354114] Re: multipath segmentation Fault (libmultipath: update waiter handling)
Rafael David Tinoco
rafael.tinoco at canonical.com
Thu Aug 7 20:06:47 UTC 2014
It looks like the fix above introduces regressions (actually other new
bugs):
commit 96f81469ff993b6063bb8829d9b336590510466d
Author: Hannes Reinecke <hare at suse.de>
Date: Mon May 4 16:46:58 2009 +0200
libmultipath: update waiter handling
The current 'waiter' structure accesses fields which belong
to the main 'mpp' structure, which has a totally different
lifetime. With this patch most of these dependencies are
removed and the 'waiter' structure can run independently
of the main 'mpp' structure, reducing the risk of
use-after-free faults.
Signed-off-by: Hannes Reinecke <hare at suse.de>
Introduces this problem:
commit c301a3f09203edf91df5a9adf4e32ea2a7238cda
Author: Hannes Reinecke <hare at suse.de>
Date: Wed May 25 14:40:19 2011 +0200
Race condition when calling stop_waiter_thread()
We cannot access the waiter structure from other threads as
the lifetime is totally different and it might be deleted
at any time.
So we better store the pthread id in the calling thread and
just send a signal to the thread.
References: bnc#642846
Signed-off-by: Hannes Reinecke <hare at suse.de>
** Patch removed: "utopic_multipath-tools_0.4.9-3ubuntu9.debdiff"
https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/1354114/+attachment/4172185/+files/utopic_multipath-tools_0.4.9-3ubuntu9.debdiff
** Patch removed: "trusty_multipath-tools_0.4.9-3ubuntu8.debdiff"
https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/1354114/+attachment/4172184/+files/trusty_multipath-tools_0.4.9-3ubuntu8.debdiff
** Patch removed: "precise_multipath-tools_0.4.9-3ubuntu5.2.debdiff"
https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/1354114/+attachment/4172183/+files/precise_multipath-tools_0.4.9-3ubuntu5.2.debdiff
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to multipath-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1354114
Title:
multipath segmentation Fault (libmultipath: update waiter handling)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/1354114/+subscriptions
More information about the Ubuntu-server-bugs
mailing list