android_kernel_motorola_sm6375/drivers/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dominique Martinet e206041b55 net: usb: usbnet: restore usb%d name exception for local mac addresses
commit 2ea396448f26d0d7d66224cb56500a6789c7ed07 upstream.

commit 8a7d12d674ac ("net: usb: usbnet: fix name regression") assumed
that local addresses always came from the kernel, but some devices hand
out local mac addresses so we ended up with point-to-point devices with
a mac set by the driver, renaming to eth%d when they used to be named
usb%d.

Userspace should not rely on device name, but for the sake of stability
restore the local mac address check portion of the naming exception:
point to point devices which either have no mac set by the driver or
have a local mac handed out by the driver will keep the usb%d name.

(some USB LTE modems are known to hand out a stable mac from the locally
administered range; that mac appears to be random (different for
mulitple devices) and can be reset with device-specific commands, so
while such devices would benefit from getting a OUI reserved, we have
to deal with these and might as well preserve the existing behavior
to avoid breaking fragile openwrt configurations and such on upgrade.)

Link: https://lkml.kernel.org/r/[email protected]
Fixes: 8a7d12d674ac ("net: usb: usbnet: fix name regression")
Cc: [email protected]
Tested-by: Ahmed Naseef <[email protected]>
Signed-off-by: Dominique Martinet <[email protected]>
Acked-by: Oliver Neukum <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2025-04-10 14:29:39 +02:00
..
appletalk
arcnet
bonding net: bonding: correctly annotate RCU in bond_should_notify_peers() 2024-08-19 05:33:41 +02:00
caif caif_virtio: fix wrong pointer check in cfv_probe() 2025-03-13 12:43:29 +01:00
can can: c_can: fix unbalanced runtime PM disable in error path 2025-03-13 12:43:16 +01:00
dsa net: dsa: vsc73xx: fix possible subblocks range of CAPT block 2024-09-12 11:03:53 +02:00
ethernet qlcnic: fix memory leak issues in qlcnic_sriov_common.c 2025-04-10 14:29:37 +02:00
fddi
fjes
hamradio
hippi
hyperv hv_netvsc: Fix VF namespace also in synthetic NIC NETDEV_REGISTER event 2024-11-08 16:20:51 +01:00
ieee802154 ieee802154: ca8210: Add missing check for kfifo_alloc() in ca8210_probe() 2025-02-01 18:18:44 +01:00
ipvlan ipvlan: Dont Use skb->sk in ipvlan_process_v{4,6}_outbound 2024-06-16 13:28:48 +02:00
netdevsim
phy net: phy: vitesse: repair vsc73xx autonegotiation 2024-11-08 16:20:24 +01:00
plip
ppp ppp: Fix KMSAN uninit-value warning with bpf 2025-03-13 12:43:30 +01:00
slip slip: make slhc_remember() more robust against malicious packets 2024-11-08 16:20:46 +01:00
team team: better TEAM_OPTION_TYPE_STRING validation 2025-03-13 12:43:12 +01:00
usb net: usb: usbnet: restore usb%d name exception for local mac addresses 2025-04-10 14:29:39 +02:00
vmxnet3
wan
wimax
wireless wifi: iwlwifi: limit printed string from FW file 2025-03-13 12:43:28 +01:00
xen-netback net/xen-netback: prevent UAF in xenvif_flush_hash() 2025-02-01 18:18:53 +01:00
dummy.c
eql.c
geneve.c geneve: Suppress list corruption splat in geneve_destroy_tunnels(). 2025-03-13 12:43:22 +01:00
gtp.c gtp: Suppress list corruption splat in gtp_net_exit_batch_rtnl(). 2025-03-13 12:43:22 +01:00
ifb.c
Kconfig drivers: net: Fix Kconfig indentation, continued 2024-11-08 16:20:35 +01:00
LICENSE.SRC
loopback.c net: loopback: Avoid sending IP packets without an Ethernet header 2025-03-13 12:43:24 +01:00
macsec.c macsec: don't increment counters for an unrelated SA 2024-11-08 16:20:49 +01:00
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c
netconsole.c net: netconsole: Disable target before netpoll cleanup 2024-08-19 05:33:35 +02:00
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c tap: add missing verification for short frame 2024-07-27 10:38:33 +02:00
thunderbolt.c
tun.c tun: revert fix group permission check 2025-03-13 12:43:06 +01:00
veth.c
virtio_net.c virtio_net: Fix napi_skb_cache_put warning 2024-09-12 11:03:50 +02:00
vrf.c
vsockmon.c
vxlan.c vxlan: Fix regression when dropping packets due to invalid src addresses 2024-07-05 09:08:11 +02:00
xen-netfront.c xen/netfront: fix crash when removing device 2024-12-19 18:05:05 +01:00