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.


Relevant Pages

  • Re: PROBLEM: 2.4 oops: proc_pid_stat()
    ... server in another state I first tried going ahead and upgrading to ... Keywords (i.e., modules, networking, kernel): ... A small shell script or example program which triggers the ...
  • Re: [Full-disclosure] vm86 syscall kernel-panic and some more goodies waiting to be analyzed
    ... privilege escalation although there might be also some time-race ... uninitialized memory or triggers NULL-dereferences. ... simple POC code could be extended for more extensive testing. ... And watch your console or dmesg output (when your kernel did not lock ...
  • 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. ...
  • 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 ...
  • 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 ...