Hi,
fsverity development (both the kernel part and fsverity-utils) is now using the
mailing list fsver...@lists.linux.dev instead of linux-fscr...@vger.kernel.org.
linux-fscr...@vger.kernel.org is now for fscrypt only.
When sending any fsverity-related patches, please always include the new
On Tue, 24 Jan 2023 11:51:30 +0100 Alexander Potapenko
wrote:
> On Mon, Nov 21, 2022 at 12:21 PM Alexander Potapenko
> wrote:
> >
> > When aops->write_begin() does not initialize fsdata, KMSAN may report
> > an error passing the latter to aops->write_end().
> >
> > Fix this by unconditionally
f2fs_set_lz4hc_level() and f2fs_set_zstd_level() have common code,
let's introduce f2fs_set_compress_level() to do sanity compress level
check.
Signed-off-by: Yangtao Li
---
fs/f2fs/super.c | 57 +++--
1 file changed, 17 insertions(+), 40 deletions(-)
Remove unnecessary lz4hc_compress_pages().
Signed-off-by: Yangtao Li
---
fs/f2fs/compress.c | 23 ---
1 file changed, 4 insertions(+), 19 deletions(-)
diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c
index b196b881f3bb..112f0e208b4e 100644
--- a/fs/f2fs/compress.c
+++
If the compress feature is not enabled, there is no need to set
compress-related parameters.
Signed-off-by: Yangtao Li
---
fs/f2fs/super.c | 10 ++
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index b5fbe9939390..68ccc9f54c2d 100644
---
f2fs supports lz4 compression algorithm and lz4hc compression algorithm,
which the level parameter needs to be passed in. When CONFIG_F2FS_FS_LZ4HC
is not enabled, even if there is no problem with the level parameter, add
the level parameter to the lz4 algorithm will cause the mount to fail.
On Mon, Nov 21, 2022 at 12:21 PM Alexander Potapenko wrote:
>
> When aops->write_begin() does not initialize fsdata, KMSAN may report
> an error passing the latter to aops->write_end().
>
> Fix this by unconditionally initializing fsdata.
>
> Suggested-by: Eric Biggers
> Fixes: 1da177e4c3f4