adding Irix (and, to a lesser extent, Solaris) userland emulation to QEMU
Go to file
Gerd Hoffmann 670ddcc0aa cirrus: fix patterncopy checks
The blit_region_is_unsafe checks don't work correctly for the
patterncopy source.  It's a fixed-sized region, which doesn't
depend on cirrus_blt_{width,height}.  So go do the check in
cirrus_bitblt_common_patterncopy instead, then tell blit_is_unsafe that
it doesn't need to verify the source.  Also handle the case where we
blit from cirrus_bitbuf correctly.

This patch replaces 5858dd1801.

Security impact:  I think for the most part error on the safe side this
time, refusing blits which should have been allowed.

Only exception is placing the blit source at the end of the video ram,
so cirrus_blt_srcaddr + 256 goes beyond the end of video memory.  But
even in that case I'm not fully sure this actually allows read access to
host memory.  To trick the commit 5858dd18 security checks one has to
pick very small cirrus_blt_{width,height} values, which in turn implies
only a fraction of the blit source will actually be used.

Cc: Wolfgang Bumiller <w.bumiller@proxmox.com>
Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Message-id: 1486645341-5010-1-git-send-email-kraxel@redhat.com
(cherry picked from commit 95280c31cd)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2017-03-21 15:02:29 -05:00
audio
backends
block block/vmdk: Fix the endian problem of buf_len and lba 2017-03-16 12:10:41 -05:00
bsd-user
contrib
crypto
default-configs pc: memhp: move nvdimm hotplug out of memory hotplug 2016-11-15 17:20:37 +02:00
disas target-ppc: add vrldnm and vrlwnm instructions 2016-11-15 10:05:50 +11:00
docs spec/vhost-user: fix the VHOST_USER prefix 2016-11-30 04:20:57 +02:00
dtc@65cc4d2748
fpu
fsdev 9pfs: add cleanup operation in FileOperations 2016-11-23 13:53:34 +01:00
gdb-xml
hw cirrus: fix patterncopy checks 2017-03-21 15:02:29 -05:00
include eth: Extend vlan stripping functions 2017-03-16 12:10:41 -05:00
io
libdecnumber
linux-headers
linux-user linux-user: Fix s390x safe-syscall for z900 2017-03-21 14:50:14 -05:00
migration
nbd nbd/client: fix drop_sync [CVE-2017-2630] 2017-03-21 14:49:59 -05:00
net eth: Extend vlan stripping functions 2017-03-16 12:10:41 -05:00
pc-bios Update OpenBIOS images to ef8a14e built from submodule. 2016-11-24 21:26:00 +00:00
pixman@87eea99e44
po po: add missing translations in de, fr, it, zh 2016-12-14 18:47:19 +00:00
qapi qapi: Document introduction of gluster's 'debug' option 2016-12-06 20:22:03 +00:00
qga qga: ignore EBUSY when freezing a filesystem 2017-03-16 12:10:41 -05:00
qobject
qom
replay
roms Update OpenBIOS images to ef8a14e built from submodule. 2016-11-24 21:26:00 +00:00
scripts trace: fix generated code build break 2016-11-18 11:09:58 +00:00
slirp
stubs
target-alpha target-alpha: Log cpuid with -d int 2016-11-17 15:56:31 +01:00
target-arm target-arm: Fix aarch64 vec_reg_offset 2017-03-21 14:50:26 -05:00
target-cris
target-i386 target-i386: correctly propagate retaddr into SVM helpers 2017-03-16 12:10:41 -05:00
target-lm32
target-m68k target-m68k: fix muluw/mulsw 2016-11-24 16:24:27 +01:00
target-microblaze
target-mips target-mips: fix bad shifts in {dextp|dextpdp} 2016-12-04 00:57:06 +00:00
target-moxie
target-openrisc
target-ppc target-ppc: Allow eventual removal of old migration mistakes 2016-11-23 12:00:48 +11:00
target-s390x s390x/kvm: fix cmma reset for KVM 2017-03-16 12:10:40 -05:00
target-sh4
target-sparc target/sparc: Restore ldstub of odd asis 2017-03-16 12:10:41 -05:00
target-tilegx
target-tricore
target-unicore32
target-xtensa
tcg tcg/aarch64: Fix tcg_out_movi 2017-03-16 12:10:39 -05:00
tests tests/.gitignore: Ignore test-char 2016-12-06 20:05:49 +00:00
trace
ui vnc: do not disconnect on EAGAIN 2017-03-16 12:10:41 -05:00
util qemu-thread: fix qemu_thread_set_name() race in qemu_thread_create() 2017-03-16 12:10:39 -05:00
.dir-locals.el
.exrc
.gitignore
.gitmodules
.mailmap
.travis.yml
CODING_STYLE
COPYING
COPYING.LIB
Changelog
HACKING
LICENSE
MAINTAINERS
Makefile
Makefile.objs
Makefile.target
README
VERSION Update version for v2.8.0 release 2016-12-20 16:16:42 +00:00
accel.c
aio-posix.c
aio-win32.c
arch_init.c
async.c
atomic_template.h
balloon.c
block.c
blockdev-nbd.c
blockdev.c blockjob: refactor backup_start as backup_job_create 2016-11-14 22:47:34 -05:00
blockjob.c blockjob: add block_job_start 2016-11-14 22:47:34 -05:00
bootdevice.c
bt-host.c
bt-vhci.c
configure rules.mak: Also try -r to build modules 2016-11-29 16:21:05 +00:00
cpu-exec-common.c
cpu-exec.c target-i386: correctly propagate retaddr into SVM helpers 2017-03-16 12:10:41 -05:00
cpus-common.c
cpus.c
cputlb.c
device-hotplug.c
device_tree.c
disas.c
dma-helpers.c
dump.c
exec.c exec: Add missing rcu_read_unlock 2017-03-16 12:10:39 -05:00
gdbstub.c
hmp-commands-info.hx
hmp-commands.hx
hmp.c hmp: fix block_set_io_throttle 2017-03-16 12:10:41 -05:00
hmp.h
iohandler.c
ioport.c
iothread.c
kvm-all.c
kvm-stub.c
main-loop.c
memory.c
memory_mapping.c
module-common.c
monitor.c
numa.c
os-posix.c
os-win32.c
page_cache.c
qapi-schema.json qapi: add missing colon-ending for section name 2016-12-05 17:41:38 +01:00
qdev-monitor.c qdev: add function qdev_set_id() 2016-11-22 10:29:37 -08:00
qdict-test-data.txt
qemu-bridge-helper.c
qemu-char.c char: fix ctrl-a b not working 2017-03-16 12:10:39 -05:00
qemu-doc.texi qemu-doc: update gluster protocol usage guide 2016-12-05 16:30:29 -05:00
qemu-ga.texi
qemu-img-cmds.hx
qemu-img.c
qemu-img.texi
qemu-io-cmds.c
qemu-io.c
qemu-nbd.c
qemu-nbd.texi
qemu-option-trace.texi
qemu-options-wrapper.h
qemu-options.h
qemu-options.hx qemu-doc: update gluster protocol usage guide 2016-12-05 16:30:29 -05:00
qemu-seccomp.c
qemu-tech.texi
qemu-timer.c
qemu.nsi
qemu.sasl
qmp.c
qtest.c
replication.c
replication.h
rules.mak rules.mak: Also try -r to build modules 2016-11-29 16:21:05 +00:00
softmmu_template.h
spice-qemu-char.c
tcg-runtime.c
tci.c
thread-pool.c thread-pool: add missing qemu_bh_cancel in completion function 2017-03-20 14:57:35 -05:00
thunk.c
tpm.c
trace-events
translate-all.c
translate-all.h
translate-common.c
user-exec.c
version.rc
vl.c
xen-common-stub.c
xen-common.c
xen-hvm-stub.c
xen-hvm.c xen: ignore direction in bufioreq handling 2016-11-28 11:26:29 -08:00
xen-mapcache.c

README

         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