Re: [PATCH] tmpfs: don't undo fallocate past its last page

2016-06-05 Thread Brandon Philips
On Mon, May 16, 2016 at 4:59 AM, Vlastimil Babka wrote: > On 05/08/2016 03:16 PM, Anthony Romano wrote: >> >> When fallocate is interrupted it will undo a range that extends one byte >> past its range of allocated pages. This can corrupt an in-use page by >> zeroing out its first byte. Instead, un

Re: [PATCH] tmpfs: don't undo fallocate past its last page

2016-05-16 Thread Vlastimil Babka
On 05/08/2016 03:16 PM, Anthony Romano wrote: When fallocate is interrupted it will undo a range that extends one byte past its range of allocated pages. This can corrupt an in-use page by zeroing out its first byte. Instead, undo using the inclusive byte range. Huh, good catch. So why is shmem

[PATCH] tmpfs: don't undo fallocate past its last page

2016-05-08 Thread Anthony Romano
When fallocate is interrupted it will undo a range that extends one byte past its range of allocated pages. This can corrupt an in-use page by zeroing out its first byte. Instead, undo using the inclusive byte range. Signed-off-by: Anthony Romano --- mm/shmem.c | 2 +- 1 file changed, 1 insertio