Kernel - Memory Management - Copy Virtual Memory Area
Hello,
I am trying to write a system call that copies a range of vm area to a new vm area. This will be an extension of copy_page_range() function implemented in mm/memory.c
The only change I want is instead of copying pages to the same virtual address in other mm_area_struct, it should copy the pages to different virtual address in same mm.
I finished writing the call, but I am getting some KERN_ALERTs regarding bad rss_counter. Also, sometimes it works and sometimes not which seems to me as a synchronisation issue. Someone to a rescue?
|