1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 10:25:13 +03:00
lvm2/device_mapper
Zdenek Kabelac 10e191fd12 libdm: do not add params for resume and remove
DM_DEVICE_CREATE with table is doing several ioctl operations,
however only some of then takes parameters.
Since _create_and_load_v4() reused already existing dm task from
DM_DEVICE_RELOAD it has also kept passing its table parameters
to DM_DEVICE_RESUME ioctl - but this ioctl is supposed to not take
any argument and thus there is no wiping of passed data - and
since kernel returns buffer and shortens dmi->data_size accordingly,
anything past returned data size remained uncleared in zfree()
function.

This has problem if the user used dm_task_secure_data (i.e. cryptsetup),
as in this case binary expact secured data are erased from main memory
after use, but they may have been left in place.

This patch is also closing the possible hole for error path,
which also reuse same dm task structure for DM_DEVICE_REMOVE.
2018-11-17 00:30:50 +01:00
..
datastruct device_mapper: move hash.[hc] to base/data-struct 2018-06-08 13:54:19 +01:00
ioctl libdm: do not add params for resume and remove 2018-11-17 00:30:50 +01:00
misc cleanup: move cast to det_t into MKDEV macro 2018-11-05 17:25:11 +01:00
mm device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
regex build: get separate builddir working again 2018-06-04 13:22:14 +01:00
vdo cov: ignore error of vsnprintf 2018-10-15 17:49:44 +02:00
all.h Add dm-writecache support 2018-11-06 14:18:41 -06:00
libdm-common.c cleanup: move cast to det_t into MKDEV macro 2018-11-05 17:25:11 +01:00
libdm-common.h device_mapper: rename libdevmapper.h -> all.h 2018-06-08 12:31:45 +01:00
libdm-config.c device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
libdm-deptree.c devicemapper: retry mirror leg deactivation 2018-11-12 15:30:40 +01:00
libdm-file.c cov: mark warning as expected one 2018-11-03 16:10:32 +01:00
libdm-report.c cov: ensure vars are set 2018-10-15 17:49:44 +02:00
libdm-string.c device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
libdm-targets.c Add dm-writecache support 2018-11-06 14:18:41 -06:00
libdm-timestamp.c device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
Makefile device_mapper: basic support for vdo dm target 2018-07-09 15:28:35 +02:00