1. 22 1月, 2014 1 次提交
  2. 23 4月, 2013 1 次提交
    • H
      s390/uapi: change struct statfs[64] member types to unsigned values · b8668fd0
      Heiko Carstens 提交于
      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 of sign extension when assignment to
      a long value happens.
      
      This patch changes the s390 uapi struct stafs[64] definition in the kernel
      to contain only unsigned values.
      This was true for 32 bit builds anyway, since we use the generic uapi
      header file in that case. So lets not include conditionally the generic
      uapi header file but have the s390 implementation completely independent.
      
      Also fix the types of struct compat_stafs to match reality and move the
      definition of struct compat_statfs64 to asm/compat.h since it is not part
      of the api.
      Reported-by: NKay Sievers <kay@vrfy.org>
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      b8668fd0
  3. 09 10月, 2012 1 次提交
  4. 20 7月, 2012 1 次提交
    • H
      s390/comments: unify copyright messages and remove file names · a53c8fab
      Heiko Carstens 提交于
      Remove the file name from the comment at top of many files. In most
      cases the file name was wrong anyway, so it's rather pointless.
      
      Also unify the IBM copyright statement. We did have a lot of sightly
      different statements and wanted to change them one after another
      whenever a file gets touched. However that never happened. Instead
      people start to take the old/"wrong" statements to use as a template
      for new files.
      So unify all of them in one go.
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      a53c8fab
  5. 10 8月, 2010 1 次提交
  6. 07 9月, 2008 1 次提交
  7. 02 8月, 2008 1 次提交
  8. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4