Received: from eggs.gnu.org ([2001:4830:134:3::10]:50344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y40h2-0002qf-Ea for qemu-devel@nongnu.org; Thu, 25 Dec 2014 00:10:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y40gz-0002CU-9U for qemu-devel@nongnu.org; Thu, 25 Dec 2014 00:10:36 -0500 Received: from isrv.corpit.ru ([86.62.121.231]:60514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y40gz-00028C-1q for qemu-devel@nongnu.org; Thu, 25 Dec 2014 00:10:33 -0500 Message-ID: <549B9C3E.6000706@msgid.tls.msk.ru> Date: Thu, 25 Dec 2014 08:10:22 +0300 From: Michael Tokarev MIME-Version: 1.0 References: <1419270420-10699-1-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1419270420-10699-1-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] linux-user: Fix broken m68k signal handling on 64 bit hosts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-devel@nongnu.org Cc: Riku Voipio 22.12.2014 20:47, Peter Maydell wrote: > The m68k signal frame setup code which writes the signal return > trampoline code to the stack was assuming that a 'long' was 32 bits; > on 64 bit systems this meant we would end up writing the 32 bit > (2 insn) trampoline sequence to retaddr+4,retaddr+6 instead of > the intended retaddr+0,retaddr+2, resulting in a guest crash when > it tried to execute the invalid zero-bytes at retaddr+0. > Fix by using uint32_t instead; also use uint16_t rather than short > for consistency. This fixes bug LP:1404690. Cc: qemu-stable@ ? Thanks, /mjt