lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 04 Nov 2008 09:56:37 -0600
From:	"Chris Friesen" <cfriesen@...tel.com>
To:	Rik van Riel <riel@...hat.com>
CC:	Peter Zijlstra <peterz@...radead.org>,
	"Eugene V. Lyubimkin" <jackyf.devel@...il.com>,
	linux-kernel@...r.kernel.org, linux-mm <linux-mm@...ck.org>,
	hugh <hugh@...itas.com>
Subject: Re: mmap: is default non-populating behavior stable?

Rik van Riel wrote:
> Peter Zijlstra wrote:

>> The exact interaction of mmap() and truncate() I'm not exactly clear on.
> 
> Truncate will reduce the size of the mmaps on the file to
> match the new file size, so processes accessing beyond the
> end of file will get a segmentation fault (SIGSEGV).

I suspect Peter was talking about using truncate() to set the initial 
file size, effectively increasing rather than reducing it.

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ