immortalwrt/target/linux
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
..
apm821xx apm821xx: provide legacy interrupts for PCIe in DT 2020-09-06 11:38:32 +08:00
arc770 kernel: set WATCHDOG_CORE dependency in kmod-hwmon-sch5627 2020-08-25 12:25:14 +08:00
archs38 kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
armvirt kernel: set WATCHDOG_CORE dependency in kmod-hwmon-sch5627 2020-08-25 12:25:14 +08:00
at91 at91: explicitly set CONFIG_USB_SUPPORT for sam9x subtarget 2020-08-28 09:28:31 +08:00
ath25 ath25: fix preinit Ethernet port configuration 2020-09-11 17:18:17 +08:00
ath79 ath79: csac: fix typo error 2020-09-19 19:37:48 +08:00
bcm27xx kernel: bump 5.4 to 5.4.66 2020-09-19 18:51:53 +08:00
bcm47xx Merge Mainline 2020-09-12 23:35:51 +08:00
bcm53xx Revert "bcm53xx: remove useless echo in 02_network" 2020-08-19 01:05:18 +08:00
bcm63xx kernel: set WATCHDOG_CORE dependency in kmod-hwmon-sch5627 2020-08-25 12:25:14 +08:00
cns3xxx Merge Mainline 2020-08-27 04:30:47 +08:00
gemini Merge Mainline 2020-08-03 00:45:53 +08:00
generic kernel: fix mtd partition erase < parent_erasesize writes 2020-09-20 11:36:15 +08:00
imx6 treewide: fix undeclared function about backup in upgrade 2020-08-14 12:28:09 +08:00
ipq40xx kernel: bump 5.4 to 5.4.66 2020-09-19 18:51:53 +08:00
ipq806x kernel: bump 5.4 to 5.4.66 2020-09-19 18:51:53 +08:00
ipq807x kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
kirkwood kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
lantiq lantiq: use uniform "u-boot-env" mtd label 2020-09-18 17:16:59 +08:00
layerscape kernel: bump 5.4 to 5.4.66 2020-09-19 18:51:53 +08:00
malta kernel: set WATCHDOG_CORE dependency in kmod-hwmon-sch5627 2020-08-25 12:25:14 +08:00
mediatek kernel: bump 5.4 to 5.4.66 2020-09-19 18:51:53 +08:00
mpc85xx mpc85xx: tidy up 10-fix-wifi-mac 2020-08-14 11:37:18 +08:00
mvebu mvebu: image: add check for fdt_add_r and kernel_addr_r variables 2020-09-18 17:13:27 +08:00
mxs kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
octeon octeon: determine sysupgrade-* directory for upgrade automatically 2020-08-18 11:38:20 +08:00
octeontx kernel: bump 5.4 to 5.4.60 2020-08-22 03:33:14 +08:00
omap kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
oxnas Merge Mainline 2020-09-12 23:35:51 +08:00
pistachio pistachio: Use kernel 5.4 by default 2020-08-29 01:35:07 +08:00
ramips Merge Mainline 2020-09-19 22:24:34 +08:00
rb532 kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
rockchip rockchip: refresh NanoPi R2S patches with upstream feedback 2020-09-13 16:43:32 +08:00
rtl838x kernel: bump 5.4 to 5.4.66 2020-09-19 18:51:53 +08:00
samsung kernel: Update kernel 4.14 to version 4.14.187 2020-07-05 11:53:32 +08:00
sunxi kernel: bump 5.4 to 5.4.63 2020-09-06 19:56:39 +08:00
tegra kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
uml uml: update to linux 5.4 2020-08-23 01:14:31 +08:00
x86 kernel: bump 5.4 to 5.4.63 2020-09-06 19:56:39 +08:00
zynq kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-07 18:08:33 +08:00
Makefile build: add 'make kernel_xconfig' command 2020-07-09 12:03:26 +08:00