Files
linux/arch/microblaze/include/asm
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
..
2009-03-27 14:25:27 +01:00
2012-03-23 09:28:13 +01:00
2013-01-03 12:47:20 +01:00
2013-02-12 11:24:45 +01:00
2009-03-27 14:25:35 +01:00
2010-08-04 10:45:17 +02:00
2010-06-09 11:12:36 +02:00
2011-07-26 16:49:47 -07:00
2012-10-04 14:52:49 +02:00
2010-10-21 15:51:20 +10:00
2013-04-08 17:39:26 +02:00
2010-10-21 15:51:25 +10:00
2009-03-27 14:25:15 +01:00
2011-01-16 14:29:21 +01:00
2010-04-01 08:38:24 +02:00
2013-05-09 09:04:32 +02:00
2010-08-04 10:22:35 +02:00