[Bug 216026] Fails to compile using gcc 12.1 under Ubuntu 22.04

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=216026

Sean Christopherson (seanjc@xxxxxxxxxx) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |seanjc@xxxxxxxxxx

--- Comment #3 from Sean Christopherson (seanjc@xxxxxxxxxx) ---
Some of the GCC-12 errors, including this one[*], are likely GCC bugs.  The KVM
code has existed for many, many years, i.e. this wasn't something introduced in
v5.18.  I am working on a small series to guard against KVM bugs in this area,
which will in theory squash this warning, but unless someone can prove that an
out-of-bounds access really truly is possible, I doubt any "fix" for this will
be backported to already-released kernels.

Your best bet is to build with CONFIG_WERROR=n and CONFIG_KVM_WERROR=n so that
GCC-12's zealotry doesn't break the build.

[*] https://lore.kernel.org/all/YofQlBrlx18J7h9Y@xxxxxxxxxx

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux