LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 06-07-2017, 07:27 AM   #1
aaazen
Member
 
Registered: Dec 2009
Location: California
Distribution: Slackware
Posts: 298

Rep: Reputation: 131Reputation: 131
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/

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

Original Poster
Rep: Reputation: 131Reputation: 131
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");
 
Old 06-14-2017, 08:58 PM   #3
hitest
LQ Guru
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 5,127

Rep: Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097
Why is this posted in a BSD forum?
 
Old 06-15-2017, 02:22 AM   #4
cynwulf
Senior Member
 
Registered: Apr 2005
Location: Walsall, England
Posts: 1,941
Blog Entries: 5

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


Reply


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 03:02 PM
UFS write support enabled in kernel, but UFS partition mouted as read only sguerrini97 Linux - Software 1 02-02-2013 03:37 AM
difference:: extX and ufs file system anwerreyaz Linux - General 3 07-13-2006 03:05 AM
UFS file system corrupt Tsuroerusu *BSD 3 11-22-2005 10:20 PM
ufs write in Kernels 2.6.x versus 2.4.x pistachio Linux - General 1 07-15-2005 04:52 AM


All times are GMT -5. The time now is 06:24 PM.

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