Received: by mail.netbsd.org (Postfix, from userid 605) id 085A085EE1; Sat, 9 Jul 2016 08:05:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 8966F85EA2 for ; Sat, 9 Jul 2016 08:05:47 +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 Oduni6gUeXdr for ; Sat, 9 Jul 2016 08:05:47 +0000 (UTC) Received: from cvs.NetBSD.org (unknown [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 32A5685E74 for ; Sat, 9 Jul 2016 08:05:47 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 24767FBB5; Sat, 9 Jul 2016 08:05:47 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sat, 9 Jul 2016 08:05:47 +0000 From: "Maxime Villard" Subject: CVS commit: src/sys/arch/x86/x86 To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20160709080547.24767FBB5@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: "Maxime Villard" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: maxv Date: Sat Jul 9 08:05:47 UTC 2016 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: When a user pmap is created, it is populated with the higher kernel slots, which become accessible upon kernel entry (syscall, cpu switch, or whatever). Put the NOX bit in the user recursive slot, so the whole tree does not appear as executable in kernel mode. This is already what is done in the kernel pmap. To generate a diff of this commit: cvs rdiff -u -r1.207 -r1.208 src/sys/arch/x86/x86/pmap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.