android_kernel_xiaomi_sm8350/include
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
..
acpi
asm-alpha
asm-arm [ARM] 3762/1: Fix ptrace cache coherency bug for ARM1136 VIPT nonaliasing Harvard caches 2006-09-02 18:43:20 +01:00
asm-arm26
asm-cris
asm-frv
asm-generic
asm-h8300
asm-i386 [PATCH] Remove unneeded asm-i386/cpufeature.h from user visibility. 2006-09-06 11:00:02 -07:00
asm-ia64 [PATCH] IA64,sparc: local DoS with corrupted ELFs 2006-09-08 08:40:46 -07:00
asm-m32r
asm-m68k
asm-m68knommu
asm-mips
asm-parisc
asm-powerpc [PATCH] ppc32: fix last_jiffy time comparison 2006-08-30 21:21:55 -07:00
asm-ppc [PATCH] ppc32: board-specific part of fs_enet update 2006-08-19 17:44:31 -04:00
asm-s390
asm-sh [PATCH] sh: fix FPN_START typo 2006-09-08 10:22:50 -07:00
asm-sh64
asm-sparc [PATCH] IA64,sparc: local DoS with corrupted ELFs 2006-09-08 08:40:46 -07:00
asm-sparc64 [PATCH] IA64,sparc: local DoS with corrupted ELFs 2006-09-08 08:40:46 -07:00
asm-um
asm-v850
asm-x86_64 [PATCH] x86_64: Save original IST values for checking stack addresses 2006-08-30 16:05:16 -07:00
asm-xtensa
keys
linux [PATCH] NFS: large non-page-aligned direct I/O clobbers memory 2006-09-08 10:22:51 -07:00
math-emu
media V4L/DVB (4340): Videodev.h should be included also when V4L1_COMPAT is selected. 2006-08-08 13:54:12 -03:00
mtd
net Fix sctp privilege elevation (CVE-2006-3745) 2006-08-22 12:52:23 -07:00
pcmcia
rdma
rxrpc
scsi [SCSI] iscsi bugfixes: reduce memory allocations 2006-07-28 11:49:34 -05:00
sound
video
Kbuild