[GIT PULL] UBI/UBIFS fixes for v5.7-rc1

From: Richard Weinberger
Date: Tue Apr 07 2020 - 08:38:07 EST


Linus,

The following changes since commit 16fbf79b0f83bc752cee8589279f1ebfe57b3b6e:

Linux 5.6-rc7 (2020-03-22 18:31:56 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs.git tags/for-linus-5.7-rc1

for you to fetch changes up to 3676f32a98cd6ed4481c21bceb8b4829d4b6d1cf:

ubi: ubi-media.h: Replace zero-length array with flexible-array member (2020-03-30 23:02:37 +0200)

----------------------------------------------------------------
This pull request contains fixes for UBI and UBIFS:

- Fix for memory leaks around UBIFS orphan handling
- Fix for memory leaks around UBI fastmap
- Remove zero-length array from ubi-media.h
- Fix for TNC lookup in UBIFS orphan code

----------------------------------------------------------------
Gustavo A. R. Silva (1):
ubi: ubi-media.h: Replace zero-length array with flexible-array member

Hou Tao (2):
ubi: fastmap: Free unused fastmap anchor peb during detach
ubi: fastmap: Only produce the initial anchor PEB when fastmap is used

Liu Song (1):
ubifs: Fix out-of-bounds memory access caused by abnormal value of node_len

Richard Weinberger (1):
ubifs: Fix ubifs_tnc_lookup() usage in do_kill_orphans()

Zhihao Cheng (2):
ubifs: ubifs_jnl_write_inode: Fix a memory leak bug
ubifs: ubifs_add_orphan: Fix a memory leak bug

drivers/mtd/ubi/fastmap-wl.c | 15 +++++++++++++--
drivers/mtd/ubi/ubi-media.h | 2 +-
drivers/mtd/ubi/wl.c | 3 ++-
fs/ubifs/io.c | 16 ++++++++++++++--
fs/ubifs/journal.c | 1 +
fs/ubifs/orphan.c | 13 +++++++++----
6 files changed, 40 insertions(+), 10 deletions(-)