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>
This commit is contained in:
parent
affb1a50b9
commit
8e5e19ee41
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user