Bug#960271: version 4.19.118-2 breaks userspace builds (e.g. QEMU) - 'BITS_PER_LONG' wrongly used

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#960271: version 4.19.118-2 breaks userspace builds (e.g. QEMU) - 'BITS_PER_LONG' wrongly used

Stefan Reiter
Package: linux-libc-dev
Version: 4.19.118-2
Severity: important

Dear maintainer,

QEMU doesn't build since 4.19.118-2, the error has been discussed at length on
the Ubuntu bugtracker:

https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1847361/
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1877123/

The upstream kernel includes a fix, it has also been backported by the Ubuntu
team (see links above).

Since this breaks userspace functionality (e.g. QEMU and some systemd builds
from what I gather), including the fix here too would be nice.

~ Stefan

-- System Information:
Debian Release: 10.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.4.34-1-pve (SMP w/16 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- no debconf information

Reply | Threaded
Open this post in threaded view
|

Bug#960271: PATCH

Alex Bennée

This patch adds Christian Borntraeger's patch (467d12f5c784) to the
package build. It seemed to build OK following these steps:

  wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.118.tar.xz
  ./debian/bin/genorig.py linux-4.19.118.tar.xz
  make -f debian/rules orig
  make -f debian/rules source
  dpkg-buildpackage

Once I install the package I can build QEMU again.




--
Alex Bennée

0001-uabi-fix-breakage-for-compiling-userspace-960271.patch (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#960271: PATCH

Salvatore Bonaccorso-4
HI Alex,

On Tue, May 12, 2020 at 02:05:14PM +0100, Alex Bennée wrote:

>
> This patch adds Christian Borntraeger's patch (467d12f5c784) to the
> package build. It seemed to build OK following these steps:
>
>   wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.118.tar.xz
>   ./debian/bin/genorig.py linux-4.19.118.tar.xz
>   make -f debian/rules orig
>   make -f debian/rules source
>   dpkg-buildpackage
>
> Once I install the package I can build QEMU again.

Thanks, queued up the cherry-picked commit in our buster branch, tough
this will be dropped as soon we reach 4.19.120 for rebase.

https://salsa.debian.org/kernel-team/linux/-/commit/a4fb2a7b7688f3a7cb36e17b9d8c661ac44a41a4

Regards,
Salvatore

Reply | Threaded
Open this post in threaded view
|

Bug#960271: Status on bug 960271 - 'BITS_PER_LONG' wrongly used

Lukas Straub
In reply to this post by Stefan Reiter
Hello Everyone,
When will this fix be released?

Regards,
Lukas Straub

attachment0 (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#960271: Status on bug 960271 - 'BITS_PER_LONG' wrongly used

Alex Bennée
FWIW I would like it to be sooner rather than later because as the
latest Debian images have rolled out more and more of our CI's have
fallen over. Our attempts to work around the fix with a snapshot
failed as well so we are currently hoping Debian based builds don't
bitrot too much before stuff starts working again.

On Fri, 22 May 2020 at 15:36, Lukas Straub <[hidden email]> wrote:
>
> Hello Everyone,
> When will this fix be released?
>
> Regards,
> Lukas Straub



--
Alex Bennée
KVM/QEMU Hacker for Linaro