tmp_suning_uos_patched/net
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
..
802
8021q
appletalk
atm
ax25
bluetooth [Bluetooth] Restrict well known PSM to privileged users 2007-01-22 22:00:45 +01:00
bridge
core [IPSEC] flow: Fix potential memory leak 2007-01-23 20:25:39 -08:00
dccp
decnet
econet
ethernet
ieee80211
ipv4 [TCP]: rare bad TCP checksum with 2.6.19 2007-01-23 22:07:12 -08:00
ipv6 [IPV6]: Fixed the size of the netlink message notified by inet6_rt_notify(). 2007-01-23 22:09:41 -08:00
ipx
irda
key
lapb
llc
netfilter [NETFILTER]: ctnetlink: fix leak in ctnetlink_create_conntrack error path 2007-01-23 20:25:42 -08:00
netlabel NetLabel: correct CIPSO tag handling when adding new DOI definitions 2007-01-09 00:30:01 -08:00
netlink
netrom
packet
rose
rxrpc
sched
sctp [SCTP]: Fix compiler warning. 2007-01-23 22:32:23 -08:00
sunrpc [PATCH] knfsd: fix an NFSD bug with full sized, non-page-aligned reads 2007-01-26 13:50:59 -08:00
tipc
unix
wanrouter
x25 [X.25]: Add missing sock_put in x25_receive_data 2007-01-23 20:25:48 -08:00
xfrm [IPSEC]: Policy list disorder 2007-01-23 20:25:51 -08:00
compat.c
Kconfig
Makefile
nonet.c
socket.c
sysctl_net.c
TUNABLE