Wouter van Kesteren
2feb55f890
fs: allow no_seek_end_llseek to actually seek
...
The user-visible impact of the issue is for example that without this
patch sensors-detect breaks when trying to seek in /dev/cpu/0/cpuid.
'~0ULL' is a 'unsigned long long' that when converted to a loff_t,
which is signed, gets turned into -1. later in vfs_setpos we have
'if (offset > maxsize)', which makes it always return EINVAL.
Fixes: b25472f9b961 ("new helpers: no_seek_end_llseek{,_size}()")
Signed-off-by: Wouter van Kesteren <woutershep@gmail.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2016-02-20 00:15:50 -05:00
..
2016-01-22 18:04:28 -05:00
2016-01-20 17:09:18 -08:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2015-12-30 13:01:03 -05:00
2016-01-14 16:00:49 -08:00
2016-01-14 16:00:49 -08:00
2016-02-12 09:21:28 -08:00
2016-01-22 18:04:28 -05:00
2016-02-04 18:25:15 +01:00
2016-01-24 12:31:12 -08:00
2016-01-23 12:24:56 -08:00
2016-01-22 18:04:28 -05:00
2015-12-08 22:41:36 -05:00
2016-01-22 18:04:28 -05:00
2016-02-06 23:45:46 -08:00
2016-01-21 17:45:15 -05:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-01-14 16:00:49 -08:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-01-23 12:24:56 -08:00
2016-01-23 12:24:56 -08:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2015-12-08 22:41:36 -05:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-01-14 16:00:49 -08:00
2016-01-06 13:03:18 -05:00
2016-01-23 12:24:56 -08:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-01-07 10:10:50 -05:00
2016-01-22 18:04:28 -05:00
2016-01-14 16:00:49 -08:00
2016-01-22 18:04:28 -05:00
2016-01-27 20:40:05 -05:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-01-14 16:00:49 -08:00
2016-01-22 18:04:28 -05:00
2016-02-05 18:10:40 -08:00
2016-01-14 16:00:49 -08:00
2016-01-22 18:04:28 -05:00
2016-02-03 08:28:43 -08:00
2016-01-22 18:04:28 -05:00
2016-01-14 16:00:49 -08:00
2016-01-14 16:00:49 -08:00
2016-01-22 18:04:28 -05:00
2015-12-08 22:41:36 -05:00
2016-01-22 18:04:28 -05:00
2016-01-14 16:00:49 -08:00
2016-01-14 16:00:49 -08:00
2016-01-14 16:00:49 -08:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-01-23 12:24:56 -08:00
2016-01-14 16:00:49 -08:00
2016-02-08 11:03:58 +11:00
2016-01-22 18:04:28 -05:00
2015-12-06 21:17:14 -05:00
2016-01-20 00:39:20 +01:00
2016-01-22 18:04:28 -05:00
2016-02-05 18:10:40 -08:00
2016-01-06 13:03:18 -05:00
2016-01-27 10:48:26 -05:00
2016-01-04 10:28:32 -05:00
2016-01-20 17:09:18 -08:00
2016-02-05 18:10:40 -08:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2015-12-08 14:52:03 +01:00
2016-02-05 18:10:40 -08:00
2016-01-22 18:04:28 -05:00
2016-01-09 02:55:37 -05:00
2016-01-14 16:00:49 -08:00
2016-01-19 12:02:23 -05:00
2016-01-15 17:56:32 -08:00
2016-01-23 12:24:56 -08:00
2016-01-08 21:20:11 -05:00
2016-01-22 18:04:28 -05:00
2016-01-15 17:56:32 -08:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-01-19 19:25:21 -05:00
2015-12-13 19:46:12 -05:00
2015-12-06 21:17:16 -05:00
2016-02-20 00:15:50 -05:00
2016-01-22 18:04:28 -05:00
2016-01-06 08:26:52 -05:00
2016-01-09 02:55:35 -05:00
2016-01-16 11:17:23 -08:00
2016-01-14 17:04:19 -08:00
2016-01-17 11:13:55 +01:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00