Re: [PATCH 2/2] qemu-img: CVE-XXX Sanitize untrusted output from NBD server

2024-08-03 Thread Richard W.M. Jones
On Fri, Aug 02, 2024 at 11:01:36PM +0100, Richard W.M. Jones wrote: > On Fri, Aug 02, 2024 at 02:26:06PM -0500, Eric Blake wrote: > > Error messages from an NBD server must be treated as untrusted; a > > malicious server can inject escape sequences to try and trigger RCE > > flaws via escape sequen

u-boot-sam460ex fixes

2024-08-03 Thread Michael Tokarev
Hi! It's been a long time since everyone's fighting with u-boot-sam460ex code which is very bad, suffers from countless issues. For one, it does not compile for quite a long time with current compilers. For example, here are changes which I apply to this code when building things on Debian: ht

Re: [PATCH 15/18] bsd-user: Implement RISC-V signal trampoline setup functions

2024-08-03 Thread Richard Henderson
On 8/3/24 10:04, Warner Losh wrote: > +     regs->pc = ka->_sa_handler; > +     regs->gpr[2] = frame_addr; > +     regs->gpr[1] = TARGET_PS_STRINGS - TARGET_SZSIGCODE; xRA, xSP. So to be clear, this is 'use these constants rather than the raw numbers for the array subscript

Re: [PATCH] docs: Tweak location of qemu nbd extensions

2024-08-03 Thread Wouter Verhelst
On Fri, Aug 02, 2024 at 08:36:43AM -0500, Eric Blake wrote: > Upstream QEMU is moving the location of its NBD docs, as of its commit > [1]. Instead of pointing to the raw git source file, point to the > rendered html version built from rST. ACK. Please push as soon as that lands. -- w@

hw/misc: Add a virtual PCILeech device

2024-08-03 Thread Zero Tang
This virtual PCI device is intended for security researchers to attack the guest via DMA. This is my first-time contribution and I hope I am doing things correctly. Signed-off-by: Zero Tang --- hw/misc/Kconfig | 5 + hw/misc/meson.build | 1 + hw/misc/pcileech.c | 283 ++

Re: [PATCH] hw/ufs: add basic info of query response upiu

2024-08-03 Thread Minwoo Im
On 08/02, Kyoungrul Kim wrote: > Modify to fill the opcode, idn, index, selector information of > all Query Response UPIU. because attr and flag operation of query > response upiu need these information too. > > Signed-off-by: KyoungrulKim Reviewed-by: Minwoo Im

[PATCH] docs: fix vhost-user protocol doc

2024-08-03 Thread luzhixing12345
add a ref link to Memory region description add extra type(64 bits) to Log description structure fields fix ’s to 's --- docs/interop/vhost-user.rst | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/docs/interop/vhost-user.rst b/docs/interop/vhost-user.

Re: [PATCH for-9.2 v11 10/11] hw/pci: Use -1 as the default value for rombar

2024-08-03 Thread Akihiko Odaki
On 2024/08/02 19:54, Markus Armbruster wrote: Akihiko Odaki writes: vfio_pci_size_rom() distinguishes whether rombar is explicitly set to 1 by checking dev->opts, bypassing the QOM property infrastructure. Use -1 as the default value for rombar to tell if the user explicitly set it to 1. The

Re: [PATCH v2 4/4] virtio-net: Add support for USO features

2024-08-03 Thread Akihiko Odaki
On 2024/08/03 1:26, Peter Xu wrote: On Sat, Aug 03, 2024 at 12:54:51AM +0900, Akihiko Odaki wrote: I'm not sure if I read it right. Perhaps you meant something more generic than -platform but similar? For example, "-profile [PROFILE]" qemu cmdline, where PROFILE can be either "perf" or "compat

Re: [PATCH for-9.2 v11 06/11] pcie_sriov: Reuse SR-IOV VF device instances

2024-08-03 Thread Akihiko Odaki
On 2024/08/03 1:54, Michael S. Tsirkin wrote: On Fri, Aug 02, 2024 at 02:17:56PM +0900, Akihiko Odaki wrote: Disable SR-IOV VF devices by reusing code to power down PCI devices instead of removing them when the guest requests to disable VFs. This allows to realize devices and report VF realizati