NFS regression causes subsequent mounts from same superblock to silently use previous mount options
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Feisty |
Invalid
|
High
|
Unassigned | ||
Gutsy |
Invalid
|
High
|
Unassigned | ||
Hardy |
Fix Released
|
High
|
Unassigned | ||
linux-source-2.6.20 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Feisty |
Fix Released
|
High
|
Unassigned | ||
Gutsy |
Invalid
|
Undecided
|
Unassigned | ||
Hardy |
Invalid
|
Undecided
|
Unassigned | ||
linux-source-2.6.22 (Ubuntu) |
Invalid
|
High
|
Ubuntu Kernel Team | ||
Feisty |
Invalid
|
Undecided
|
Unassigned | ||
Gutsy |
Fix Released
|
High
|
Unassigned | ||
Hardy |
Invalid
|
High
|
Ubuntu Kernel Team |
Bug Description
Two or more NFS mount points with the same FSID end up silently sharing mount options.
You have an NFS server with the following mount:
/dev/sda3 => /mnt/data
And then you export two folders from that block device separately via NFS (/etc/exports):
/mnt/data/a 10.0.0.0/16
/mnt/data/b 10.0.0.0/16
And on the client you mount them:
mount -t nfs server:/mnt/data/a -o rw /exports/a
mount -t nfs server:/mnt/data/b -o ro /exports/b
You will notice that silently, the second partition gets mounted as 'rw' instead of 'ro'. This is a regression from Edgy (also in Feisty) and poses a potential security risk to system administrators, who may not notice that the second device has been mounted 'rw'. In fact, /etc/mtab (and by extension '/bin/mount') reports that the filesystem was mounted 'ro' (only '/proc/mounts' will tip you otherwise).
Two fixes were released to mitigate this problem:
http://
http://
The first commit fixed the security aspect of the problem but actually introduced an even more serious regression which resulted in EBUSY when two devices were mounted from the same superblock without specifying the 'nosharecache' option. The second patch resolves the security issue, and automatically disables shared caching on exports with the same FSID.
A high level overview of this problem with accompanying LKML thread can be found here:
http://
This bug is fixed as of 2.6.23-r5
Changed in linux-source-2.6.22: | |
assignee: | nobody → ubuntu-kernel-team |
importance: | Undecided → High |
status: | New → Triaged |
Changed in linux-source-2.6.20: | |
status: | Fix Committed → Fix Released |
Changed in linux-source-2.6.22: | |
status: | Fix Committed → Fix Released |
Changed in linux-source-2.6.22: | |
status: | New → Confirmed |
Changed in linux: | |
status: | Fix Committed → Confirmed |
Changed in linux-source-2.6.20: | |
status: | New → Confirmed |
Changed in linux: | |
status: | Confirmed → Fix Released |
Hi Philip,
Thank you for your report. Just to clarify, this is also a security issue for Feisty correct? Thanks.