LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-21-2019, 10:36 AM   #1
jjj005
LQ Newbie
 
Registered: Jun 2019
Posts: 1

Rep: Reputation: Disabled
get_user_pages / page faulting


I am seeing some unexpected behavior trying to access a user buffer in kernel space. Basically I am allocating a buffer in user space and using get_user_pages in my driver to get a corresponding page list, but the page list generated is incorrect. All pages in the list are the same value of 0x01C13000. The problem appears to be that the buffer is not accessed before being passed to the driver so physical memory is not attached to the virtual address; this makes sense. However, I am expecting get_user_pages to detect this and fault in the backing physical memory; this is not happening.

It seems my understanding of get_user_pages must be incorrect, but I haven't come across any information on how this situation should be handled.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
get_user_pages for hugepages mod_dev_123 Linux - Kernel 2 08-21-2015 04:38 AM
get_user_pages() linux kernel animesh Linux - Kernel 1 04-08-2014 10:23 AM
get_user_pages question nakul.k1 Linux - Kernel 1 09-15-2010 03:07 PM
why aio_setup_ring() using get_user_pages()? zdz97 Linux - Kernel 0 02-28-2007 02:40 AM
Wine is page faulting Jimage Linux - Desktop 0 08-16-2006 07:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 10:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration