Re: [PATCH] binfmt_elf.c allow .bss with no access (p---)

From: John Reiser
Date: Tue Apr 13 2004 - 12:36:01 EST


LOAD 0x001000 0x00400000 0x00400000 0x00000 0x10000000 R 0x1000

It should really be p_flags 0 and binfmt_elf.c should be fixed if it doesn't
handle that properly.

This ALPHA quality patch against 2.6.3 adds another argument to do_brk()
which enables having a user ELF .bss with no-access (or read-only).

Here are refreshed patches (now BETA quality) against recent kernels:
http://www.bitwagon.com/elfdiet/elfdiet-2.6.5-mm5-1.patch.gz
http://www.bitwagon.com/elfdiet/elfdiet-2.6.5.patch.gz
(Patch mechanics: take 2.6.5, apply -mm5-1 [if desired], then apply
the corresponding elfdiet patch.)

A short introduction with links to past and future patches is:
http://www.bitwagon.com/elfdiet/elfdiet.html

--
John Reiser, jreiser@xxxxxxxxxxxx

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