QEMU With E2K User Support
Go to file
Li Qiang ba42ebb863 9pfs: allocate space for guest originated empty strings
If a guest sends an empty string paramater to any 9P operation, the current
code unmarshals it into a V9fsString equal to { .size = 0, .data = NULL }.

This is unfortunate because it can cause NULL pointer dereference to happen
at various locations in the 9pfs code. And we don't want to check str->data
everywhere we pass it to strcmp() or any other function which expects a
dereferenceable pointer.

This patch enforces the allocation of genuine C empty strings instead, so
callers don't have to bother.

Out of all v9fs_iov_vunmarshal() users, only v9fs_xattrwalk() checks if
the returned string is empty. It now uses v9fs_string_size() since
name.data cannot be NULL anymore.

Signed-off-by: Li Qiang <liqiang6-s@360.cn>
[groug, rewritten title and changelog,
 fix empty string check in v9fs_xattrwalk()]
Signed-off-by: Greg Kurz <groug@kaod.org>
2016-10-17 14:13:58 +02:00
audio
backends
block dmg: Move libbz2 code to dmg-bz2.so 2016-10-07 14:14:06 +02:00
bsd-user trace: provide mechanism for registering trace events 2016-10-12 09:52:50 +02:00
contrib
crypto
default-configs STM32F2xx: Add the SPI device 2016-10-04 13:28:07 +01:00
disas
docs docs/xbzrle: correction 2016-10-13 17:23:53 +02:00
dtc@65cc4d2748
fpu
fsdev 9pfs: allocate space for guest originated empty strings 2016-10-17 14:13:58 +02:00
gdb-xml
hw 9pfs: allocate space for guest originated empty strings 2016-10-17 14:13:58 +02:00
include migrate: move max-bandwidth and downtime-limit to migrate_set_parameter 2016-10-13 17:23:53 +02:00
io trace: move util/buffer.c trace points into correct file 2016-09-28 19:17:54 +01:00
libdecnumber
linux-headers linux-headers: update 2016-10-13 12:58:06 +11:00
linux-user trace: provide mechanism for registering trace events 2016-10-12 09:52:50 +02:00
migration migrate: move max-bandwidth and downtime-limit to migrate_set_parameter 2016-10-13 17:23:53 +02:00
nbd
net trace: move colo trace events to net/ sub-directory 2016-10-12 09:35:53 +02:00
pc-bios rules.mak: quiet-command: Split command name and args to print 2016-10-06 12:11:51 +01:00
pixman@87eea99e44
po rules.mak: quiet-command: Split command name and args to print 2016-10-06 12:11:51 +01:00
qapi Block layer patches 2016-10-10 15:19:20 +01:00
qga * Thread Sanitizer fixes (Alex) 2016-10-10 10:39:29 +01:00
qobject
qom trace: dynamically allocate trace_dstate in CPUState 2016-10-12 09:54:52 +02:00
replay replay: allow replay stopping and restarting 2016-09-27 11:57:30 +02:00
roms
scripts trace: introduce a formal group name for trace events 2016-10-12 09:54:53 +02:00
slirp
stubs trace: remove global 'uint16 dstate[]' array 2016-10-12 09:35:54 +02:00
target-alpha
target-arm target-arm: Correctly handle 'sub pc, pc, 1' for ARMv6 2016-10-04 13:28:10 +01:00
target-cris qemu-tech: document lazy condition code evaluation in cpu.h 2016-10-07 10:05:22 +02:00
target-i386 * Thread Sanitizer fixes (Alex) 2016-10-10 10:39:29 +01:00
target-lm32
target-m68k qemu-tech: document lazy condition code evaluation in cpu.h 2016-10-07 10:05:22 +02:00
target-microblaze
target-mips
target-moxie
target-openrisc
target-ppc ppc: Check the availability of transactional memory 2016-10-13 12:58:06 +11:00
target-s390x * Thread Sanitizer fixes (Alex) 2016-10-10 10:39:29 +01:00
target-sh4
target-sparc qemu-tech: document lazy condition code evaluation in cpu.h 2016-10-07 10:05:22 +02:00
target-tilegx
target-tricore
target-unicore32
target-xtensa
tcg qemu-tech: move text from qemu-tech to tcg/README 2016-10-07 10:05:18 +02:00
tests tests/docker/Makefile.include: add a generic docker-run target 2016-10-17 10:05:48 +08:00
trace trace: pass trace-events to tracetool as a positional param 2016-10-12 09:54:53 +02:00
ui input-linux: initialize key state 2016-10-13 09:25:24 +02:00
util Block layer patches 2016-10-10 15:19:20 +01:00
.dir-locals.el
.exrc
.gitignore trivial patches for 2016-10-08 2016-10-10 13:01:43 +01:00
.gitmodules
.mailmap
.travis.yml .travis.yml: add gcc sanitizer build 2016-10-04 10:00:26 +02:00
accel.c
aio-posix.c aio-posix: avoid unnecessary aio_epoll_enabled() calls 2016-09-28 11:21:46 +01:00
aio-win32.c
arch_init.c
async.c async: add aio_bh_schedule_oneshot 2016-10-07 13:34:07 +02:00
balloon.c
block.c block: Add qdev ID to DEVICE_TRAY_MOVED 2016-10-07 13:34:22 +02:00
blockdev-nbd.c
blockdev.c block: Remove qemu_root_bds_opts 2016-09-29 14:13:39 +02:00
blockjob.c block: use aio_bh_schedule_oneshot 2016-10-07 13:34:07 +02:00
bootdevice.c
bt-host.c
bt-vhci.c
Changelog
CODING_STYLE CODING_STYLE: Fix a typo ("have" vs. "has") 2016-10-08 11:25:29 +03:00
configure build: Work around SIZE_MAX bug in OSX headers 2016-10-11 19:22:20 +01:00
COPYING
COPYING.LIB
cpu-exec-common.c
cpu-exec.c cpu: atomically modify cpu->exit_request 2016-10-04 10:00:26 +02:00
cpus-common.c cpus-common: lock-free fast path for cpu_exec_start/end 2016-09-27 11:57:30 +02:00
cpus.c qemu: use bdrv_flush_all for vm_stop et al 2016-09-29 14:13:37 +02:00
cputlb.c
device_tree.c
device-hotplug.c
disas.c
dma-helpers.c
dump.c
exec.c RAMBlocks: Store page size 2016-10-13 17:23:53 +02:00
gdbstub.c
HACKING
hmp-commands-info.hx intc: make HMP 'info irq' and 'info pic' commands available on all targets 2016-10-04 10:00:25 +02:00
hmp-commands.hx
hmp.c migrate: move max-bandwidth and downtime-limit to migrate_set_parameter 2016-10-13 17:23:53 +02:00
hmp.h intc: make HMP 'info irq' and 'info pic' commands use InterruptStatsProvider interface 2016-10-04 10:00:25 +02:00
iohandler.c
ioport.c
iothread.c iothread: check iothread->ctx before aio_context_unref to avoid assertion 2016-09-28 11:21:46 +01:00
kvm-all.c kvm-all: Pass requester ID to MSI routing functions 2016-10-04 13:28:09 +01:00
kvm-stub.c kvm-all: Pass requester ID to MSI routing functions 2016-10-04 13:28:09 +01:00
LICENSE
main-loop.c
MAINTAINERS trivial patches for 2016-10-08 2016-10-10 13:01:43 +01:00
Makefile trace: get rid of generated-events.h/generated-events.c 2016-10-12 09:54:52 +02:00
Makefile.objs -----BEGIN PGP SIGNATURE----- 2016-09-29 00:34:20 +01:00
Makefile.target trace: pass trace-events to tracetool as a positional param 2016-10-12 09:54:53 +02:00
memory_mapping.c
memory.c migration: sync all address spaces 2016-09-27 11:57:29 +02:00
module-common.c
monitor.c trace: convert code to use event iterators 2016-10-12 09:35:54 +02:00
numa.c numa: reduce code duplication by adding helper numa_get_node_for_cpu() 2016-10-10 01:16:57 +03:00
os-posix.c
os-win32.c
page_cache.c
qapi-schema.json migrate: move max-bandwidth and downtime-limit to migrate_set_parameter 2016-10-13 17:23:53 +02:00
qdev-monitor.c
qdict-test-data.txt
qemu-bridge-helper.c
qemu-char.c Revert "char: use a fixed idx for child muxed chr" 2016-10-13 13:56:31 +01:00
qemu-doc.texi qemu-doc: merge qemu-tech and qemu-doc 2016-10-07 10:05:54 +02:00
qemu-ga.texi
qemu-img-cmds.hx
qemu-img.c trace: provide mechanism for registering trace events 2016-10-12 09:52:50 +02:00
qemu-img.texi
qemu-io-cmds.c
qemu-io.c trace: provide mechanism for registering trace events 2016-10-12 09:52:50 +02:00
qemu-nbd.c trace: provide mechanism for registering trace events 2016-10-12 09:52:50 +02:00
qemu-nbd.texi
qemu-option-trace.texi
qemu-options-wrapper.h
qemu-options.h
qemu-options.hx qemu-options.hx: fix -chardev ringbuf typos 2016-10-08 09:02:19 +03:00
qemu-seccomp.c
qemu-tech.texi qemu-doc: merge qemu-tech and qemu-doc 2016-10-07 10:05:54 +02:00
qemu-timer.c
qemu.nsi qemu-doc: merge qemu-tech and qemu-doc 2016-10-07 10:05:54 +02:00
qemu.sasl
qmp.c qmp: fix object-add assert() without props 2016-10-06 14:47:41 +02:00
qtest.c
README qemu-doc: drop installation and compilation notes 2016-10-07 10:05:15 +02:00
replication.c
replication.h
rules.mak build-sys: fix find-in-path 2016-10-08 11:25:29 +03:00
softmmu_template.h
spice-qemu-char.c
tcg-runtime.c
tci.c
thread-pool.c
thunk.c
tpm.c
trace-events trace: Add missing execution mode of guest events 2016-10-12 09:54:53 +02:00
translate-all.c tcg: Make tb_flush() thread safe 2016-09-27 11:57:30 +02:00
translate-all.h
translate-common.c
user-exec.c
VERSION
version.rc
vl.c trace: provide mechanism for registering trace events 2016-10-12 09:52:50 +02:00
xen-common-stub.c
xen-common.c
xen-hvm-stub.c
xen-hvm.c
xen-mapcache.c

         QEMU README
         ===========

QEMU is a generic and open source machine & userspace emulator and
virtualizer.

QEMU is capable of emulating a complete machine in software without any
need for hardware virtualization support. By using dynamic translation,
it achieves very good performance. QEMU can also integrate with the Xen
and KVM hypervisors to provide emulated hardware while allowing the
hypervisor to manage the CPU. With hypervisor support, QEMU can achieve
near native performance for CPUs. When QEMU emulates CPUs directly it is
capable of running operating systems made for one machine (e.g. an ARMv7
board) on a different machine (e.g. an x86_64 PC board).

QEMU is also capable of providing userspace API virtualization for Linux
and BSD kernel interfaces. This allows binaries compiled against one
architecture ABI (e.g. the Linux PPC64 ABI) to be run on a host using a
different architecture ABI (e.g. the Linux x86_64 ABI). This does not
involve any hardware emulation, simply CPU and syscall emulation.

QEMU aims to fit into a variety of use cases. It can be invoked directly
by users wishing to have full control over its behaviour and settings.
It also aims to facilitate integration into higher level management
layers, by providing a stable command line interface and monitor API.
It is commonly invoked indirectly via the libvirt library when using
open source applications such as oVirt, OpenStack and virt-manager.

QEMU as a whole is released under the GNU General Public License,
version 2. For full licensing details, consult the LICENSE file.


Building
========

QEMU is multi-platform software intended to be buildable on all modern
Linux platforms, OS-X, Win32 (via the Mingw64 toolchain) and a variety
of other UNIX targets. The simple steps to build QEMU are:

  mkdir build
  cd build
  ../configure
  make

Additional information can also be found online via the QEMU website:

  http://qemu-project.org/Hosts/Linux
  http://qemu-project.org/Hosts/W32


Submitting patches
==================

The QEMU source code is maintained under the GIT version control system.

   git clone git://git.qemu-project.org/qemu.git

When submitting patches, the preferred approach is to use 'git
format-patch' and/or 'git send-email' to format & send the mail to the
qemu-devel@nongnu.org mailing list. All patches submitted must contain
a 'Signed-off-by' line from the author. Patches should follow the
guidelines set out in the HACKING and CODING_STYLE files.

Additional information on submitting patches can be found online via
the QEMU website

  http://qemu-project.org/Contribute/SubmitAPatch
  http://qemu-project.org/Contribute/TrivialPatches


Bug reporting
=============

The QEMU project uses Launchpad as its primary upstream bug tracker. Bugs
found when running code built from QEMU git or upstream released sources
should be reported via:

  https://bugs.launchpad.net/qemu/

If using QEMU via an operating system vendor pre-built binary package, it
is preferable to report bugs to the vendor's own bug tracker first. If
the bug is also known to affect latest upstream code, it can also be
reported via launchpad.

For additional information on bug reporting consult:

  http://qemu-project.org/Contribute/ReportABug


Contact
=======

The QEMU community can be contacted in a number of ways, with the two
main methods being email and IRC

 - qemu-devel@nongnu.org
   http://lists.nongnu.org/mailman/listinfo/qemu-devel
 - #qemu on irc.oftc.net

Information on additional methods of contacting the community can be
found online via the QEMU website:

  http://qemu-project.org/Contribute/StartHere

-- End