lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <6B24EEDBA38D764293B27C04FE414CC64E4091DE4E@G1W0491.americas.hpqcorp.net>
Date:	Mon, 30 Jun 2008 19:32:41 +0000
From:	"Pan, Weimin" <weimin.pan@...com>
To:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Why  get_user_pages fails?

I booted the kernel and set "mem=512M" and then mmapped the physical memory above 512M to user space and got the user space virtual address for that memory.
When I passed that address to my driver to do direct IO. The get_user_pages() in my driver fails. I found that this is due to the VM_IO and VM_PFNMAP are set. Does that mean the page structures are not built when I mmapped physical memory to user space (using remap_pfn_range())?

Do I have a way to solve this problem? How can I map the physical memory to user space virtual address and can pass this address to my driver to do direct IO by using get_user_pages() function?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ