Re: How does gdb write to RO virtual memory and get away with it?



On Mar 4, 8:19 pm, Joel Fernandes <agnel.j...@xxxxxxxxx> wrote:

One last question, Do you think new VMAs are created when a copy-on-
write happens? Because now memory areas that copy on write triggered
on might not be file backed but anonymous. If yes, doesn't this create
a lot of VMAs if a copy-on-writes keeps happening? Does the kernel
have some sort of a VMA merging algorithm for this?

The kernel does have a VMA merging algorithm. When a fault triggers a
copy on write, the kernel checks the previous page and the next page
to see if they have a VMA that the new page can be merged into.

DS
.



Relevant Pages

  • Re: PROBLEM: 2.4 oops: proc_pid_stat()
    ... server in another state I first tried going ahead and upgrading to 2.6.17.3. ... Keywords (i.e., modules, networking, kernel): ... A small shell script or example program which triggers the ...
    (Linux-Kernel)
  • Re: [RFC 00/15] x86_64: Optimize percpu accesses
    ... no short-term hope of fixing a problem it triggers. ... and 4.2.1 are known broken for the kernel. ... blacklisted due to known gcc bugs are 4.1.0 and 4.1.1. ... There had been need of rain for many days. ...
    (Linux-Kernel)
  • Re: The performance and behaviour of the anti-fragmentation related patches
    ... simple matter to concoct a test case which triggers the same failure mode. ... then work out what the kernel is doing. ... it's really great when it's possible to get debug info out of ... from virt_to_pageon a cache colored buffer pointer (clearly ...
    (Linux-Kernel)
  • Re: [sparc64] 2.6.18 unaligned accesses in eth1394
    ... David Miller wrote: ... The second one triggers on every packet received, the first only triggers once in a while. ... If you want more gdb info or a disassembly just ask. ... into your kernel, reproduce, and post the kernel log messages ...
    (Linux-Kernel)
  • Re: [PATCH -v2] rmap: make anon_vma_prepare link in all the anon_vmas of a mergeable VMA
    ... On Sat, 10 Apr 2010, Borislav Petkov wrote: ... I will keep running that kernel in the next couple of days and keep you ... informed in case this is the fix we're gonna use. ... help pinpoint what triggers this. ...
    (Linux-Kernel)