From owner-cvs-all Mon Dec 16 11:24:45 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 80B1C37B401; Mon, 16 Dec 2002 11:24:44 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B4F543EC5; Mon, 16 Dec 2002 11:24:44 -0800 (PST) (envelope-from dillon@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id gBGJOimV048311; Mon, 16 Dec 2002 11:24:44 -0800 (PST) (envelope-from dillon@repoman.freebsd.org) Received: (from dillon@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gBGJOhSb048310; Mon, 16 Dec 2002 11:24:43 -0800 (PST) Message-Id: <200212161924.gBGJOhSb048310@repoman.freebsd.org> From: Matt Dillon Date: Mon, 16 Dec 2002 11:24:43 -0800 (PST) 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 X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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" , Archie Cobbs 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