Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Dec 2002 11:24:43 -0800 (PST)
From:      Matt Dillon <dillon@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/vm vm.h src/sys/kern imgact_elf.c src/libexec/rtld-elf map_object.c
Message-ID:  <200212161924.gBGJOhSb048310@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
dillon      2002/12/16 11:24:43 PST

  Modified files:
    sys/vm               vm.h 
    sys/kern             imgact_elf.c 
    libexec/rtld-elf     map_object.c 
  Log:
  Change the way ELF coredumps are handled.  Instead of unconditionally
  skipping read-only pages, which can result in valuable non-text-related
  data not getting dumped, the ELF loader and the dynamic loader now mark
  read-only text pages NOCORE and the coredump code only checks (primarily) for
  complete inaccessibility of the page or NOCORE being set.
  
  Certain applications which map large amounts of read-only data will
  produce much larger cores.  A new sysctl has been added,
  debug.elf_legacy_coredump, which will revert to the old behavior.
  
  This commit represents collaborative work by all parties involved.
  The PR contains a program demonstrating the problem.
  
  PR:             kern/45994
  Submitted by:   "Peter Edwards" <pmedwards@eircom.net>, Archie Cobbs <archie@dellroad.org>
  Reviewed by:    jdp, dillon
  MFC after:      7 days
  
  Revision  Changes    Path
  1.10      +23 -6     src/libexec/rtld-elf/map_object.c
  1.133     +31 -11    src/sys/kern/imgact_elf.c
  1.22      +1 -0      src/sys/vm/vm.h

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212161924.gBGJOhSb048310>