Linux-kernel mailing list archive 1999-37,: Re: [q] ELF program header table size <= 64K ?

# Re: [q] ELF program header table size <= 64K ?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 14 Sep 1999 13:36:51 +0100 (BST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Sergey Kubushin: "Re: 2.2.13-pre6 build failed (gcc-2.95.1)"
- Previous message: Alan Cox: "Re: [PATCH] final support for MODULE_PARAM as kernel commandline"

> Why does do_load_elf_binary() fail if the program header table size
> (e_phentsize * e_phnum) is greater than 65536 bytes? If it is because in
> some old versions kmalloc(GFP_KERNEL) couldn't get more than 64K (although
> the earliest I remember could get 120K or so) then it should be removed.
> But if there is some other reason, I would like to know.

Self defence. The exercise of feed random elf binaries to the kernel with
arbitary header data is quite instructive ...

Alan

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

- Next message: Sergey Kubushin: "Re: 2.2.13-pre6 build failed (gcc-2.95.1)"
- Previous message: Alan Cox: "Re: [PATCH] final support for MODULE_PARAM as kernel commandline"