qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 24/30] bsd-user/arm/target_arch_signal.h: arm set_mcontext


From: Warner Losh
Subject: Re: [PATCH v2 24/30] bsd-user/arm/target_arch_signal.h: arm set_mcontext
Date: Wed, 3 Nov 2021 13:19:04 -0600



On Tue, Nov 2, 2021 at 9:40 PM Richard Henderson <richard.henderson@linaro.org> wrote:
On 11/2/21 6:52 PM, Warner Losh wrote:
> +    env->regs[15] = tswap32(gr[TARGET_REG_PC]);

This will be able to crash qemu with an odd pc in thumb mode.
You'd have to artificially create this mcontext of course.

Sure. And if you did this natively, you'd also get SIGILL or something similar and the process would die and/or coredump.
Is there something different about qemu-user that I'm missing in this context?

Warner
 
Otherwise,
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~

reply via email to

[Prev in Thread] Current Thread [Next in Thread]