Aside from the very questionably naming of ehca_mmap_nopage this mapsanonymous shared memory into a random location in the calling processfrom something that is not defined to change the callers address space,then racy looks up the vma for it and sets the VM_RESERVED flags andvm ops on this anonoymous vma. Not enough ehca_mmap_register then doesa remap_pfn_range into that anonymous vma. This is definitly nothow the mmap infrastructure should be used.

I'd go as far as saying do_mmap(_pgoff) should not be exported at all,but we'd need to fix similar braindamage in drm first.-To unsubscribe from this list: send the line "unsubscribe linux-kernel" inthe body of a message to majordomo@vger.kernel.orgMore majordomo info at http://vger.kernel.org/majordomo-info.htmlPlease read the FAQ at http://www.tux.org/lkml/