1
0
Files
linux/include/linux
KAMEZAWA Hiroyuki 4a3956c790 vfs: introduce FMODE_UNSIGNED_OFFSET for allowing negative f_pos
Now, rw_verify_area() checsk f_pos is negative or not.  And if negative,
returns -EINVAL.

But, some special files as /dev/(k)mem and /proc/<pid>/mem etc..  has
negative offsets.  And we can't do any access via read/write to the
file(device).

So introduce FMODE_UNSIGNED_OFFSET to allow negative file offsets.

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2010-10-25 21:18:21 -04:00
..
2010-10-15 21:18:59 +02:00
2010-09-23 14:33:39 -07:00
2010-10-25 21:18:20 -04:00
2010-10-25 08:02:40 -07:00
2010-10-21 14:47:59 +02:00
2010-09-23 14:33:39 -07:00
2010-10-23 22:49:32 +02:00
2010-10-12 16:53:37 +02:00
2010-09-21 18:04:47 -07:00
2010-09-30 21:16:05 -07:00
2010-10-12 16:53:44 +02:00
2010-10-07 14:08:55 +01:00
2010-10-12 16:39:07 +02:00
2010-10-22 15:34:12 -05:00
2010-10-21 21:18:54 -04:00
2010-10-12 16:53:34 +02:00
2010-10-04 21:10:52 +02:00
2010-10-04 21:10:52 +02:00
2010-10-21 04:26:38 -07:00
2010-10-15 12:45:44 +02:00
2010-10-25 21:18:20 -04:00
2010-10-05 00:29:48 -07:00
2010-10-05 22:10:30 +09:00
2010-10-20 03:02:23 -07:00
2010-10-21 15:44:13 +02:00
2010-10-21 03:09:42 -07:00
2010-10-07 14:08:55 +01:00
2010-09-24 21:27:41 -07:00
2010-10-21 04:11:07 -07:00
2010-10-22 10:20:04 -07:00
2010-10-22 10:16:43 -07:00