Re: fork: out of memory

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 26 Nov 1997 16:37:38 +0000 (GMT)


> I really don't get it.
>
> before after
> 0x12345 0x23456
> blah -> files -> [ 0 ] blah -> files -> [ 0 ]
> [ 1 ] [ 1 ]
> ... ...
> [ n ] ----> somefile [ n ] ----> somefile
> ... ...
> [ 64 ] [1024]
>

Try

blah->files 0x123456, then take an interrupt, (busy)

other CPU
move blah->files
free original
realloc it
scribble

first CPU again
*0123456 - wrong address
defer file pointer
Squawk, bang bang Im dead