On Sat, Oct 31, 2020 at 12:58:09PM -0700, Eric Biggers wrote: > From: Chao Yu <[email protected]> > > commit e06f86e61d7a67fe6e826010f57aa39c674f4b1b upstream. > [This backport fixes a regression in 4.4-stable caused by commit > 11a6e8f89521 ("f2fs: check memory boundary by insane namelen"), which > depended on this missing commit. This bad backport broke f2fs > encryption because it moved the incrementing of 'bit_pos' to earlier in > f2fs_fill_dentries() without accounting for it being used in the > encrypted dir case. This caused readdir() on encrypted directories to > start failing. Tested with 'kvm-xfstests -c f2fs -g encrypt'.] > > When decrypting dirents in ->readdir, fscrypt_fname_disk_to_usr won't > change content of original encrypted dirent, we don't need to allocate > additional buffer for storing mirror of it, so get rid of it. > > Signed-off-by: Chao Yu <[email protected]> > Signed-off-by: Jaegeuk Kim <[email protected]> > Signed-off-by: Eric Biggers <[email protected]> > --- > fs/f2fs/dir.c | 7 ------- > 1 file changed, 7 deletions(-)
Now queued up, thanks. greg k-h _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
