Skip to contentSkip to conversation

fscache: Miscellaneous fixes

GIT PULL Merged David Howells 2 participants 2 messages Apr 13, 2022 – Apr 14, 2022 VFS

lore
Share & tools
lore
#0 lore raw

Hi Linus,

Here's a collection of fscache and cachefiles fixes and misc small cleanups. The two main fixes are:

(1) Add a missing unmark of the inode in-use mark in an error path.

(2) Fix a KASAN slab-out-of-bounds error when setting the xattr on a cachefiles volume due to the wrong length being given to memcpy().

In addition, there's the removal of an unused parameter, removal of an unused Kconfig option, conditionalising a bit of procfs-related stuff and some doc fixes.

David

---
The following changes since commit 42e7a03d3badebd4e70aea5362d6914dfc7c220b:

Merge tag 'hyperv-fixes-signed-20220407' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux (2022-04-07 06:35:34 -1000)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git tags/fscache-fixes-20220413

for you to fetch changes up to 61132ceeda723d2c48cbc2610ca3213a7fcb083b:

fscache: remove FSCACHE_OLD_API Kconfig option (2022-04-08 23:54:37 +0100)

----------------------------------------------------------------
fscache fixes

----------------------------------------------------------------
Dave Wysochanski (1):
cachefiles: Fix KASAN slab-out-of-bounds in cachefiles_set_volume_xattr

Jeffle Xu (1):
cachefiles: unmark inode in use in error path

Yue Hu (6):
docs: filesystems: caching/backend-api.rst: correct two relinquish APIs use
docs: filesystems: caching/backend-api.rst: fix an object withdrawn API
fscache: Remove the cookie parameter from fscache_clear_page_bits()
fscache: Move fscache_cookies_seq_ops specific code under CONFIG_PROC_FS
fscache: Use wrapper fscache_set_cache_state() directly when relinquishing
fscache: remove FSCACHE_OLD_API Kconfig option

 Documentation/filesystems/caching/backend-api.rst |  8 +++---
 Documentation/filesystems/caching/netfs-api.rst   | 25 +++++++++--------
 fs/afs/write.c                                    |  3 +--
 fs/cachefiles/namei.c                             | 33 ++++++++++++++++-------
 fs/cachefiles/xattr.c                             |  2 +-
 fs/fscache/Kconfig                                |  3 ---
 fs/fscache/cache.c                                |  2 +-
 fs/fscache/cookie.c                               |  4 ++-
 fs/fscache/internal.h                             |  4 +++
 fs/fscache/io.c                                   |  5 ++--
 include/linux/fscache.h                           |  4 +--
 11 files changed, 53 insertions(+), 40 deletions(-)
merge bot Merged
#1 lore raw
The pull request you sent on Wed, 13 Apr 2022 16:34:57 +0100:

The pull request you sent on Wed, 13 Apr 2022 16:34:57 +0100:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git tags/fscache-fixes-20220413

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/ec9c57a7328b178918aa3124f989060bc5624a3f

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html