769 Commits

Author SHA1 Message Date
cenhuilin
8efe99aebf fix CVE-2022-35414
(cherry picked from commit 5054179fc589c666ff10a561931eae09c34902f7)
2022-07-20 09:01:07 +08:00
openeuler-ci-bot
9f67245eaf
!602 [sync] PR-600: Fix CVE-2022-0358 and CVE-2021-4158
From: @openeuler-sync-bot 
Reviewed-by: @ooorz 
Signed-off-by: @ooorz
2022-07-13 11:45:43 +00:00
l00500761
6112b46845 Fix CVE-2022-0358 and CVE-2021-4158
(cherry picked from commit 8b199ba599c28c4071f46b4c11cc0b3f22bc4f09)
2022-07-13 15:31:23 +08:00
openeuler-ci-bot
8a2f34dc29
!596 [sync] PR-595: hw/nvme: fix CVE-2021-3929 (openeuler !313)
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2022-06-23 06:06:47 +00:00
yezengruan
3e2d31c28e hw/nvme: fix CVE-2021-3929 (openeuler !313)
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit 36eaeb0b27e6170738b08a7dd0624849b8911e37)
2022-06-23 09:58:42 +08:00
openeuler-ci-bot
11807058ca
!593 [sync] PR-592: spec: Add qemu-system-riscv rpm package
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2022-06-21 06:07:05 +00:00
saarloos
4b76d42c1b Add riscv rpm include qemu-system-riscv32 and qemu-system-riscv64
(cherry picked from commit 1bf06bf4adb1724c6cdc1865b639bb7abc5b5e63)
2022-06-21 09:21:13 +08:00
openeuler-ci-bot
a2b7ae37d2
!591 fix CVE-2021-3611
From: @bobychen 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2022-06-14 09:05:31 +00:00
bobychen
78cfb1e61d fix CVE-2021-3611
Signed-off-by: yezengruan <yezengruan@huawei.com>
Signed-off-by: bobychen <boby.chen@huawei.com>
2022-06-11 10:34:14 +08:00
openeuler-ci-bot
5a4664d64d
!584 [sync] PR-581: fix CVE-2021-3507 and fix -acpitable regression (openeuler !300!301)
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2022-06-02 09:26:26 +00:00
yezengruan
ed3dcd58ca fix CVE-2021-3507 and fix -acpitable regression (openeuler !300!301)
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit ba8cdf7ac04fdc9e6d55cbf5e0b86b736ec57096)
2022-06-02 10:31:20 +08:00
openeuler-ci-bot
dbaa0de557
!582 [sync] PR-566: 增加system-aarch64 system-arm system-x86_64包生成
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2022-06-02 02:30:30 +00:00
saarloos
d8d794f51c add qemu-system-x86_64 qemu-system-arm qemu-system-aarch64 rpm
(cherry picked from commit 666acae1c364d7d82200bb32f8d3386528b99a4a)
2022-05-31 21:25:50 +08:00
openeuler-ci-bot
0b3e30e4ba
!580 [sync] PR-574: spec中删除不需要的依赖包
From: @openeuler-sync-bot 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2022-05-30 10:30:26 +00:00
Jun Yang
b88add3eb3 qemu: remove unnecessary dependency of kernel package
Signed-off-by: Jun Yang <jun.yang@suse.com>
(cherry picked from commit d9686f6f3e83d37662bd9202a8a69dbefc8f6094)
2022-05-30 15:13:37 +08:00
openeuler-ci-bot
9d3d091f41
!573 [sync] PR-571: fix CVE-2021-3750 (openeuler !293)
From: @openeuler-sync-bot 
Reviewed-by: @kevinzhu1 
Signed-off-by: @kevinzhu1
2022-05-24 02:23:45 +00:00
yezengruan
081694dc6b fix CVE-2021-3750 (openeuler !293)
hw/intc/arm_gicv3: Check for !MEMTX_OK instead of MEMTX_ERROR (CVE-2021-3750)
softmmu/physmem: Simplify flatview_write and address_space_access_valid
softmmu/physmem: Introduce MemTxAttrs::memory field and MEMTX_ACCESS_ERROR

(cherry picked from commit b39643dc6ee4fab61b1d840a1124cb407c7c0af1)
2022-05-23 20:38:59 +08:00
openeuler-ci-bot
5242ceff08
!556 [sync] PR-553: fix CVE-2021-4207 and CVE-2021-4206 (openeuler !287)
From: @openeuler-sync-bot 
Reviewed-by: @kevinzhu1 
Signed-off-by: @kevinzhu1
2022-05-12 11:32:53 +00:00
yezengruan
98f1919458 fix CVE-2021-4207 and CVE-2021-4206 (openeuler !287)
display/qxl-render: fix race condition in qxl_cursor (CVE-2021-4207)
ui/cursor: fix integer overflow in cursor_alloc (CVE-2021-4206)

(cherry picked from commit dec7c9d2cf2df71421daaaffbda4f42a885adcc0)
2022-05-11 17:01:13 +08:00
openeuler-ci-bot
b55069e04e
!552 [sync] PR-549: spec文件changelog格式更新
From: @openeuler-sync-bot 
Reviewed-by: @kevinzhu1 
Signed-off-by: @kevinzhu1
2022-05-05 09:43:53 +00:00
yezengruan
b1c6ee74df update changelog
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit af63dcf8b243999a83db1a9e7f7c1790603e1b48)
2022-05-05 15:57:06 +08:00
openeuler-ci-bot
d3b19f690f
!548 [sync] PR-546: vfio/pci: Ascend710 change to bar2 quirk
From: @openeuler-sync-bot 
Reviewed-by: @kevinzhu1 
Signed-off-by: @kevinzhu1
2022-05-04 02:46:08 +00:00
yezengruan
dc36d8b306 vfio/pci: Ascend710 change to bar2 quirk
Change Ascend710's quirk regions to bar2 for internal causes.
And support Ascend710 2P format now.

Signed-off-by: Wu Binfeng <wubinfeng@huawei.com>
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit ce1ce575d621f918d1719f8d2fadbbcc68260ada)
2022-04-27 14:52:25 +08:00
openeuler-ci-bot
95e6194f9f
!544 fix CVE-2022-26354 and CVE-2022-26353
From: @yezengruan 
Reviewed-by: @kevinzhu1 
Signed-off-by: @kevinzhu1
2022-04-16 01:16:03 +00:00
yezengruan
d19e0bfda9 fix CVE-2022-26354 and CVE-2022-26353
vhost-vsock: detach the virqueue element in case of error (CVE-2022-26354)
virtio-net: fix map leaking on error during receive (CVE-2022-26353)

Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-04-15 17:27:48 +08:00
openeuler-ci-bot
e1203213b4
!536 [sync] PR-523: spec: Update release version with !273
From: @openeuler-sync-bot 
Reviewed-by: @kevinzhu1 
Signed-off-by: @kevinzhu1
2022-04-11 01:50:58 +00:00
yezengruan
01c7174a9f spec: Update release version with !273
fix some IO hang bugs

Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit e8aae2239ba7269ffa38ebf99c2dd01d39a016b6)
2022-04-09 15:28:46 +08:00
yezengruan
0b17689cb3 fix some IO hang bugs
scsi-bus: fix incorrect call for blk_error_retry_reset_timeout()
Revert "monitor: limit io error qmp event to at most once per 60s"

Signed-off-by: Yan Wang <wangyan122@huawei.com>
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit 054b20fa4e67f996662bcb8cf12c305bcea83303)
2022-04-09 15:28:46 +08:00
openeuler-ci-bot
80a52623c8
!513 qemu-img create: 'cache' paramter only use for reg file image
From: @caojinhuahw 
Reviewed-by: @sujerry1991, @imxcc 
Signed-off-by: @imxcc
2022-03-25 02:44:12 +00:00
Jinhua Cao
e6b080ac1b qemu-img create: cache paramter only use for reg file image
The paramter 'cache' is invalid for host device(/dev/xxx). If
'qemu-img create' operator performed on host device, the host
device not support 'cache' would result 'qemu-img create excute'
failed.

Signed-off-by: Jinhua Cao <caojinhua1@huawei.com>
2022-03-25 09:42:57 +08:00
openeuler-ci-bot
90ca3e03b4
!506 【6.2.0】增加qemu-hw-usb-host rpm包
From: @sujerry1991 
Reviewed-by: @imxcc 
Signed-off-by: @imxcc
2022-03-24 14:13:54 +00:00
Yan Wang
513c8cd566 spec: add hw-usb-host rpm package
Signed-off-by: Yan Wang <wangyan122@huawei.com>
2022-03-24 21:27:17 +08:00
openeuler-ci-bot
171bef105c
!498 [sync] PR-492/497: spec: Update release version with !266 and support sw64
From: @yezengruan 
Reviewed-by: @imxcc 
Signed-off-by: @imxcc
2022-03-18 12:30:34 +00:00
yezengruan
62e9a21b5b spec: Update release version with !266 and support sw64
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-03-18 17:33:56 +08:00
jiang-dawei15
0a27da9d7f coro: support live patch for libcare
Description:
For coroutine live patch, we need find all coroutines stack and check them
before patching. There is no structure to manage all coroutines in qemu. So we
add a list which contain all running coroutines to accelerate libcare live
patch.

Signed-off-by: jiang-dawei15 <jiangdawei15@huawei.com>
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-03-18 17:33:43 +08:00
yezengruan
518ee8d115 add patch for sw64 support
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-03-18 17:33:24 +08:00
jiang-dawei15
d152a162e9 cflages: add cflags '-ftls-model=initial-exec'
This option changes the thread local storage (TLS) model. Thread-local storage
is a mechanism by which variables are allocated in a way that causes one instance
of the variable per extant thread.

i.global-dynamic

Generates a generic TLS code. The code can be used everywhere and the code can access
variables defined anywhere else. This setting causes the largest size code to be generated
and uses the most run time to produce.

ii.local-dynamic

Generates an optimized TLS code. To use this setting, the thread-local variables must be
defined in the same object in which they are referenced.

iii.initial-exec

Generates a restrictive, optimized TLS code. To use this setting, the thread-local variables
accessed must be defined in one of the modules available to the program.

iv.local-exec

Generates the most restrictive TLS code. To use this setting, the thread-local variables
must be defined in the executable.

Optimize qemu cflags with '-ftls-model=initial-exec' which means we use initial-exec
mode.
2022-03-18 17:33:11 +08:00
openeuler-ci-bot
399a7ea561
!494 spec: Update release version with !265
From: @yezengruan 
Reviewed-by: @imxcc 
Signed-off-by: @imxcc
2022-03-17 01:01:58 +00:00
yezengruan
c14470a869 spec: Update release version with !265
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-03-15 16:08:23 +08:00
yezengruan
2620fe57e4 sw_64: Add sw64 architecture support
Signed-off-by: Lu Feifei <lufeifei@wxiat.com>
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-03-15 16:08:03 +08:00
openeuler-ci-bot
bd766c1586
!489 [sync] PR-487: qemu.spec: add "--enable-debug" parameter to configure.
From: @openeuler-sync-bot 
Reviewed-by: @imxcc 
Signed-off-by: @imxcc
2022-03-14 12:08:39 +00:00
jiang-dawei15
5a7b38619c qemu.spec: add "--enable-debug" parameter to configure.
(cherry picked from commit 64b9ff905211b4a6f318d77e6183bac89873cf59)
2022-03-14 19:40:10 +08:00
openeuler-ci-bot
b32e27ba7b
!485 Automatically generate code patches with openeuler !263 !264
From: @kuhnchen18 
Reviewed-by: @imxcc 
Signed-off-by: @imxcc
2022-03-03 10:05:37 +00:00
Chen Qun
807c25274e spec: Update release version with !263 !264
increase release verison by one

Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
2022-03-03 14:25:39 +08:00
Chen Qun
8f0f7098a7 spec: Update patch and changelog with !264 tools/virtiofsd: Add rseq syscall to the seccomp allowlist !264
tools/virtiofsd: Add rseq syscall to the seccomp allowlist

Signed-off-by: Chen Qun<kuhn.chenqun@huawei.com>
2022-03-03 14:25:37 +08:00
Chen Qun
557ed01ca1 tools/virtiofsd: Add rseq syscall to the seccomp allowlist
The virtiofsd currently crashes when used with glibc 2.35.
That is due to the rseq system call being added to every thread
creation [1][2].

[1]: https://www.efficios.com/blog/2019/02/08/linux-restartable-sequences/
[2]: https://sourceware.org/pipermail/libc-alpha/2022-February/136040.html

This happens not at daemon start, but when a guest connects

    /usr/lib/qemu/virtiofsd -f --socket-path=/tmp/testvfsd -o sandbox=chroot \
        -o source=/var/guests/j-virtiofs --socket-group=kvm
    virtio_session_mount: Waiting for vhost-user socket connection...
    # start ok, now guest will connect
    virtio_session_mount: Received vhost-user socket connection
    virtio_loop: Entry
    fv_queue_set_started: qidx=0 started=1
    fv_queue_set_started: qidx=1 started=1
    Bad system call (core dumped)

We have to put rseq on the seccomp allowlist to avoid that the daemon
is crashing in this case.

Reported-by: Michael Hudson-Doyle <michael.hudson@canonical.com>
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-id: 20220209111456.3328420-1-christian.ehrhardt@canonical.com

[Moved rseq to its alphabetically ordered position in the seccomp
allowlist.
--Stefan]
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: qinyu <qinyu16@huawei.com>
2022-03-03 14:25:37 +08:00
Chen Qun
662474b374 spec: Update patch and changelog with !263 【6.2.0】修改object_unref导致的abort问题 !263
scsi-bus: fix unmatched object_unref()

Signed-off-by: Chen Qun<kuhn.chenqun@huawei.com>
2022-03-03 14:25:34 +08:00
Chen Qun
f6bbae170f scsi-bus: fix unmatched object_unref()
Fix commit 391dd8f1("scsi-bus: Refactor the code that retries requests"),
which split scsi_dma_restart_bh(), but the object_unref() belongs to
scsi_dma_restart_bh().
So, we should mv object_unref() from scsi_retry_requests() to
scsi_dma_restart_bh().

Signed-off-by: Yan Wang <wangyan122@huawei.com>
2022-03-03 14:25:34 +08:00
openeuler-ci-bot
24fe510dd6
!481 generate code patches with openeuler !220
From: @sujerry1991 
Reviewed-by: @aven6, @imxcc 
Signed-off-by: @imxcc
2022-02-26 08:04:47 +00:00
Yan Wang
d7f970e80c spec: Update release version with !220
increase release version by one

Signed-off-by: Yan Wang <wangyan122@huawei.com>
2022-02-26 14:35:07 +08:00