Util-Linux package development
 help / color / mirror / Atom feed
* util-linux 2.39 doesn't work with <linux-5.12: mount(2) system call failed: Function not implemented
@ 2023-05-20  0:54 Thomas Deutschmann
  2023-05-20  4:51 ` Thomas Weißschuh
  0 siblings, 1 reply; 8+ messages in thread
From: Thomas Deutschmann @ 2023-05-20  0:54 UTC (permalink / raw)
  To: util-linux

Hi,

I didn't find a kernel requirement in latest util-linux 2.39 release 
notes and because a fallback is mentioned I gave it a try on a system 
running latest LTS kernel 5.10.180.

After updating to util=linux 2.39 system immediately failed when trying 
to use mount command.

I.e.

   mount --make-slave /proc

failed with:

> mount: /proc: mount(2) system call failed: Function not implemented.
>        dmesg(1) may have more information after failed mount system call.

Nothing in dmesg about it.


strace shows

> mount_setattr(3, "", AT_EMPTY_PATH, {attr_set=0, attr_clr=0, propagation=MS_SLAVE, userns_fd=0}, 32) = -1 ENOSYS (Function not implemented)


Configure output shows

> checking for syscall mount_setattr... SYS_mount_setattr

But this is coming from Linux headers (I have most recent Linux headers 
from kernel 6.3 installed).

Not sure if this is the problem but using most recent Linux headers with 
older kernel shouldn't be a problem in general according to 
https://sourceware.org/glibc/wiki/FAQ#What_version_of_the_Linux_kernel_headers_should_be_used.3F

Booting a newer kernel (I tried 5.15.112) helped (I guess because the 
system call was added in 5.12).

Thanks!


-- 
Regards,
Thomas

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-05-22 14:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-20  0:54 util-linux 2.39 doesn't work with <linux-5.12: mount(2) system call failed: Function not implemented Thomas Deutschmann
2023-05-20  4:51 ` Thomas Weißschuh
2023-05-20 15:23   ` Thomas Deutschmann
2023-05-20 23:39     ` Thomas Weißschuh
2023-05-21 22:13       ` Thomas Deutschmann
2023-05-22  7:43         ` Thomas Weißschuh
2023-05-22 14:09           ` Thomas Deutschmann
2023-05-22 14:55             ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox