[kernel ext4 ] bug starting from 4.8.4-1

Problems with packages? Post here, using [tags] of the package name.

[kernel ext4 ] bug starting from 4.8.4-1

Postby Sergeanter » Sun Apr 02, 2017 4:28 pm

This bug has been fixed by moonman in kernel 4.10.12-2
Reading block with address above 2^31 causes short read error starting from linux-kirkwood-dt-4.8.4-1. The bug is still present in 4.10.6
This has been checked rolling back to linux-kirkwood-dt-4.8.1-1. Also, I have verified that mdadm and e2fsprogs are not related to this issue. Please take a look at the code and I will try to go over this myself too when I figure how
Last edited by Sergeanter on Tue Apr 25, 2017 10:37 pm, edited 1 time in total.
Sergeanter
 
Posts: 82
Joined: Wed Oct 02, 2013 5:14 am

Re: [kernel ext4 ] bug starting from 4.8.4-1

Postby moonman » Mon Apr 03, 2017 2:07 am

Hmm can you check the gcc version the good and the bad versions were compiled with? It tells you in the first few lines of boot up.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: [kernel ext4 ] bug starting from 4.8.4-1

Postby Sergeanter » Mon Apr 03, 2017 4:32 am

Both were compiled with gcc 6.2.1 datecode 20160830.
All I see in 4.8.1-1 to 4.8.4-1 history is the changes related to bfq scheduler that I do not use. Also, I have just checked the latest 4.10.8-1 that supposedly does not have bfq anymore and the issue is still there.
I saw this in posts related to ext4 and xfs:
"The Large Block Device (LBD and HAVE_SECTOR_T) patch" that is needed to avoid wraparound at 8TB.
this sets sector_t to long long , otherwise it would be "long" and overflow.
Can you list variables when you compile the latest kernel and check what is the type of :

ext4_fsblk_t (should be unsigned long long )
sector_t (should be unsigned long long )
Sergeanter
 
Posts: 82
Joined: Wed Oct 02, 2013 5:14 am


Return to Packages

Who is online

Users browsing this forum: No registered users and 17 guests