[PATCH v7 04/14] linux-user: Use MAP_FIXED_NOREPLACE for do_brk()

2023-08-02 Thread Richard Henderson
From: Akihiko Odaki MAP_FIXED_NOREPLACE can ensure the mapped address is fixed without concerning that the new mapping overwrites something else. Signed-off-by: Akihiko Odaki Message-Id: <20230802071754.14876-5-akihiko.od...@daynix.com> [rth: Pass -1 as fd for MAP_ANON] Signed-off-by: Richard H

[PATCH v7 08/14] bsd-user: Remove last_brk

2023-08-02 Thread Richard Henderson
This variable is unused. Signed-off-by: Richard Henderson --- bsd-user/qemu.h | 1 - bsd-user/mmap.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h index edf9602f9b..8f2d6a3c78 100644 --- a/bsd-user/qemu.h +++ b/bsd-user/qemu.h @@ -232,7 +232,6 @@ abi_lon

[PATCH v7 07/14] linux-user: Remove last_brk

2023-08-02 Thread Richard Henderson
This variable is unused. Signed-off-by: Richard Henderson --- linux-user/user-mmap.h | 1 - linux-user/mmap.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/linux-user/user-mmap.h b/linux-user/user-mmap.h index 3fc986f92f..7265c2c116 100644 --- a/linux-user/user-mmap.h +++ b/linux-us

Re: [PATCH] target/m68k: Map FPU exceptions to FPSR register

2023-08-02 Thread Richard Henderson
On 8/2/23 17:55, Keith Packard via wrote: Add helpers for reading/writing the 68881 FPSR register so that changes in floating point exception state can be seen by the application. Signed-off-by: Keith Packard --- target/m68k/cpu.h| 2 ++ target/m68k/fpu_helper.c | 72 +++

[PATCH 1/2] virtio-crypto: verify src&dst buffer length for sym request

2023-08-02 Thread zhenwei pi
For symmetric algorithms, the length of ciphertext must be as same as the plaintext. The missing verification of the src_len and the dst_len in virtio_crypto_sym_op_helper() may lead buffer overflow/divulged. This patch is originally written by Yiming Tao for QEMU-SECURITY, resend it(a few changes

[PATCH 0/2] CEV fixes for virtio-crypto

2023-08-02 Thread zhenwei pi
Hi Michael, Lei, Yiming Tao, Yongkang Jia, Xiao Lei(from Zhejiang University) reported issuses and CVEs in the past days. This series fixes a CVE and a BUG for virtio-crypto/cryptodev. Zhenwei Pi (2): virtio-crypto: verify src&dst buffer length for sym request cryptodev: Handle unexpected re

[PATCH 2/2] cryptodev: Handle unexpected request to avoid crash

2023-08-02 Thread zhenwei pi
Generally guest side should discover which services the device is able to offer, then do requests on device. However it's also possible to break this rule in a guest. Handle unexpected request here to avoid NULL pointer dereference. Fixes: e7a775fd ('cryptodev: Account statistics') Cc: Gonglei C

Re: [PATCH v4] block-jobs: flush target at the end of .run()

2023-08-02 Thread Evanzhang
[...] >diff --git a/block/mirror.c b/block/mirror.c >index d3cacd1708..cd19b49f7f 100644 >--- a/block/mirror.c >+++ b/block/mirror.c >@@ -1143,6 +1143,10 @@ immediate_exit: > g_free(s->in_flight_bitmap); > bdrv_dirty_iter_free(s->dbi); > >+if (ret >= 0) { >+ret = block_job_fin

[PATCH] target/m68k: Map FPU exceptions to FPSR register

2023-08-02 Thread Keith Packard via
Add helpers for reading/writing the 68881 FPSR register so that changes in floating point exception state can be seen by the application. Call these helpers in pre_load/post_load hooks to synchronize exception state. Signed-off-by: Keith Packard --- target/m68k/cpu.c| 12 +++ target

Re: [PATCH] target/m68k: Map FPU exceptions to FPSR register

2023-08-02 Thread Keith Packard via
> Good catch. Mostly ok. Thanks much for looking at this. > No need for inline markers. Thanks. > In general it is bad form to call HELPER(foo) directly. In this case > it doesn't hurt, but better form to reverse the implementations. Good point. I had copied this from the arm vfp code which

Re: [PATCH v8 00/15] Add RISC-V vector cryptographic instruction set support

2023-08-02 Thread Max Chou
On 2023/8/2 10:54 PM, Alistair Francis wrote: On Tue, Jul 11, 2023 at 12:59 PM Max Chou wrote: This patchset provides an implementation for Zvbb, Zvbc, Zvkned, Zvknh, Zvksh, Zvkg, and Zvksed of the draft RISC-V vector cryptography extensions as per the v20230620 version of the specification(1)

Re: [PATCH] Fixed incorrect LLONG alignment for openrisc and cris

2023-08-02 Thread Thomas Huth
On 03/08/2023 02.29, Luca Bonissi wrote: From: Luca Bonissi Date: Thu, 3 Aug 2023 02:15:57 +0200 Subject: [PATCH] Fixed incorrect LLONG alignment for openrisc and cris OpenRISC (or1k) has long long alignment to 4 bytes, but currently not defined in abitypes.h. This lead to incorrect packing of

Re: [PATCH v10 00/10] migration: Modify 'migrate' and 'migrate-incoming' QAPI commands for migration

2023-08-02 Thread Het Gala
Hi, A gentle reminder for Juan and other migration maintainers for the review of this patchset series if any changes are required or give to queue them. There are more patchset series coming after this. As discussed earlier, we have broken down it into 4 different patchset series. This is jus

<    1   2   3