Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'nfs-for-3.11-5' of git://git.linux-nfs.org/projects/trondmy/linux-nfs

Pull NFS client bugfix from Trond Myklebust:
"Stable patch to fix a highmem-related data corruption issue on 32-bit
ARM platforms"

* tag 'nfs-for-3.11-5' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
SUNRPC: Fix memory corruption issue on 32-bit highmem systems

+6 -3
+6 -3
net/sunrpc/xdr.c
··· 207 207 pgfrom_base -= copy; 208 208 209 209 vto = kmap_atomic(*pgto); 210 - vfrom = kmap_atomic(*pgfrom); 211 - memmove(vto + pgto_base, vfrom + pgfrom_base, copy); 210 + if (*pgto != *pgfrom) { 211 + vfrom = kmap_atomic(*pgfrom); 212 + memcpy(vto + pgto_base, vfrom + pgfrom_base, copy); 213 + kunmap_atomic(vfrom); 214 + } else 215 + memmove(vto + pgto_base, vto + pgfrom_base, copy); 212 216 flush_dcache_page(*pgto); 213 - kunmap_atomic(vfrom); 214 217 kunmap_atomic(vto); 215 218 216 219 } while ((len -= copy) != 0);