[okl4-developer] Starting with graphic output

Geoffrey Lee glee at ok-labs.com
Thu May 1 18:11:14 EST 2008


On Tue, Apr 29, 2008 at 04:05:54PM +0000, Remy Gottschalk wrote:
> Hi Nelson,
> 
> To come back to the initial problem, any news concerning the invalid
> memory dereference at 0x18 ?

Hi Remy

This occurs during a deference of the ms pointer in eas_map() in 
iguana/server/src/eas.c

    ms = objtable_lookup((void *)base);
 
    /*
     * XXX: we need to check the attribs and rights
     */
    attrib &= ms->attributes;

it should return failure (-1) if the object does not exist.  Fixing this
alone does not help you entirely because when you mmap() it calls eas_map(), 
the physical memory location has to be first made known to Iguana.
These regions must be made known in the machines.py file with
appropriate setup support by the build system.  If you just want to fix
this quickly you can add the appropriate range check for your
framebuffer there.

	-gl



More information about the Developer mailing list