linux-kernel-test/arch/microblaze
Michal Simek f663b60f52 microblaze: Fix uaccess_ok macro
Fix access_ok macro no to permit
case where user will try to access
the last address space which is equal
to segment address.

Example:
segment addr = 0xbfff ffff
address = 0xbfff fff0
size = 0x10

Current wrong implementation
0xbfff ffff >= (0xbfff fff0 | 0x10 | (0xbfff fff0 + 0x10))
0xbfff ffff >= (0xbfff fff0        | 0xc000 0000)
0xbfff ffff >= 0xf000 0000
return 0 which is access failed even the combination is valid.
because get_fs().seq returns the last valid address.

This patch fix this problem.

Size equals to zero is valid access.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
2013-05-09 09:04:32 +02:00
..
boot microblaze: Add .gitignore entries for auto-generated files 2013-02-12 11:24:44 +01:00
configs microblaze: Do not select OPT_LIB_ASM by default 2013-05-09 09:04:31 +02:00
include microblaze: Fix uaccess_ok macro 2013-05-09 09:04:32 +02:00
kernel microblaze: Add support for new cpu versions and target architecture 2013-05-09 09:04:31 +02:00
lib microblaze: Do not use module.h in files which are not modules 2013-02-12 11:24:45 +01:00
mm microblaze: Fix initrd support 2013-05-09 09:04:31 +02:00
oprofile
pci microblaze: pci: Remove duplicated include from pci-common.c 2013-05-09 09:01:21 +02:00
platform arch/microblaze/platform: remove depends on CONFIG_EXPERIMENTAL 2013-01-17 12:11:26 -08:00
Kconfig Misc arch/metag changes for v3.10-rc1 2013-04-30 10:09:39 -07:00
Kconfig.debug
Makefile microblaze: Makefile clean 2013-02-12 11:24:44 +01:00