From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752072AbcEYJij (ORCPT ); Wed, 25 May 2016 05:38:39 -0400 Received: from smtp.citrix.com ([66.165.176.89]:61106 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751117AbcEYJii (ORCPT ); Wed, 25 May 2016 05:38:38 -0400 X-IronPort-AV: E=Sophos;i="5.26,363,1459814400"; d="scan'208";a="356512988" Subject: Re: [PATCH 1/7] x86/xen: Simplify set_aliased_prot To: Andy Lutomirski , References: <0706f1a2538e481194514197298cca6b5e3f2638.1464129798.git.luto@kernel.org> CC: , Borislav Petkov , Kees Cook , Brian Gerst , Boris Ostrovsky , David Vrabel , Jan Beulich , Konrad Rzeszutek Wilk , xen-devel From: Andrew Cooper Message-ID: <57457295.6070709@citrix.com> Date: Wed, 25 May 2016 10:38:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.8.0 MIME-Version: 1.0 In-Reply-To: <0706f1a2538e481194514197298cca6b5e3f2638.1464129798.git.luto@kernel.org> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-DLP: MIA2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/05/16 23:48, Andy Lutomirski wrote: > In aa1acff356bb ("x86/xen: Probe target addresses in > set_aliased_prot() before the hypercall"), I added an explicit probe > to work around a hypercall issue. The code can be simplified by > using probe_kernel_read. > > Cc: Andrew Cooper > Cc: Boris Ostrovsky > Cc: David Vrabel > Cc: Jan Beulich > Cc: Konrad Rzeszutek Wilk > Cc: xen-devel > Signed-off-by: Andy Lutomirski Reviewed-by: Andrew Cooper