openwrt/target/linux/generic/pending-4.19
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
..
102-MIPS-only-process-negative-stack-offsets-on-stack-tr.patch
110-ehci_hcd_ignore_oc.patch
120-Fix-alloc_node_mem_map-with-ARCH_PFN_OFFSET-calcu.patch
130-add-linux-spidev-compatible-si3210.patch
131-spi-use-gpio_set_value_cansleep-for-setting-chipsele.patch
140-jffs2-use-.rename2-and-add-RENAME_WHITEOUT-support.patch
141-jffs2-add-RENAME_EXCHANGE-support.patch
142-jffs2-Fix-use-of-uninitialized-delayed_work-lockdep-.patch jffs2: Fix use of uninitialized delayed_work, lockdep breakage 2018-12-16 01:18:48 +01:00
150-bridge_allow_receiption_on_disabled_port.patch
180-net-phy-at803x-add-support-for-AT8032.patch
201-extra_optimization.patch
203-kallsyms_uncompressed.patch
205-backtrace_module_info.patch
220-optimize_inlining.patch
240-remove-unsane-filenames-from-deps_initramfs-list.patch
261-enable_wilink_platform_without_drivers.patch
300-mips_expose_boot_raw.patch
302-mips_no_branch_likely.patch
304-mips_disable_fpu.patch
305-mips_module_reloc.patch
306-mips_mem_functions_performance.patch
307-mips_highmem_offset.patch
308-mips32r2_tune.patch
310-arm_module_unresolved_weak_sym.patch
330-MIPS-kexec-Accept-command-line-parameters-from-users.patch
332-arc-add-OWRTDTB-section.patch
333-arc-enable-unaligned-access-in-kernel-mode.patch
341-MIPS-mm-remove-no-op-dma_map_ops-where-possible.patch
400-mtd-add-rootfs-split-support.patch kernel: Remove deprecated generic linux,part-probe patch 2018-12-15 14:28:48 +01:00
401-mtd-add-support-for-different-partition-parser-types.patch kernel: Remove deprecated generic linux,part-probe patch 2018-12-15 14:28:48 +01:00
402-mtd-use-typed-mtd-parsers-for-rootfs-and-firmware-split.patch kernel: Remove deprecated generic linux,part-probe patch 2018-12-15 14:28:48 +01:00
403-mtd-hook-mtdsplit-to-Kbuild.patch
404-mtd-add-more-helper-functions.patch kernel: Remove deprecated generic linux,part-probe patch 2018-12-15 14:28:48 +01:00
411-mtd-partial_eraseblock_write.patch kernel: Remove deprecated generic linux,part-probe patch 2018-12-15 14:28:48 +01:00
412-mtd-partial_eraseblock_unlock.patch kernel: Remove deprecated generic linux,part-probe patch 2018-12-15 14:28:48 +01:00
419-mtd-redboot-add-of_match_table-with-DT-binding.patch
420-mtd-redboot_space.patch
430-mtd-add-myloader-partition-parser.patch
431-mtd-bcm47xxpart-check-for-bad-blocks-when-calculatin.patch
432-mtd-bcm47xxpart-detect-T_Meter-partition.patch
440-block2mtd_init.patch
441-block2mtd_probe.patch
450-mtd-spi-nor-allow-NOR-driver-to-write-fewer-bytes-th.patch
460-mtd-cfi_cmdset_0002-no-erase_suspend.patch
461-mtd-cfi_cmdset_0002-add-buffer-write-cmd-timeout.patch
465-m25p80-mx-disable-software-protection.patch
466-Revert-mtd-spi-nor-fix-Spansion-regressions-aliased-.patch
470-mtd-spi-nor-support-limiting-4K-sectors-support-base.patch
475-mtd-spi-nor-Add-Winbond-w25q128jv-support.patch
476-mtd-spi-nor-add-eon-en25q128.patch
477-mtd-add-spi-nor-add-mx25u3235f.patch
480-mtd-set-rootfs-to-be-root-dev.patch
490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch
491-ubi-auto-create-ubiblock-device-for-rootfs.patch
492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
493-ubi-set-ROOT_DEV-to-ubiblock-rootfs-if-unset.patch
494-mtd-ubi-add-EOF-marker-support.patch
495-mtd-core-add-get_mtd_device_by_node.patch
496-dt-bindings-add-bindings-for-mtd-concat-devices.patch
497-mtd-mtdconcat-add-dt-driver-for-concat-devices.patch
510-f2fs-fix-sanity_check_raw_super-on-big-endian-machines.patch kernel: fix f2fs on big endian machines 2018-12-29 13:41:35 +01:00
530-jffs2_make_lzma_available.patch jffs2: Fix use of uninitialized delayed_work, lockdep breakage 2018-12-16 01:18:48 +01:00
532-jffs2_eofdetect.patch
551-ubifs-fix-default-compression-selection.patch
553-ubifs-Add-option-to-create-UBI-FS-version-4-on-empty.patch
600-netfilter_conntrack_flush.patch
610-netfilter_match_bypass_default_checks.patch
611-netfilter_match_bypass_default_table.patch
612-netfilter_match_reduce_memory_access.patch
613-netfilter_optional_tcp_window_check.patch
616-net_optimize_xfrm_calls.patch
620-net_sched-codel-do-not-defer-queue-length-update.patch
630-packet_socket_type.patch
640-netfilter-nf_flow_table-add-hardware-offload-support.patch
641-netfilter-nf_flow_table-support-hw-offload-through-v.patch
642-net-8021q-support-hardware-flow-table-offload.patch
643-net-bridge-support-hardware-flow-table-offload.patch
644-net-pppoe-support-hardware-flow-table-offload.patch
645-netfilter-nf_flow_table-rework-hardware-offload-time.patch
646-netfilter-nf_flow_table-rework-private-driver-data.patch
655-increase_skb_pad.patch
666-Add-support-for-MAP-E-FMRs-mesh-mode.patch
670-ipv6-allow-rejecting-with-source-address-failed-policy.patch
671-net-provide-defines-for-_POLICY_FAILED-until-all-cod.patch
680-NET-skip-GRO-for-foreign-MAC-addresses.patch
681-NET-add-of_get_mac_address_mtd.patch
701-phy_extension.patch
703-phy-add-detach-callback-to-struct-phy_driver.patch
734-net-phy-at803x-allow-to-configure-via-pdata.patch
735-net-phy-at803x-fix-at8033-sgmii-mode.patch
736-net-phy-at803x-allow-to-configure-via-dt.patch
810-pci_disable_common_quirks.patch
811-pci_disable_usb_common_quirks.patch
834-ledtrig-libata.patch
920-mangle_bootargs.patch
0931-w1-gpio-fix-problem-with-platfom-data-in-w1-gpio.patch