1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/lib/device
Zdenek Kabelac 68d13b2517 dev-cache: fix mem corruption on refresh context
When lvm2 command works with clvmd and uses locking in wrong way,
it may 'leak' certain file descriptors in opened (incorrect) state.

dev_cache_exit then destroys memory pool of cached devices, while
_open_devices list in dev-io.c was still referencing them if they
were still opened.

Patch properly calls _close() function to 'self-heal' from this
invalid state, but it will report internal error (so execution
with abort_on_internal_error causes immediate death). On the
normal 'execution', error is only reported, but memory state is
corrected, and linked list is not referencing devices from
released mempool.

For crash see: https://bugzilla.redhat.com/show_bug.cgi?id=1073886
2014-03-25 11:22:57 +01:00
..
dev-cache.c dev-cache: fix mem corruption on refresh context 2014-03-25 11:22:57 +01:00
dev-cache.h dev-cache: fix mem corruption on refresh context 2014-03-25 11:22:57 +01:00
dev-io.c coverity: check return value of dev_close in dev_get_block_size() 2014-01-22 16:20:09 +01:00
dev-luks.c device: cleanup signature wiping functions 2013-11-27 12:56:58 +01:00
dev-md.c device: cleanup signature wiping functions 2013-11-27 12:56:58 +01:00
dev-swap.c dev-swap: use SECTOR_SHIFT 2014-03-22 20:43:05 +01:00
dev-type.c makefiles: use BLKID/UDEV_CFLAGS properly 2014-03-06 17:30:06 +01:00
dev-type.h wiping: wipe DM_snapshot_cow signature without prompt in newly created LVs 2014-02-10 13:28:13 +01:00
device-types.h cleanup: reorder commonly available devs in system to the front 2014-02-24 21:13:35 +01:00
device.h device: add physical block size info and make sure VG extent size >= PV's phys. block size 2013-12-12 15:02:36 +01:00