Package: libblkid1
Version: 2.41-5
Severity: normal
Tags: upstream

Dear Maintainer,

libblkid1 2.41 contains a bug in probe_ioctl_tp where the BLKGETDISKSEQ ioctl 
result is incorrectly
assigned to the topology with blkid_topology_set_physical_sector_size instead
of blkid_topology_set_diskseq.

This issue was observed while using a Debian 13 container on a RHEL 9.4 host 
and attempting to
format a disk using mkfs.xfs. The physical sector size was incorrectly reported 
as 3.
This issue also presents with the fdisk command, which also uses libblkid1
to resolve physical sector size of devices.

Example:

root@r94p121-PA:~ # fdisk --list /dev/sdb
Disk /dev/sdb: 90 GiB, 96636764160 bytes, 188743680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 3 bytes
I/O size (minimum/optimal): 512 bytes / 3 bytes

Strace showing ioctl results:

ioctl(3, BLKALIGNOFF, [0])              = 0
ioctl(3, BLKIOMIN, [512])               = 0
ioctl(3, BLKIOOPT, [0])                 = 0
ioctl(3, BLKPBSZGET, [512])             = 0
ioctl(3, BLKGETDISKSEQ, [3])            = 0
ioctl(3, BLKSSZGET, [512])              = 0

This issue has been resolved upstream in 
https://github.com/util-linux/util-linux/pull/3754

Please update the util-linux source package to the latest stable version from 
upstream.

Thanks,
  -Sam

-- System Information:
Debian Release: 13.0
Architecture: amd64 (x86_64)

Kernel: Linux 5.14.0-427.18.1.el9_4.x86_64
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8), LANGUAGE=en_US.UTF-8
Shell: /bin/sh linked to /usr/bin/bash
Init: unable to detect

Versions of packages libblkid1 depends on:
ii  libc6  2.41-12

libblkid1 recommends no packages.

libblkid1 suggests no packages.

-- no debconf information

Reply via email to