Bug 15028 - QEMU patch CVE-2022-4144 breaks qemu build when spice is enabled.
Summary: QEMU patch CVE-2022-4144 breaks qemu build when spice is enabled.
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 4.0.7
Hardware: All x86_64
: Medium+ normal
Target Milestone: 4.0.9
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2023-02-02 11:57 UTC by mabnhdev
Modified: 2023-04-20 14:12 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
Bash script to reproduce the error. Run with no arguments. (2.03 KB, text/x-sh)
2023-02-02 11:57 UTC, mabnhdev
no flags Details
Log file of the build failure. (97.89 KB, application/octet-stream)
2023-02-02 11:57 UTC, mabnhdev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description mabnhdev 2023-02-02 11:57:09 UTC
Created attachment 4926 [details]
Bash script to reproduce the error.  Run with no arguments.

Release 4.0.7 added CVE-2022-4144.patch to qemu.  This patch causes a compile error when spice is enabled in qemu on the x86-64 architecture.

 ../qemu-6.2.0/hw/display/qxl.c: In function 'qxl_phys2virt':
| ../qemu-6.2.0/hw/display/qxl.c:1477:67: error: 'size' undeclared (first use in this function); did you mean 'gsize'?
|  1477 |         if (!qxl_get_check_slot_offset(qxl, pqxl, &slot, &offset, size)) {
|       |                                                                   ^~~~
|       |                                                                   gsize

I have included a script that will reproduce the problem.

I have also included the full build log.
Comment 1 mabnhdev 2023-02-02 11:57:52 UTC
Created attachment 4927 [details]
Log file of the build failure.