Re: [PATCH] mmap.2: Add note about partial page in BUGS section

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

 



Hi!
> I also tweaked the patch a little. The most notable change is that I
> changed your reference to "shm ipc" to "POSIX shared memory". Please
> let me know if that was incorrect.
> 
>        POSIX specifies that the system shall always zero fill any par???
>        tial  page  at the end of the object and that system will never
>        write any modification of the object beyond its end.  On Linux,
>        when  you  write data to such partial page after the end of the
>        object, the data stays in the page cache even after the file is
>        closed  and  unmapped and even though the data is never written
>        to the file itself, subsequent mappings may  see  the  modified
>        content.   In  some  cases,  this  could  be  fixed  by calling
>        msync(2) before the unmap takes place;  however,  this  doesn't
>        work  on  tmpfs  (for  example,  when using POSIX shared memory
>        interface documented in shm_overview(7)).

Thanks, that is better.

And out of curiosity, where is the most current man-pages git repo?

There seems to be github one and kernel.org one and they are out of
sync.

-- 
Cyril Hrubis
chrubis@xxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux