openwrt/target/linux
Petr Štetiar f521ef5ff3 ipq40xx: 5.4: fix of_get_mac_address obsolete usage OOPs
of_get_mac_address returns valid pointer or ERR_PTR since 5.2 via commit
d01f449c008a ("of_net: add NVMEM support to of_get_mac_address") so the
patch fixes following OOPs on nbg6617:

 Unable to handle kernel paging request at virtual address ffffffed
 CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.4.24 #0
 PC is at edma_axi_probe+0x444/0x1114
 LR is at bus_find_device+0x88/0x9c

Where the PC can be resolved to:

 >>> l *edma_axi_probe+0x444
 0xc067be5c is in edma_axi_probe (./include/linux/string.h:378).

 >>> l *edma_axi_probe+0x43f
 0xc067be57 is in edma_axi_probe (drivers/net/ethernet/qualcomm/essedma/edma_axi.c:936)

Which leads to the following code fragment:

 935  mac_addr = of_get_mac_address(pnp);
 936  if (mac_addr)
 937      memcpy(edma_netdev[idx_mac]->dev_addr, mac_addr, ETH_ALEN);

Where using mac_addr=0xffffffed (-ENODEV) as source address in memcpy()
is causing the OOPs.

Acked-by: John Crispin <john@phrozen.org>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-03-16 22:21:45 +01:00
..
apm821xx apm821xx: 4.14: remove kernel config and patches 2020-03-14 15:17:32 +01:00
ar71xx build: image: move IMAGE_SIZE to image.mk 2020-03-11 18:25:06 +01:00
arc770 arc770: gen_axs10x_sdcard_img.sh: switch to /bin/sh 2019-12-31 01:27:32 +01:00
archs38 archs38: gen_axs10x_sdcard_img.sh: switch to /bin/sh 2019-12-31 01:26:35 +01:00
armvirt armvirt: Remove kernel 4.14 support 2020-03-12 09:27:31 +01:00
at91 at91: gen_at91_sdcard_img.sh: switch to /bin/sh 2019-12-31 01:25:44 +01:00
ath25 kernel: bump 4.14 to 4.14.171 2020-02-24 14:18:59 +01:00
ath79 ath79: fix missing watchdog core dependency for hwmon-sch5627 2020-03-15 03:36:16 +01:00
bcm27xx bcm27xx: sync 5.4 patches with RPi Foundation 2020-03-16 21:24:23 +01:00
bcm47xx bcm47xx: add support for kernel 5.4 2020-03-10 15:50:55 +01:00
bcm53xx kernel: 5.4: move some kconfig options to generic 2020-03-10 10:05:50 +08:00
bcm63xx kernel: remove non-existant symbols from 4.19 config 2020-02-22 16:38:41 +01:00
cns3xxx kernel: bump 4.19 to 4.19.86 2019-11-29 09:59:49 +01:00
gemini gemini: Remove kernel 4.14 support 2020-03-12 09:28:23 +01:00
generic kernel: move disabled symbols into generic kconfig 2020-03-16 22:21:45 +01:00
imx6 imx6: switch to 5.4 kernel 2020-03-16 22:21:45 +01:00
ipq40xx ipq40xx: 5.4: fix of_get_mac_address obsolete usage OOPs 2020-03-16 22:21:45 +01:00
ipq806x ipq806x: read both WG2600HP MAC addresses from flash 2020-03-16 16:53:47 +01:00
ipq807x ipq807x: fix indent in image/Makefile 2020-02-28 20:00:10 +01:00
kirkwood kernel: make kmod-hwmon-core selected by dependent modules 2020-03-13 14:23:33 +01:00
lantiq lantiq: move mux for pins into subnodes 2020-03-15 21:38:05 +01:00
layerscape kernel: make kmod-i2c-mux selected by dependent modules 2020-03-16 16:26:29 +01:00
malta malta: Remove kernel 4.14 support 2020-03-12 09:28:23 +01:00
mediatek kernel: make kmod-ata-core selected by dependent modules 2020-03-11 19:40:03 +01:00
mpc85xx kernel: make kmod-hwmon-core selected by dependent modules 2020-03-13 14:23:33 +01:00
mvebu kernel: make kmod-i2c-mux selected by dependent modules 2020-03-16 16:26:29 +01:00
mxs kernel: 5.4: remove some dup config options already set in generic 2020-03-10 14:45:36 +08:00
octeon octeon: Remove kernel 4.14 support 2020-03-12 09:28:27 +01:00
octeontx kernel: 5.4: remove some dup config options already set in generic 2020-03-10 14:45:36 +08:00
omap omap: gen_omap_sdcard_img.sh: use /bin/sh 2019-12-31 01:17:09 +01:00
oxnas oxnas: rework 02_network 2020-03-16 17:16:39 +09:00
pistachio kernel: bump 4.14 to 4.14.171 2020-02-24 14:18:59 +01:00
ramips kernel: make kmod-i2c-core selected by dependent modules 2020-03-13 15:40:43 +01:00
rb532 rb532: gen_image.sh: use /bin/sh 2019-12-31 01:16:17 +01:00
samsung samsung: add subtarget condition for device 2020-01-03 00:04:22 +01:00
sunxi sunxi: add testing 5.4 kernel 2020-03-16 22:21:45 +01:00
tegra tegra: Remove kernel 4.14 support 2020-03-12 09:28:27 +01:00
uml treewide: Remove self from MAINTAINER entries 2019-12-23 13:18:04 -08:00
x86 x86: switch to 5.4 kernel 2020-03-16 22:21:45 +01:00
zynq zynq: derive DEVICE_DTS from device definition name 2020-01-21 14:26:04 +01:00
Makefile