Re: smp race fix between invalidate_inode_pages* and do_no_page

From: Andrew Morton
Date: Wed Jan 11 2006 - 16:05:10 EST


Hugh Dickins <hugh@xxxxxxxxxxx> wrote:
>
> But I do not know what guarantees invalidate_inode_pages2 is supposed
> to give. As soon as you emerge from iipages2, its work could be undone:

yup. It cannot become a hard guarantee unless we add some new really big
locks.

So it can be fooled by silly or poorly-designed apps. What we're aiming
for here is predictable behaviour for sanely-implemented applications and
refusal to oops or to expose insecure data for poorly-designed ones or
exploits.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/