Skip to content

fsverity integration for XFS based on direct mapped xattrs

Andrey Albershteyn linux-xfs llvm oe-kbuild-all 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest24 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/24fs: add FS_XFLAG_VERITY for verity filesDocumentation/filesystems/fsverity.rst fs/ioctl.c include/uapi/linux/fs.h+20 -00 replies
2/24fsverity: pass tree_blocksize to end_enable_verity()fs/btrfs/verity.c fs/ext4/verity.c fs/f2fs/verity.c +2 more+14 -60 replies
3/24fsverity: add tracepointsMAINTAINERS fs/verity/enable.c fs/verity/fsverity_private.h +3 more+159 -00 replies
4/24fsverity: pass the new tree size and block size to ->begin_enable_verityfs/btrfs/verity.c fs/ext4/verity.c fs/f2fs/verity.c +2 more+12 -50 replies
5/24fsverity: expose merkle tree geometry to callersfs/verity/open.c include/linux/fsverity.h+48 -00 replies
6/24fsverity: report validation errors back to the filesystemfs/verity/verify.c include/linux/fsverity.h include/trace/events/fsverity.h+37 -00 replies
7/24fsverity: flush pagecache before enabling verityfs/verity/enable.c fs/verity/verify.c+6 -00 replies
8/24iomap: integrate fs-verity verification into iomap's read pathfs/iomap/buffered-io.c include/linux/iomap.h+33 -20 replies
9/24xfs: use an empty transaction to protect xfs_attr_get from deadlocksfs/xfs/libxfs/xfs_attr.c+8 -00 replies
10/24xfs: don't let xfs_bmap_first_unused overflow a xfs_dablk_tfs/xfs/libxfs/xfs_attr_remote.c fs/xfs/libxfs/xfs_da_btree.c fs/xfs/libxfs/xfs_da_format.h+9 -00 replies
11/24xfs: add attribute type for fs-verityfs/xfs/libxfs/xfs_da_format.h fs/xfs/libxfs/xfs_log_format.h fs/xfs/xfs_trace.h+11 -40 replies
12/24xfs: add fs-verity ro-compat flagfs/xfs/libxfs/xfs_format.h fs/xfs/libxfs/xfs_sb.c fs/xfs/xfs_mount.h+5 -00 replies
13/24xfs: add inode on-disk VERITY flagfs/xfs/libxfs/xfs_format.h fs/xfs/libxfs/xfs_inode_buf.c fs/xfs/libxfs/xfs_inode_util.c +1 more+18 -10 replies
14/24xfs: initialize fs-verity on file open and cleanup on inode destructionfs/xfs/xfs_file.c fs/xfs/xfs_super.c+10 -00 replies
15/24xfs: don't allow to enable DAX on fs-verity sealed inodefs/xfs/xfs_iops.c+2 -00 replies
16/24xfs: disable direct read path for fs-verity filesfs/xfs/xfs_file.c+12 -30 replies
17/24xfs: add fs-verity supportfs/xfs/Makefile fs/xfs/libxfs/xfs_ag.h fs/xfs/libxfs/xfs_attr.c +14 more+730 -20 replies
18/24xfs: add writeback page mapping for fs-verityfs/xfs/xfs_aops.c+80 -50 replies
19/24xfs: use merkle tree offset as attr hashfs/xfs/libxfs/xfs_attr.c fs/xfs/libxfs/xfs_da_format.h fs/xfs/libxfs/xfs_verity.c +1 more+25 -00 replies
20/24xfs: add fs-verity ioctlsfs/xfs/xfs_ioctl.c+16 -00 replies
21/24xfs: advertise fs-verity being available on filesystemfs/xfs/libxfs/xfs_fs.h fs/xfs/libxfs/xfs_sb.c+3 -00 replies
22/24xfs: check and repair the verity inode flag statefs/xfs/scrub/attr.c fs/xfs/scrub/common.c fs/xfs/scrub/common.h +2 more+121 -00 replies
23/24xfs: report verity failures through the health systemfs/xfs/libxfs/xfs_fs.h fs/xfs/libxfs/xfs_health.h fs/xfs/xfs_fsverity.c +1 more+16 -10 replies
24/24xfs: enable ro-compat fs-verity flagfs/xfs/libxfs/xfs_format.h+5 -40 replies

Reviews trailers per patch

16 of 24 patches have a Reviewed-by or Acked-by.

PatchDarrick J. WongAndrey Albershteyn
1/24R-b
2/24R-b
3/24R-b
4/24
5/24
6/24
7/24
8/24R-b
9/24
10/24
11/24R-b
12/24R-b
13/24R-b
14/24R-b
15/24R-b
16/24R-b
17/24R-b
18/24
19/24R-b
20/24R-b
21/24R-b
22/24
23/24R-b
24/24R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/24] fsverity integration for XFS based on direct mapped xattrs

Use new format of extended attributes with filesystem block aligned data (without header). The blocks are mapped through page cache via iomap.

Andrey

Andrey Albershteyn (15):
fs: add FS_XFLAG_VERITY for verity files
fsverity: pass tree_blocksize to end_enable_verity()
fsverity: add tracepoints
fsverity: flush pagecache before enabling verity
iomap: integrate fs-verity verification into iomap's read path
xfs: add attribute type for fs-verity
xfs: add fs-verity ro-compat flag
xfs: add inode on-disk VERITY flag
xfs: initialize fs-verity on file open and cleanup on inode
destruction
xfs: don't allow to enable DAX on fs-verity sealed inode
xfs: disable direct read path for fs-verity files
xfs: add fs-verity support
xfs: add writeback page mapping for fs-verity
xfs: add fs-verity ioctls
xfs: enable ro-compat fs-verity flag

Darrick J. Wong (9):
fsverity: pass the new tree size and block size to

    ->begin_enable_verity

fsverity: expose merkle tree geometry to callers
fsverity: report validation errors back to the filesystem
xfs: use an empty transaction to protect xfs_attr_get from deadlocks
xfs: don't let xfs_bmap_first_unused overflow a xfs_dablk_t
xfs: use merkle tree offset as attr hash
xfs: advertise fs-verity being available on filesystem
xfs: check and repair the verity inode flag state
xfs: report verity failures through the health system

 Documentation/filesystems/fsverity.rst |   8 +
 MAINTAINERS                            |   1 +
 fs/btrfs/verity.c                      |   7 +-
 fs/ext4/verity.c                       |   6 +-
 fs/f2fs/verity.c                       |   6 +-
 fs/ioctl.c                             |  11 +
 fs/iomap/buffered-io.c                 |  30 +-
 fs/verity/enable.c                     |  18 +-
 fs/verity/fsverity_private.h           |   2 +
 fs/verity/init.c                       |   1 +
 fs/verity/open.c                       |  37 ++
 fs/verity/verify.c                     |  13 +
 fs/xfs/Makefile                        |   2 +
 fs/xfs/libxfs/xfs_ag.h                 |   1 +
 fs/xfs/libxfs/xfs_attr.c               |  14 +
 fs/xfs/libxfs/xfs_attr_remote.c        |   3 +
 fs/xfs/libxfs/xfs_da_btree.c           |   3 +
 fs/xfs/libxfs/xfs_da_format.h          |  34 +-
 fs/xfs/libxfs/xfs_format.h             |  17 +-
 fs/xfs/libxfs/xfs_fs.h                 |   2 +
 fs/xfs/libxfs/xfs_health.h             |   4 +-
 fs/xfs/libxfs/xfs_inode_buf.c          |   8 +
 fs/xfs/libxfs/xfs_inode_util.c         |   2 +
 fs/xfs/libxfs/xfs_log_format.h         |   1 +
 fs/xfs/libxfs/xfs_ondisk.h             |   4 +
 fs/xfs/libxfs/xfs_sb.c                 |   4 +
 fs/xfs/libxfs/xfs_verity.c             |  74 ++++
 fs/xfs/libxfs/xfs_verity.h             |  14 +
 fs/xfs/scrub/attr.c                    |   7 +
 fs/xfs/scrub/common.c                  |  68 ++++
 fs/xfs/scrub/common.h                  |   3 +
 fs/xfs/scrub/inode.c                   |   7 +
 fs/xfs/scrub/inode_repair.c            |  36 ++
 fs/xfs/xfs_aops.c                      | 141 +++++++-
 fs/xfs/xfs_file.c                      |  23 +-
 fs/xfs/xfs_fsops.c                     |   1 +
 fs/xfs/xfs_fsverity.c                  | 482 +++++++++++++++++++++++++
 fs/xfs/xfs_fsverity.h                  |  54 +++
 fs/xfs/xfs_health.c                    |   1 +
 fs/xfs/xfs_inode.h                     |   2 +
 fs/xfs/xfs_ioctl.c                     |  16 +
 fs/xfs/xfs_iomap.h                     |   2 +
 fs/xfs/xfs_iops.c                      |   4 +
 fs/xfs/xfs_mount.c                     |   1 +
 fs/xfs/xfs_mount.h                     |   2 +
 fs/xfs/xfs_super.c                     |  11 +
 fs/xfs/xfs_trace.c                     |   1 +
 fs/xfs/xfs_trace.h                     |  42 ++-
 include/linux/fsverity.h               |  34 +-
 include/linux/iomap.h                  |   5 +
 include/trace/events/fsverity.h        | 162 +++++++++
 include/uapi/linux/fs.h                |   1 +
 52 files changed, 1400 insertions(+), 33 deletions(-)
 create mode 100644 fs/xfs/libxfs/xfs_verity.c
 create mode 100644 fs/xfs/libxfs/xfs_verity.h
 create mode 100644 fs/xfs/xfs_fsverity.c
 create mode 100644 fs/xfs/xfs_fsverity.h
 create mode 100644 include/trace/events/fsverity.h
Signature · 1 line
2.47.0