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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Hugh Dickins
Date: Monday, September 8, 2008 - 12:14 pm

On Mon, 8 Sep 2008, Jeremy Fitzhardinge wrote:

One too many negatives?


I had thought so until just before replying.


That would be much the neatest answer: I hadn't realized
that inheritance (perhaps I'm still living in early-i386 days,
when IIRC there was a bug in inheriting WP from higher levels).

But then I stumbled across static_protections() in pageattr.c
(takes both addr and pfn, latter seems weird), whose BIOS_BEGIN
and BIOS_END seem to echo the ISA_START_ADDR and ISA_END_ADDR
used by is_ISA_range() in ioremap.c.

And peering at the pagetables I've got here for that area of the
direct map in 2.6.26 x86_64, yes, I'm missing NX from 0xc0000 to
0xfffff (presumably nothing tried to ioremap 0xa0000 to 0xbffff).

A simple answer might be to go the way you suggest, but remove
the special casing from pageattr.c and ioremap.c; but I fear
that will slow something down, or introduce further bugs.

Hugh
--
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 ..., 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 ..., Hugh Dickins, (Mon Sep 8, 12:14 pm)
Re: [PATCH RFC] x86: check for and defend against BIOS mem ..., Jeremy Fitzhardinge, (Mon Sep 8, 12:45 pm)