Openwrt/target/linux/generic/pending-4.19
John Thomson bf2870c1d9 kernel: fix mtd partition erase < parent_erasesize writes
This bug applied where mtd partition end address,
or erase start address, was not cleanly divisible by parent mtd erasesize.

This error would cause the bits following the end of the partition
to the next erasesize block boundary to be erased,
and this partition-overflow data to be written to the partition erase
address (missing additional partition offset address)
of the mtd (top) parent device.

Fixes: FS#2428

Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
Tested-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
[shorten commit title, add Fixes, fix kernel 4.19 as well]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-09-19 12:41:29 +02:00
..
102-MIPS-only-process-negative-stack-offsets-on-stack-tr.patch
103-MIPS-perf-ath79-Fix-perfcount-IRQ-assignment.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
132-spi-spi-gpio-fix-crash-when-num-chipselects-is-0.patch
140-jffs2-use-.rename2-and-add-RENAME_WHITEOUT-support.patch
141-jffs2-add-RENAME_EXCHANGE-support.patch
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
270-platform-mikrotik-build-bits.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
309-MIPS-Add-CPU-option-reporting-to-proc-cpuinfo.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
342-powerpc-Enable-kernel-XZ-compression-option-on-PPC_8.patch
400-mtd-add-rootfs-split-support.patch
401-mtd-add-support-for-different-partition-parser-types.patch
402-mtd-use-typed-mtd-parsers-for-rootfs-and-firmware-split.patch
403-mtd-hook-mtdsplit-to-Kbuild.patch
404-mtd-add-more-helper-functions.patch
411-mtd-partial_eraseblock_write.patch
412-mtd-partial_eraseblock_unlock.patch
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
435-mtd-add-routerbootpart-parser-config.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
479-mtd-spi-nor-add-eon-en25qh64.patch
479-mtd-spi-nor-add-xtx-xt25f128b.patch
480-mtd-set-rootfs-to-be-root-dev.patch
481-mtd-spi-nor-add-support-for-Gigadevice-GD25D05.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 kernel: Copy patches from kernel 4.14 to 4.19 2018-12-15 12:50:06 +01:00
497-mtd-mtdconcat-add-dt-driver-for-concat-devices.patch
530-jffs2_make_lzma_available.patch
532-jffs2_eofdetect.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
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
690-net-add-support-for-threaded-NAPI-polling.patch
703-phy-add-detach-callback-to-struct-phy_driver.patch
735-net-phy-at803x-fix-at8033-sgmii-mode.patch
739-net-avoid-tx-fault-with-Nokia-GPON-module.patch
740-net-sfp-remove-incomplete-100BASE-FX-and-100BASE-LX-.patch
741-net-sfp-derive-interface-mode-from-ethtool-link-mode.patch
742-net-sfp-add-more-extended-compliance-codes.patch
743-net-sfp-add-module-start-stop-upstream-notifications.patch
744-net-sfp-move-phy_start-phy_stop-to-phylink.patch
745-net-mdio-i2c-add-support-for-Clause-45-accesses.patch
746-net-phylink-re-split-__phylink_connect_phy.patch
747-net-phylink-support-Clause-45-PHYs-on-SFP-modules.patch
748-net-phylink-split-link_an_mode-configured-and-curren.patch
749-net-phylink-split-phylink_sfp_module_insert.patch
750-net-phylink-delay-MAC-configuration-for-copper-SFP-m.patch
751-net-phylink-make-Broadcom-BCM84881-based-SFPs-work.patch
752-net-phy-add-Broadcom-BCM84881-PHY-driver.patch
753-net-sfp-add-support-for-Clause-45-PHYs.patch
754-net-sfp-fix-unbind.patch
755-net-sfp-fix-hwmon.patch
756-net-sfp-use-a-definition-for-the-fault-recovery-atte.patch
757-net-sfp-rename-sm_retries.patch
758-net-sfp-error-handling-for-phy-probe.patch
759-net-sfp-re-attempt-probing-for-phy.patch
800-bcma-get-SoC-device-struct-copy-its-DMA-params-to-th.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