From: Lukas Hejtmanek Subject: Re: Question regarding SLAB corruption Date: Mon, 9 Jul 2007 19:11:03 +0200 Message-ID: <20070709171103.GO3885@ics.muni.cz> References: <20070709153908.GM3885@ics.muni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Roland Dreier , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Mon, Jul 09, 2007 at 05:13:10PM +0100, Keir Fraser wrote: > >> You definitely need the patch that I posted. If it won't apply clean= ly to > >> your kernel tree then you'll have to manually apply it, or move to t= he > >> current 'unstable' linux-2.6.18-xen.hg tree. > >=20 > > Yeah, it solved the oops, thanks! However, I got another oops in __sy= nc_single > > because host addr is invalid. > >=20 > > I suppose, it is because in sync_single it picks up invalid line from= the > > io_tlb_orig_addr. It uses index 3332 which is not inserted by map_pag= e. > > The invalid address is 0x0021d1242de00000 but it is strange because I= added > > memset to zero io_tlb_orig_addr at the beginning, however, such addre= ss is > > still there even if the index were not inserted by the map_page. >=20 > Nothing should read from an io_tlb_orig_addr[] slot that hasn't been > initialised by map_single(). That's because sync_single() is only valid= to > be called on a memory region that was previously map_single()d. So what > you're seeing is rather odd. Well, it looks like that __sync_single is called on the first page that h= as been allocated in the order 6 batch. So, are you saying that this is some= thing incorrect? Because >0 orders do not pass through map_single(), if I understand corre= ctly. --=20 Luk=E1=B9 Hejtm=E1nek