linux/drivers/net/ethernet/cisco/enic
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
..
cq_desc.h
cq_enet_desc.h
enic.h
enic_api.c
enic_api.h
enic_clsf.c
enic_clsf.h
enic_dev.c
enic_dev.h
enic_ethtool.c
enic_main.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
enic_pp.c
enic_pp.h
enic_res.c
enic_res.h
Kconfig
Makefile
rq_enet_desc.h
vnic_cq.c
vnic_cq.h
vnic_dev.c enic: Replace hardcoded values for vnic descriptor by defines 2024-04-25 10:36:30 +01:00
vnic_dev.h enic: Replace hardcoded values for vnic descriptor by defines 2024-04-25 10:36:30 +01:00
vnic_devcmd.h
vnic_enet.h
vnic_intr.c
vnic_intr.h
vnic_nic.h
vnic_resource.h
vnic_rq.c
vnic_rq.h
vnic_rss.h
vnic_stats.h
vnic_vic.c enic: Avoid false positive under FORTIFY_SOURCE 2024-02-19 10:57:27 +00:00
vnic_vic.h
vnic_wq.c
vnic_wq.h
wq_enet_desc.h