immortalwrt/target/linux/generic/pending-4.19
John Thomson bd70c67338 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-20 11:36:15 +08:00
..
102-MIPS-only-process-negative-stack-offsets-on-stack-tr.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
103-MIPS-perf-ath79-Fix-perfcount-IRQ-assignment.patch kernel: bump to 4.9.182, 4.14.127, 4.19.52 to fix SACK Panic 2019-06-19 02:46:58 -07:00
110-ehci_hcd_ignore_oc.patch kernel: bump 4.19 to 4.19.130 2020-06-26 09:03:47 +08:00
120-Fix-alloc_node_mem_map-with-ARCH_PFN_OFFSET-calcu.patch kernel: bump to 4.9.234, 4.14.195, 4.19.142 2020-08-27 04:27:45 +08:00
130-add-linux-spidev-compatible-si3210.patch kernel: bump 4.19 to 4.19.140 2020-08-20 02:13:03 +08:00
131-spi-use-gpio_set_value_cansleep-for-setting-chipsele.patch kernel: bump to 4.9.234, 4.14.195, 4.19.142 2020-08-27 04:27:45 +08:00
132-spi-spi-gpio-fix-crash-when-num-chipselects-is-0.patch kernel: bump to 4.9.194, 4.14.146, 4.17.75 2019-09-24 09:44:15 -07:00
140-jffs2-use-.rename2-and-add-RENAME_WHITEOUT-support.patch kernel: bump to 4.9.234, 4.14.195, 4.19.142 2020-08-27 04:27:45 +08:00
141-jffs2-add-RENAME_EXCHANGE-support.patch kernel: bump to 4.9.234, 4.14.195, 4.19.142 2020-08-27 04:27:45 +08:00
150-bridge_allow_receiption_on_disabled_port.patch kernel bump to 4.9.186, 4.14.134, 4.19.62 2019-08-04 22:11:18 -07:00
180-net-phy-at803x-add-support-for-AT8032.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
201-extra_optimization.patch kernel: Update kernel 4.19 to version 4.19.131 2020-07-05 12:53:46 +08:00
203-kallsyms_uncompressed.patch kernel: bump to 4.9.208, 4.14.162, 4.19.93 (#2745) 2020-01-11 23:39:11 +08:00
205-backtrace_module_info.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
220-optimize_inlining.patch kernel: bump to 4.9.205, 4.14.156, 4.19.86 2019-12-01 05:59:29 -08:00
240-remove-unsane-filenames-from-deps_initramfs-list.patch kernel: bump to 4.9.196, 4.14.148, 4.19.78 2019-10-08 07:38:30 -07:00
261-enable_wilink_platform_without_drivers.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
270-platform-mikrotik-build-bits.patch generic: mikrotik platform build bits 2020-05-09 11:42:25 +08:00
300-mips_expose_boot_raw.patch kernel: bump to 4.9.207, 4.14.160, 4.19.91 2019-12-24 23:57:52 -08:00
302-mips_no_branch_likely.patch kernel bump to 4.9.186, 4.14.134, 4.19.62 2019-08-04 22:11:18 -07:00
304-mips_disable_fpu.patch kernel: bump 4.19 to 4.19.129 2020-06-24 18:16:11 +08:00
305-mips_module_reloc.patch target: fixed some patches (#2717) 2020-01-09 01:24:19 +08:00
306-mips_mem_functions_performance.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
307-mips_highmem_offset.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
308-mips32r2_tune.patch kernel bump to 4.9.186, 4.14.134, 4.19.62 2019-08-04 22:11:18 -07:00
309-MIPS-Add-CPU-option-reporting-to-proc-cpuinfo.patch kernel: bump to 4.14.149 and 4.19.79 2019-10-15 09:31:54 -07:00
310-arm_module_unresolved_weak_sym.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
330-MIPS-kexec-Accept-command-line-parameters-from-users.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
332-arc-add-OWRTDTB-section.patch kernel: bump 4.19 to 4.19.128 2020-06-12 23:14:36 +08:00
333-arc-enable-unaligned-access-in-kernel-mode.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
341-MIPS-mm-remove-no-op-dma_map_ops-where-possible.patch kernel: bump to 4.9.207, 4.14.160, 4.19.91 2019-12-24 23:57:52 -08:00
342-powerpc-Enable-kernel-XZ-compression-option-on-PPC_8.patch kernel: bump to 4.9.182, 4.14.127, 4.19.52 to fix SACK Panic 2019-06-19 02:46:58 -07:00
400-mtd-add-rootfs-split-support.patch kernel: bump to 4.9.206, 4.14.158, 4.19.88 2019-12-10 19:40:41 -08:00
401-mtd-add-support-for-different-partition-parser-types.patch kernel: bump to 4.9.206, 4.14.158, 4.19.88 2019-12-10 19:40:41 -08:00
402-mtd-use-typed-mtd-parsers-for-rootfs-and-firmware-split.patch kernel: bump to 4.9.206, 4.14.158, 4.19.88 2019-12-10 19:40:41 -08:00
403-mtd-hook-mtdsplit-to-Kbuild.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
404-mtd-add-more-helper-functions.patch kernel: bump to 4.9.206, 4.14.158, 4.19.88 2019-12-10 19:40:41 -08:00
411-mtd-partial_eraseblock_write.patch kernel: fix mtd partition erase < parent_erasesize writes 2020-09-20 11:36:15 +08:00
412-mtd-partial_eraseblock_unlock.patch kernel: fix mtd partition erase < parent_erasesize writes 2020-09-20 11:36:15 +08:00
419-mtd-redboot-add-of_match_table-with-DT-binding.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
420-mtd-redboot_space.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
430-mtd-add-myloader-partition-parser.patch kernel: fix include of myloader.o since kernel 5.4 2020-04-25 11:28:20 +08:00
431-mtd-bcm47xxpart-check-for-bad-blocks-when-calculatin.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
432-mtd-bcm47xxpart-detect-T_Meter-partition.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
435-mtd-add-routerbootpart-parser-config.patch generic: routerboot partition build bits 2020-05-09 11:35:20 +08:00
440-block2mtd_init.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
441-block2mtd_probe.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
450-mtd-spi-nor-allow-NOR-driver-to-write-fewer-bytes-th.patch generic: refresh patch (#3774) 2020-03-13 14:05:24 +08:00
460-mtd-cfi_cmdset_0002-no-erase_suspend.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
461-mtd-cfi_cmdset_0002-add-buffer-write-cmd-timeout.patch kernel: bump to 4.9.196, 4.14.148, 4.19.78 2019-10-08 07:38:30 -07:00
465-m25p80-mx-disable-software-protection.patch generic: refresh patch (#3774) 2020-03-13 14:05:24 +08:00
466-Revert-mtd-spi-nor-fix-Spansion-regressions-aliased-.patch generic: refresh patch (#3774) 2020-03-13 14:05:24 +08:00
470-mtd-spi-nor-support-limiting-4K-sectors-support-base.patch generic: refresh patch (#3774) 2020-03-13 14:05:24 +08:00
475-mtd-spi-nor-Add-Winbond-w25q128jv-support.patch x64: improve docker support 2019-10-10 09:34:30 -07:00
476-mtd-spi-nor-add-eon-en25q128.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
477-mtd-add-spi-nor-add-mx25u3235f.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
479-mtd-spi-nor-add-eon-en25qh64.patch Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
479-mtd-spi-nor-add-xtx-xt25f128b.patch generic: refresh patch (#3774) 2020-03-13 14:05:24 +08:00
480-mtd-set-rootfs-to-be-root-dev.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
481-mtd-spi-nor-add-support-for-Gigadevice-GD25D05.patch kernel: bump to 4.9.214, 4.14.171, 4.19.106 (#3375) 2020-02-29 16:28:07 +08:00
490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
491-ubi-auto-create-ubiblock-device-for-rootfs.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
493-ubi-set-ROOT_DEV-to-ubiblock-rootfs-if-unset.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
494-mtd-ubi-add-EOF-marker-support.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
495-mtd-core-add-get_mtd_device_by_node.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
496-dt-bindings-add-bindings-for-mtd-concat-devices.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
497-mtd-mtdconcat-add-dt-driver-for-concat-devices.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
530-jffs2_make_lzma_available.patch kernel: bump to 4.9.180, 4.14.123, 4.19.48 2019-06-11 18:42:29 +08:00
532-jffs2_eofdetect.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
600-netfilter_conntrack_flush.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
601-add-kernel-imq-support.patch kernel: bump 4.19 to 4.19.132 2020-07-10 18:03:01 +08:00
607-tcp_bbr-adapt-cwnd-based-on-ack-aggregation-estimation.patch kernel: bump 4.19 to 4.19.113 2020-04-01 07:37:21 +08:00
608-add-kernel-gargoyle-netfilter-match-modules.patch kernel: bump 4.19 to 4.19.113 2020-04-01 07:37:21 +08:00
610-netfilter_match_bypass_default_checks.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
611-netfilter_match_bypass_default_table.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
612-netfilter_match_reduce_memory_access.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
613-netfilter_optional_tcp_window_check.patch kernel: bump to 4.9.190 ,4.14.140, 4.19.68 2019-08-29 10:27:17 -07:00
620-net_sched-codel-do-not-defer-queue-length-update.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
630-packet_socket_type.patch kernel: bump 4.19 to 4.19.140 2020-08-20 02:13:03 +08:00
640-netfilter-nf_flow_table-add-hardware-offload-support.patch kernel: bump 4.19 to 4.19.145 2020-09-12 23:08:12 +08:00
641-netfilter-nf_flow_table-support-hw-offload-through-v.patch Revert "generic: fix flow table hw offload" 2020-04-23 11:29:37 +08:00
642-net-8021q-support-hardware-flow-table-offload.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
643-net-bridge-support-hardware-flow-table-offload.patch kernel: bump to 4.9.207, 4.14.160, 4.19.91 2019-12-24 23:57:52 -08:00
644-net-pppoe-support-hardware-flow-table-offload.patch kernel: bump 4.19 to 4.19.124 2020-05-24 21:59:06 +08:00
645-netfilter-nf_flow_table-rework-hardware-offload-time.patch kernel: bump to 4.9.202, 4.14.154, 4.19.84 2019-11-21 17:42:54 -08:00
646-netfilter-nf_flow_table-rework-private-driver-data.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
655-increase_skb_pad.patch kernel: bump 4.19 to 4.19.132 2020-07-10 18:03:01 +08:00
666-Add-support-for-MAP-E-FMRs-mesh-mode.patch kernel: bump to 4.9.235, 4.14.196, 4.19.143 2020-09-06 19:58:14 +08:00
670-ipv6-allow-rejecting-with-source-address-failed-policy.patch kernel: bump 4.19 to 4.19.124 2020-05-24 21:59:06 +08:00
671-net-provide-defines-for-_POLICY_FAILED-until-all-cod.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00
680-NET-skip-GRO-for-foreign-MAC-addresses.patch kernel: bump 4.19 to 4.19.145 2020-09-12 23:08:12 +08:00
681-NET-add-of_get_mac_address_mtd.patch kernel: bump 4.19 to 4.19.113 2020-04-01 07:37:21 +08:00
690-net-add-support-for-threaded-NAPI-polling.patch kernel: bump 4.19 to 4.19.145 2020-09-12 23:08:12 +08:00
703-phy-add-detach-callback-to-struct-phy_driver.patch kernel: Update kernel 4.19 to version 4.19.131 2020-07-05 12:53:46 +08:00
735-net-phy-at803x-fix-at8033-sgmii-mode.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
739-net-avoid-tx-fault-with-Nokia-GPON-module.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
740-net-sfp-remove-incomplete-100BASE-FX-and-100BASE-LX-.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
741-net-sfp-derive-interface-mode-from-ethtool-link-mode.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
742-net-sfp-add-more-extended-compliance-codes.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
743-net-sfp-add-module-start-stop-upstream-notifications.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
744-net-sfp-move-phy_start-phy_stop-to-phylink.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
745-net-mdio-i2c-add-support-for-Clause-45-accesses.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
746-net-phylink-re-split-__phylink_connect_phy.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
747-net-phylink-support-Clause-45-PHYs-on-SFP-modules.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
748-net-phylink-split-link_an_mode-configured-and-curren.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
749-net-phylink-split-phylink_sfp_module_insert.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
750-net-phylink-delay-MAC-configuration-for-copper-SFP-m.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
751-net-phylink-make-Broadcom-BCM84881-based-SFPs-work.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
752-net-phy-add-Broadcom-BCM84881-PHY-driver.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
753-net-sfp-add-support-for-Clause-45-PHYs.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
754-net-sfp-fix-unbind.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
755-net-sfp-fix-hwmon.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
756-net-sfp-use-a-definition-for-the-fault-recovery-atte.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
757-net-sfp-rename-sm_retries.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
758-net-sfp-error-handling-for-phy-probe.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
759-net-sfp-re-attempt-probing-for-phy.patch kernel: bump to 4.14.167, 4.19.98 (#2871) 2020-01-30 01:43:29 +08:00
760-net-usb-aqc111-Driver-skeleton-for-Aquantia-AQtionUSB-to-5GbE.patch kernel: bump 4.19 to 4.19.126 2020-06-06 20:15:29 +08:00
800-bcma-get-SoC-device-struct-copy-its-DMA-params-to-th.patch kernel: bump to 3.8.134, 4.9.155, 4.14.98, 4.19.20 2019-02-12 23:17:22 +08:00
810-pci_disable_common_quirks.patch kernel: bump 4.19 to 4.19.137 2020-08-05 20:27:48 +08:00
811-pci_disable_usb_common_quirks.patch kernel: bump to 4.9.187, 4.14.136, 4.19.64 2019-08-06 06:10:35 -07:00
834-ledtrig-libata.patch kernel: bump 4.19 to 4.19.145 2020-09-12 23:08:12 +08:00
920-mangle_bootargs.patch kernel: bump to 4.9.206, 4.14.158, 4.19.88 2019-12-10 19:40:41 -08:00
0931-w1-gpio-fix-problem-with-platfom-data-in-w1-gpio.patch kernel:bump to 4.14.89, import 4.19.9 2018-12-20 14:46:51 +08:00