linux/net/sunrpc
NeilBrown 250f391518 [PATCH] knfsd: fix an NFSD bug with full sized, non-page-aligned reads
NFSd assumes that largest number of pages that will be needed for a
request+response is 2+N where N pages is the size of the largest permitted
read/write request.  The '2' are 1 for the non-data part of the request, and 1
for the non-data part of the reply.

However, when a read request is not page-aligned, and we choose to use
->sendfile to send it directly from the page cache, we may need N+1 pages to
hold the whole reply.  This can overflow and array and cause an Oops.

This patch increases size of the array for holding pages by one and makes sure
that entry is NULL when it is not in use.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-01-26 13:50:59 -08:00
..
auth_gss [PATCH] gss_spkm3: fix error handling in module init 2006-12-22 08:55:49 -08:00
auth_null.c
auth_unix.c
auth.c
cache.c
clnt.c [PATCH] NFS: Fix Oops in rpc_call_sync() 2007-01-24 12:31:06 -08:00
Makefile
pmap_clnt.c
rpc_pipe.c
sched.c [PATCH] NFS: Fix Oops in rpc_call_sync() 2007-01-24 12:31:06 -08:00
socklib.c
stats.c
sunrpc_syms.c
svc.c [PATCH] knfsd: fix setting of ACL server versions 2007-01-26 13:50:59 -08:00
svcauth_unix.c
svcauth.c
svcsock.c [PATCH] knfsd: fix an NFSD bug with full sized, non-page-aligned reads 2007-01-26 13:50:59 -08:00
sysctl.c
timer.c
xdr.c
xprt.c
xprtsock.c