Richard Weinberger 68a24aba7c ubi: Check for too small LEB size in VTBL code
If the LEB size is smaller than a volume table record we cannot
have volumes.
In this case abort attaching.

Cc: Chenyuan Yang <cy54@illinois.edu>
Cc: stable@vger.kernel.org
Fixes: 801c135ce73d ("UBI: Unsorted Block Images")
Reported-by: Chenyuan Yang <cy54@illinois.edu>
Closes: https://lore.kernel.org/linux-mtd/1433EB7A-FC89-47D6-8F47-23BE41B263B3@illinois.edu/
Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
2024-02-25 21:19:42 +01:00
..
2024-01-09 15:40:59 -08:00
2023-10-19 10:31:44 +02:00
2024-01-09 15:40:59 -08:00
2024-01-11 13:58:04 -08:00
2022-09-20 10:40:30 +02:00
2022-09-19 18:14:53 +02:00
2023-06-22 23:00:43 +02:00
2023-12-14 16:43:15 +01:00