[lkml]   [1996]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: the mmap() problem, a'la "grep x /dev/zero"

On Thu, 6 Jun 1996, Linus Torvalds wrote:

> I suspect it's just the fact that Linux doesn't check for memory availability
> when doing memory mappings. It _does_ check when increasing the bss, so it
> was just a matter of doing that check in both places (the check should
> probably be improved too).
> I'm including totally untested patches - I haven't even rebooted (or
> compiled) this kernel yet, but the more testers, the merrier. The worst
> that can happen is that nothing works, it eats your harddisk, and the
> machine goes up in smoke.,.
> (most of this patch is actually just moving "sys_brk()" to where it
> belongs)
> Please do tell if this makes a difference for you..

Thanx! it fixes all problems! It does:

mmap(0, 83894272, PROT_READ|PROT_WRITE, MAP_PRIVATE|0x20, 3, 0) = -1 ENOMEM (Out of memory)

and it's rock stable.
Dont know what smoke you were referr%$#Connection closed by foreign host.

 \ /
  Last update: 2005-03-22 13:37    [W:0.085 / U:1.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site