Files
kernel/include/linux
Trond Myklebust e9f7bee1df [PATCH] NFS: large non-page-aligned direct I/O clobbers memory
The logic in nfs_direct_read_schedule and nfs_direct_write_schedule can
allow data->npages to be one larger than rpages.  This causes a page
pointer to be written beyond the end of the pagevec in nfs_read_data (or
nfs_write_data).

Fix this by making nfs_(read|write)_alloc() calculate the size of the
pagevec array, and initialise data->npages.

Also get rid of the redundant argument to nfs_commit_alloc().

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-09-08 10:22:51 -07:00
..
2006-08-03 16:56:02 -04:00
2006-06-29 08:55:41 +01:00
2006-06-27 17:32:38 -07:00
2006-07-03 15:27:06 -07:00
2006-06-26 09:58:36 -07:00
2006-07-03 19:44:51 -07:00
2006-07-01 09:56:03 -07:00
2006-08-27 11:01:32 -07:00
2006-06-25 10:01:19 -07:00
2006-07-28 21:02:00 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-08-21 10:02:50 +02:00
2006-07-31 13:28:39 -07:00
2006-07-03 15:27:00 -07:00
2006-07-14 21:53:56 -07:00
2006-07-14 21:53:55 -07:00
2006-06-25 10:01:13 -07:00
2006-06-29 16:58:06 -07:00
2006-08-27 11:01:32 -07:00
2006-06-25 10:01:09 -07:00
2006-07-12 16:05:48 -07:00
2006-08-19 17:44:31 -04:00
2006-06-28 15:54:27 -07:00
2006-07-03 19:48:25 -07:00
2006-06-25 10:01:06 -07:00
2006-06-25 10:01:06 -07:00
2006-06-25 10:01:14 -07:00
2006-06-30 11:25:38 -07:00
2006-09-01 11:39:08 -07:00
2006-06-30 11:25:37 -07:00
2006-06-23 07:43:06 -07:00
2006-06-30 18:25:18 +02:00
2006-07-03 23:30:54 +02:00
2006-08-06 08:57:47 -07:00
2006-07-10 13:24:25 -07:00