[X86] Fix potential issue on memmove > --- a/arch/x86/lib/memcpy_32.c +++ b/arch/x86/lib/memcpy_32.c @@ -25,19 +25,35 @@ void *memmove(void *dest, const void *src, size_t n) int d0, d1, d2; if (dest < src) { - memcpy(dest, src, n); + if ((dest + n) < src) + return memcpy(dest, src, n); + else + __asm__ __volatile__(... 12 Aug 2010 11:28
[tip:x86/urgent] x86, asm: Refactor atomic64_386_32.S to support old binutils and be cleaner Commit-ID: 30246557a06bb20618bed906a06d1e1e0faa8bb4 Gitweb: http://git.kernel.org/tip/30246557a06bb20618bed906a06d1e1e0faa8bb4 Author: Luca Barbieri <luca(a)luca-barbieri.com> AuthorDate: Fri, 6 Aug 2010 04:04:38 +0200 Committer: H. Peter Anvin <hpa(a)zytor.com> CommitDate: Wed, 11 Aug 2010 21:03:28 -0700 ... 12 Aug 2010 02:48
linux-next: Tree for August 12 Hi all, As the merge window is open, please do not add 2.6.37 material to your linux-next included trees until after 2.6.36-rc1. Changes since 20100811: Linus' tree lost its build problems. The arm tree lost its conflicts. The cifs tree gained a build failure so I used the version from next-20100811. ... 12 Aug 2010 02:48
[PATCH] kconfig: fix warnings in fgets/fwrite usage Add some helper functions that abort on failure, and change the fwrite and fget calls to use those. This should kill off all the ugly gcc warnings that some distros emit about ignoring return values due to usage of warn_unused_result attributes. Signed-off-by: Mike Frysinger <vapier(a)gentoo.org> --- scripts/kc... 12 Aug 2010 02:48
IPVS : bugfix for ICMPv6 checksum calculation forgive my careless and poor english , "correct" should be "corrects". -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/... 12 Aug 2010 02:48
fs/ocfs2/dlm: Eliminate update of list_for_each_entry loop cursor On Wed, 11 Aug 2010, Joel Becker wrote: On Sat, Aug 07, 2010 at 11:09:13AM +0200, Julia Lawall wrote: From: Julia Lawall <julia(a)diku.dk> list_for_each_entry uses its first argument to move from one element to the next, so modifying it can break the iteration. Thanks for catching the bu... 12 Aug 2010 02:48
[PATCH] nfs: lookupcache coherence bugs in WCC update path (revised) (Well, crud. I screwed up the previous diff and was missing a close-curly. This version actually compiles...) This patch fixes some coherence bugs in the NFS "dentry lookup cache". The NFS dentry lookup cache provides the nfs_force_lookup_revalidate() call to invalidate all cached dentries associated with an ... 12 Aug 2010 01:43
[PATCH] checkpatch: check for incorrect permissions Throw an error when a source file has been given execute permissions using the mode change line present in git diffs. Also alow the filename matching to use the "diff" line in addition to the "+++" line, since the mode change lines appear before any "+++" lines. Cc: Andy Whitcroft <apw(a)canonical.com> Acked-by: ... 12 Aug 2010 01:43
[PATCH V2] [X86] Fix potential issue on memmove From: root <root(a)glibc-nhm.localdomain> memmove allow source and destination address to be overlap, but no limitation for memcpy. So memmove use forward or backward copy mode to handle src > dest and dest > src cases respectively. However memcpy has not address overlap, it may use any copy mode theoretically. O... 12 Aug 2010 01:43
linux-next: manual merge of the mfd tree with Linus' tree Hi Samuel, Today's linux-next merge of the mfd tree got a conflict in drivers/gpio/Kconfig between commit c34f16b70a52e348a62944fe0d5c7c1eb9ad5b72 ("gpio: sx150x: add Semtech I2C sx150x gpio expander driver") from Linus' tree and commit 59d11276842199a8ee525f1e88be7eafe8614e4c ("gpio: Add STMPE GPIO driver") fr... 12 Aug 2010 06:02 |