[Bug 1892825] Re: update-locale not perform correctly sanity checks
Launchpad Bug Tracker
1892825 at bugs.launchpad.net
Wed May 11 01:47:31 UTC 2022
This bug was fixed in the package glibc - 2.31-0ubuntu9.9
---------------
glibc (2.31-0ubuntu9.9) focal; urgency=medium
* Disable testsuite on riscv64. It is failing maths tests intermittently in
ways that cannot be a glibc regression and is disabled in later series
anyway.
glibc (2.31-0ubuntu9.8) focal; urgency=medium
* Update for 20.04. (LP: #1951033)
[ Balint Reczey ]
* Cherry-pick upstream patch to fix building with -moutline-atomics
* Prevent rare deadlock in pthread_cond_signal (LP: #1899800)
[ Matthias Klose ]
* Revert: Use DH_COMPAT=8 for dh_strip to fix debug sections for valgrind.
Enables debugging ld.so related issues. (LP: #1918035)
* Don't strip ld.so on armhf. (LP: #1927192)
[ Gunnar Hjalmarsson ]
* d/local/usr_sbin/update-locale: improve sanity checks. (LP: #1892825)
[ Heitor Alves de Siqueira ]
* d/p/u/git-lp1928508-reversing-calculation-of-__x86_shared_non_temporal.patch:
- Fix memcpy() performance regression on x86 AMD systems (LP: #1928508)
[ Aurelien Jarno ]
* debian/debhelper.in/libc.preinst: drop the check for kernel release
> 255 now that glibc and preinstall script are fixed. (LP: #1962225)
[ Michael Hudson-Doyle ]
* libc6 on arm64 is now built with -moutline-atomics so libc6-lse can now be
an empty package that is safe to remove. (LP: #1912652)
* d/patches/u/aarch64-memcpy-improvements.patch: Backport memcpy
improvements. (LP: #1951032)
* Add test-float64x-yn to xfails on riscv64.
-- Michael Hudson-Doyle <michael.hudson at ubuntu.com> Thu, 07 Apr 2022
13:24:41 +1200
** Changed in: glibc (Ubuntu Focal)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1892825
Title:
update-locale not perform correctly sanity checks
Status in glibc package in Ubuntu:
In Progress
Status in pam package in Ubuntu:
New
Status in glibc source package in Bionic:
New
Status in pam source package in Bionic:
New
Status in glibc source package in Focal:
Fix Released
Status in pam source package in Focal:
New
Status in glibc source package in Hirsute:
Won't Fix
Status in pam source package in Hirsute:
New
Status in glibc source package in Impish:
New
Status in pam source package in Impish:
New
Bug description:
[impact]
A simple typo using the update-locale script can render a system inoperable without booting into single user mode or similar:
$ sudo update-locale LANGUAGE = en_US.UTF-8
$ sudo -s
sudo: pam_open_session: Bad item passed to pam_*_item()
sudo: policy plugin failed session initialization
[test case]
$ cp /etc/default/locale /tmp/locale
$ update-locale --locale-file /tmp/locale LANGUAGE = en_US.UTF-8
"diff -u /etc/default/locale /tmp/locale" should be empty.
$ update-locale --locale-file /tmp/locale LANGUAGE=en_US.UTF-8
The LANGUAGE=en_US.UTF-8 line should have been replaced by
LANGUAGE=en_GB.UTF-8.
$ update-locale --locale-file /tmp/locale LANGUAGE
The LANGUAGE setting is now commented out.
[regression potential]
Apart from the general concerns about a glibc rebuild, this is a simple change to a simple script. Performing the test as in the test case section is enough to ensure it still works.
[original description]
By passing wrong input as following:
sudo update-locale LANGUAGE = en_US.UTF-8
result is:
...
#LANGUAGE=en
=
This "equal" sign that was added makes system completely
unusable(can't run sudo anymore):
bentzy at bentzy-nb:~$ sudo vim /etc/default/locale
sudo: pam_open_session: Bad item passed to pam_*_item()
sudo: policy plugin failed session initialization
Fixed it booting from installation disk and fixing corrupted
/etc/default/locale
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: locales 2.31-0ubuntu9
Uname: Linux 5.5.4-050504-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.6
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: KDE
Date: Tue Aug 25 09:36:03 2020
InstallationDate: Installed on 2020-08-17 (7 days ago)
InstallationMedia: Kubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
PackageArchitecture: all
SourcePackage: glibc
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1892825/+subscriptions
More information about the foundations-bugs
mailing list