Received: by mail.netbsd.org (Postfix, from userid 605) id 7AE908559F; Thu, 9 Mar 2017 00:43:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 06D6785599 for ; Thu, 9 Mar 2017 00:43:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 0nl8cMUkW3Ya for ; Thu, 9 Mar 2017 00:43:50 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id A163284CEF for ; Thu, 9 Mar 2017 00:43:50 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 9BD57FBE4; Thu, 9 Mar 2017 00:43:50 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Thu, 9 Mar 2017 00:43:50 +0000 From: "Chuck Silvers" Subject: CVS commit: src/libexec/ld.elf_so To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20170309004350.9BD57FBE4@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Chuck Silvers" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: chs Date: Thu Mar 9 00:43:50 UTC 2017 Modified Files: src/libexec/ld.elf_so: map_object.c Log Message: really unmap the gap between the text and data rather than just removing all access with mprotect(). the latter results in the kernel having to keep track of that range separately since the permissions are different. avoid calling mmap() with a size of zero. To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/libexec/ld.elf_so/map_object.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.