Article 4WNGC pte_alloc_one() address argument

pte_alloc_one() address argument

by
redacted
from LinuxQuestions.org on (#4WNGC)
I have local changes to the 4.15 kernel which use the address argument to pte_alloc_one(). The address arg was otherwise unused and has been removed in 5.0.

The short explanation:

I want to allocate page table pages from memory that was reserved during boot, but only for memory allocated by mmap() when called with a specific MAP_ flag set. When do_mmap() sees that flag, it sets a flag in vm_flags. When pte_alloc_one() is called, if the special VM_ flag is set in the mm_struct and the address is between vm_start and vm_end, the page is allocated from the memory that was reserved at boot.

My question:

Without the address argument, how can I determine if the faulting address belongs to memory that was allocated by mmap() with the special MAP_ flag set?latest?d=yIl2AUoC8zA latest?i=y7R9v0WJ12c:SejH-BTjaqU:F7zBnMy latest?i=y7R9v0WJ12c:SejH-BTjaqU:V_sGLiP latest?d=qj6IDK7rITs latest?i=y7R9v0WJ12c:SejH-BTjaqU:gIN9vFwy7R9v0WJ12c
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments