aboutsummaryrefslogtreecommitdiff
path: root/linux-user/m68k
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2014-12-22 17:47:00 +0000
committerRiku Voipio <riku.voipio@linaro.org>2015-01-27 22:33:57 +0200
commit1669add752d9f29283f8ebf6a863d7b1e2d0f146 (patch)
tree0dddf4b468137e693edd9df3d8484949cb323c3e /linux-user/m68k
parentec355f15476fe91b95c4326836d3fe572d8075e1 (diff)
linux-user: Fix broken m68k signal handling on 64 bit hosts
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. Reported-by: Michel Boaventura Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/m68k')
0 files changed, 0 insertions, 0 deletions