[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <56D02EAA.4090200@citrix.com>
Date: Fri, 26 Feb 2016 11:53:30 +0100
From: Roger Pau Monné <roger.pau@...rix.com>
To: Boris Ostrovsky <boris.ostrovsky@...cle.com>,
<konrad.wilk@...cle.com>, <david.vrabel@...rix.com>
CC: <andrew.cooper3@...rix.com>, <linux-kernel@...r.kernel.org>,
<mcgrof@...nel.org>, <brgerst@...il.com>,
<xen-devel@...ts.xenproject.org>
Subject: Re: [Xen-devel] [PATCH v3 0/2] Clear .bss for VP guests
El 25/2/16 a les 16:16, Boris Ostrovsky ha escrit:
> PV guests need to have their .bss zeroed out since it is not guaranteed
> to be cleared by Xen's domain builder
I guess I'm missing something, but elf_load_image (in libelf-loader.c)
seems to be able to clear segments (it will zero the memory between
p_paddr + p_filesz and p_paddr + p_memsz) while loading the ELF into
memory, so if the program headers are correctly setup the .bss should be
zeroed out AFAICT.
Roger.
Powered by blists - more mailing lists