From: Jan Kiszka Subject: Re: [RFC][PATCH 06/45] msix: Prevent bogus mask updates on MMIO accesses Date: Mon, 17 Oct 2011 14:07:10 +0200 Message-ID: <4E9C1A6E.1010404@siemens.com> References: <57386830befff359aa6eac1610816eb9c853a05d.1318843693.git.jan.kiszka@siemens.com> <20111017111045.GB4537@redhat.com> <4E9C1042.4040007@siemens.com> <20111017115721.GF4537@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Avi Kivity , Marcelo Tosatti , "kvm@vger.kernel.org" , Alex Williamson , "qemu-devel@nongnu.org" To: "Michael S. Tsirkin" Return-path: Received: from thoth.sbs.de ([192.35.17.2]:20247 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750999Ab1JQMHS (ORCPT ); Mon, 17 Oct 2011 08:07:18 -0400 In-Reply-To: <20111017115721.GF4537@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 2011-10-17 13:57, Michael S. Tsirkin wrote: > On Mon, Oct 17, 2011 at 01:23:46PM +0200, Jan Kiszka wrote: >> On 2011-10-17 13:10, Michael S. Tsirkin wrote: >>> On Mon, Oct 17, 2011 at 11:27:40AM +0200, Jan Kiszka wrote: >>>> Only accesses to the MSI-X table must trigger a call to >>>> msix_handle_mask_update or a notifier invocation. >>>> >>>> Signed-off-by: Jan Kiszka >>> >>> Why would msix_mmio_write be called on an access >>> outside the table? >> >> Because it handles both the table and the PBA. > > Hmm. Interesting. Is there a bug in how we handle PBA > updates then? If yes I'd like a separate patch for that > to apply to the stable tree. I first thought it was a serious bug, but it just triggers if the guest write to PBA (which is very uncommon) and that actually triggers any spurious out-of-bounds vector injection. Highly unlikely. > > BTW, this code will go away if PBA can get stored separately? Hmm - yeah, true. Likely it's moot to discuss this change then. Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux