[GIT PULL] pstore updates for v6.8-rc1

From: Kees Cook
Date: Mon Jan 08 2024 - 13:24:36 EST


Hi Linus,

Please pull these pstore updates for v6.8-rc1. These are a couple small
fixes, and a refactoring to use cleanup.h now that it has had time to
bake in a full release.

Thanks!

-Kees

The following changes since commit 98b1cc82c4affc16f5598d4fa14b1858671b2263:

Linux 6.7-rc2 (2023-11-19 15:02:14 -0800)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/pstore-v6.8-rc1

for you to fetch changes up to 24a0b5e196cf70ccff97bc0add6fa7178ad50cc4:

pstore: inode: Use cleanup.h for struct pstore_private (2023-12-08 14:15:44 -0800)

----------------------------------------------------------------
pstore updates for v6.8-rc1

- Do not allow misconfigured ECC sizes (Sergey Shtylyov)

- Allow for odd number of CPUs (Weichen Chen)

- Refactor error handling to use cleanup.h

----------------------------------------------------------------
Kees Cook (4):
pstore: inode: Convert kfree() usage to __free(kfree)
pstore: inode: Convert mutex usage to guard(mutex)
pstore: inode: Use __free(pstore_iput) for inode allocations
pstore: inode: Use cleanup.h for struct pstore_private

Sergey Shtylyov (1):
pstore: ram_core: fix possible overflow in persistent_ram_init_ecc()

Weichen Chen (1):
pstore/ram: Fix crash when setting number of cpus to an odd number

fs/pstore/inode.c | 109 +++++++++++++++++++++------------------------------
fs/pstore/ram.c | 1 +
fs/pstore/ram_core.c | 2 +-
3 files changed, 46 insertions(+), 66 deletions(-)

--
Kees Cook