summaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-05-11 10:49:42 +0200
committerTrond Myklebust <trond.myklebust@hammerspace.com>2021-05-20 18:17:08 +0200
commit769b01ea68b6c49dc3cde6adf7e53927dacbd3a8 (patch)
tree939cab969061c04a2ff9927cb98473f0517d7367 /fs/nfs/pnfs.c
parentfs/nfs: Use fatal_signal_pending instead of signal_pending (diff)
downloadlinux-769b01ea68b6c49dc3cde6adf7e53927dacbd3a8.tar.xz
linux-769b01ea68b6c49dc3cde6adf7e53927dacbd3a8.zip
NFS: fix an incorrect limit in filelayout_decode_layout()
The "sizeof(struct nfs_fh)" is two bytes too large and could lead to memory corruption. It should be NFS_MAXFHSIZE because that's the size of the ->data[] buffer. I reversed the size of the arguments to put the variable on the left. Fixes: 16b374ca439f ("NFSv4.1: pnfs: filelayout: add driver's LAYOUTGET and GETDEVICEINFO infrastructure") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/pnfs.c')
0 files changed, 0 insertions, 0 deletions