Mailing List Archive

[PATCH][libxc] Bounds check for parray
Add a bounds check for parray in loadelfimage().

Signed-off-by: Aravindh Puthiyaparambil
<aravindh.puthiyaparambil@unisys.com>
Re: [PATCH][libxc] Bounds check for parray [ In reply to ]
On 19 May 2006, at 20:43, Puthiyaparambil, Aravindh wrote:

> Add a bounds check for parray in loadelfimage().
>
> Signed-off-by: Aravindh Puthiyaparambil
> <aravindh.puthiyaparambil@unisys.com>

I added a couple extra sanity checks to parseelfimage which should make
this patch unnecessary:
1. Ensure VIRT_BASE is specified if ELF_PADDR_OFFSET is specified.
2. Ensure that VIRT_BASE is less than kernel virtual load address.

-- Keir


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
RE: [PATCH][libxc] Bounds check for parray [ In reply to ]
> I added a couple extra sanity checks to parseelfimage which should
make
> this patch unnecessary:
> 1. Ensure VIRT_BASE is specified if ELF_PADDR_OFFSET is specified.
> 2. Ensure that VIRT_BASE is less than kernel virtual load address.

I did a few tests and everything seems to be fine now. I am not able to
get the builder to segfault. Hopefully this has been laid to rest now
:-).

Thanks,
Aravindh

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel