Re: [RESEND] [PATCH] VFS: make file->f_pos access atomic on 32bit arch

Valdis.Kletnieks
2008-10-09T13:01:23Z

[-- Attachment #1: Type: text/plain, Size: 437 bytes --]

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 #2: Type: application/pgp-signature, Size: 226 bytes --]