[lkml]   [2007]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Forbid deletion of memory mappings
    > If you are doing research, consider these methods:
    > 1. Change vma_merge() so it always fail to merge mappings
    > or
    > 2. Set up your "mappings duplicated in userspace" so
    > they too merge in the same way.
    > Helge Hafting

    Thanks for your answer, however you (too) misunderstood: Merging of the vma's
    is not the problem and I understand why the kernel does so.

    The real problem is that it deletes mappings it should not be deleting... in
    my case, I've found out that a possible reason for the deletions is that the
    stack tries to grow or other large areas of memory are allocated and my
    mapping is taking up the memory that the kernel wants to reserve.

    However, this has been dealt with in some other reply - I decided to simply
    relocate my mappings to another memory area as soon as the kernel tries to
    delete them.

    This is not really all that efficient, but it does not matter right now in my

    Thanks again for your answer - I appreciate it!

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-09-04 12:33    [W:0.020 / U:15.868 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site