Re: Corruption with O_DIRECT and unaligned user buffers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 19 November 2008 15:25, Nick Piggin wrote:

> For the moment (and previous kernels up to now), I guess you have to
> be careful about fork and get_user_pages, unfortunately.

I'm reminded by someone wishing to remain anonymous that one of
the ways that we can "be careful", is to use MADV_DONTFORK for
ranges that may be under direct IO.

Not a beautiful solution, but it might work.

If you need some sharing of that region between parent and child,
you could alternatively use a shared mapping (eg. MAP_ANONYMOUS |
MAP_SHARED) and avoid the COW issue completely.
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux