1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/qlogic/qlcnic
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
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qlcnic.h qlcnic: Simplify DMA setting 2022-01-09 16:52:18 -08:00
qlcnic_83xx_hw.c qlcnic: Remove unnecessary aer.h include 2023-03-08 23:34:39 -08:00
qlcnic_83xx_hw.h qlcnic: Simplify DMA setting 2022-01-09 16:52:18 -08:00
qlcnic_83xx_init.c qlcnic: replace deprecated strncpy with strscpy 2023-12-10 19:08:58 +00:00
qlcnic_83xx_vnic.c net: calxeda: Fix wrong function name in comments 2021-05-17 14:12:39 -07:00
qlcnic_ctx.c qlcnic: check pci_reset_function result 2023-04-12 08:32:38 +01:00
qlcnic_dcb.c net/qlcnic: Convert to SPDX license identifiers 2020-09-16 14:32:10 +02:00
qlcnic_dcb.h qlcnic: prevent ->dcb use-after-free on qlcnic_dcb_enable() failure 2022-12-26 09:01:36 +00:00
qlcnic_ethtool.c qlcnic: Clean up some inconsistent indenting 2022-12-12 15:29:53 -08:00
qlcnic_hdr.h net/qlcnic: Convert to SPDX license identifiers 2020-09-16 14:32:10 +02:00
qlcnic_hw.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
qlcnic_hw.h qlcnic: Remove the repeated declaration 2021-06-01 15:25:46 -07:00
qlcnic_init.c qlcnic: Remove redundant unlock in qlcnic_pinit_from_rom 2021-09-04 10:50:59 +01:00
qlcnic_io.c net: adopt skb_network_offset() and similar helpers 2024-03-04 08:47:06 +00:00
qlcnic_main.c qlcnic: Drop redundant pci_enable_pcie_error_reporting() 2023-03-08 23:34:39 -08:00
qlcnic_minidump.c net/qlcnic: Fix a use after free in qlcnic_83xx_get_minidump_template 2021-03-11 18:08:14 -08:00
qlcnic_sriov.h qlcnic: Simplify DMA setting 2022-01-09 16:52:18 -08:00
qlcnic_sriov_common.c drivers: net: qlcnic: Fix potential memory leak in qlcnic_sriov_init() 2022-12-09 10:52:43 +00:00
qlcnic_sriov_pf.c ethernet: Remove vf rate limit check for drivers 2022-06-10 22:19:32 -07:00
qlcnic_sysfs.c qlcnic: Drop redundant pci_enable_pcie_error_reporting() 2023-03-08 23:34:39 -08:00