View Single Post
  #1   (View Single Post)  
Old 9th June 2017
comet--berkeley comet--berkeley is offline
Real Name: Richard
Package Pilot
 
Join Date: Apr 2009
Location: California
Posts: 163
Default Linux kernel: Critical UFS file system bug in 4.9 and 4.11 kernels (4.8.4 and above)

There is a critical UFS filesystem bug in that started with Linux 4.8.4 and exists in kernel 4.9.30 and below as well as 4.11.3 and below.

Files larger than 2 GibiBytes (2GB) copied from a UFS filesystem are quietly chopped down to a maximum of 2GB.

Please upgrade to at least Linux 4.9.31 or Linux 4.11.4 which are now available.

https://www.kernel.org/

Here is the patch:
Code:
--- a/fs/ufs/super.c.orig       2017-05-28 17:20:53.000000000 -0700
+++ b/fs/ufs/super.c    2017-06-03 17:08:33.340100262 -0700
@@ -812,9 +812,8 @@ static int ufs_fill_super(struct super_b
        uspi->s_dirblksize = UFS_SECTOR_SIZE;
        super_block_offset=UFS_SBLOCK;

-       /* Keep 2Gig file limit. Some UFS variants need to override
-          this but as I don't know which I'll let those in the know loosen
-          the rules */
+        sb->s_maxbytes = MAX_LFS_FILESIZE;
+
        switch (sbi->s_mount_opt & UFS_MOUNT_UFSTYPE) {
        case UFS_MOUNT_UFSTYPE_44BSD:
                UFSD("ufstype=44bsd\n");
__________________
When you see a good move, look for a better one.
--Lasker

Last edited by comet--berkeley; 9th June 2017 at 04:26 AM. Reason: show the patch
Reply With Quote