[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] /dev/mem



>> Finally, while following the involved code paths, I noted a check that 
>> is made in __ioremap, by calling
>> is_local_lowmem(). It would seem to me that calling this function just 
>> for the first address is insufficient - the range
>> specified may begin in non-lowmem but end in lowmem. Or it may begin 
>> in lowmem and end in non-lowmem, in which case I
>> would think that virt_to_page() wouldn't work correctly anymore 
>> (permitting, say, an erroneous dd command issued by root
>> to result in an oops or maybe worse things).
>
>It's assumed people using those interfaces know what they're doing. How 
>can a 'dd' end up in __ioremap() anyway?

/dev/mem's read/write handlers call ioremap...

Jan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.