Hello community, here is the log from the commit of package util-linux for openSUSE:Factory checked in at 2017-04-25 08:55:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/util-linux (Old) and /work/SRC/openSUSE:Factory/.util-linux.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "util-linux" Tue Apr 25 08:55:20 2017 rev:217 rq:487606 version:2.29.2 Changes: -------- --- /work/SRC/openSUSE:Factory/util-linux/python-libmount.changes 2017-03-01 23:39:13.706580054 +0100 +++ /work/SRC/openSUSE:Factory/.util-linux.new/python-libmount.changes 2017-04-25 08:55:22.398971323 +0200 @@ -1,0 +2,44 @@ +Wed Apr 12 09:19:21 UTC 2017 - [email protected] + +- Prefer sysfs exported SMBIOS3 tables in lscu (bsc#1033718) + + arm64-lscpu-use-sysfs-for-table-access-if-available.patch + +------------------------------------------------------------------- +Thu Apr 6 17:35:34 CEST 2017 - [email protected] + +- To cover release numbers of both SLE12 SP3 and Leap 42.3, relax + release based conflict with bash-completion from 13.1 to 10. + +------------------------------------------------------------------- +Tue Apr 4 14:51:09 UTC 2017 - [email protected] + +- fix util-linux-losetup-Add-support-for-setting-logical-blocksize.patch + --logical-blocksize was behaving like --nooverlap + +------------------------------------------------------------------- +Fri Mar 17 17:18:28 CET 2017 - [email protected] + +- Conflict with old systemd-presets-branding to ensure correct + preset migration (boo#1029775, bsc#1012850). + +------------------------------------------------------------------- +Thu Mar 16 22:44:12 CET 2017 - [email protected] + +- Drop "codepage" fstab migration needed for SuSE Linux < 9.1 + (bsc#51950 (suse#36950)). + +------------------------------------------------------------------- +Tue Feb 28 17:27:58 CET 2017 - [email protected] + +- Keep dependency on insserv and fillup for compatibilitiy reasons + in Leap 42.3. Too many poorly written packages depend on it. + (Marked as "sysv compatibility hack".) + +------------------------------------------------------------------- +Wed Feb 22 22:00:05 UTC 2017 - [email protected] + +- Update to version 2.29.2: + * su(1) security issue CVE-2017-2616 (bsc#1023041) + * minor bugfixes and enhancements + +------------------------------------------------------------------- @@ -23 +67,2 @@ - --logical-blocksize can be used only with long option. + --logical-blocksize can be used only with long option + (bsc#966891). @@ -28,0 +74,35 @@ + SLE12 & Leap 42 specific changes: + * Fix for SLE12: bsc#956540, SLE12 SP1: bsc#953691, Leap 42.1: + boo#954482, was obsoleted by the systemd update, and skipped. + * Remove --enable-ncurses that is intended to force non-wide + ncurses (boo#978993). + * Make release-dependent conflict with old sysvinit-tools SLE + specific, as it is required only for SLE 11 upgrade, + and breaks openSUSE staging builds (boo#994399). + * Obsolete these patches, now upstreamed: + * Drop upstreamed patches + (tests-script-race-on-force-only.patch, + util-linux-libmount-ignore-redundant-slashes.patch, + util-linux-sfdisk-show-pt-geometry-1.patch, + util-linux-sfdisk-show-pt-geometry-2.patch, + util-linux-sfdisk-show-pt-geometry-3.patch, + util-linux-libblkid-partition-loop.patch, + util-linux-libblkid-wipe-offset.patch, + util-linux-mount-reuse-loop-1.patch, + util-linux-mount-reuse-loop-2.patch, + util-linux-mount-reuse-loop-3.patch, + util-linux-mount-reuse-loop-4.patch, + util-linux-loop-reuse-01.patch, util-linux-loop-reuse-02.patch, + util-linux-loop-reuse-03.patch, util-linux-loop-reuse-04.patch, + util-linux-loop-reuse-05.patch, util-linux-loop-reuse-06.patch, + util-linux-loop-reuse-07.patch, util-linux-loop-reuse-08.patch, + util-linux-loop-reuse-09.patch, util-linux-loop-reuse-10.patch, + util-linux-loop-reuse-12.patch, util-linux-loop-reuse-13.patch, + util-linux-loop-reuse-14.patch, util-linux-loop-reuse-15.patch, + util-linux-loop-reuse-16.patch, util-linux-loop-reuse-17.patch, + util-linux-loop-reuse-18.patch, util-linux-loop-reuse-19.patch, + util-linux-loop-reuse-20.patch, + util-linux-libmount-cifs-is_mounted.patch). + * Refreshed patches + (make-sure-sbin-resp-usr-sbin-are-in-PATH.diff, + util-linux-losetup-Add-support-for-setting-logical-blocksize.patch). @@ -70 +150 @@ -- Update to version 2.29 +- Update to version 2.29 (FATE#322090) @@ -86,0 +167,5 @@ + * sfdisk: Support for deprecated --show-pt-geometry (bsc#990531). + * libmount: various issues with cifs mount + (bsc#982331, bsc#987176). + * libblkid: Prevent infinite loop DoS while parsing DOS partition + tables (bsc#988361, CVE-2016-5011). @@ -198 +283 @@ - * Other bug fixes (bsc#970404, bsc#975082). + * Other bug fixes (bsc#970404, bsc#975082, FATE#318444). @@ -211,0 +297 @@ + (fixes bsc#950778, FATE#320552). @@ -243 +329,2 @@ - * fsck: now supports -r {fd} (bsc#903738) + * fsck: now supports -r {fd} (bsc#923777, bsc#903738) + * Fix fsck -C {fd} parsing (bsc#923777, bsc#903738) @@ -261 +348 @@ - (bnc#900935#c46, FATE#318949). + (bnc#900935#c46, FATE#318949, FATE#317727). @@ -307 +394,3 @@ - <list>" to specify output columns for --list or print commands + <list>" to specify output columns for --list or print commands, + do not abort when fdisk -l when device cannot be opened + [bnc#886790], [bnc#893712], [bnc#890351] @@ -326,0 +416 @@ + * lscpu: recognizes Unisys s-Par as hypervisor (FATE#318231) @@ -330,0 +421,2 @@ + * libmount: Fix mount point lookup (and mount -a) if the path + contains // (bsc#931955). @@ -406 +498 @@ - (runuser.pamd, bnc#892079). + (runuser.pamd, bnc#892079, bnc#894833). util-linux-systemd.changes: same change util-linux.changes: same change Old: ---- util-linux-2.29.1.tar.sign util-linux-2.29.1.tar.xz New: ---- arm64-lscpu-use-sysfs-for-table-access-if-available.patch util-linux-2.29.2.tar.sign util-linux-2.29.2.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-libmount.spec ++++++ --- /var/tmp/diff_new_pack.J9S8ey/_old 2017-04-25 08:55:24.134725883 +0200 +++ /var/tmp/diff_new_pack.J9S8ey/_new 2017-04-25 08:55:24.138725318 +0200 @@ -116,7 +116,7 @@ %endif %endif #END SECOND STAGE DEPENDENCIES -Version: 2.29.1 +Version: 2.29.2 Release: 0 # util-linux is a base package and uuidd pre-requiring pwdutils pulls # that into the core build cycle. pwdutils also pulls in the whole @@ -125,7 +125,7 @@ # these tools as well #!BuildIgnore: pwdutils Url: https://www.kernel.org/pub/linux/utils/util-linux/ -Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.29/%{_name}-%{version}.tar.xz +Source: https://www.kernel.org/pub/linux/utils/util-linux/v2.29/util-linux-%{version}.tar.xz Source1: util-linux-rpmlintrc Source4: raw.service Source5: etc.raw @@ -135,7 +135,7 @@ Source9: remote.pamd Source10: su.pamd Source11: su.default -Source12: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.29/%{_name}-%{version}.tar.sign +Source12: https://www.kernel.org/pub/linux/utils/util-linux/v2.29/util-linux-%{version}.tar.sign Source13: %{_name}.keyring Source14: runuser.pamd # klogconsole, http://opensuse.github.com/kiwi, 7.02.25, git 859dc050 @@ -157,6 +157,8 @@ Patch0: make-sure-sbin-resp-usr-sbin-are-in-PATH.diff # PATCH-FEATURE-SLE util-linux-losetup-Add-support-for-setting-logical-blocksize.patch bsc931634 FATE319010 [email protected] -- Add support for setting logical blocksizes. Patch1: util-linux-losetup-Add-support-for-setting-logical-blocksize.patch +# PATCH-BUG-FIX arm64-lscpu-use-sysfs-for-table-access-if-available.patch bsc#1033718 [email protected] -- Use SMBIOS3 tables when available in lscpu +Patch2: arm64-lscpu-use-sysfs-for-table-access-if-available.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build # %if %build_util_linux @@ -178,9 +180,9 @@ # File conflict of sulogin and utmpdump (up to 12.3 and SLE11). Conflicts: sysvinit-tools < 2.88+-87 # File conflicts of completion files with <= Leap 42.1 and <= SLE12 SP1 (fixed by SLE12 Update, boo#977259#c3). -Conflicts: bash-completion <= 2.1-13.1 -# The preset is provided by the presets branding package since 0.4 (bsc#1012850) -Conflicts: systemd-presets-branding < 0.4 +Conflicts: bash-completion <= 2.1-10 +# The preset is provided by the presets branding package since 0.4 (bsc#1012850) and since 12.2 in SLE (boo#1029775) +Conflicts: systemd-presets-branding < 12.2 # bnc#805684: %ifarch s390x Obsoletes: s390-32 @@ -189,6 +191,15 @@ # uuid-runtime appeared in SLE11 SP1 to SLE11 SP3 Provides: uuid-runtime = %{version}-%{release} Obsoletes: uuid-runtime < %{version}-%{release} +%if 0%{?suse_version} < 1330 +#BEGIN sysv compatibility hack +# After migration of raw init script to systemd, util-linux no more depends on +# fillup and insserv. Many poorly written packages implicitly depend on them +# without declaring it. Keep these dependencies in Leap 42 + SLE 12 line to +# prevent failures. +PreReq: %insserv_prereq %fillup_prereq +#END sysv compatibility hack +%endif # # Using "Requires" here would lend itself to help upgrading, but since # util-linux is in the initial bootstrap, that is not a good thing to do: @@ -402,6 +413,7 @@ # logical block size support in loop does not exist in Tumbleweed and upstream kernel yet %patch1 -p1 %endif +%patch2 -p1 # # setctsid cp -p %{S:22} %{S:23} . @@ -787,11 +799,6 @@ fi done -# mount option 'code=' is now called 'codepage=' so change fstab -if [ -f etc/fstab ]; then - sed -i 's:code=:codepage=:' etc/fstab -fi - %preun %{service_del_preun raw.service} @@ -854,7 +861,6 @@ %postun -n uuidd %{service_del_postun uuidd.socket uuidd.service} - %endif %if %build_util_linux @@ -1257,7 +1263,6 @@ %files -n libfdisk-devel-static %defattr(-, root, root) %{_libdir}/libfdisk.*a - %endif %if %build_util_linux_systemd util-linux-systemd.spec: same change ++++++ util-linux.spec ++++++ --- /var/tmp/diff_new_pack.J9S8ey/_old 2017-04-25 08:55:24.234711745 +0200 +++ /var/tmp/diff_new_pack.J9S8ey/_new 2017-04-25 08:55:24.242710614 +0200 @@ -116,7 +116,7 @@ %endif %endif #END SECOND STAGE DEPENDENCIES -Version: 2.29.1 +Version: 2.29.2 Release: 0 # util-linux is a base package and uuidd pre-requiring pwdutils pulls # that into the core build cycle. pwdutils also pulls in the whole @@ -125,7 +125,7 @@ # these tools as well #!BuildIgnore: pwdutils Url: https://www.kernel.org/pub/linux/utils/util-linux/ -Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.29/%{_name}-%{version}.tar.xz +Source: https://www.kernel.org/pub/linux/utils/util-linux/v2.29/util-linux-%{version}.tar.xz Source1: util-linux-rpmlintrc Source4: raw.service Source5: etc.raw @@ -135,7 +135,7 @@ Source9: remote.pamd Source10: su.pamd Source11: su.default -Source12: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.29/%{_name}-%{version}.tar.sign +Source12: https://www.kernel.org/pub/linux/utils/util-linux/v2.29/util-linux-%{version}.tar.sign Source13: %{_name}.keyring Source14: runuser.pamd # klogconsole, http://opensuse.github.com/kiwi, 7.02.25, git 859dc050 @@ -157,6 +157,8 @@ Patch0: make-sure-sbin-resp-usr-sbin-are-in-PATH.diff # PATCH-FEATURE-SLE util-linux-losetup-Add-support-for-setting-logical-blocksize.patch bsc931634 FATE319010 [email protected] -- Add support for setting logical blocksizes. Patch1: util-linux-losetup-Add-support-for-setting-logical-blocksize.patch +# PATCH-BUG-FIX arm64-lscpu-use-sysfs-for-table-access-if-available.patch bsc#1033718 [email protected] -- Use SMBIOS3 tables when available in lscpu +Patch2: arm64-lscpu-use-sysfs-for-table-access-if-available.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build # %if %build_util_linux @@ -178,9 +180,9 @@ # File conflict of sulogin and utmpdump (up to 12.3 and SLE11). Conflicts: sysvinit-tools < 2.88+-87 # File conflicts of completion files with <= Leap 42.1 and <= SLE12 SP1 (fixed by SLE12 Update, boo#977259#c3). -Conflicts: bash-completion <= 2.1-13.1 -# The preset is provided by the presets branding package since 0.4 (bsc#1012850) -Conflicts: systemd-presets-branding < 0.4 +Conflicts: bash-completion <= 2.1-10 +# The preset is provided by the presets branding package since 0.4 (bsc#1012850) and since 12.2 in SLE (boo#1029775) +Conflicts: systemd-presets-branding < 12.2 # bnc#805684: %ifarch s390x Obsoletes: s390-32 @@ -189,6 +191,15 @@ # uuid-runtime appeared in SLE11 SP1 to SLE11 SP3 Provides: uuid-runtime = %{version}-%{release} Obsoletes: uuid-runtime < %{version}-%{release} +%if 0%{?suse_version} < 1330 +#BEGIN sysv compatibility hack +# After migration of raw init script to systemd, util-linux no more depends on +# fillup and insserv. Many poorly written packages implicitly depend on them +# without declaring it. Keep these dependencies in Leap 42 + SLE 12 line to +# prevent failures. +PreReq: %insserv_prereq %fillup_prereq +#END sysv compatibility hack +%endif # # Using "Requires" here would lend itself to help upgrading, but since # util-linux is in the initial bootstrap, that is not a good thing to do: @@ -402,6 +413,7 @@ # logical block size support in loop does not exist in Tumbleweed and upstream kernel yet %patch1 -p1 %endif +%patch2 -p1 # # setctsid cp -p %{S:22} %{S:23} . @@ -787,11 +799,6 @@ fi done -# mount option 'code=' is now called 'codepage=' so change fstab -if [ -f etc/fstab ]; then - sed -i 's:code=:codepage=:' etc/fstab -fi - %preun %{service_del_preun raw.service} @@ -854,7 +861,6 @@ %postun -n uuidd %{service_del_postun uuidd.socket uuidd.service} - %endif %if %build_util_linux @@ -1257,7 +1263,6 @@ %files -n libfdisk-devel-static %defattr(-, root, root) %{_libdir}/libfdisk.*a - %endif %if %build_util_linux_systemd ++++++ arm64-lscpu-use-sysfs-for-table-access-if-available.patch ++++++ Return-Path: <[email protected]> Delivered-To: [email protected] From: Ard Biesheuvel <[email protected]> To: [email protected] Cc: [email protected], [email protected], [email protected], Ard Biesheuvel <[email protected]> Subject: [PATCH] lspcu: use sysfs for table access if available Date: Wed, 12 Apr 2017 10:11:29 +0100 Message-Id: <[email protected]> X-Mailer: git-send-email 2.9.3 On ARM systems, accessing SMBIOS tables via /dev/mem using read() calls is not supported. The reason is that such tables are usually located in EFI_RUNTIME_SERVICE_DATA memory, which is not covered by the linear mapping on those systems, and so read() calls will fail. So instead, use the /sys/firmware/dmi/tables/DMI sysfs file, which contains the entire structure table array, and will be available on any recent Linux system, even on ones that only export the rev3 SMBIOS entry point, which is currently ignored by lscpu. Note that the max 'num' value is inferred from the size. This is not a limitation of the sysfs interface, but a limitation of the rev3 entry point, which no longer carries a number of array elements. Signed-off-by: Ard Biesheuvel <[email protected]> Signed-off-by: Alexander Graf <[email protected]> --- sys-utils/lscpu-dmi.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sys-utils/lscpu-dmi.c b/sys-utils/lscpu-dmi.c index 0e497d10c..a8298ff74 100644 --- a/sys-utils/lscpu-dmi.c +++ b/sys-utils/lscpu-dmi.c @@ -192,6 +192,18 @@ static int hypervisor_decode_smbios(uint8_t *buf, const char *devmem) devmem); } +static int hypervisor_decode_sysfw(void) +{ + static char const sys_fw_dmi_tables[] = "/sys/firmware/dmi/tables/DMI"; + struct stat st; + + if (stat(sys_fw_dmi_tables, &st)) + return -1; + + return hypervisor_from_dmi_table(0, st.st_size, st.st_size / 4, + sys_fw_dmi_tables); +} + /* * Probe for EFI interface */ @@ -242,6 +254,10 @@ int read_hypervisor_dmi(void) || '\0' != 0) return rc; + rc = hypervisor_decode_sysfw(); + if (rc >= 0) + return rc; + /* First try EFI (ia64, Intel-based Mac) */ switch (address_from_efi(&fp)) { case EFI_NOT_FOUND: -- 2.11.0 ++++++ util-linux-2.29.1.tar.xz -> util-linux-2.29.2.tar.xz ++++++ ++++ 70485 lines of diff (skipped) ++++++ util-linux-losetup-Add-support-for-setting-logical-blocksize.patch ++++++ --- /var/tmp/diff_new_pack.J9S8ey/_old 2017-04-25 08:55:26.914332841 +0200 +++ /var/tmp/diff_new_pack.J9S8ey/_new 2017-04-25 08:55:26.914332841 +0200 @@ -67,7 +67,7 @@ fputs(_(" -o, --offset <num> start at offset <num> into file\n"), out); fputs(_(" --sizelimit <num> device is limited to <num> bytes of the file\n"), out); -+ fputs(_(" -L, --logical-blocksize <size> set the logical block size to <size>\n"), out); ++ fputs(_(" --logical-blocksize <size> set the logical block size to <size>\n"), out); fputs(_(" -P, --partscan create a partitioned loop device\n"), out); fputs(_(" -r, --read-only set up a read-only loop device\n"), out); fputs(_(" --direct-io[=<on|off>] open backing file with O_DIRECT\n"), out); @@ -105,7 +105,7 @@ OPT_RAW, - OPT_DIO + OPT_DIO, -+ OPT_BLOCKSIZE ++ OPT_BLOCKSIZE, }; static const struct option longopts[] = { { "all", 0, 0, 'a' }, @@ -113,7 +113,7 @@ { "associated", 1, 0, 'j' }, { "json", 0, 0, 'J' }, { "list", 0, 0, 'l' }, -+ { "logical-blocksize", 1, 0, 'L' }, ++ { "logical-blocksize", 1, 0, OPT_BLOCKSIZE }, { "noheadings", 0, 0, 'n' }, { "offset", 1, 0, 'o' }, { "output", 1, 0, 'O' },
