Heiko Carstens
5c95f7b66b
S/390: Change struct statfs[64] member types to unsigned values
...
Kay Sievers reported that coreutils' stat tool has a problem with
s390's statfs[64] definition:
> The definition of struct statfs::f_type needs a fix. s390 is the only
> architecture in the kernel that uses an int and expects magic
> constants lager than INT_MAX to fit into.
>
> A fix is needed to make Fedora boot on s390, it currently fails to do
> so. Userspace does not want to add code to paper-over this issue.
[...]
> Even coreutils cannot handle it:
> #define RAMFS_MAGIC 0x858458f6
> # stat -f -c%t /
> ffffffff858458f6
>
> #define BTRFS_SUPER_MAGIC 0x9123683E
> # stat -f -c%t /mnt
> ffffffff9123683e
The bug is caused by an implicit sign extension within the stat tool:
out_uint_x (pformat, prefix_len, statfsbuf->f_type);
where the format finally will be "%lx".
A similar problem can be found in the 'tail' tool.
s390 is the only architecture which has an int type f_type member in
struct statfs[64]. Other architectures have either unsigned ints or
long values, so that the problem doesn't occur there.
Therefore change the type of the f_type member to unsigned int, so
that we get zero extension instead sign extension when assignment to
a long value happens.
Reported-by: Kay Sievers <kay@vrfy.org >
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com >
2013-04-23 08:59:35 +02:00
..
2013-03-06 17:36:37 +01:00
2013-04-02 13:51:02 +02:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-04-02 13:51:02 +02:00
2013-04-23 08:59:35 +02:00
2013-01-15 12:56:21 -05:00
2013-04-02 13:51:02 +02:00
2013-04-02 13:51:02 +02:00
2013-04-18 23:58:16 -06:00
2013-02-08 01:12:11 +00:00
2013-03-06 16:35:19 +01:00
2013-04-02 13:51:02 +02:00
2013-01-02 19:05:09 +00:00
2012-10-18 18:50:43 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-02-13 23:30:40 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2012-10-09 15:41:30 -07:00
2012-08-07 16:40:32 +00:00
2012-05-31 00:34:41 +02:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2012-08-23 11:34:37 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-03-01 14:44:44 -08:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-02-04 16:29:39 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-02-07 14:44:18 -08:00
2013-03-07 12:15:08 +05:30
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-02-08 01:12:11 +00:00
2013-02-13 23:30:40 +00:00
2013-02-08 01:12:11 +00:00
2013-02-13 23:30:40 +00:00
2013-02-13 23:30:40 +00:00
2013-01-02 19:05:09 +00:00
2013-02-04 16:29:39 +00:00
2013-02-08 20:06:30 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2012-11-20 19:26:04 +01:00
2013-03-06 16:35:19 +01:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-04-03 10:56:45 +05:30
2013-01-02 19:05:09 +00:00
2013-03-15 14:32:04 -07:00
2013-03-19 17:07:15 -07:00
2013-01-02 19:05:09 +00:00
2013-03-06 16:35:19 +01:00
2013-02-13 23:30:40 +00:00
2012-05-25 19:19:30 +00:00
2013-01-02 19:05:09 +00:00
2013-02-08 01:12:11 +00:00
2013-02-13 23:30:40 +00:00
2013-01-02 19:05:09 +00:00
2013-03-07 13:06:20 +01:00
2013-01-17 21:08:12 +01:00
2013-01-02 19:05:09 +00:00
2013-02-13 23:30:40 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-02-13 23:30:40 +00:00
2013-01-02 19:05:09 +00:00
2013-02-13 23:30:40 +00:00
2013-02-08 20:06:30 +00:00
2013-01-02 19:05:09 +00:00
2012-08-17 22:42:49 -04:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-04-03 10:56:45 +05:30
2013-01-02 19:05:09 +00:00
2012-11-04 10:10:58 +01:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-02-08 20:06:30 +00:00
2013-02-08 20:06:30 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-02-13 23:30:40 +00:00
2013-01-02 19:05:09 +00:00
2013-02-08 20:06:30 +00:00
2013-02-08 20:06:30 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2012-08-08 09:18:37 -07:00
2012-08-07 14:47:34 -07:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-02-08 20:06:30 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-02-13 23:30:40 +00:00
2013-01-02 19:05:09 +00:00
2013-02-08 20:06:30 +00:00
2013-02-08 20:06:30 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-02-15 00:51:53 +00:00
2013-02-13 23:30:40 +00:00
2013-02-13 23:30:40 +00:00
2013-01-02 19:05:09 +00:00
2013-02-13 23:30:40 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-31 23:00:15 +00:00
2013-01-31 23:00:15 +00:00
2013-02-13 23:30:40 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-31 23:00:15 +00:00
2013-02-08 01:12:11 +00:00
2013-01-31 23:00:15 +00:00
2013-02-08 01:12:11 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2012-10-04 16:31:43 -07:00
2013-01-02 19:05:09 +00:00
2013-02-13 23:30:40 +00:00
2012-05-22 13:58:43 -07:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-03-14 08:18:48 +05:30
2013-01-02 19:05:09 +00:00
2013-02-04 16:29:39 +00:00
2013-01-02 19:05:09 +00:00
2012-06-04 22:22:02 -04:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-02-08 01:12:11 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-02-08 20:06:30 +00:00
2013-02-04 16:29:39 +00:00
2013-02-04 16:29:39 +00:00
2013-02-08 01:12:11 +00:00
2013-02-13 23:30:40 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00