Re: mmap specification - was: ... select specification

From: Andries Brouwer (aebr_at_win.tue.nl)
Date: 10/08/04

  • Next message: Stephen Hemminger: "Re: Probable module bug in linux-2.6.5-1.358"
    Date:	Fri, 8 Oct 2004 00:34:34 +0200
    To: Chris Wedgwood <cw@f00f.org>
    
    

    On Thu, Oct 07, 2004 at 03:17:45PM -0700, Chris Wedgwood wrote:
    > On Thu, Oct 07, 2004 at 11:58:34PM +0200, Andries Brouwer wrote:
    >
    > > [I read this as follows: If you mmap a file with MAP_SHARED and
    > > modify the memory at an address so far beyond EOF that it is not in
    > > a page containing stuff from the file, then you get a SIGBUS. --
    > > Linux does this. Also, that if you modify the memory at an address
    > > beyond EOF, then the file is not modified. -- Again Linux does
    > > this.]
    >
    > consider mmaping a 1-byte file ... you can modify bytes 0..4095.
    > bytes 1..4095 shouldn't be recorded to disk ideally
    >
    > at one point one fs did actually store this data and it caused cpp
    > problems (it would expect to see zeroes and where it didn't it got
    > upset)

    Is this an answer? Or an anecdote?

    [You seem to say anecdotically that at one point in time Linux mmap
    was not POSIX compliant, and problems arose.
    Alan on the other hand seems to say that POSIX comes with
    ridiculous requirements.]

    Andries
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Stephen Hemminger: "Re: Probable module bug in linux-2.6.5-1.358"

    Relevant Pages

    • Re: Attempting to port and app to linux but cant find an equivalent system call
      ... An Operating system that permits one process to modify another process' memory ... Linux, like it's Unix forefathers, does not permit such uncontrolled access. ...
      (comp.os.linux.development.apps)
    • Re: Attempting to port and app to linux but cant find an equivalent system call
      ... |>>cannot find anything in linux remotely like the following... ... |>An Operating system that permits one process to modify another process' memory ... Your parent process can use fork/execto launch the program to be ...
      (comp.os.linux.development.apps)
    • Re: Linux v2.6.9 and GPL Buyout
      ... The memory sickness with disappearing buffers, ... We have identified and removed the infringing portions of Linux for our ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Bigmem in Linux 2.6.8
      ... > I've got a quick question about the amount of memory used by Linux. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: GPL violation by CorAccess?
      ... >> I have seen a device by CorAccess which apparently uses Linux and didn't find ... Does anyone know about known cause of violation by ... Maybe they didn't have to modify any of the linux kernel to ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)