Re: [PATCH 0/9] overlay: fix inconsistency of ro file after copy-up

2017-03-07 Thread Miklos Szeredi
On Sun, Feb 19, 2017 at 09:14:41AM +, Al Viro wrote: > On Fri, Feb 17, 2017 at 05:09:29PM +0100, Miklos Szeredi wrote: > > 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 (t

Re: [PATCH 0/9] overlay: fix inconsistency of ro file after copy-up

2017-02-20 Thread Miklos Szeredi
On Sun, Feb 19, 2017 at 10:14 AM, Al Viro wrote: > This is one hell of a DoS vector - it's really easy to eat tons of struct > file that way. Preparatory parts of that series make sense on their own, > but your "let's allocate a struct file, call ->open() and schedule that > struct file for clos

Re: [PATCH 0/9] overlay: fix inconsistency of ro file after copy-up

2017-02-19 Thread Al Viro
On Fri, Feb 17, 2017 at 05:09:29PM +0100, Miklos Szeredi wrote: > 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, > unmodif

[PATCH 0/9] overlay: fix inconsistency of ro file after copy-up

2017-02-17 Thread Miklos Szeredi
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. Thi