From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2JkL-00075i-OK for qemu-devel@nongnu.org; Mon, 16 May 2016 10:43:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2JkH-00043L-Gq for qemu-devel@nongnu.org; Mon, 16 May 2016 10:43:48 -0400 Received: from mail-lf0-x229.google.com ([2a00:1450:4010:c07::229]:34747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2JkH-00043B-8p for qemu-devel@nongnu.org; Mon, 16 May 2016 10:43:45 -0400 Received: by mail-lf0-x229.google.com with SMTP id m64so117457305lfd.1 for ; Mon, 16 May 2016 07:43:45 -0700 (PDT) Date: Mon, 16 May 2016 17:43:35 +0300 From: Max Filippov Message-ID: <20160516144335.GA31697@octofox.metropolis> References: <1463404380-29302-1-git-send-email-sergey.fedorov@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1463404380-29302-1-git-send-email-sergey.fedorov@linaro.org> Subject: Re: [Qemu-devel] [PATCH] cpu-exec: Fix direct jump to TB spanning page List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sergey Fedorov Cc: qemu-devel@nongnu.org, Peter Crosthwaite , Paolo Bonzini , Sergey Fedorov , Alex =?iso-8859-1?Q?Benn=E9e?= , Richard Henderson On Mon, May 16, 2016 at 04:13:00PM +0300, Sergey Fedorov wrote: > From: Sergey Fedorov > > It is not safe to make a direct jump to a TB spanning two pages in > system emulation because the mapping for the second page can get changed > but we don't take care of direct jumps in this case. > > However in user mode emulation, this is not the case because there's > only static address translation and TBs are always invalidated properly. > > Fixes: 5b053a4a2827 ("tcg: Clean up direct block chaining safety checks") > > Reported-by: Max Filippov > Signed-off-by: Sergey Fedorov > Signed-off-by: Sergey Fedorov > --- > cpu-exec.c | 9 +++++++++ > 1 file changed, 9 insertions(+) Tested-by: Max Filippov -- Thanks. -- Max