WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

<Prev in Thread] Current Thread [Next in Thread>