From: "andrzej zaborowski" Subject: Re: qemu/pci: Unaligned config read/write overflow Date: Wed, 29 Nov 2006 14:51:24 +0000 Message-ID: References: <20061128040441.GA7506@gondor.apana.org.au> Reply-To: balrogg@gmail.com, qemu-devel@nongnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20061128040441.GA7506@gondor.apana.org.au> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org To: qemu-devel@nongnu.org Cc: Xen Development Mailing List , Keir Fraser List-Id: xen-devel@lists.xenproject.org Hi, On 28/11/06, Herbert Xu wrote: > The default config read/write handlers allows a 4-byte read/write at > address 255. This can clobber the field after the config area. This > happens to be the PCIBus pointer in the PCIDevice structure. An easier way to prevent the clobbering is grow PCIDevice::config by three bytes. Regards, Andrew