Linux NFS development
 help / color / mirror / Atom feed
* NFS EACCES regression since 6.15.4
@ 2025-11-28  9:39 Alkis Georgopoulos
  2025-11-29  4:06 ` [PATCH 0/6] Fix up NFS client mount option regressions Trond Myklebust
  0 siblings, 1 reply; 14+ messages in thread
From: Alkis Georgopoulos @ 2025-11-28  9:39 UTC (permalink / raw)
  To: linux-nfs

Hi, up to the 6.15.2 mainline kernel, these commands correctly returned 
EROFS (Read-only file system):

/usr/lib/klibc/bin/nfsmount -o ro 192.168.67.1:/srv/ltsp /mnt
true <>/mnt/some-existing-file
bash: /mnt/some-existing-file: Read-only file system

Strace says the respective call and result is:
openat(AT_FDCWD, "/mnt/some-existing-file", O_RDWR|O_CREAT, 0666) = -1 
EROFS (Read-only file system)

Since 6.15.4 mainline kernel, they started incorrectly returning EACCES 
instead:

bash: /mnt/some-existing-file: Permission denied
openat(AT_FDCWD, "/mnt/some-existing-file", O_RDWR|O_CREAT, 0666) = -1 
EACCES (Permission denied)

This breaks for example the klibc losetup command, which in turn breaks 
e.g. netbooting in certain cases:

/usr/lib/klibc/bin/losetup -f /mnt/some-existing-file
Permission denied

Looking at https://kernel.ubuntu.com/mainline/v6.15.4/CHANGES, I wonder 
if it's related to this change:
nfs: clear SB_RDONLY before getting superblock

Thank you,
Alkis Georgopoulos


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

end of thread, other threads:[~2026-01-30  3:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-28  9:39 NFS EACCES regression since 6.15.4 Alkis Georgopoulos
2025-11-29  4:06 ` [PATCH 0/6] Fix up NFS client mount option regressions Trond Myklebust
2025-11-29  4:06   ` [PATCH 1/6] Revert "nfs: ignore SB_RDONLY when remounting nfs" Trond Myklebust
2025-11-29  4:06   ` [PATCH 2/6] Revert "nfs: clear SB_RDONLY before getting superblock" Trond Myklebust
2025-11-29  4:06   ` [PATCH 3/6] Revert "nfs: ignore SB_RDONLY when mounting nfs" Trond Myklebust
2025-11-29  4:06   ` [PATCH 4/6] NFS: Automounted filesystem should inherit ro,noexec,nodev,sync flags Trond Myklebust
2025-11-29  4:06   ` [PATCH 5/6] NFS: Fix inheritance of the block sizes when automounting Trond Myklebust
2025-11-29  4:06   ` [PATCH 6/6] NFS: Fix up the automount fs_context to use the correct cred Trond Myklebust
2026-01-29  7:06   ` [PATCH 0/6] Fix up NFS client mount option regressions Li Lingfeng
2026-01-29 16:00     ` Trond Myklebust
2026-01-30  1:34       ` Li Lingfeng
2026-01-30  1:43         ` Trond Myklebust
2026-01-30  2:41           ` Li Lingfeng
2026-01-30  3:14             ` Trond Myklebust

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