aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorMurphy Zhou <[email protected]>2019-04-04 06:57:11 +0000
committerJ. Bruce Fields <[email protected]>2019-04-05 23:57:24 +0000
commit3c86794ac0e6582eea7733619d58ea150198502f (patch)
tree097ea6e5d63a6fc920c1c0b30f7de874f148b4cf /scripts/gcc-plugins/cyc_complexity_plugin.c
parentsunrpc: don't mark uninitialised items as VALID. (diff)
downloadkernel-3c86794ac0e6582eea7733619d58ea150198502f.tar.gz
kernel-3c86794ac0e6582eea7733619d58ea150198502f.zip
nfsd/nfsd3_proc_readdir: fix buffer count and page pointers
After this commit f875a79 nfsd: allow nfsv3 readdir request to be larger. nfsv3 readdir request size can be larger than PAGE_SIZE. So if the directory been read is large enough, we can use multiple pages in rq_respages. Update buffer count and page pointers like we do in readdirplus to make this happen. Now listing a directory within 3000 files will panic because we are counting in a wrong way and would write on random page. Fixes: f875a79 "nfsd: allow nfsv3 readdir request to be larger" Signed-off-by: Murphy Zhou <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions