Ubuntu-focal-kernel/drivers/mtd
Fedor Pchelkin 3b0ae28e6f ubi: eba: properly rollback inside self_check_eba
BugLink: https://bugs.launchpad.net/bugs/2078388

commit 745d9f4a31defec731119ee8aad8ba9f2536dd9a upstream.

In case of a memory allocation failure in the volumes loop we can only
process the already allocated scan_eba and fm_eba array elements on the
error path - others are still uninitialized.

Found by Linux Verification Center (linuxtesting.org).

Fixes: 00abf30415 ("UBI: Add self_check_eba()")
Cc: stable@vger.kernel.org
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Koichiro Den <koichiro.den@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2024-09-27 10:50:15 +02:00
..
chips mtd: cfi_cmdset_0001: Byte swap OTP info 2024-02-02 14:13:16 +01:00
devices
hyperbus
lpddr
maps mtd: maps: physmap-core: fix flash size larger than 32-bit 2024-06-07 15:01:29 +02:00
nand mtd: spinand: macronix: Add support for serial NAND flash 2024-08-02 16:16:23 +02:00
parsers mtd: partitions: redboot: Added conversion of operands to a larger type 2024-08-02 16:16:21 +02:00
spi-nor
tests mtd: make mtd_test.c a separate module 2024-09-27 10:50:13 +02:00
ubi ubi: eba: properly rollback inside self_check_eba 2024-09-27 10:50:15 +02:00
Kconfig
Makefile
ftl.c
inftlcore.c
inftlmount.c
mtd_blkdevs.c mtd: Fix gluebi NULL pointer dereference caused by ftl notifier 2024-02-29 15:23:34 +01:00
mtdblock.c
mtdblock_ro.c
mtdchar.c
mtdconcat.c
mtdcore.c
mtdcore.h
mtdoops.c
mtdpart.c
mtdsuper.c
mtdswap.c
nftlcore.c
nftlmount.c
rfd_ftl.c
sm_ftl.c
sm_ftl.h
ssfdc.c