You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/target/linux
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>
6 years ago
..
adm5120 kernel: Replace ledtrig-netdev with upstream backport 6 years ago
adm8668 treewide: use wpad-basic for not small flash targets 6 years ago
apm821xx apm821xx: fix MBL DUO SUPPORTED_DEVICES compat id 6 years ago
ar7 treewide: use wpad-basic for not small flash targets 6 years ago
ar71xx ar71xx: Fix PowerCloud CR5000 5GHz wifi mac 6 years ago
arc770 treewide: use wpad-basic for not small flash targets 6 years ago
archs38 treewide: use wpad-basic for not small flash targets 6 years ago
armvirt kernel: bump 4.14 to 4.14.77 6 years ago
at91 kernel: Deactivate CONFIG_COMPAT_BRK 6 years ago
ath25 kernel: bump 4.14 to 4.14.79 6 years ago
ath79 ath79: fix Archer A7 v5 5GHz MAC adress 6 years ago
au1000 treewide: use wpad-basic for not small flash targets 6 years ago
bcm53xx bcm53xx: update 4.19 config 6 years ago
brcm47xx brcm47xx: add support for the kernel 4.19 6 years ago
brcm63xx build: move xor-image into image-commands 6 years ago
brcm2708 brcm2708: Add feature flag rootfs-part 6 years ago
cns3xxx kernel: bump 4.14 to 4.14.90 6 years ago
gemini kernel: Deactivate CONFIG_COMPAT_BRK 6 years ago
generic kernel: fix f2fs on big endian machines 6 years ago
imx6 imx6: image: ventana: Add missing BOOT_SCRIPT variable 6 years ago
ipq40xx ipq40xx: convert to device-tree based USB LED trigger 6 years ago
ipq806x ipq806x: drop kernel/ rootfs partition images for the ZyXEL NBG6817 6 years ago
ixp4xx treewide: use wpad-basic for not small flash targets 6 years ago
kirkwood treewide: use wpad-basic for not small flash targets 6 years ago
lantiq treewide: dts: Remove default-state=off property from all gpio LED nodes 6 years ago
layerscape kernel: Deactivate CONFIG_COMPAT_BRK 6 years ago
malta treewide: use wpad-basic for not small flash targets 6 years ago
mcs814x kernel: bump 3.18 to 3.18.119 6 years ago
mediatek kernel: bump 4.14 to 4.14.89 6 years ago
mpc85xx mpc85xx: workaround 4.14 cross compile issue 6 years ago
mvebu kernel: bump 4.14 to 4.14.81 6 years ago
mxs mxs: use generic sysinfo board detection 6 years ago
octeon kernel: Deactivate CONFIG_COMPAT_BRK 6 years ago
octeontx kernel: enable memory compaction 6 years ago
omap kernel: bump 4.14 to 4.14.77 6 years ago
omap24xx omap24xx: remove referece to not existing kmod-usb-musb-tusb6010 7 years ago
orion treewide: use wpad-basic for not small flash targets 6 years ago
oxnas kernel: Deactivate CONFIG_COMPAT_BRK 6 years ago
pistachio kernel: bump 4.14 to 4.14.79 6 years ago
ppc40x kernel: only optimized for size if small_flash 6 years ago
ppc44x kernel: only optimized for size if small_flash 6 years ago
ramips ramips: mt7621: fix 5GHz WiFi LED on ZBT WG3526 6 years ago
rb532 kernel: bump 4.14 to 4.14.86 6 years ago
samsung kernel: Deactivate CONFIG_COMPAT_BRK 6 years ago
sunxi kernel: bump 4.14 to 4.14.77 6 years ago
uml treewide: use wpad-basic for not small flash targets 6 years ago
x86 x86: make sysupgrade.tgz reachable again 6 years ago
xburst kernel: bump 3.18 to 3.18.119 6 years ago
zynq kernel: Deactivate CONFIG_COMPAT_BRK 6 years ago
Makefile