linux-stable/drivers/net/ethernet/qualcomm
Eric Dumazet 1eb2cded45 net: annotate writes on dev->mtu from ndo_change_mtu()
Simon reported that ndo_change_mtu() methods were never
updated to use WRITE_ONCE(dev->mtu, new_mtu) as hinted
in commit 501a90c945 ("inet: protect against too small
mtu values.")

We read dev->mtu without holding RTNL in many places,
with READ_ONCE() annotations.

It is time to take care of ndo_change_mtu() methods
to use corresponding WRITE_ONCE()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Simon Horman <horms@kernel.org>
Closes: https://lore.kernel.org/netdev/20240505144608.GB67882@kernel.org/
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Acked-by: Shannon Nelson <shannon.nelson@amd.com>
Link: https://lore.kernel.org/r/20240506102812.3025432-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-05-07 16:19:14 -07:00
..
emac net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
rmnet net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
Kconfig net: ethernet: Add missing depends on MDIO_DEVRES 2023-04-12 20:38:48 -07:00
Makefile
qca_7k.c qca_7k: Replace BSD boilerplate with SPDX 2024-01-31 13:38:51 +00:00
qca_7k.h qca_7k: Replace BSD boilerplate with SPDX 2024-01-31 13:38:51 +00:00
qca_7k_common.c qca_7k: Replace old mail address 2024-01-31 13:38:51 +00:00
qca_7k_common.h qca_7k: Replace BSD boilerplate with SPDX 2024-01-31 13:38:51 +00:00
qca_debug.c qca_7k: Replace BSD boilerplate with SPDX 2024-01-31 13:38:51 +00:00
qca_debug.h qca_7k: Replace BSD boilerplate with SPDX 2024-01-31 13:38:51 +00:00
qca_spi.c qca_7k: Replace old mail address 2024-01-31 13:38:51 +00:00
qca_spi.h qca_7k: Replace BSD boilerplate with SPDX 2024-01-31 13:38:51 +00:00
qca_uart.c TTY/Serial driver update for 6.9-rc1 2024-03-21 12:44:10 -07:00