tmp_suning_uos_patched/arch/microblaze
Steven J. Magnani 6f3946b421 microblaze: Fix /dev/zero corruption from __clear_user()
A userland read of more than PAGE_SIZE bytes from /dev/zero results in
(a) not all of the bytes returned being zero, and
(b) memory corruption due to zeroing of bytes beyond the user buffer.

This is caused by improper constraints on the assembly __clear_user function.
The constrints don't indicate to the compiler that the pointer argument is
modified. Since the function is inline, this results in double-incrementing
of the pointer when __clear_user() is invoked through a multi-page read() of
/dev/zero.

Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
Acked-by: Michal Simek <monstr@monstr.eu>
CC: stable@kernel.org
2011-03-09 08:09:59 +01:00
..
boot microblaze/of: Use generic rule to build dtb's 2010-12-23 14:59:52 -07:00
configs kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT 2011-01-20 17:02:05 -08:00
include/asm microblaze: Fix /dev/zero corruption from __clear_user() 2011-03-09 08:09:59 +01:00
kernel microblaze: Convert irq_chip to new functions 2011-03-09 08:09:59 +01:00
lib microblaze: Fix ASM optimized code for LE 2011-01-28 14:05:13 +01:00
mm microblaze: Fix sparse warning - fault.c 2011-03-09 08:09:59 +01:00
oprofile microblaze: Core oprofile configs and hooks 2009-12-14 08:45:07 +01:00
pci microblaze: pci-common cleanup 2010-10-21 15:51:54 +10:00
platform microblaze: Add PVR for endians plus detection 2010-10-21 15:51:57 +10:00
Kconfig microblaze: Select GENERIC_HARDIRQS_NO_DEPRECATED 2011-03-09 08:09:59 +01:00
Kconfig.debug microblaze: remove obsolete DEBUG_BOOTMEM 2011-01-10 09:29:51 +01:00
Makefile microblaze: trivial: Fix removed the part of line 2011-01-03 11:36:32 +01:00