Visit Jeremy's Blog.
Go Back > Forums > Other *NIX Forums > *BSD
User Name
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.


  Search this Thread
Old 06-07-2017, 08:27 AM   #1
Registered: Dec 2009
Location: California
Distribution: Slackware
Posts: 305

Rep: Reputation: 138Reputation: 138
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.

Last edited by aaazen; 06-07-2017 at 08:40 AM. Reason: correct kernel version 4.9.30 and 4.9.31
Old 06-07-2017, 11:13 AM   #2
Registered: Dec 2009
Location: California
Distribution: Slackware
Posts: 305

Original Poster
Rep: Reputation: 138Reputation: 138
Here is the patch:
--- 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;

-       /* 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:
Old 06-14-2017, 09:58 PM   #3
LQ Guru
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware
Posts: 5,216

Rep: Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213
Why is this posted in a BSD forum?
Old 06-15-2017, 03:22 AM   #4
Senior Member
Registered: Apr 2005
Posts: 1,967
Blog Entries: 5

Rep: Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010
Probably because it's only relevant to *BSD users who are mounting an FFS/FFS2 BSD partition in Linux.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Critical SSD/RAID0 (?) bug under kernel 4.0.0, 4.0.1, 4.0.2 and 3.18.14 (?) moisespedro Slackware 26 06-08-2015 04:02 PM
UFS write support enabled in kernel, but UFS partition mouted as read only sguerrini97 Linux - Software 1 02-02-2013 04:37 AM
difference:: extX and ufs file system anwerreyaz Linux - General 3 07-13-2006 04:05 AM
UFS file system corrupt Tsuroerusu *BSD 3 11-22-2005 11:20 PM
ufs write in Kernels 2.6.x versus 2.4.x pistachio Linux - General 1 07-15-2005 05:52 AM > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 04:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration