Skip to content

fs-verity: fix error handling in ->end_enable_verity()

Eric Biggers linux-ext4 linux-f2fs-devel linux-fscrypt stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ext4: fix error handling in ext4_end_enable_verity()fs/ext4/verity.c+56 -341 reply
2/2f2fs: fix error handling in f2fs_end_enable_verity()fs/f2fs/verity.c+41 -202 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] fs-verity: fix error handling in ->end_enable_verity()

Fix some bugs in how ext4_end_enable_verity() and f2fs_end_enable_verity() handle failure to enable verity on the file.

This is intended to supersede the f2fs patch from Yunlei He
(https://lore.kernel.org/r/[email protected],
https://lore.kernel.org/r/[email protected],
https://lore.kernel.org/r/[email protected]).
I fixed the same bugs in ext4 too, reworked the functions to cleanly separate the success and error paths, and improved the commit message.

These patches can be taken independently via the ext4 and f2fs trees. I've just sent them out together since they're similar.

Eric Biggers (2):
ext4: fix error handling in ext4_end_enable_verity()
f2fs: fix error handling in f2fs_end_enable_verity()

 fs/ext4/verity.c | 90 ++++++++++++++++++++++++++++++------------------
 fs/f2fs/verity.c | 61 +++++++++++++++++++++-----------
 2 files changed, 97 insertions(+), 54 deletions(-)
Signature · 8 lines
2.30.1



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel