linux-stable/drivers/net
Phil Elwell 1fb7ab9a6e net: bcmgenet: Reset RBUF on first open
[ Upstream commit 0a6380cb4c ]

If the RBUF logic is not reset when the kernel starts then there
may be some data left over from any network boot loader. If the
64-byte packet headers are enabled then this can be fatal.

Extend bcmgenet_dma_disable to do perform the reset, but not when
called from bcmgenet_resume in order to preserve a wake packet.

N.B. This different handling of resume is just based on a hunch -
why else wouldn't one reset the RBUF as well as the TBUF? If this
isn't the case then it's easy to change the patch to make the RBUF
reset unconditional.

See: https://github.com/raspberrypi/linux/issues/3850
See: https://github.com/raspberrypi/firmware/issues/1882

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Signed-off-by: Maarten Vanraes <maarten@rmail.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-05-17 11:48:03 +02:00
..
appletalk
arcnet arcnet: restoring support for multiple Sohard Arcnet cards 2023-12-13 18:26:59 +01:00
bonding bonding: remove print in bond_verify_device_path 2024-02-23 08:42:18 +01:00
caif
can can: dev: can_restart(): fix race condition between controller restart and netif_carrier_on() 2023-11-20 11:06:45 +01:00
dsa net: dsa: mv88e6xxx: Fix number of databases for 88E6141 / 88E6341 2024-05-17 11:48:01 +02:00
ethernet net: bcmgenet: Reset RBUF on first open 2024-05-17 11:48:03 +02:00
fddi
fjes fjes: fix memleaks in fjes_hw_setup 2024-02-23 08:41:57 +01:00
hamradio
hippi
hyperv hv_netvsc: Register VF in netvsc_probe if NET_DEVICE_REGISTER missed 2024-03-15 10:48:21 -04:00
ieee802154 net: ieee802154: adf7242: Fix some potential buffer overflow in adf7242_stats_show() 2023-11-08 17:30:42 +01:00
ipa
ipvlan ipvlan: add ipvlan_route_v6_outbound() helper 2023-11-28 16:54:53 +00:00
mdio net: mdio: mvusb: Fix an error handling path in mvusb_mdio_probe() 2023-05-30 12:57:45 +01:00
netdevsim netdevsim: fix uninitialized data in nsim_dev_trap_fa_cookie_write() 2023-07-27 08:44:24 +02:00
pcs
phy net: phy: dp83822: Fix RGMII TX delay configuration 2024-03-26 18:21:53 -04:00
plip
ppp ppp_async: limit MRU to 64K 2024-02-23 08:42:20 +01:00
slip
team team: Fix use-after-free when an option instance allocation fails 2023-12-20 15:44:37 +01:00
usb net: usb: ax88179_178a: stop lying about skb->truesize 2024-05-02 16:23:41 +02:00
vmxnet3
vxlan vxlan: drop packets from invalid src-address 2024-05-02 16:23:41 +02:00
wan drivers/net: process the result of hdlc_open() and add call of hdlc_close() in uhdlc_close() 2023-10-10 21:53:37 +02:00
wimax
wireguard wireguard: netlink: access device through ctx instead of peer 2024-04-13 12:58:42 +02:00
wireless wifi: iwlwifi: mvm: remove old PASN station when adding a new one 2024-05-02 16:23:41 +02:00
xen-netback xen-netback: properly sync TX responses 2024-02-23 08:42:26 +01:00
Kconfig
LICENSE.SRC
Makefile vxlan: move to its own directory 2023-08-11 11:57:35 +02:00
Space.c
bareudp.c
dummy.c
eql.c
geneve.c geneve: fix header validation in geneve[6]_xmit_skb 2024-05-02 16:23:34 +02:00
gtp.c net: gtp: Fix Use-After-Free in gtp_dellink 2024-05-02 16:23:41 +02:00
ifb.c
loopback.c
macsec.c net: add DEV_STATS_READ() helper 2023-11-20 11:06:46 +01:00
macvlan.c macvlan: Don't propagate promisc change to lower dev in passthru 2023-11-28 16:54:55 +00:00
macvtap.c
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
sungem_phy.c
tap.c net: tap_open(): set sk_uid from current_fsuid() 2023-08-11 11:57:52 +02:00
thunderbolt.c net: thunderbolt: Fix TCPv6 GSO checksum calculation 2023-10-10 21:53:35 +02:00
tun.c tun: limit printing rate when illegal packet received by tun dev 2024-05-02 16:23:36 +02:00
veth.c veth: Fixing transmit return status for dropped packets 2023-09-19 12:20:26 +02:00
virtio_net.c virtio_net: Fix "‘%d’ directive writing between 1 and 11 bytes into a region of size 10" warnings 2024-02-23 08:42:14 +01:00
vrf.c
vsockmon.c
xen-netfront.c