qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/1] tcg: Always pass the full write size to notdirty_write()
@ 2023-08-07 13:56 Ilya Leoshkevich
  2023-08-07 13:56 ` [PATCH RFC 1/1] " Ilya Leoshkevich
  0 siblings, 1 reply; 5+ messages in thread
From: Ilya Leoshkevich @ 2023-08-07 13:56 UTC (permalink / raw)
  To: Richard Henderson, Paolo Bonzini
  Cc: qemu-devel, Peter Maydell, Ilya Leoshkevich

Hi,

this is the fix for an issue I complained about a few days back on the
IRC. Unfortunately my reproducer [1] does not work anymore, so I'm
sending this separately and as an RFC.

The user-visible effect was that:

- If a TB writes to itself;
- The address of the write is before the TB start;
- The newly written instruction causes an exception;
- Then single-stepping the instruction that does a write gets you to
  an interrupt handler and not to the newly written "bad" instruction.

You can still see that something is wrong with the softmmu reproducer
in the debugger though. In helper_vstl(), probe_write_access() does not
lead to cpu_loop_exit_noexc() - which I think it should, but
cpu_stq_be_data_ra() still does, masking the issue.

Best regards,
Ilya

[1] https://lists.gnu.org/archive/html/qemu-devel/2023-08/msg01081.html

Ilya Leoshkevich (1):
  tcg: Always pass the full write size to notdirty_write()

 accel/tcg/cputlb.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

-- 
2.41.0



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-08 14:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-07 13:56 [PATCH RFC 0/1] tcg: Always pass the full write size to notdirty_write() Ilya Leoshkevich
2023-08-07 13:56 ` [PATCH RFC 1/1] " Ilya Leoshkevich
2023-08-07 18:21   ` Richard Henderson
2023-08-08  9:59     ` Ilya Leoshkevich
2023-08-08 14:23       ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).