Re: kernel mmap() and friends.

2005-03-08 Thread Robert Hancock
linux-os wrote: > If one uses x = __get_dma_pages(GFP_KERNEL, nr), finds the physical > address with b = virt_to_bus(x), then attempts to mmap(,,b,,,) the result > _does_not_fail_, yet the user ends up with memory ...somewhere > that is R/W able and WRONG. I don't think virt_to_bus is the corre

kernel mmap() and friends.

2005-03-08 Thread linux-os
Hello mem-map gurus, If one uses x = __get_dma_pages(GFP_KERNEL, nr), finds the physical address with b = virt_to_bus(x), then attempts to mmap(,,b,,,) the result _does_not_fail_, yet the user ends up with memory ...somewhere that is R/W able and WRONG. Yet, if the code executes SetPageReserved