[PATCH -next] usercopy: Fixup patch to commit 4df97ff66a102a89ecfa2f88051e30bdd54ad864

From: Sedat Dilek
Date: Fri Jul 29 2011 - 14:58:44 EST


When building with CONFIG_BINFMT_MISC=m linux-next (next-20110728) breaks:
ERROR: "copy_from_user_overflow" [fs/binfmt_misc.ko] undefined!

The issue was introduced by commit ab3b49d018924085e5d949c1af53fae0da9a8d94:
"The help text for this config is duplicated across the x86, parisc, and s390 Kconfig.debug files."

After reporting the issue to linux-next/LKML mailing-lists, Stephen Boyd
told me he had already sent a fix [1] which should be folded into [2].
Unfortunately, Stephen's fixup didn't get into Andrew's mmotm-tree and
find its way from there to linux-next.

Tested on x86_64 (Randy) and i386 (Sedat).

[1] https://lkml.org/lkml/2011/7/6/6
[2] http://userweb.kernel.org/~akpm/mmotm/broken-out/consolidate-config_debug_strict_user_copy_checks.patch

Reported-by: Randy Dunlap <rdunlap@xxxxxxxxxxxx>
Reported-by: Sedat Dilek <sedat.dilek@xxxxxxxxx>
Tested-by: Randy Dunlap <rdunlap@xxxxxxxxxxxx>
Tested-by: Sedat Dilek <sedat.dilek@xxxxxxxxx>
Cc: Stephen Boyd <sboyd@xxxxxxxxxxxxxx>
Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Sedat Dilek <sedat.dilek@xxxxxxxxx>
---
lib/Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/Makefile b/lib/Makefile
index fbf4b06..4ac9e49b 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -14,7 +14,7 @@ lib-y := ctype.o string.o vsprintf.o cmdline.o \
proportions.o prio_heap.o ratelimit.o show_mem.o \
is_single_threaded.o plist.o decompress.o find_next_bit.o

-lib-$(CONFIG_ARCH_HAS_DEBUG_STRICT_USER_COPY_CHECKS) += usercopy.o
+obj-$(CONFIG_ARCH_HAS_DEBUG_STRICT_USER_COPY_CHECKS) += usercopy.o
lib-$(CONFIG_MMU) += ioremap.o
lib-$(CONFIG_SMP) += cpumask.o

--
1.7.6

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/