Package: psmisc
Version: 23.6-1
Severity: normal

Hi,

fuser(1) will call statx():

statx(0</dev/pts/1<char 136:1>>, "/", AT_STATX_DONT_SYNC|AT_NO_AUTOMOUNT, 
STATX_TYPE|STATX_INO, 0x7fffb96603a0) = -1 ENOSYS (Function not implemented)

which is not avilable on kernels before, I think, 4.11.

When that fails, fuser(1) prints

"Cannot find socket's device number.
Cannot stat /: Invalid argument"

which is not helpful in finding out what's wrong.

I realize that Debian doesn't ship such old kernels anymore, but I think it 
would be desirable to be more backwards compatible, and, failing that, to print 
an error message that actually explains what went wrong.

To me it looks like it would be best to fall back to the older stat* calls if 
statx() is not available at runtime.

A point could also be made to refuse installation/upgrade on kernels older than 
4.11, or kernels that don't have statx, unless the user creates some flag file 
to override this (e.g. because they don't need fuser(1)).

Best regards,

AndrĂ¡s

-- System Information:
Debian Release: sid
  APT prefers unstable
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.337-vs2.3.9.13 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=hu_HU.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8
Shell: /bin/sh linked to /bin/dash
Init: runit (via /run/runit.stopit)
LSM: AppArmor: enabled

Versions of packages psmisc depends on:
ii  libc6      2.36-8
ii  libtinfo6  6.4-2

psmisc recommends no packages.

psmisc suggests no packages.

-- no debconf information

-- 
      I've always wanted to change my legal name to ';DROP DATABASE; -- '
                    and see what kind of havoc ensues.

Reply via email to