qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Ilya Leoshkevich <iii@linux.ibm.com>
To: Thomas Huth <thuth@redhat.com>,
	Richard Henderson <richard.henderson@linaro.org>,
	qemu-devel@nongnu.org
Cc: stefanha@gmail.com, qemu-s390x <qemu-s390x@nongnu.org>
Subject: Re: [PULL v3 00/20] tcg patch queue
Date: Tue, 20 Sep 2022 13:16:25 +0200	[thread overview]
Message-ID: <64b4a1748f5f65a90117ddd5f32a4b00b87d208b.camel@linux.ibm.com> (raw)
In-Reply-To: <d64c7c75-8393-19ad-0ce1-950624ba01c3@redhat.com>

On Tue, 2022-09-20 at 12:27 +0200, Thomas Huth wrote:
> On 06/09/2022 10.37, Richard Henderson wrote:
> > v2: Fix incorretly resolved rebase conflict in patch 16.
> > v3: Work around clang preprocessor bug in patch 3.
> > 
> > 
> > r~
> > 
> > 
> > The following changes since commit
> > fd28528ece590dc709d1a893fce2ff2f68ddca70:
> > 
> >    Merge tag 'pull-or1k-20220904' of
> > https://github.com/stffrdhrn/qemu into staging (2022-09-05 18:01:02
> > -0400)
> > 
> > are available in the Git repository at:
> > 
> >    https://gitlab.com/rth7680/qemu.git tags/pull-tcg-20220906
> > 
> > for you to fetch changes up to
> > 00c07344fa245b22e895b363320ba4cd0ec1088a:
> > 
> >    target/riscv: Make translator stop before the end of a page
> > (2022-09-06 08:04:26 +0100)
> > 
> > ----------------------------------------------------------------
> > Respect PROT_EXEC in user-only mode.
> > Fix s390x, i386 and riscv for translations crossing a page.
> > 
> > ----------------------------------------------------------------
> > Ilya Leoshkevich (4):
> >        linux-user: Clear translations on mprotect()
> >        accel/tcg: Introduce is_same_page()
> >        target/s390x: Make translator stop before the end of a page
> >        target/i386: Make translator stop before the end of a page
> > 
> > Richard Henderson (16):
> >        linux-user/arm: Mark the commpage executable
> >        linux-user/hppa: Allocate page zero as a commpage
> >        linux-user/x86_64: Allocate vsyscall page as a commpage
> >        linux-user: Honor PT_GNU_STACK
> >        tests/tcg/i386: Move smc_code2 to an executable section
> >        accel/tcg: Properly implement get_page_addr_code for user-
> > only
> >        accel/tcg: Unlock mmap_lock after longjmp
> >        accel/tcg: Make tb_htable_lookup static
> >        accel/tcg: Move qemu_ram_addr_from_host_nofail to physmem.c
> >        accel/tcg: Use probe_access_internal for softmmu
> > get_page_addr_code_hostp
> >        accel/tcg: Document the faulting lookup in tb_lookup_cmp
> >        accel/tcg: Remove translator_ldsw
> >        accel/tcg: Add pc and host_pc params to
> > gen_intermediate_code
> >        accel/tcg: Add fast path for translator_ld*
> >        target/riscv: Add MAX_INSN_LEN and insn_len
> >        target/riscv: Make translator stop before the end of a page
> 
>   Hi Richard!
> 
> Since your pull request has been merged, the Travis CI now constantly
> shows 
> a failure, see:
> 
>   https://app.travis-ci.com/gitlab/qemu-project/qemu/builds/255231855
> 
> The previous runs were all green, so I assume this has been
> introduced by 
> one of the patches in here. Could you please have a look?
> 
>   Thanks,
>    Thomas
> 

The reason seems to be that vstl instruction (used by libc's memcpy)
is not treated as a write for purposes of self-modifying-code
detection. This causes qemu to incorrectly forward SEGV to the guest
program.

I will prepare a patch.


      reply	other threads:[~2022-09-20 14:44 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-06  8:37 [PULL v3 00/20] tcg patch queue Richard Henderson
2022-09-06  8:37 ` [PULL v3 01/20] linux-user/arm: Mark the commpage executable Richard Henderson
2022-09-06  8:37 ` [PULL v3 02/20] linux-user/hppa: Allocate page zero as a commpage Richard Henderson
2022-09-06  8:37 ` [PULL v3 03/20] linux-user/x86_64: Allocate vsyscall page " Richard Henderson
2022-09-06  8:37 ` [PULL v3 04/20] linux-user: Honor PT_GNU_STACK Richard Henderson
2022-09-06  8:38 ` [PULL v3 05/20] linux-user: Clear translations on mprotect() Richard Henderson
2022-09-06  8:38 ` [PULL v3 06/20] tests/tcg/i386: Move smc_code2 to an executable section Richard Henderson
2022-09-06  8:38 ` [PULL v3 07/20] accel/tcg: Introduce is_same_page() Richard Henderson
2022-09-06  8:38 ` [PULL v3 08/20] accel/tcg: Properly implement get_page_addr_code for user-only Richard Henderson
2022-09-06  8:38 ` [PULL v3 09/20] accel/tcg: Unlock mmap_lock after longjmp Richard Henderson
2022-09-06  8:38 ` [PULL v3 10/20] accel/tcg: Make tb_htable_lookup static Richard Henderson
2022-09-06  8:38 ` [PULL v3 11/20] accel/tcg: Move qemu_ram_addr_from_host_nofail to physmem.c Richard Henderson
2022-09-06  8:38 ` [PULL v3 12/20] accel/tcg: Use probe_access_internal for softmmu get_page_addr_code_hostp Richard Henderson
2022-09-06  8:38 ` [PULL v3 13/20] accel/tcg: Document the faulting lookup in tb_lookup_cmp Richard Henderson
2022-09-06  8:38 ` [PULL v3 14/20] accel/tcg: Remove translator_ldsw Richard Henderson
2022-09-06  8:38 ` [PULL v3 15/20] accel/tcg: Add pc and host_pc params to gen_intermediate_code Richard Henderson
2022-09-06  8:38 ` [PULL v3 16/20] accel/tcg: Add fast path for translator_ld* Richard Henderson
2022-09-06  8:38 ` [PULL v3 17/20] target/s390x: Make translator stop before the end of a page Richard Henderson
2022-09-06  8:38 ` [PULL v3 18/20] target/i386: " Richard Henderson
2022-09-06  8:38 ` [PULL v3 19/20] target/riscv: Add MAX_INSN_LEN and insn_len Richard Henderson
2022-09-06  8:38 ` [PULL v3 20/20] target/riscv: Make translator stop before the end of a page Richard Henderson
2022-09-06 12:30 ` [PULL v3 00/20] tcg patch queue Stefan Hajnoczi
2022-09-20 10:27 ` Thomas Huth
2022-09-20 11:16   ` Ilya Leoshkevich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=64b4a1748f5f65a90117ddd5f32a4b00b87d208b.camel@linux.ibm.com \
    --to=iii@linux.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=stefanha@gmail.com \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).