Re: [RESEND] [PATCH] VFS: make file->f_pos access atomic on 32bit arch
From: Valdis . Kletnieks
Date: Thu Oct 09 2008 - 09:01:24 EST
On Thu, 09 Oct 2008 14:23:19 +0200, Pavel Machek said:
> We have append-only files, and normal users should not be able to work
> around that restriction.
Can you give an example of two *plausible* starting offsets, and 2 write
lengths, which when subjected to this race manage to override the append-only
attribute? I believe somebody already checked the code, and for append-only
we force the offset in the kernel for *each* write.
Attachment:
pgp00000.pgp
Description: PGP signature