Re: [patch] ioremap sanity check to catch mapping requests exceeding the BAR sizes

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Friday, September 26, 2008 - 12:39 am

* Suresh Siddha <suresh.b.siddha@intel.com> wrote:


applied to tip/core/resources, thanks Suresh.

one question:


i think all the checks you added are precise to the byte and you allow 
all the sensible ioremaps: which nest fully inside a single resource - 
and you reject all the other partial overlap or multiple overlap 
scenarios.

One potential thing to check for would be whether addr+size overlaps a 
4GB boundary? That would almost always be a bug, and it could also cause 
problems with the checks above if resource_t is 32 bits. The ioremap 
code should already prevent it though.

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

Messages in current thread:
Re: [patch] ioremap sanity check to catch mapping requests ..., Ingo Molnar, (Fri Sep 26, 12:39 am)
Re: [patch] ioremap sanity check to catch mapping requests ..., Jeremy Fitzhardinge, (Sat Sep 27, 12:16 am)
Re: [patch] ioremap sanity check to catch mapping requests ..., Jeremy Fitzhardinge, (Sat Sep 27, 7:43 am)
Re: [patch] ioremap sanity check to catch mapping requests ..., Jeremy Fitzhardinge, (Sat Sep 27, 9:17 am)
Re: [patch] ioremap sanity check to catch mapping requests ..., Arjan van de Ven, (Sat Sep 27, 12:24 pm)