Skip to content

overlayfs: fix ro/rw fd data inconsistecies

Miklos Szeredi linux-fsdevel linux-unionfs lkml oe-lkp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7vfs: allow overlayfs to intercept file opsfs/open.c fs/overlayfs/inode.c+19 -10 replies
2/7vfs: export filp_clone_open()fs/internal.h include/linux/fs.h+1 -10 replies
3/7mm: ovl: copy-up on MAP_SHAREDmm/util.c+22 -00 replies
4/7ovl: add infrastructure for intercepting file opsfs/overlayfs/inode.c fs/overlayfs/overlayfs.h fs/overlayfs/super.c+146 -16 replies
5/7ovl: intercept read_iterfs/overlayfs/inode.c+28 -10 replies
6/7ovl: intercept mmapfs/overlayfs/inode.c+22 -13 replies
7/7ovl: intercept fsyncfs/overlayfs/inode.c+20 -30 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by.

PatchAmir Goldstein
SeriesT-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

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 0/7] overlayfs: fix ro/rw fd data inconsistecies

A file is opened for read-only, opened read-write (resulting in a copy up) and modified. The data read back from the the read-only fd will be stale in this case (the read-only file descriptor still refers to the lower, unmodified file).

This patchset fixes issues related to this corner case.

The VFS impact is minimal and performance in the non-corner cases shouldn't suffer.
---
Miklos Szeredi (7):
vfs: allow overlayfs to intercept file ops
vfs: export filp_clone_open()
mm: ovl: copy-up on MAP_SHARED
ovl: add infrastructure for intercepting file ops
ovl: intercept read_iter
ovl: intercept mmap
ovl: intercept fsync

 fs/internal.h            |   1 -
 fs/open.c                |   2 +-
 fs/overlayfs/inode.c     | 225 +++++++++++++++++++++++++++++++++++++++++++++++
 fs/overlayfs/overlayfs.h |   2 +
 fs/overlayfs/super.c     |   1 +
 include/linux/fs.h       |   1 +
 mm/util.c                |  22 +++++
 7 files changed, 252 insertions(+), 2 deletions(-)
Signature · 1 line
2.5.5