Provide libc6-lse binary package optimized for Large System Extensions (LSE)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glibc (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* libc6 is not using LSE atomics even on capable HW causing poor performance in heavily threaded application
[Test Case]
* install libc6-lse on capable arm64
* verify that the library is in use:
$ strace -eopenat ls
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib/aarch64-
openat(AT_FDCWD, "/lib/aarch64-
openat(AT_FDCWD, "/lib/aarch64-
openat(AT_FDCWD, "/lib/aarch64-
openat(AT_FDCWD, "/lib/aarch64-
* Compile and run the attached a.c test program and observe it running much faster on high (>= 8) core count capable HW than with the standard libc6 package.
[Regression Potential]
* The libraries in libc6-lse can't be run on not LSE capable HW and trying to use them results in crashes due to the illegal instructions. The fix includes proper checking for HW capabilities and selecting the libraries in /lib/aarch64-
* The package build can also fail when trying to run tests of libc6-lse on not LSE capable HW but this is avoided by detecting LSE instructions and running the tests only if the HW supports them.
* Initramfs-tools could break when generating intramfs when the new libc6-lse package is installed (LP: #1880853), but this regression is fixed in initramfs-tools and Breaks: is added against affected initramfs-tools versions.
* Upgrading libc6-lse packge to a newer version breaks on systems with LSE support (LP: #1912652).
[Other Info]
CVE References
tags: | added: id-5ed6b0877aa3de39fa0b89e6 |
description: | updated |
description: | updated |
description: | updated |
Fixed in 2.31-0ubuntu9