]> git.neil.brown.name Git - history.git/commit
[PATCH] Protect against NFS requests to create symlinks bigger than one page
authorNeil Brown <neilb@cse.unsw.edu.au>
Tue, 5 Aug 2003 06:19:58 +0000 (23:19 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 5 Aug 2003 06:19:58 +0000 (23:19 -0700)
commit67dec77024c313901d0686f0d57d80814003449b
tree2ddf1551c809f46def828a6594f0d4968c44038c
parentcfd5b64b4e27edb1a144833d224c373500ed6a3e
[PATCH] Protect against NFS requests to create symlinks bigger than one page

Such a request would cause the nul terminator to be written
to some other page, and cause havoc.

Also rearrange two tests to avoid the possibility of testing the byte
just past the end of a buffer - doing so can causes an oops with appropriate
kernel-debug config options
fs/nfsd/nfs3xdr.c