Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752391AbdFZMyc (ORCPT ); Mon, 26 Jun 2017 08:54:32 -0400 Received: from mx2.suse.de ([195.135.220.15]:36909 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752193AbdFZMyL (ORCPT ); Mon, 26 Jun 2017 08:54:11 -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: =?UTF-8?Q?Juergen_Gro=c3=9f?= Message-ID: <664ecd67-8bd5-3efd-4b59-eef79640ef4c@suse.com> Date: Mon, 26 Jun 2017 14:54:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <1498481386-8704-1-git-send-email-marmarek@invisiblethingslab.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 584 Lines: 18 On 06/26/2017 02:49 PM, 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 Reviewed-by: Juergen Gross Thanks, Juergen