Skip to contentSkip to conversation

afs: Fix directory entry name handling

GIT PULL Merged David Howells 2 participants 2 messages Jan 4, 2021 – Jan 5, 2021 VFS

lore
Share & tools
lore
#0 lore raw

Hi Linus,

Could you pull these two commits, assuming Daniel doesn't object? The first is the fix for the strnlen() array limit check and the second fixes the calculation of the number of dirent records used to represent any particular filename length.

I've added Tested-bys for Marc Dionne into the branch, but otherwise the patches should be the same as have been on the branch since the 23rd (was commit 587f19fc90c1).

David
---
The following changes since commit a409ed156a90093a03fe6a93721ddf4c591eac87:

Merge tag 'gpio-v5.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio (2020-12-17 18:07:20 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git tags/afs-fixes-04012021

for you to fetch changes up to 366911cd762db02c2dd32fad1be96b72a66f205d:

afs: Fix directory entry size calculation (2021-01-04 12:25:19 +0000)

----------------------------------------------------------------
AFS fixes

----------------------------------------------------------------
David Howells (2):
afs: Work around strnlen() oops with CONFIG_FORTIFIED_SOURCE=y
afs: Fix directory entry size calculation

 fs/afs/dir.c               | 49 ++++++++++++++++++++++++----------------------
 fs/afs/dir_edit.c          |  6 ++----
 fs/afs/xdr_fs.h            | 25 +++++++++++++++++++----
 include/trace/events/afs.h |  2 ++
 4 files changed, 51 insertions(+), 31 deletions(-)
merge bot Merged
#1 lore raw
The pull request you sent on Mon, 04 Jan 2021 23:35:17 +0000:

The pull request you sent on Mon, 04 Jan 2021 23:35:17 +0000:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git tags/afs-fixes-04012021

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

Thank you!

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