Re: [PATCH RFC] x86: check for and defend against BIOS memory corruption

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Thursday, August 28, 2008 - 11:45 pm

* Rafał Miłecki <zajec5@gmail.com> wrote:


that's _very_ weird.

maybe the BIOS expects _zeroes_ somewhere? Do you suddenly see crashes 
if you change this line in Jeremy's patch:

+               memset(__va(addr), 0, size);

to something like:

+               memset(__va(addr), 0x55, size);

If this does not tickle any messages either, then maybe the problem is 
in the identity of the entities we allocate in the first 64K. Is there a 
list of allocations that go there when Jeremy's patch is not applied?

but ... i think with an earlier patch you saw corruption, right? 
Far-fetched idea: maybe it's some CPU erratum during suspend/resume that 
corrupts pagetables if the pagetables are allocated in the first 64K of 
RAM? In that case we should use a bootmem allocation for pagetables that 
give a minimum address of 64K.

	Ingo
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC] x86: check for and defend against BIOS memory ..., Jeremy Fitzhardinge, (Thu Aug 28, 12:52 pm)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Thu Aug 28, 8:28 pm)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Ingo Molnar, (Thu Aug 28, 11:45 pm)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Fri Aug 29, 12:21 am)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Fri Aug 29, 12:22 am)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Fri Aug 29, 1:02 am)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Fri Aug 29, 7:08 am)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Fri Aug 29, 7:18 am)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Fri Aug 29, 7:48 am)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Fri Aug 29, 6:15 pm)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Thu Sep 4, 4:04 pm)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Mon Sep 8, 10:16 am)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Mon Sep 8, 12:45 pm)