openwrt/target/linux/generic
Christian Lamparter cb0f39c9cd kernel: fix f2fs on big endian machines
The WD MyBook Live SquashFS images didn't work anymore due to
a upstream regression in f2fs commit: 0cfe75c5b01199
("f2fs: enhance sanity_check_raw_super() to avoid potential overflows")
that got backported to 4.14.86 and landed in 4.18.

by Martin Blumenstingl:
|Treat "block_count" from struct f2fs_super_block as 64-bit little endian
|value in sanity_check_raw_super() because struct f2fs_super_block
|declares "block_count" as "__le64".
|
|This fixes a bug where the superblock validation fails on big endian
|devices with the following error:
|  F2FS-fs (sda1): Wrong segment_count / block_count (61439 > 0)
|  F2FS-fs (sda1): Can't find valid F2FS filesystem in 1th superblock
|  F2FS-fs (sda1): Wrong segment_count / block_count (61439 > 0)
|  F2FS-fs (sda1): Can't find valid F2FS filesystem in 2th superblock
|As result of this the partition cannot be mounted.
|
|With this patch applied the superblock validation works fine and the
|partition can be mounted again:
|  F2FS-fs (sda1): Mounted with checkpoint version = 7c84
|
|My little endian x86-64 hardware was able to mount the partition without
|this fix.
|To confirm that mounting f2fs filesystems works on big endian machines
|again I tested this on a 32-bit MIPS big endian (lantiq) device.

Hopefully, this will do until Martin's patch moved through upstream
to -stable.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2018-12-29 13:41:35 +01:00
..
backport-4.9 kernel: MIPS: math-emu Write-protect delay slot emulation pages 2018-12-24 21:52:08 +00:00
backport-4.14 kernel: MIPS: math-emu Write-protect delay slot emulation pages 2018-12-24 21:52:08 +00:00
backport-4.19 kernel: MIPS: math-emu Write-protect delay slot emulation pages 2018-12-24 21:52:08 +00:00
files kernel: add DT binding support to the fit parser 2018-12-17 00:21:33 +01:00
hack-4.9 kernel: Move modifications of b53.h into patch 2018-12-15 12:50:06 +01:00
hack-4.14 kernel: bump 4.14 to 4.14.90 2018-12-24 15:06:33 +00:00
hack-4.19 kernel: 4.19: fix usbport led trigger regression 2018-12-27 14:36:23 +01:00
image treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
other-files kernel: move initramfs's init script out of base-files 2017-04-04 14:06:40 +02:00
pending-3.18 kernel: bump 3.18 to 3.18.130 2018-12-18 14:24:57 +01:00
pending-4.9 kernel: Replace ledtrig-netdev with upstream backport 2018-12-15 12:50:06 +01:00
pending-4.14 kernel: fix f2fs on big endian machines 2018-12-29 13:41:35 +01:00
pending-4.19 kernel: fix f2fs on big endian machines 2018-12-29 13:41:35 +01:00
PATCHES
config-3.18 kernel: enable memory compaction 2018-10-09 14:29:55 +02:00
config-4.9 kernel: Reorder configuration 2018-12-15 12:50:06 +01:00
config-4.14 brcm2708: add kernel 4.14 support 2018-12-18 23:19:21 +02:00
config-4.19 kernel: Fix KERNEL_STACKPROTECTOR on kernel 4.19 2018-12-26 17:32:48 +01:00