summaryrefslogtreecommitdiffstats
path: root/drivers/md/persistent-data
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2013-11-23 01:52:06 +0100
committerMike Snitzer <snitzer@redhat.com>2013-12-10 22:34:27 +0100
commit5b2d06576c5410c10d95adfd5c4d8b24de861d87 (patch)
tree252b895b66b63a84a166af0142472cdf3a1c3640 /drivers/md/persistent-data
parentdm snapshot: avoid snapshot space leak on crash (diff)
downloadlinux-5b2d06576c5410c10d95adfd5c4d8b24de861d87.tar.xz
linux-5b2d06576c5410c10d95adfd5c4d8b24de861d87.zip
dm table: fail dm_table_create on dm_round_up overflow
The dm_round_up function may overflow to zero. In this case, dm_table_create() must fail rather than go on to allocate an empty array with alloc_targets(). This fixes a possible memory corruption that could be caused by passing too large a number in "param->target_count". Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/md/persistent-data')
0 files changed, 0 insertions, 0 deletions