Using kernel 2.4.24 for ppc
in situations where memory is going very low
we got:
__alloc_pages: 0-order allocation failed (gfp=0x1d2/0)
Oops: kernel access of bad area, sig:
11
...
Decoded NIP and BACKTRACE are at:
(gdb) info symbol 0xc003c36c
try_to_free_buffers + 20 in section
.text
(gdb) info symbol 0xc0069df8
ext2_get_cluster_extra_pages + 320 in section
.text
(gdb) info symbol 0xc0063c38
ext2_readpage + 1128 in section
.text
...
Some error paths in inode.c
and compress.c are erroneous
but easy to fix.
Some variables are unsigned and
test for negative does not work.
I uploaded the patch.
Contact me if more info needed.
Thanks
guy.bilodeau@colubris.com
fix low memory path inode.c/compress.c