Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753279AbdGCL2N (ORCPT ); Mon, 3 Jul 2017 07:28:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:51956 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752830AbdGCL2K (ORCPT ); Mon, 3 Jul 2017 07:28:10 -0400 Subject: Re: [PATCH v2] x86/xen: allow userspace access during hypercalls To: =?UTF-8?Q?Marek_Marczykowski-G=c3=b3recki?= , xen-devel@lists.xenproject.org Cc: Boris Ostrovsky , Andrew Cooper , x86@kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <20170626124505.GV1268@mail-itl> <1498481386-8704-1-git-send-email-marmarek@invisiblethingslab.com> From: Juergen Gross Message-ID: <2f90599d-4d83-323f-ecad-99c6ac18bcd9@suse.com> Date: Mon, 3 Jul 2017 13:28:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1498481386-8704-1-git-send-email-marmarek@invisiblethingslab.com> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 571 Lines: 18 On 26/06/17 14:49, Marek Marczykowski-Górecki wrote: > Userspace application can do a hypercall through /dev/xen/privcmd, and > some for some hypercalls argument is a pointers to user-provided > structure. When SMAP is supported and enabled, hypervisor can't access. > So, lets allow it. > > The same applies to HYPERVISOR_dm_op, where additionally privcmd driver > carefully verify buffer addresses. > > Cc: stable@vger.kernel.org > Signed-off-by: Marek Marczykowski-Górecki Queued to xen/tip.git for-linus-4.13 Thanks, Juergen