Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751855AbdFZMpV (ORCPT ); Mon, 26 Jun 2017 08:45:21 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:56293 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751423AbdFZMpM (ORCPT ); Mon, 26 Jun 2017 08:45:12 -0400 X-ME-Sender: X-Sasl-enc: gJK3MxYrk5eUkAQcZ9C6+XQSzEPFvmvWTzpz8RzEodKk 1498481111 Date: Mon, 26 Jun 2017 14:45:05 +0200 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= To: Juergen =?utf-8?B?R3Jvw58=?= Cc: xen-devel@lists.xenproject.org, Boris Ostrovsky , Andrew Cooper , x86@kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] x86/xen: allow userspace access during hypercalls Message-ID: <20170626124505.GV1268@mail-itl> References: <1498222072-18217-1-git-send-email-marmarek@invisiblethingslab.com> <6f8113d8-10a2-b23f-16c1-8b97b2fba0bb@suse.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="8A33kwWUmC+fncpD" Content-Disposition: inline In-Reply-To: <6f8113d8-10a2-b23f-16c1-8b97b2fba0bb@suse.com> User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1511 Lines: 43 --8A33kwWUmC+fncpD Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 26, 2017 at 02:05:48PM +0200, Juergen Gro=C3=9F wrote: > On 06/23/2017 02:47 PM, Marek Marczykowski-G=C3=B3recki 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. >=20 > What about HYPERVISOR_dm_op? Indeed, arguments copied to kernel space there are only addresses of buffers. Will send v2 in a moment. But I can't test it right now, as for my understanding this require HVM/PVHv2 dom0 or stubdomain... --=20 Best Regards, Marek Marczykowski-G=C3=B3recki Invisible Things Lab A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --8A33kwWUmC+fncpD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJZUQHSAAoJENuP0xzK19csMFkH+QFkyLQAP/Z6LuAIzs3iIZlu 8O6be4shxE3coAlgIeLbF37TkKwMqJSEC2+/pxYB1CsC7Kpm3cLWGG7CA9uu17mv v2DX/sofwSgzkIHk5iMtCJYE7UoSFrRCCd9z+CfoQ9pzzHu7VdEFudsdUHHXle5w Oxl4l/zMisP5+DMThqPKk/9papn6RwDfnMglLpKmr0dONZ6mxlCfuUnfFC82Et/A YF7dZjjy3nuKMlc1OQqPhvwBTeylNGcVgPldEuyzlTE/Tt84fm710ZKMh76UCbH8 DzWUlhkyZW0BMWiCwuvsQxEViFihaAp1q+oCVBnqEBtqbtIQPH3uPEZA3qRGkaQ= =wjaQ -----END PGP SIGNATURE----- --8A33kwWUmC+fncpD--