aboutsummaryrefslogtreecommitdiff
path: root/qemu-nbd.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2018-04-12 15:02:22 +0100
committerPeter Maydell <peter.maydell@linaro.org>2018-04-16 11:52:33 +0100
commitaac8f55633f4470e2cb0952bf1a6be3e57d16211 (patch)
tree09027284894543af949f9c6abdeeb31270475578 /qemu-nbd.c
parent161dfd1e7fad1203840c0390f235030eba3fd23c (diff)
downloadqemu-aac8f55633f4470e2cb0952bf1a6be3e57d16211.zip
qemu-aac8f55633f4470e2cb0952bf1a6be3e57d16211.tar.gz
qemu-aac8f55633f4470e2cb0952bf1a6be3e57d16211.tar.bz2
linux-user/signal.c: Put AArch64 frame record in the right place
AArch64 stack frames include a 'frame record' which holds a pointer to the next frame record in the chain and the LR on entry to the function. The procedure calling standard doesn't mandate where exactly this frame record is in the stack frame, but for signal frames the kernel puts it right at the top. We used to put it there too, but in commit 7f0f4208b3a96f22 we accidentally put the "enlarge to the 4K reserved space minimum" check after the "allow for the frame record" code, rather than before it, with the effect that the frame record would be inside the reserved space and immediately after the last used part of it. Move the frame record back out of the reserved space to where we used to put it. This bug shouldn't break any sensible guest code, but test programs that deliberately look at the internal details of the signal frame layout will not find what they are expecting to see. Fixes: 7f0f4208b3a96f22 Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-id: 20180412140222.2096-1-peter.maydell@linaro.org
Diffstat (limited to 'qemu-nbd.c')
0 files changed, 0 insertions, 0 deletions