Received: by mail.netbsd.org (Postfix, from userid 605) id 52658855B6; Tue, 14 Feb 2017 16:59:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id B9D01855AC for ; Tue, 14 Feb 2017 16:59:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id w9hV8aCcO0Wy for ; Tue, 14 Feb 2017 16:59:31 +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 6173E855A9 for ; Tue, 14 Feb 2017 16:59:31 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 5FBD4FBE3; Tue, 14 Feb 2017 16:59:31 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Tue, 14 Feb 2017 16:59:31 +0000 From: "Soren Jacobsen" Subject: CVS commit: [netbsd-6] src/sys/compat/linux/arch/amd64 To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20170214165931.5FBD4FBE3@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: "Soren Jacobsen" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: snj Date: Tue Feb 14 16:59:31 UTC 2017 Modified Files: src/sys/compat/linux/arch/amd64 [netbsd-6]: linux_machdep.c Log Message: Pull up following revision(s) (requested by maxv in ticket #1433): sys/compat/linux/arch/amd64/linux_machdep.c: 1.50, 1.51 Don't let userland choose %rip. This is the Intel Sysret vulnerability again. -- Make sure %rip is in userland. This is harmless, since the return to userland is made with iret instead of sysret in this path. While here, use size_t. To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.39.6.1 \ src/sys/compat/linux/arch/amd64/linux_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.