1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/freescale/dpaa
Sean Anderson c99f0f7e68 net: fman: Use physical address for userspace interfaces
Before 262f2b782e ("net: fman: Map the base address once"), the
physical address of the MAC was exposed to userspace in two places: via
sysfs and via SIOCGIFMAP. While this is not best practice, it is an
external ABI which is in use by userspace software.

The aforementioned commit inadvertently modified these addresses and
made them virtual. This constitutes and ABI break.  Additionally, it
leaks the kernel's memory layout to userspace. Partially revert that
commit, reintroducing the resource back into struct mac_device, while
keeping the intended changes (the rework of the address mapping).

Fixes: 262f2b782e ("net: fman: Map the base address once")
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Acked-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-10-24 10:45:14 +01:00
..
dpaa_eth.c net: fman: Use physical address for userspace interfaces 2022-10-24 10:45:14 +01:00
dpaa_eth.h net: dpaa: Convert to SPDX identifiers 2022-05-28 12:43:31 +01:00
dpaa_eth_sysfs.c net: fman: Use physical address for userspace interfaces 2022-10-24 10:45:14 +01:00
dpaa_eth_trace.h net: dpaa: Convert to SPDX identifiers 2022-05-28 12:43:31 +01:00
dpaa_ethtool.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
Kconfig net: dpaa_eth: remove dead select in menuconfig FSL_DPAA_ETH 2021-08-13 16:30:35 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00