1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/broadcom/bnx2x
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
..
bnx2x.h bnx2x: new flag for track HW resource allocation 2023-08-22 17:07:40 -07:00
bnx2x_cmn.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
bnx2x_cmn.h net/bnx2x: Prevent access to a freed page in page_pool 2024-03-19 19:34:27 -07:00
bnx2x_dcb.c bnx2x: Remove Comparison to bool in bnx2x_dcb.c 2020-05-05 11:39:42 -07:00
bnx2x_dcb.h bnx2x: Rebrand from 'broadcom' into 'qlogic' 2015-07-22 10:47:26 -07:00
bnx2x_dump.h bnx2x: Rebrand from 'broadcom' into 'qlogic' 2015-07-22 10:47:26 -07:00
bnx2x_ethtool.c bnx2x: convert EEE handling to use linkmode bitmaps 2024-02-09 12:55:19 -08:00
bnx2x_fw_defs.h bnx2x: Utilize firmware 7.13.21.0 2021-12-20 11:29:20 +00:00
bnx2x_fw_file_hdr.h bnx2x: Rebrand from 'broadcom' into 'qlogic' 2015-07-22 10:47:26 -07:00
bnx2x_hsi.h bnx2x: Utilize firmware 7.13.21.0 2021-12-20 11:29:20 +00:00
bnx2x_init.h ocfs2/dlm: move BITS_TO_BYTES() to bitops.h for wider use 2020-01-31 10:30:36 -08:00
bnx2x_init_ops.h net: bnx2x: fix variable dereferenced before check 2021-11-15 13:28:49 +00:00
bnx2x_link.c bnx2x: Fix firmware version string character counts 2024-01-26 21:01:30 -08:00
bnx2x_link.h bnx2x: Remove format_fw_ver_t function casts 2019-11-16 12:50:57 -08:00
bnx2x_main.c cnic,bnx2,bnx2x: use UIO_MEM_DMA_COHERENT 2024-03-07 21:52:59 +00:00
bnx2x_mfw_req.h bnx2x: Rebrand from 'broadcom' into 'qlogic' 2015-07-22 10:47:26 -07:00
bnx2x_reg.h bnx2x: Fix spelling mistake "regiser" -> "register" 2022-04-11 10:52:09 +01:00
bnx2x_self_test.c bnx2x: fix spelling mistake "occurd" -> "occurred" 2020-07-07 15:41:54 -07:00
bnx2x_sp.c bnx2x: Remove unnecessary ternary operators 2023-08-02 12:09:13 -07:00
bnx2x_sp.h bnx2x: Fix accounting of vlan resources among the PFs 2019-12-26 15:27:14 -08:00
bnx2x_sriov.c bnx2x: fix pci device refcount leak in bnx2x_vf_is_pcie_pending() 2022-11-22 13:32:26 +01:00
bnx2x_sriov.h net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
bnx2x_stats.c bnx2x: Use struct_group() for memcpy() region 2021-11-19 11:18:08 +00:00
bnx2x_stats.h bnx2x: Use struct_group() for memcpy() region 2021-11-19 11:18:08 +00:00
bnx2x_vfpf.c bnx2x: new flag for track HW resource allocation 2023-08-22 17:07:40 -07:00
bnx2x_vfpf.h bnx2x: add vlan filtering offload 2015-07-29 23:24:45 -07:00
Makefile bnx2x: Add support for idlechk tests. 2020-07-04 17:51:07 -07:00