1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/libdm
Zdenek Kabelac 8a568b9562 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.

(cherry picked from commit 10e191fd12)
2018-12-17 14:06:08 +01:00
..
datastruct build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
dm-tools makefiles: updates for less verbosity 2018-12-04 14:33:37 -06:00
ioctl libdm: do not add params for resume and remove 2018-12-17 14:06:08 +01:00
misc cleanup: move cast to det_t into MKDEV macro 2018-12-04 14:33:36 -06:00
mm libdm: optimize dm_pool_strndup 2018-12-04 14:33:38 -06:00
regex build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
.exported_symbols libdm: Use wrappers for all malloc functions. 2015-07-22 23:11:48 +01:00
.exported_symbols.Base libdm: maintain binary interface for new FEATURE flag 2017-03-10 19:33:01 +01:00
.exported_symbols.DM_1_02_97 libdm: new dm_task_get_info with internal_suspend 2015-05-15 16:48:22 +02:00
.exported_symbols.DM_1_02_98 libdm: Add dm_task_get_errno to return ioctl errno. 2015-05-26 15:13:49 +01:00
.exported_symbols.DM_1_02_99 libdm: add dm_tree_node_set_thin_pool_read_only 2015-06-18 15:15:39 +02:00
.exported_symbols.DM_1_02_100 config: add support for config value formatting flags 2015-06-24 11:13:37 +02:00
.exported_symbols.DM_1_02_101 report: add infrastructure to recognize fuzzy reserved names and returning dynamic reserved values 2015-07-03 10:47:09 +02:00
.exported_symbols.DM_1_02_103 libdm: Use wrappers for all malloc functions. 2015-07-22 23:11:48 +01:00
.exported_symbols.DM_1_02_104 libdm: Drop ignored duplicate export designation. 2015-08-26 17:30:36 +01:00
.exported_symbols.DM_1_02_105 pre-release 2015-08-17 17:20:14 +01:00
.exported_symbols.DM_1_02_106 libdm: add per region precise timestamps property methods 2015-08-24 20:03:21 +01:00
.exported_symbols.DM_1_02_107 libdm: add latency histogram support 2015-09-02 20:48:59 +01:00
.exported_symbols.DM_1_02_110 libdm: dm_tree_node_size_changed recognizes reduction 2015-10-25 21:05:15 +01:00
.exported_symbols.DM_1_02_113 libdm: introduce dm_get_status_mirror 2015-12-01 13:00:43 +01:00
.exported_symbols.DM_1_02_124 libdm: Add dm_udev_wait_immediate. 2016-04-28 00:54:27 +01:00
.exported_symbols.DM_1_02_128 libdm: report: add dm_report_set_selection 2016-06-20 11:33:43 +02:00
.exported_symbols.DM_1_02_129 libdm: add stats group and region iterators and properties 2016-07-05 19:53:16 +01:00
.exported_symbols.DM_1_02_131 libdm: add dm_stats_create_regions_from_fd() 2016-07-08 14:34:41 +01:00
.exported_symbols.DM_1_02_133 libdm: report: add dm_report_group_output_and_pop_all 2016-08-09 18:24:45 +02:00
.exported_symbols.DM_1_02_135 libdm: add dm_config_parse_without_dup_node_check 2016-09-21 18:15:18 +02:00
.exported_symbols.DM_1_02_138 libdm: maintain binary interface for new FEATURE flag 2017-03-10 19:33:01 +01:00
.exported_symbols.DM_1_02_141 libdm: implement dm_percent_to_round_float 2017-06-24 17:44:40 +02:00
.exported_symbols.DM_1_02_147 libdm: Introduce dm_malloc_aligned 2018-01-10 15:48:03 +00:00
libdevmapper.h libdm: Introduce dm_malloc_aligned 2018-01-10 15:48:03 +00:00
libdevmapper.pc.in libdm: fix typo in libdevmapper.pc 2017-10-18 00:04:06 +02:00
libdm-common.c cleanup: move cast to det_t into MKDEV macro 2018-12-04 14:33:36 -06:00
libdm-common.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
libdm-config.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
libdm-deptree.c cleanup: move cast to det_t into MKDEV macro 2018-12-04 14:33:36 -06:00
libdm-file.c cov: mark warning as expected one 2018-12-04 14:33:36 -06:00
libdm-report.c cov: split check for type assignment 2018-12-04 14:33:35 -06:00
libdm-stats.c libdm-stats: move no regions warning after dm_stats_list() 2018-12-04 14:33:35 -06:00
libdm-string.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
libdm-targets.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
libdm-timestamp.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
make.tmpl.in makefiles: updates for less verbosity 2018-12-04 14:33:37 -06:00
Makefile.in makefiles: improving cleaning rules 2018-12-04 14:33:37 -06:00