summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Chris Hofstaedtler [Tue, 31 Oct 2023 13:52:26 +0000 (14:52 +0100)]
setterm: avoid restoring flags from uninitialized memory
Depending on the used compiler and flags, previously either F_SETFL was called
with 0 or with a random value. Never with the intended previous flags.
[kzak@redhat.com: - tiny coding style change]
Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
Tested-by: Emanuele Rocca <ema@debian.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name setterm-resize-uninit-flags.patch
Karel Zak [Mon, 26 Jun 2023 11:25:11 +0000 (13:25 +0200)]
cfdisk: fix menu behavior after writing changes
Florian wrote:
after a successful write, cfdisk remains on the "Write" cursor and
furthermore when navigating to "Quit" will continue to show
"...without writing changes", despite there were writes. This patch
addresses that.
Based on patch from Florian Zimmermann <florian.zimmermann@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Closes: #927041
Gbp-Pq: Topic upstream
Gbp-Pq: Name cfdisk-fix-menu-behavior-after-writing-changes.patch
Michal Biesek [Mon, 14 Aug 2023 00:37:45 +0000 (02:37 +0200)]
setarch: add riscv64/riscv32 support
Signed-off-by: Michal Biesek <michalbiesek@gmail.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name setarch-add-riscv64-riscv32-support.patch
Filipe Manana [Thu, 17 Aug 2023 09:20:13 +0000 (10:20 +0100)]
libmount: Fix regression when mounting with atime
A regression was introduced in v2.39 that causes mounting with the atime
option to fail:
$ mkfs.ext4 -F /dev/sdi
$ mount -o atime /dev/sdi /mnt/sdi
mount: /mnt/sdi: not mount point or bad option.
dmesg(1) may have more information after failed mount system call.
The failure comes from the mount_setattr(2) call returning -EINVAL. This
is because we pass an invalid value for the attr_clr argument. From a
strace capture we have:
mount_setattr(4, "", AT_EMPTY_PATH, {attr_set=0, attr_clr=MOUNT_ATTR_NOATIME, propagation=0 /* MS_??? */, userns_fd=0}, 32) = -1 EINVAL (Invalid argument)
We can't pass MOUNT_ATTR_NOATIME to mount_setattr(2) through the attr_clr
argument because all atime options are exclusive, so in order to set atime
one has to pass MOUNT_ATTR__ATIME to attr_clr and leave attr_set as
MOUNT_ATTR_RELATIME (which is defined as a value of 0).
This can be read from the man page for mount_setattr(2) and also from the
kernel source:
$ cat fs/namespace.c
static int build_mount_kattr(const struct mount_attr *attr, size_t usize,
struct mount_kattr *kattr, unsigned int flags)
{
(...)
/*
* Since the MOUNT_ATTR_<atime> values are an enum, not a bitmap,
* users wanting to transition to a different atime setting cannot
* simply specify the atime setting in @attr_set, but must also
* specify MOUNT_ATTR__ATIME in the @attr_clr field.
* So ensure that MOUNT_ATTR__ATIME can't be partially set in
* @attr_clr and that @attr_set can't have any atime bits set if
* MOUNT_ATTR__ATIME isn't set in @attr_clr.
*/
if (attr->attr_clr & MOUNT_ATTR__ATIME) {
if ((attr->attr_clr & MOUNT_ATTR__ATIME) != MOUNT_ATTR__ATIME)
return -EINVAL;
/*
* Clear all previous time settings as they are mutually
* exclusive.
*/
kattr->attr_clr |= MNT_RELATIME | MNT_NOATIME;
switch (attr->attr_set & MOUNT_ATTR__ATIME) {
case MOUNT_ATTR_RELATIME:
kattr->attr_set |= MNT_RELATIME;
break;
case MOUNT_ATTR_NOATIME:
kattr->attr_set |= MNT_NOATIME;
break;
case MOUNT_ATTR_STRICTATIME:
break;
default:
return -EINVAL;
}
(...)
So fix this by setting attr_clr MOUNT_ATTR__ATIME if we want to clear any
atime related option.
Signed-off-by: Filipe Manana <fdmanana@kernel.org>
Closes: #1042714
Gbp-Pq: Topic upstream
Gbp-Pq: Name libmount-Fix-regression-when-mounting-with-atime.patch
Thomas Weißschuh [Sun, 21 May 2023 19:45:10 +0000 (21:45 +0200)]
fadvise: (test) test with 64k blocks
This will allow the tests to also pass on systems with 64k pagesizes.
Closes #2249
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Gbp-Pq: Topic upstream
Gbp-Pq: Name fadvise-test-test-with-64k-blocks.patch
Thomas Weißschuh [Sun, 21 May 2023 19:44:20 +0000 (21:44 +0200)]
fadvise: (test) don't compare fincore page counts
These depend on the machines pagesize and are therefore not a good
comparision.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Gbp-Pq: Topic upstream
Gbp-Pq: Name fadvise-test-don-t-compare-fincore-page-counts.patch
Thomas Weißschuh [Sun, 21 May 2023 19:43:38 +0000 (21:43 +0200)]
fadvise: (tests) factor out calls to "fincore"
This will make it easier to pass argument later.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Gbp-Pq: Topic upstream
Gbp-Pq: Name fadvise-tests-factor-out-calls-to-fincore.patch
Thomas Weißschuh [Sun, 21 May 2023 19:42:14 +0000 (21:42 +0200)]
fadvise: (test) dynamically calculate expected test values
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Gbp-Pq: Topic upstream
Gbp-Pq: Name fadvise-test-dynamically-calculate-expected-test-values.patch
John David Anglin [Mon, 7 Aug 2023 15:37:17 +0000 (15:37 +0000)]
enosys: fix build on hppa
The following patch fixes the definition of SECCOMP_ARCH_NATIVE
on hppa.
Signed-off-by: John David Anglin <dave.anglin@bell.net>
Gbp-Pq: Topic upstream
Gbp-Pq: Name enosys-fix-build-on-hppa.patch
Chris Hofstaedtler [Tue, 18 Jul 2023 21:34:51 +0000 (23:34 +0200)]
fincore: (tests) fix double log output
The fincore tests call ts_log_both inside an output redirection of both stdout
and stderr, leading to the ts_log_both output ending up twice in both stdout
and stderr.
Call ts_log_both before setting up the output redirection.
Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
Gbp-Pq: Topic upstream
Gbp-Pq: Name fincore-tests-fix-double-log-output.patch
Chris Hofstaedtler [Thu, 14 Jul 2022 09:54:01 +0000 (09:54 +0000)]
Use sensible-pager
Closes: #1014368
Gbp-Pq: Topic debian
Gbp-Pq: Name sensible-pager.patch
Chris Hofstaedtler [Thu, 14 Apr 2022 11:47:20 +0000 (11:47 +0000)]
Install lsfd into /usr/bin
Gbp-Pq: Topic debian
Gbp-Pq: Name lsfd-usrbin.patch
Chris Hofstaedtler [Tue, 12 Apr 2022 20:35:57 +0000 (20:35 +0000)]
hardlink tests: set known failed
sha256 cannot be initialized on some archs / buildds.
Gbp-Pq: Topic debian
Gbp-Pq: Name hardlink-tests-known-failed.patch
Andreas Henriksson [Wed, 30 Jul 2014 12:28:17 +0000 (14:28 +0200)]
verbose-tests
Enable verbose tests and print content of failing tests output file.
Gbp-Pq: Topic debian
Gbp-Pq: Name verbose-tests.patch
Matthew Vernon [Tue, 6 Nov 2018 11:49:21 +0000 (11:49 +0000)]
util-linux: getopt(1) should point to where examples are on a Debian system
Debian BTS #913049
Gbp-Pq: Topic debian
Gbp-Pq: Name man-getopt-examples.patch
Chris Hofstaedtler [Mon, 13 Nov 2023 11:48:34 +0000 (12:48 +0100)]
util-linux (2.39.2-6) unstable; urgency=medium
[ Samuel Thibault ]
* d/util-linux.manpages,util-linux-locales.install: Generalize hurd-i386 into
hurd-any.
[ Chris Hofstaedtler ]
* Fix FTBFS on hurd-i386 using upstreamed patch.
Thanks to Samuel Thibault <sthibault@debian.org> (Closes: #
1055875)
[dgit import unpatched util-linux 2.39.2-6]
Chris Hofstaedtler [Mon, 13 Nov 2023 11:48:34 +0000 (12:48 +0100)]
Import util-linux_2.39.2-6.debian.tar.xz
[dgit import tarball util-linux 2.39.2-6 util-linux_2.39.2-6.debian.tar.xz]
Chris Hofstaedtler [Sun, 20 Aug 2023 20:14:58 +0000 (22:14 +0200)]
Import util-linux_2.39.2.orig.tar.xz
[dgit import orig util-linux_2.39.2.orig.tar.xz]