diff options
author | Richard Henderson | 2022-07-08 17:15:33 +0200 |
---|---|---|
committer | Peter Maydell | 2022-07-11 14:43:51 +0200 |
commit | 8e5e19ee4193acfe17ce43e708c79211c11f5779 (patch) | |
tree | 3f88d99706de1ee82995e68d8cfdba5abcac71aa /linux-user/aarch64 | |
parent | linux-user/aarch64: Do not allow duplicate or short sve records (diff) | |
download | qemu-8e5e19ee4193acfe17ce43e708c79211c11f5779.tar.gz qemu-8e5e19ee4193acfe17ce43e708c79211c11f5779.tar.xz qemu-8e5e19ee4193acfe17ce43e708c79211c11f5779.zip |
linux-user/aarch64: Verify extra record lock succeeded
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220708151540.18136-39-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'linux-user/aarch64')
-rw-r--r-- | linux-user/aarch64/signal.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-user/aarch64/signal.c b/linux-user/aarch64/signal.c index 8fbe98d72f..9ff79da4be 100644 --- a/linux-user/aarch64/signal.c +++ b/linux-user/aarch64/signal.c @@ -340,6 +340,9 @@ static int target_restore_sigframe(CPUARMState *env, __get_user(extra_size, &((struct target_extra_context *)ctx)->size); extra = lock_user(VERIFY_READ, extra_datap, extra_size, 0); + if (!extra) { + return 1; + } break; default: |