Re: NFSv3 support (bugs, some fixes, and more)

ben fleis (lbf@umich.edu)
Tue, 13 Jul 1999 08:59:05 -0400


On Mon, Jul 12, 1999 at 01:47:00PM -0400, Michael Kaminsky wrote:
> As a somewhat related issue: what if an NFS server does export two
> different files with different handles but the same fileid? (Say I export /
> twice, the second time on a subdirectory of itself. It's a weird thing to
> do, but legal.) To the Linux kernel, they'll look like the same file (with
> the same struct inode) because they have the same fileid. But again looking
> at the RFC, the client shouldn't (can't) assume they are the same file.
>
> Ultimately, however, it's probably a pragmatic/security issue if a rogue
> NFS server can confuse the Linux kernel into a less-than-stable state by
> reusing fileids with different handles.

this would definitely be a problem --- imagine deleting a file and having
the inode number reused within the same NFS session. this is far from
impossible, and should be handled gracefully.

ben

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/