NFS: Fix filehandle bounds checking in nfs_fh_to_dentry()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 22 Jul 2025 13:24:58 +0000 (09:24 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 22 Jul 2025 13:50:56 +0000 (09:50 -0400)
commitef93a685e01a281b5e2a25ce4e3428cf9371a205
tree1c4118d7e02018a73e547920bb08c986f709ba22
parentf66e6bffc531bafaeb067e6f6af56f52d5cd4ac2
NFS: Fix filehandle bounds checking in nfs_fh_to_dentry()

The function needs to check the minimal filehandle length before it can
access the embedded filehandle.

Reported-by: zhangjian <zhangjian496@huawei.com>
Fixes: 20fa19027286 ("nfs: add export operations")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/export.c