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 kernel: bump 4.19 to 4.19.51 2019-06-18 11:38:58 +02:00
110-ehci_hcd_ignore_oc.patch kernel: Update kernel 4.19 to version 4.19.131 2020-07-04 21:12:42 +02:00
120-Fix-alloc_node_mem_map-with-ARCH_PFN_OFFSET-calcu.patch kernel: Update kernel 4.19 to version 4.19.131 2020-07-04 21:12:42 +02:00
130-add-linux-spidev-compatible-si3210.patch kernel: bump 4.19 to 4.19.93 2020-01-05 00:43:36 +01:00
131-spi-use-gpio_set_value_cansleep-for-setting-chipsele.patch
132-spi-spi-gpio-fix-crash-when-num-chipselects-is-0.patch kernel: bump 4.19 to 4.19.74 2019-09-20 15:51:49 +02:00
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 kernel: bump 4.19 to 4.19.62 2019-07-31 16:51:46 +02:00
180-net-phy-at803x-add-support-for-AT8032.patch
201-extra_optimization.patch kernel: Update kernel 4.19 to version 4.19.131 2020-07-04 21:12:42 +02:00
203-kallsyms_uncompressed.patch kernel: bump 4.19 to 4.19.93 2020-01-05 00:43:36 +01:00
205-backtrace_module_info.patch
220-optimize_inlining.patch kernel: bump 4.19 to 4.19.86 2019-11-29 09:59:49 +01:00
240-remove-unsane-filenames-from-deps_initramfs-list.patch kernel: bump 4.19 to 4.19.78 2019-10-08 15:51:06 +02:00
261-enable_wilink_platform_without_drivers.patch
270-platform-mikrotik-build-bits.patch kernel: bump 4.19 to 4.19.122 2020-05-12 12:36:28 +02:00
300-mips_expose_boot_raw.patch kernel: bump 4.19 to 4.19.90 2019-12-24 15:34:43 +01:00
302-mips_no_branch_likely.patch kernel: bump 4.19 to 4.19.62 2019-07-31 16:51:46 +02:00
304-mips_disable_fpu.patch kernel: Update kernel 4.19 to version 4.19.131 2020-07-04 21:12:42 +02:00
305-mips_module_reloc.patch Revert "kernel: fix kmemleak warnings introduced in 305-mips_module_reloc.patch" 2019-12-27 19:47:41 +01:00
306-mips_mem_functions_performance.patch
307-mips_highmem_offset.patch
308-mips32r2_tune.patch kernel: bump 4.19 to 4.19.62 2019-07-31 16:51:46 +02:00
309-MIPS-Add-CPU-option-reporting-to-proc-cpuinfo.patch kernel: bump 4.19 to 4.19.79 2019-10-15 16:11:28 +02:00
310-arm_module_unresolved_weak_sym.patch
330-MIPS-kexec-Accept-command-line-parameters-from-users.patch generic: fix compiler error in OpenWrt's kexec patch 2020-01-04 16:23:21 +02:00
332-arc-add-OWRTDTB-section.patch kernel: Update kernel 4.19 to version 4.19.131 2020-07-04 21:12:42 +02:00
333-arc-enable-unaligned-access-in-kernel-mode.patch
341-MIPS-mm-remove-no-op-dma_map_ops-where-possible.patch kernel: bump 4.19 to 4.19.90 2019-12-24 15:34:43 +01:00
342-powerpc-Enable-kernel-XZ-compression-option-on-PPC_8.patch kernel: bump 4.19 to 4.19.50 2019-06-12 15:04:09 +02:00
400-mtd-add-rootfs-split-support.patch kernel: bump 4.19 to 4.19.88 2019-12-10 09:50:42 +01:00
401-mtd-add-support-for-different-partition-parser-types.patch kernel: bump 4.19 to 4.19.88 2019-12-10 09:50:42 +01:00
402-mtd-use-typed-mtd-parsers-for-rootfs-and-firmware-split.patch kernel: bump 4.19 to 4.19.88 2019-12-10 09:50:42 +01:00
403-mtd-hook-mtdsplit-to-Kbuild.patch
404-mtd-add-more-helper-functions.patch kernel: bump 4.19 to 4.19.88 2019-12-10 09:50:42 +01:00
411-mtd-partial_eraseblock_write.patch kernel: fix mtd partition erase < parent_erasesize writes 2020-09-19 12:41:29 +02:00
412-mtd-partial_eraseblock_unlock.patch kernel: fix mtd partition erase < parent_erasesize writes 2020-09-19 12:41:29 +02:00
419-mtd-redboot-add-of_match_table-with-DT-binding.patch
420-mtd-redboot_space.patch
430-mtd-add-myloader-partition-parser.patch kernel: fix include of myloader.o since kernel 5.4 2020-04-24 17:50:12 +02:00
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 kernel: bump 4.19 to 4.19.122 2020-05-12 12:36:28 +02:00
440-block2mtd_init.patch
441-block2mtd_probe.patch
450-mtd-spi-nor-allow-NOR-driver-to-write-fewer-bytes-th.patch generic: 4.19: Add 4B_OPCODES flag to w25q256 2020-03-12 12:59:44 +01:00
460-mtd-cfi_cmdset_0002-no-erase_suspend.patch
461-mtd-cfi_cmdset_0002-add-buffer-write-cmd-timeout.patch kernel: bump 4.19 to 4.19.76 2019-10-04 15:48:28 +02:00
465-m25p80-mx-disable-software-protection.patch generic: 4.19: Add 4B_OPCODES flag to w25q256 2020-03-12 12:59:44 +01:00
466-Revert-mtd-spi-nor-fix-Spansion-regressions-aliased-.patch generic: 4.19: Add 4B_OPCODES flag to w25q256 2020-03-12 12:59:44 +01:00
470-mtd-spi-nor-support-limiting-4K-sectors-support-base.patch generic: 4.19: Add 4B_OPCODES flag to w25q256 2020-03-12 12:59:44 +01:00
475-mtd-spi-nor-Add-Winbond-w25q128jv-support.patch kernel: refresh patches 2019-08-24 23:11:15 +02:00
476-mtd-spi-nor-add-eon-en25q128.patch
477-mtd-add-spi-nor-add-mx25u3235f.patch
479-mtd-spi-nor-add-eon-en25qh64.patch kernel: mtd: add support for EN25QH64 in spi-nor.c 2019-01-02 22:12:19 +01:00
479-mtd-spi-nor-add-xtx-xt25f128b.patch generic: 4.19: Add 4B_OPCODES flag to w25q256 2020-03-12 12:59:44 +01:00
480-mtd-set-rootfs-to-be-root-dev.patch
481-mtd-spi-nor-add-support-for-Gigadevice-GD25D05.patch generic: refresh patches 2020-02-22 16:38:41 +01:00
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
530-jffs2_make_lzma_available.patch kernel: bump 4.19 to 4.19.46 2019-06-03 12:40:53 +02:00
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 kernel: bump 4.19 to 4.19.67 2019-08-27 10:32:44 +02:00
620-net_sched-codel-do-not-defer-queue-length-update.patch
630-packet_socket_type.patch kernel: bump 4.19 to 4.19.115 2020-04-16 13:23:11 +02:00
640-netfilter-nf_flow_table-add-hardware-offload-support.patch kernel: bump 4.19 to 4.19.101 2020-02-04 18:10:13 +01:00
641-netfilter-nf_flow_table-support-hw-offload-through-v.patch generic: fix flow table hw offload 2020-04-06 07:07:42 +02:00
642-net-8021q-support-hardware-flow-table-offload.patch kernel: bump 4.19 to 4.19.95 2020-01-20 13:41:49 +01:00
643-net-bridge-support-hardware-flow-table-offload.patch kernel: bump 4.19 to 4.19.91 2019-12-24 17:45:33 +01:00
644-net-pppoe-support-hardware-flow-table-offload.patch kernel: Update kernel 4.19 to version 4.19.131 2020-07-04 21:12:42 +02:00
645-netfilter-nf_flow_table-rework-hardware-offload-time.patch kernel: bump 4.19 to 4.19.84 2019-11-19 14:59:03 +01:00
646-netfilter-nf_flow_table-rework-private-driver-data.patch
655-increase_skb_pad.patch kernel: bump 4.19 to 4.19.93 2020-01-05 00:43:36 +01:00
666-Add-support-for-MAP-E-FMRs-mesh-mode.patch kernel: bump 4.19 to 4.19.101 2020-02-04 18:10:13 +01:00
670-ipv6-allow-rejecting-with-source-address-failed-policy.patch kernel: Update kernel 4.19 to version 4.19.131 2020-07-04 21:12:42 +02:00
671-net-provide-defines-for-_POLICY_FAILED-until-all-cod.patch
680-NET-skip-GRO-for-foreign-MAC-addresses.patch kernel: Update kernel 4.19 to version 4.19.131 2020-07-04 21:12:42 +02:00
681-NET-add-of_get_mac_address_mtd.patch
690-net-add-support-for-threaded-NAPI-polling.patch kernel: add patch that adds support for running threaded NAPI poll functions 2020-08-22 07:02:01 +02:00
703-phy-add-detach-callback-to-struct-phy_driver.patch kernel: Update kernel 4.19 to version 4.19.131 2020-07-04 21:12:42 +02:00
735-net-phy-at803x-fix-at8033-sgmii-mode.patch kernel: bump 4.19 to 4.19.98 2020-01-24 13:14:33 +01:00
739-net-avoid-tx-fault-with-Nokia-GPON-module.patch kernel: sfp: add Nokia SFP fix from net-next 2020-01-26 19:20:00 +01:00
740-net-sfp-remove-incomplete-100BASE-FX-and-100BASE-LX-.patch kernel: sfp: add Nokia SFP fix from net-next 2020-01-26 19:20:00 +01:00
741-net-sfp-derive-interface-mode-from-ethtool-link-mode.patch kernel: add SFP support for Methode DM7052 NBASE-T module 2020-01-21 22:32:48 +01:00
742-net-sfp-add-more-extended-compliance-codes.patch kernel: sfp: add Nokia SFP fix from net-next 2020-01-26 19:20:00 +01:00
743-net-sfp-add-module-start-stop-upstream-notifications.patch kernel: sfp: add Nokia SFP fix from net-next 2020-01-26 19:20:00 +01:00
744-net-sfp-move-phy_start-phy_stop-to-phylink.patch kernel: sfp: add Nokia SFP fix from net-next 2020-01-26 19:20:00 +01:00
745-net-mdio-i2c-add-support-for-Clause-45-accesses.patch kernel: add SFP support for Methode DM7052 NBASE-T module 2020-01-21 22:32:48 +01:00
746-net-phylink-re-split-__phylink_connect_phy.patch kernel: add SFP support for Methode DM7052 NBASE-T module 2020-01-21 22:32:48 +01:00
747-net-phylink-support-Clause-45-PHYs-on-SFP-modules.patch kernel: add SFP support for Methode DM7052 NBASE-T module 2020-01-21 22:32:48 +01:00
748-net-phylink-split-link_an_mode-configured-and-curren.patch kernel: add SFP support for Methode DM7052 NBASE-T module 2020-01-21 22:32:48 +01:00
749-net-phylink-split-phylink_sfp_module_insert.patch kernel: add SFP support for Methode DM7052 NBASE-T module 2020-01-21 22:32:48 +01:00
750-net-phylink-delay-MAC-configuration-for-copper-SFP-m.patch kernel: add SFP support for Methode DM7052 NBASE-T module 2020-01-21 22:32:48 +01:00
751-net-phylink-make-Broadcom-BCM84881-based-SFPs-work.patch kernel: add SFP support for Methode DM7052 NBASE-T module 2020-01-21 22:32:48 +01:00
752-net-phy-add-Broadcom-BCM84881-PHY-driver.patch kernel: add SFP support for Methode DM7052 NBASE-T module 2020-01-21 22:32:48 +01:00
753-net-sfp-add-support-for-Clause-45-PHYs.patch kernel: sfp: add Nokia SFP fix from net-next 2020-01-26 19:20:00 +01:00
754-net-sfp-fix-unbind.patch kernel: sfp: add Nokia SFP fix from net-next 2020-01-26 19:20:00 +01:00
755-net-sfp-fix-hwmon.patch kernel: sfp: add Nokia SFP fix from net-next 2020-01-26 19:20:00 +01:00
756-net-sfp-use-a-definition-for-the-fault-recovery-atte.patch kernel: sfp: add Nokia SFP fix from net-next 2020-01-26 19:20:00 +01:00
757-net-sfp-rename-sm_retries.patch kernel: sfp: add Nokia SFP fix from net-next 2020-01-26 19:20:00 +01:00
758-net-sfp-error-handling-for-phy-probe.patch kernel: sfp: add Nokia SFP fix from net-next 2020-01-26 19:20:00 +01:00
759-net-sfp-re-attempt-probing-for-phy.patch kernel: sfp: add Nokia SFP fix from net-next 2020-01-26 19:20:00 +01:00
800-bcma-get-SoC-device-struct-copy-its-DMA-params-to-th.patch kernel: bump 4.19 to 4.19.18 2019-01-28 18:17:32 +01:00
810-pci_disable_common_quirks.patch kernel: Update kernel 4.19 to version 4.19.138 2020-08-10 19:34:37 +02:00
811-pci_disable_usb_common_quirks.patch kernel: bump 4.19 to 4.19.64 2019-08-06 11:52:47 +02:00
834-ledtrig-libata.patch kernel: Update kernel 4.19 to version 4.19.131 2020-07-04 21:12:42 +02:00
920-mangle_bootargs.patch kernel: bump 4.19 to 4.19.88 2019-12-10 09:50:42 +01:00
0931-w1-gpio-fix-problem-with-platfom-data-in-w1-gpio.patch