lkml.org 
[lkml]   [1999]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.3.11 fixed port filtering on my box
On Sun, 22 Aug 1999, mullein wrote:

> Just wanted to make an observation, in case anyone else is playing with
> dev kernels.
> I noticed that when I compiled 2.3.10 with port filtering enabled, booting
> the kernel resulted in a message on boot (immediately after lilo prompt)
> Out of Memory
> System Halted
> I was going to report this, but wanted to do some more research before
> submitting. However, I downloaded 2.3.11 last night, compiled it with the
> same config file, and it boots and works. in fact, i'm using 2.3.11 right
> now.
> If anyone is interested in the conditions of my failed 2.3.10 boot, I'd be
> happy to provide them.

We have discussed this yesterday, see mails with the Subject
"Out of memory -- System halted".

Problem is that the heap buffer, which is used for internal data
structures while uncompressing the kernel image, is too small for certain
byte patterns in a compressed image.

This seems to happen very seldom (or maybe the failure is not reported
because the problems disappears magically with the next kernel version).

You could try the following patch which defines the same heap buffer size
as it is used in zlib, if you have a kernel again which reports out of
memory at decompressing stage.

Matze


--
Matthias Hanisch office: matze@camline.com private: matze@pingu.franken.de
+49 8137 935-219 +49 8441 82387

"CAPS - Software from Experts for Experts"
--- linux/arch/i386/boot/compressed/misc.c.orig Thu Jul 22 14:09:24 1999
+++ linux/arch/i386/boot/compressed/misc.c Thu Jul 22 14:10:35 1999
@@ -104,7 +104,7 @@
#define LOW_BUFFER_START 0x2000
#define LOW_BUFFER_END 0x90000
#define LOW_BUFFER_SIZE ( LOW_BUFFER_END - LOW_BUFFER_START )
-#define HEAP_SIZE 0x2000
+#define HEAP_SIZE 0x2d00 /* same as in zlib */
static int high_loaded =0;
static uch *high_buffer_start /* = (uch *)(((ulg)&end) + HEAP_SIZE)*/;
\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.020 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site