Mikulas Patocka 5b2d06576c 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
2013-12-10 16:34:27 -05:00
..
2013-10-01 22:51:11 +02:00
2013-10-11 07:31:47 +05:30
2013-09-03 11:37:15 -07:00
2013-10-05 12:11:40 -07:00
2013-10-07 17:08:26 +02:00
2013-09-09 16:35:29 -07:00
2013-09-06 13:30:06 -07:00
2013-09-13 15:09:52 +02:00
2013-10-01 12:34:59 -04:00
2013-09-13 15:09:52 +02:00
2013-09-06 13:21:16 -07:00
2013-09-03 11:37:15 -07:00
2013-09-04 11:28:04 -06:00
2013-09-26 15:33:23 +03:00
2013-09-13 15:09:52 +02:00
2013-09-25 15:50:53 -07:00