Re: [PATCH] Guard check in module loader against integer overflow
From: Rusty Russell
Date: Wed May 23 2012 - 08:54:21 EST
On Tue, 22 May 2012 15:56:13 +0100, David Howells <dhowells@xxxxxxxxxx> wrote:
> The check:
>
> if (len < hdr->e_shoff + hdr->e_shnum * sizeof(Elf_Shdr))
>
> may not work if there's an overflow in the right-hand side of the condition.
>
> Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
Thanks; though the sanity checks are merely against accidents, not
malice, it's worth fixing.
Applied,
Rusty.
--
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/